/* ==========================================================================
   4BIT DIGITAL STUDIO — sections.css
   Per-section layout
   ========================================================================== */

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: calc(var(--header-h) + 3rem) 7rem;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .85;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 25%, transparent 80%);
}

.hero__glow {
  position: absolute;
  left: 50%; top: 42%;
  width: min(900px, 92vw);
  aspect-ratio: 2 / 1;
  translate: -50% -50%;
  background: radial-gradient(ellipse at center, rgba(238,46,92,.16), transparent 65%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero__container { position: relative; z-index: 2; }

.hero__title {
  font-size: var(--t-3xl);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: 1.4rem 0 0;
  max-width: 17ch;
}

/* rotating gradient phrase */
.hero__rotator {
  display: inline-block;
  position: relative;
  height: 1.06em;
  overflow: hidden;
  vertical-align: -.14em;
  width: var(--rot-w, 8em);
  max-width: 100%;
  transition: width .75s var(--e-out);
}
.hero__rotator-track {
  display: flex;
  flex-direction: column;
  transition: transform .75s var(--e-out);
}
.hero__rotator-track b {
  display: block;
  height: 1.06em;
  line-height: 1.06em;
  white-space: nowrap;
  /* natural width, so JS can measure the real phrase instead of the
     width the wrapper is currently animating to */
  width: max-content;
  font-weight: 700;
  background: var(--brand-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 7s linear infinite;
}

.hero__lede {
  margin-top: 1.7rem;
  max-width: 56ch;
  font-size: var(--t-md);
  color: var(--text-soft);
  line-height: 1.62;
}
.hero__lede strong { color: var(--text); font-weight: 500; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.4rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin-top: clamp(3rem, 6vw, 4.6rem);
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  margin-top: .15rem;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
@media (max-width: 620px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.8rem;
  translate: -50% 0;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: .6rem;
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color var(--d-fast);
}
.hero__scroll:hover { color: var(--text); }
.hero__scroll-line {
  position: relative;
  width: 1px; height: 46px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}
.hero__scroll-line i {
  position: absolute;
  inset: 0;
  background: var(--brand-grad);
  animation: scrollDrop 2.2s var(--e-in-out) infinite;
}
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker {
  position: relative;
  padding: 1.1rem 0;
  border-block: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.015);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  flex-shrink: 0;
}
.ticker__group span {
  font-family: var(--f-display);
  font-size: clamp(.95rem, .8rem + .6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--text-soft);
  white-space: nowrap;
}
.ticker__group em {
  width: 9px; height: 9px;
  flex-shrink: 0;
  background: var(--brand-grad);
}

/* ==========================================================================
   SERVICES — bento
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.card--wide { grid-column: span 2; }
.card--full { grid-column: span 3; }

.card--full .card__body {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "icon  text"
    "title text"
    "chips chips";
  gap: .5rem clamp(1.5rem, 4vw, 3.5rem);
  align-content: start;
}
.card--full .card__icon  { grid-area: icon; }
.card--full .card__title { grid-area: title; align-self: start; }
.card--full .card__text  { grid-area: text; align-self: center; }
.card--full .chips       { grid-area: chips; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide, .card--full { grid-column: span 2; }
  .card--full .card__body {
    grid-template-columns: 1fr;
    grid-template-areas: "icon" "title" "text" "chips";
  }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card--wide, .card--full { grid-column: span 1; }
}

/* ==========================================================================
   WORK
   ========================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

.work {
  position: relative;
  display: block;
  transition: opacity .45s var(--e-out), transform .45s var(--e-out);
}
.work.is-filtered {
  display: none;
}

.work__art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-1);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07) inset, 0 20px 50px -24px rgba(0,0,0,.9);
  transition: box-shadow var(--d-mid), transform var(--d-mid) var(--e-out);
}
.work__art::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 22% 26%, var(--a1), transparent 52%),
    radial-gradient(circle at 78% 68%, var(--a2), transparent 55%),
    radial-gradient(circle at 52% 92%, var(--a3), transparent 58%);
  filter: blur(6px);
  transition: transform 1.1s var(--e-out), filter .6s;
}
.work:hover .work__art::before { transform: scale(1.14) rotate(3deg); filter: blur(2px); }

.work__art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.42) 1px, transparent 1px);
  background-size: 26px 26px;
  mix-blend-mode: overlay;
  opacity: .8;
}

.work__art-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34%;
  aspect-ratio: 1;
  background: #fff;
  opacity: .12;
  -webkit-mask: url("../img/logo-mark.svg") center / contain no-repeat;
  mask: url("../img/logo-mark.svg") center / contain no-repeat;
  transition: opacity .5s var(--e-out), transform .7s var(--e-spring);
}
.work:hover .work__art-mark { opacity: .3; transform: scale(1.12) rotate(-6deg); }

/* per-project colour recipes */
.work__art[data-art="1"] { --a1: rgba(245,69,58,.85);  --a2: rgba(234,42,128,.7);  --a3: rgba(90,30,140,.6); }
.work__art[data-art="2"] { --a1: rgba(40,90,200,.7);   --a2: rgba(234,42,128,.65); --a3: rgba(20,25,45,.9); }
.work__art[data-art="3"] { --a1: rgba(255,120,40,.75); --a2: rgba(238,46,92,.8);   --a3: rgba(60,20,30,.9); }
.work__art[data-art="4"] { --a1: rgba(200,200,215,.5); --a2: rgba(238,46,92,.6);   --a3: rgba(30,35,55,.95); }
.work__art[data-art="5"] { --a1: rgba(40,190,160,.55); --a2: rgba(234,42,128,.6);  --a3: rgba(25,30,50,.9); }
.work__art[data-art="6"] { --a1: rgba(150,60,220,.65); --a2: rgba(245,69,58,.65);  --a3: rgba(20,22,40,.9); }

.work:hover .work__art {
  box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset, 0 30px 60px -22px rgba(238,46,92,.5);
  transform: translateY(-6px);
}

.work__meta {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1.1rem .2rem 0;
}
.work__title {
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -.03em;
  transition: color var(--d-fast);
}
.work:hover .work__title { color: var(--brand-2); }
.work__tags {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.work__arrow {
  position: absolute;
  top: 1rem; right: 1rem;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(10,14,24,.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset;
  opacity: 0;
  transform: scale(.7) translateY(6px);
  transition: opacity var(--d-mid) var(--e-out), transform var(--d-mid) var(--e-spring), background-color var(--d-mid);
}
.work__arrow svg {
  width: 17px; height: 17px;
  fill: none; stroke: #fff;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.work:hover .work__arrow { opacity: 1; transform: none; background: var(--brand-2); }

/* Marks the projects that are still up, so the case study's live button is
   no surprise. Sibling of .work__art, positioned against the card. */
.work__live {
  position: absolute;
  top: 1rem; left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .7rem .35rem .6rem;
  border-radius: var(--r-pill);
  background: rgba(8,11,19,.62);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--f-mono);
  font-size: .54rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color var(--d-fast);
}
.work__live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #21D07A;
  box-shadow: 0 0 0 0 rgba(33,208,122,.6);
  animation: pulse 2.4s var(--e-out) infinite;
}
.work:hover .work__live { color: #fff; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .process { grid-template-columns: 1fr; } }

.process__sticky {
  position: sticky;
  top: calc(var(--header-h) + 3rem);
  display: grid;
  gap: 1rem;
  justify-items: start;
}
@media (max-width: 900px) { .process__sticky { position: static; } }

.process__mark {
  position: relative;
  width: clamp(120px, 15vw, 168px);
  aspect-ratio: 1;
  margin-top: 1.4rem;
}
.process__mark i {
  opacity: .13;
  filter: grayscale(1);
  transition: opacity .6s var(--e-out), filter .6s var(--e-out), transform .6s var(--e-spring);
}
.process__mark i.is-lit {
  opacity: 1;
  filter: none;
  transform: scale(1.04);
  box-shadow: 0 0 34px rgba(238,46,92,.75);
}

.steps { display: grid; gap: var(--gap); }

.step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 1.1rem; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; } .step__rail { display: none; } }

.step__rail { position: relative; display: grid; justify-items: center; }
.step__rail::before {
  content: "";
  position: absolute;
  top: 0; bottom: -1.6rem;
  width: 1px;
  background: linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.02));
}
.step:last-child .step__rail::before { display: none; }
.step__rail span {
  position: relative;
  z-index: 1;
  width: 11px; height: 11px;
  margin-top: 2.1rem;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset;
  transition: background var(--d-mid), box-shadow var(--d-mid), transform var(--d-mid) var(--e-spring);
}
.step.is-active .step__rail span {
  background: var(--brand-grad);
  box-shadow: 0 0 22px rgba(238,46,92,.95);
  transform: scale(1.35) rotate(45deg);
}

.step__body {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  transition: box-shadow var(--d-mid), background-color var(--d-mid);
}
.step.is-active .step__body {
  background: var(--glass-bg-2);
  box-shadow: var(--glass-shadow), 0 0 60px -30px rgba(238,46,92,.9);
}

.step__idx {
  font-family: var(--f-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--text-dim);
  transition: color var(--d-mid);
}
.step.is-active .step__idx { color: var(--brand-2); }

.step__title { font-size: var(--t-lg); margin: .45rem 0 .6rem; }
.step__text { color: var(--text-soft); font-size: var(--t-sm); line-height: 1.68; }

.step__list { display: grid; gap: .45rem; margin-top: 1.1rem; }
.step__list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--t-sm);
  color: var(--text-soft);
}
.step__list svg {
  flex-shrink: 0;
  width: 15px; height: 15px;
  fill: none; stroke: var(--brand-2);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.quotes {
  overflow: hidden;
  padding-block: .5rem 1rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.quotes__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding-inline: var(--gap);
  animation: marquee 52s linear infinite;
}
.quotes:hover .quotes__track { animation-play-state: paused; }

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
  width: clamp(290px, 32vw, 420px);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  flex-shrink: 0;
}
.quote blockquote {
  font-family: var(--f-display);
  font-size: var(--t-md);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.02em;
  color: var(--text);
}
.quote blockquote::before {
  content: "";
  display: block;
  width: 22px; height: 22px;
  margin-bottom: 1rem;
  background: var(--brand-grad);
  -webkit-mask: url("../img/logo-mark.svg") center / contain no-repeat;
  mask: url("../img/logo-mark.svg") center / contain no-repeat;
}
.quote figcaption { display: flex; flex-direction: column; gap: .1rem; }
.quote figcaption b { font-size: var(--t-sm); font-weight: 600; }
.quote figcaption span {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--text-mute);
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.plan {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  transition: transform var(--d-mid) var(--e-out), box-shadow var(--d-mid);
}
.plan:hover { transform: translateY(-5px); }

.plan--featured {
  background: linear-gradient(180deg, rgba(238,46,92,.11), rgba(255,255,255,.03));
  box-shadow: var(--glass-shadow), 0 0 90px -34px rgba(238,46,92,.95);
}
@media (min-width: 941px) { .plan--featured { transform: scale(1.035); } .plan--featured:hover { transform: scale(1.035) translateY(-5px); } }

.plan__badge {
  position: absolute;
  top: -.72rem; left: 50%;
  translate: -50% 0;
  z-index: 4;
  padding: .3rem .85rem;
  border-radius: var(--r-pill);
  background: var(--brand-grad);
  font-family: var(--f-mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 8px 22px -8px rgba(238,46,92,.9);
}

.plan__head { display: grid; gap: .25rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.plan__name {
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.plan__price {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.2rem + 2.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.plan__price em {
  font-style: normal;
  font-size: .38em;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: -.01em;
}
.plan__from {
  display: block;
  font-family: var(--f-mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.plan__note { font-size: var(--t-xs); color: var(--text-mute); }
.plan__desc { font-size: var(--t-sm); color: var(--text-soft); line-height: 1.65; }

.plan__list { display: grid; gap: .6rem; margin-bottom: auto; }
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: var(--t-sm);
  color: var(--text-soft);
}
.plan__list svg {
  flex-shrink: 0;
  width: 15px; height: 15px;
  margin-top: .35em;
  fill: none; stroke: var(--brand-2);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

.faq-intro { display: grid; gap: 1rem; justify-items: start; position: sticky; top: calc(var(--header-h) + 3rem); }
@media (max-width: 900px) { .faq-intro { position: static; } }

.faq { display: grid; }
.faq__item { border-bottom: 1px solid rgba(255,255,255,.08); }
.faq__item:first-child { border-top: 1px solid rgba(255,255,255,.08); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem .4rem;
  text-align: left;
  font-family: var(--f-display);
  font-size: var(--t-md);
  font-weight: 500;
  letter-spacing: -.025em;
  color: var(--text-soft);
  transition: color var(--d-fast), padding-left var(--d-fast) var(--e-out);
}
.faq__q:hover { color: var(--text); padding-left: .9rem; }
.faq__item.is-open .faq__q { color: var(--text); }

.faq__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.045);
  box-shadow: 0 0 0 1px rgba(255,255,255,.09) inset;
  transition: transform .45s var(--e-spring), background var(--d-fast), box-shadow var(--d-fast);
}
.faq__icon svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round;
}
.faq__item.is-open .faq__icon {
  transform: rotate(135deg);
  background: var(--brand-grad);
  box-shadow: 0 8px 22px -8px rgba(238,46,92,.9);
  color: #fff;
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--e-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a-inner p {
  padding: 0 3rem 1.6rem .4rem;
  font-size: var(--t-sm);
  color: var(--text-soft);
  line-height: 1.72;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .4s var(--e-out) .08s, transform .4s var(--e-out) .08s;
}
.faq__item.is-open .faq__a-inner p { opacity: 1; transform: none; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.section--contact { padding-bottom: clamp(4rem, 8vw, 8rem); }

.contact {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.8rem, 4vw, 3.6rem);
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact__intro { display: grid; gap: 1.1rem; align-content: start; justify-items: start; }
.contact__title { font-size: var(--t-xl); letter-spacing: -.04em; }
.contact__lede { color: var(--text-soft); font-size: var(--t-sm); line-height: 1.7; max-width: 42ch; }

.contact__info { display: grid; gap: .8rem; margin-top: .6rem; }
.contact__info li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: var(--t-sm);
  color: var(--text-soft);
}
.contact__info svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  fill: none; stroke: var(--brand-2);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.contact__info a { transition: color var(--d-fast); }
.contact__info a:hover { color: var(--brand-2); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, transparent, rgba(238,46,92,.045));
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } }

.footer__brand { display: grid; gap: 1.2rem; justify-items: start; align-content: start; }
.footer__tag { max-width: 34ch; font-size: var(--t-sm); color: var(--text-soft); line-height: 1.7; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
@media (max-width: 560px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

.footer__col h4 {
  margin-bottom: 1rem;
  font-family: var(--f-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__col ul { display: grid; gap: .55rem; margin-bottom: 1.2rem; }
.footer__col a {
  font-size: var(--t-sm);
  color: var(--text-soft);
  transition: color var(--d-fast), transform var(--d-fast) var(--e-out);
  display: inline-block;
}
.footer__col a:hover { color: var(--brand-2); transform: translateX(4px); }

/* Sized off the wordmark's own row so it always fills one line, however
   long the CMS text is — vw alone breaks once .container hits its
   1240px cap, since the text kept growing past the row's real width. */
.footer__wordmark-row { container-type: inline-size; }

/* oversized wordmark bleeding off the bottom */
.footer__wordmark {
  font-family: var(--f-display);
  font-size: 20vw; /* fallback for browsers without container query units */
  font-size: 18cqi;
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: .78;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(238,46,92,.16) 60%, transparent 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: -.12em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--text-mute);
}
.footer__legal { display: flex; align-items: center; gap: 1.4rem; }
.footer__legal a { transition: color var(--d-fast); }
.footer__legal a:hover { color: var(--text); }
.to-top { display: inline-flex; align-items: center; gap: .4rem; }
.to-top svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--d-fast) var(--e-out);
}
.to-top:hover svg { transform: translate(2px, -2px); }
