/* ============================================================================
   ELYSIAN, stylesheet
   Sections: tokens · base · layout · header · footer · components · pages
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  --ink:        #08080A;
  --ink-2:      #0E0E12;
  --surface:    #121216;
  --surface-2:  #17171C;
  --line:       rgba(237, 231, 220, 0.11);
  --line-soft:  rgba(237, 231, 220, 0.06);
  --cream:      #EDE7DC;
  --cream-dim:  #B7B1A7;
  --muted:      #85807A;
  /* Accent. The wordmark is chrome, so the accent is a cool silver rather
     than gold. To go back to gold, set --accent to #C9A45C and --accent-soft
     to rgba(201,164,92,0.14). Nothing else needs to change. */
  --accent:      #BFC8D2;
  --accent-soft: rgba(191, 200, 210, 0.13);
  --accent-dim:  #8E99A6;

  /* every rule still refers to --gold, so this alias is the single switch */
  --gold:       var(--accent);
  --gold-soft:  var(--accent-soft);

  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1320px;
  --section-y: clamp(5rem, 11vw, 10rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 350;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

/* film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--gold); color: var(--ink); padding: 0.75rem 1.25rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section + .section { border-top: 1px solid var(--line-soft); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ typography */
.display {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 8.4vw, 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 300;
}
.h2 { font-size: clamp(2rem, 4.6vw, 3.9rem); }
.h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.italic {
  font-style: italic;
  /* brushed chrome, the same material as the wordmark */
  background: linear-gradient(168deg, #FFFFFF 4%, #C6CFD8 26%, #8993A0 48%,
                              #E8EDF2 62%, #A8B2BE 82%, #DCE3EA 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@supports not (background-clip: text) { .italic { color: var(--accent); -webkit-text-fill-color: currentColor; } }


.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--cream-dim); line-height: 1.6; max-width: 46ch; font-weight: 300; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono {
  font-family: var(--sans);
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn .arw { transition: transform 0.4s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.link-u {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding-bottom: 0.35rem;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.5s var(--ease), color 0.35s var(--ease);
}
.link-u:hover { color: var(--gold); background-size: 100% 1px; }

/* ---------------------------------------------------------------- header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.header__in {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.logo {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.14em;
  text-transform: lowercase; font-weight: 300;
}

.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav a {
  font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500;
  color: var(--cream-dim); position: relative; padding-block: 0.4rem;
  transition: color 0.35s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.burger { display: none; width: 30px; height: 20px; position: relative; z-index: 120; }
.burger span {
  position: absolute; left: 0; height: 1px; width: 100%; background: var(--cream);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.burger span:nth-child(1) { top: 3px; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 17px; }
.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0; background: var(--ink-2);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 0.5rem; padding: 0 var(--gutter);
    clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease);
  }
  .is-open .nav { clip-path: inset(0 0 0 0); }
  .nav a { font-family: var(--serif); font-size: 2.1rem; letter-spacing: 0; text-transform: none; color: var(--cream); }
}

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.2rem; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer ul a { color: var(--cream-dim); font-size: 0.92rem; transition: color 0.3s; }
.footer ul a:hover { color: var(--gold); }
.footer__bar {
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.75rem; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--muted);
}

/* ------------------------------------------------------------- reveal fx */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: 0.08s; }
.rv[data-d="2"] { transition-delay: 0.16s; }
.rv[data-d="3"] { transition-delay: 0.24s; }
.rv[data-d="4"] { transition-delay: 0.32s; }
.rv[data-d="5"] { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding-top: clamp(9rem, 18vh, 13rem); padding-bottom: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 120vmax; height: 120vmax; left: 50%; top: -70vmax; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(191,200,210,0.14) 0%, rgba(191,200,210,0.045) 32%, transparent 62%);
  pointer-events: none;
}
.hero__title span { display: block; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(3rem, 7vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--line-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* page header (interior pages) */
.phead { padding-top: clamp(8rem, 16vh, 11rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.phead::before {
  content: ""; position: absolute; z-index: -1; width: 90vmax; height: 90vmax;
  left: 10%; top: -62vmax;
  background: radial-gradient(circle, rgba(191,200,210,0.10) 0%, transparent 60%);
}

/* ----------------------------------------------------------------- stats */
.stat__v {
  font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1;
  letter-spacing: -0.03em; font-weight: 300;
}
.stat__l { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.75rem; }
.statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem clamp(2rem, 5vw, 4rem); }
.statbar > div { padding-right: 1rem; }
@media (max-width: 760px) { .statbar { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; } }

/* --------------------------------------------------------------- marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); padding-block: 1.9rem; display: flex; gap: 0; }
.marquee__track { display: flex; gap: 3.5rem; padding-right: 3.5rem; flex: none; animation: slide 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--serif); font-size: clamp(1.1rem, 1.9vw, 1.65rem); white-space: nowrap;
  color: var(--cream-dim); font-weight: 300; letter-spacing: 0.02em;
}
@keyframes slide { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* --------------------------------------------------------- service items */
.svc { border-top: 1px solid var(--line); padding-block: clamp(1.9rem, 3.4vw, 2.9rem); display: grid; grid-template-columns: 5rem 1fr 1.1fr; gap: clamp(1rem, 3vw, 3rem); align-items: start; transition: background 0.5s var(--ease); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc:hover { background: linear-gradient(90deg, rgba(191,200,210,0.06), transparent 70%); }
.svc:hover .svc__no { color: var(--gold); }
.svc__no { font-family: var(--serif); font-size: 1rem; color: var(--muted); letter-spacing: 0.05em; transition: color 0.4s; padding-top: 0.35rem; }
.svc__pts { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.svc__pts li { font-size: 0.9rem; color: var(--muted); padding-left: 1.1rem; position: relative; }
.svc__pts li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 1px; background: var(--gold); }
@media (max-width: 860px) { .svc { grid-template-columns: 3rem 1fr; } .svc__body { grid-column: 2; } }

/* the roster card styles were removed with the roster. .creator__mono stays
   because the team renderer reuses it for initials. */
.creator__mono {
  font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 3.6rem); color: rgba(237,231,220,0.16);
  letter-spacing: 0.06em;
}


/* ------------------------------------------------------------ work cards */
.work {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  border: 1px solid var(--line-soft); background: var(--surface);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
  overflow: hidden;
}
.work:hover { border-color: rgba(191,200,210,0.4); transform: translateY(-4px); }
.work--flip .work__visual { order: 2; }
.work__visual {
  min-height: 340px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #16161b, #0b0b0e);
  display: grid; place-items: center;
}
.work__visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 70% 20%, var(--accent, rgba(191,200,210,0.3)), transparent 60%);
  opacity: 0.28; transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}
.work:hover .work__visual::before { opacity: 0.45; transform: scale(1.12); }
.work__client {
  position: relative; font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 300; letter-spacing: -0.02em; text-align: center; padding: 1rem 1.5rem;
  color: rgba(237,231,220,0.92);
}
.work__body { padding: clamp(1.75rem, 3.4vw, 3rem); display: flex; flex-direction: column; }
.work__meta { display: flex; gap: 1.25rem; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.work__title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); margin-bottom: 1rem; }
.work__metrics { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); margin: auto 0 1.75rem; padding-top: 1.75rem; flex-wrap: wrap; }
.work__metrics div span { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1; color: var(--gold); }
.work__metrics div small { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 860px) { .work { grid-template-columns: 1fr; } .work--flip .work__visual { order: 0; } .work__visual { min-height: 220px; } }

/* --------------------------------------------------------------- process */
.step { border-top: 1px solid var(--line); padding-block: clamp(1.5rem, 2.6vw, 2.2rem); display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.5rem; align-items: baseline; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__no { font-family: var(--serif); color: var(--gold); font-size: 0.95rem; letter-spacing: 0.08em; }
.step p { color: var(--muted); max-width: 62ch; margin-top: 0.5rem; }

/* ----------------------------------------------------------------- quote */
.quote { text-align: center; max-width: 46rem; margin-inline: auto; }
.quote__mark { font-family: var(--serif); font-size: 5rem; line-height: 0.6; color: var(--gold); opacity: 0.5; display: block; margin-bottom: 1rem; }
.quote__t { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.35rem); line-height: 1.3; font-weight: 300; font-style: italic; letter-spacing: -0.015em; }
.quote__a { margin-top: 2rem; font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.quote__a b { color: var(--cream); font-weight: 500; }

/* ------------------------------------------------------------------ misc */
.card { border: 1px solid var(--line-soft); background: var(--surface); padding: clamp(1.5rem, 2.6vw, 2.2rem); transition: border-color 0.5s, transform 0.5s var(--ease); }
.card:hover { border-color: var(--line); transform: translateY(-3px); }

.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

.tag {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft); padding: 0.35rem 0.7rem; border: 1px solid rgba(191,200,210,0.24);
}

/* accordion */
.acc { border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acc__q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 2rem; align-items: center;
  padding: 1.5rem 0; font-family: var(--serif); font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 300;
  transition: color 0.35s;
}
.acc__q:hover { color: var(--gold); }
.acc__i { flex: none; width: 14px; height: 14px; position: relative; }
.acc__i::before, .acc__i::after { content: ""; position: absolute; background: var(--gold); transition: transform 0.45s var(--ease); }
.acc__i::before { left: 0; top: 6px; width: 14px; height: 1px; }
.acc__i::after  { top: 0; left: 6px; width: 1px; height: 14px; }
.acc.is-on .acc__i::after { transform: scaleY(0); }
.acc__a { overflow: hidden; max-height: 0; transition: max-height 0.55s var(--ease); }
.acc__a p { color: var(--muted); max-width: 66ch; padding-bottom: 1.6rem; }

/* CTA band */
.cta { text-align: center; }
.cta__title { font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.02; }

/* forms */
.field { display: grid; gap: 0.55rem; margin-bottom: 1.5rem; }
.field label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--surface); border: 1px solid var(--line); color: var(--cream);
  padding: 0.95rem 1.05rem; font: inherit; font-size: 0.95rem; border-radius: 0;
  transition: border-color 0.35s, background 0.35s;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); background: var(--surface-2); outline: none; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }
.form-ok {
  border: 1px solid rgba(191,200,210,0.38); background: var(--gold-soft);
  padding: 1rem 1.2rem; font-size: 0.9rem; margin-bottom: 1.5rem;
}

/* case study detail */
.cs-hero { padding-top: clamp(8rem, 16vh, 11rem); }
.cs-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-block: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 3rem); }
@media (max-width: 700px) { .cs-metrics { grid-template-columns: 1fr; gap: 2rem; } }
.prose { max-width: 62ch; color: var(--cream-dim); font-size: 1.02rem; }
.prose h3 { margin-bottom: 0.7rem; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.res-list li { padding-left: 2.1rem; position: relative; color: var(--cream-dim); }
.res-list li::before {
  content: "→"; position: absolute; left: 0; top: 0; color: var(--gold);
}
.cs-nav { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------- evidence: charts */
.chart { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.chart__title {
  font-family: var(--serif); font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 300; color: var(--cream); margin-bottom: 0.4rem;
}
.chart__key { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.chart__key span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.chart__key .k { width: 10px; height: 10px; flex: none; }
.chart__key .k--before { border: 1px solid var(--line); background: rgba(237,231,220,0.06); }
.chart__key .k--after  { background: var(--accent, var(--gold)); }

.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__base { stroke: var(--line); stroke-width: 1; }
.chart__bar {
  transform-box: fill-box; transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.rv.in .chart__bar, .chart.in .chart__bar { transform: scaleY(1); }
.chart__bar--before { fill: rgba(237,231,220,0.07); stroke: var(--line); stroke-width: 1; }
.chart__bar--after  { fill: var(--accent, var(--gold)); }
.chart__val {
  fill: var(--cream); font-family: var(--serif); font-size: 19px; text-anchor: middle;
  opacity: 0; transition: opacity 0.6s var(--ease) 0.5s;
}
.rv.in .chart__val, .chart.in .chart__val { opacity: 1; }
.chart__lab {
  fill: var(--muted); font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; text-anchor: middle;
}
.chart__src { font-size: 0.76rem; color: var(--muted); margin-top: 1.25rem; }
@media (prefers-reduced-motion: reduce) {
  .chart__bar { transform: scaleY(1); transition: none; }
  .chart__val { opacity: 1; transition: none; }
}

/* ----------------------------------------------------- evidence: receipts */
.shot { margin: 0; border: 1px solid var(--line); background: var(--surface); }
.shot__chrome {
  display: flex; gap: 6px; align-items: center;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.shot__chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(237,231,220,0.16); }
.shot img { width: 100%; height: auto; display: block; }
.shot__cap { padding: 1rem 1.1rem 1.15rem; display: grid; gap: 0.3rem; border-top: 1px solid var(--line-soft); }
.shot__cap b { font-weight: 500; font-size: 0.85rem; color: var(--cream); }
.shot__cap span { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.06em; }

.evidence__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.75rem; border-top: 1px solid var(--line-soft);
}

/* ---------------------------------------------------- clients (static row)
   Used instead of the marquee when there are fewer than six client names. */
.clients {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line-soft);
}
.clients__i {
  display: grid; gap: 0.6rem; align-content: center;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--line-soft);
  transition: background 0.5s var(--ease);
}
.clients__i:first-child { border-left: 0; }
a.clients__i:hover { background: linear-gradient(180deg, rgba(191,200,210,0.08), transparent); }
.clients__name {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 300; letter-spacing: -0.02em; line-height: 1;
  transition: color 0.4s var(--ease);
}
a.clients__i:hover .clients__name { color: var(--gold); }
.clients__meta { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) {
  .clients { grid-template-columns: 1fr; }
  .clients__i { border-left: 0; border-top: 1px solid var(--line-soft); padding-block: 1.75rem; }
  .clients__i:first-child { border-top: 0; }
}

/* -------------------------------------------- evidence: pending screenshot */
.shot__pending {
  display: grid; place-content: center; gap: 0.75rem; text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
  background: repeating-linear-gradient(45deg, rgba(237,231,220,0.018) 0 14px, transparent 14px 28px);
  border-bottom: 1px solid var(--line-soft);
}
.shot__pending span { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.shot__pending code { font-size: 0.78rem; color: var(--gold); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* dashboard readout, carries the evidence whether or not the image is there */
.shot__read {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 0; background: var(--line-soft); border-top: 1px solid var(--line-soft);
}
.shot__read > div { background: var(--surface); padding: 1rem 1.1rem; }
.shot__read dt { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.shot__read dd {
  margin: 0.4rem 0 0; font-family: var(--serif); font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 300; color: var(--cream); letter-spacing: -0.01em;
}
@media (max-width: 760px) { .shot__read { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------- slogan */
.footer__slogan {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 300; font-style: italic;
  color: var(--gold);
  letter-spacing: -0.01em;
  margin: 1rem 0 0;
}

/* ------------------------------------------------------ segmented control */
.segs {
  display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 2rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.seg {
  padding: 0.6rem 1.3rem; border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--muted);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.seg:hover { color: var(--cream); }
.seg.is-on { background: var(--cream); color: var(--ink); }
@media (max-width: 460px) { .segs { display: flex; } .seg { flex: 1; padding-inline: 0.75rem; } }

/* ------------------------------------------------------- category listing */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); }
.cat {
  font-family: var(--serif); font-size: clamp(1.05rem, 1.9vw, 1.5rem); font-weight: 300;
  letter-spacing: -0.01em; color: var(--cream-dim);
  padding: clamp(1rem, 1.8vw, 1.5rem) 0.5rem clamp(1rem, 1.8vw, 1.5rem) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.4s var(--ease);
}
.cat:hover { color: var(--gold); }
@media (max-width: 800px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cats { grid-template-columns: 1fr; } }

/* ========================================================================
   POLISH PASS
   ===================================================================== */

/* consistent section headers ------------------------------------------- */
.shead { margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.shead--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}

/* engagement cards ------------------------------------------------------ */
.ecard {
  position: relative; padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line); border-radius: 4px;
  background:
    radial-gradient(120% 100% at 50% 120%, rgba(191,200,210,0.11), transparent 62%),
    var(--surface);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.ecard:hover { border-color: rgba(191,200,210,0.44); transform: translateY(-4px); }
.ecard__no {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.22em;
  color: var(--gold); margin-bottom: 1.1rem;
}
.ecard__t {
  font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 300; letter-spacing: -0.015em; margin-bottom: 0.85rem;
}
.ecard__b { font-size: 0.92rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* response time block --------------------------------------------------- */
.respond { margin-top: 3rem; }
.respond__v {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 300; letter-spacing: -0.02em; color: var(--gold); margin: 0.6rem 0 0;
}

/* creator carousel ------------------------------------------------------ */
.carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 1rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel__nav { display: flex; gap: 0.5rem; }
.cbtn {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--cream-dim); font-size: 0.95rem;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), background 0.35s var(--ease);
}
.cbtn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

.post {
  flex: 0 0 clamp(240px, 26vw, 300px); scroll-snap-align: start;
  border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden;
  background: var(--surface);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.post:hover { border-color: rgba(191,200,210,0.44); transform: translateY(-4px); }
.post__media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--ink-2); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, #1b1b21, #0b0b0e);
}
.post__fallback span {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.post__play {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(237,231,220,0.55); background: rgba(8,8,10,0.42);
  backdrop-filter: blur(3px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.post__play::after {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-left: 12px solid var(--cream); border-block: 8px solid transparent;
}
.post:hover .post__play { background: rgba(191,200,210,0.9); border-color: var(--gold); }
.post:hover .post__play::after { border-left-color: var(--ink); }
.post__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.post__views { color: var(--cream); }

/* refinements ----------------------------------------------------------- */
.card { border-radius: 4px; }
.work, .shot, .creator { border-radius: 4px; }
.btn { border-radius: 999px; }
.field input, .field textarea, .field select { border-radius: 3px; }
.acc__q { padding-inline: 0.25rem; }
.acc__q:hover { padding-left: 0.6rem; transition: padding 0.4s var(--ease), color 0.35s; }


/* showcase tile refinements --------------------------------------------- */
.post__fallback { flex-direction: column; gap: 0.6rem; }
.post__initials {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.6rem);
  color: rgba(237,231,220,0.18); letter-spacing: 0.06em; transition: color 0.6s var(--ease);
}
.post:hover .post__initials { color: rgba(191,200,210,0.5); }
.post__hint { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.post__handle {
  color: var(--cream); text-transform: none; letter-spacing: 0.01em; font-size: 0.8rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


/* profile-card tile, used when we have no poster image or reel permalink --- */
.post--card { background: none; }
.post__card {
  aspect-ratio: 9 / 16; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem 1.4rem;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(191,200,210,0.14), transparent 58%),
    linear-gradient(170deg, #1a1a20 0%, #101014 55%, #0b0b0e 100%);
  transition: background 0.6s var(--ease);
}
.post--card:hover .post__card {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(191,200,210,0.26), transparent 60%),
    linear-gradient(170deg, #1f1f26 0%, #121217 55%, #0b0b0e 100%);
}
.post__badge {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.post__name {
  font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 300;
  line-height: 1.15; letter-spacing: -0.01em; color: var(--cream);
  word-break: break-word; margin-block: auto 0;
}
.post__cta {
  display: flex; align-items: center; gap: 0.45rem; margin-top: 1rem;
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.post--card:hover .post__cta { opacity: 1; transform: none; }
@media (hover: none) { .post__cta { opacity: 1; transform: none; } }

/* real Instagram embeds sit in the same track */
.post--embed { flex: 0 0 clamp(260px, 30vw, 340px); border: 0; background: none; overflow: visible; }
.post--embed:hover { transform: none; }

/* top creators on a case study ------------------------------------------ */
.tc__earned {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 300; letter-spacing: -0.02em; color: var(--gold); line-height: 1;
}
.tc__name {
  display: block; font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 300; color: var(--cream); letter-spacing: -0.01em;
}
.tc__name--link { transition: color 0.35s var(--ease); }
.tc__name--link:hover { color: var(--gold); }
.tc__plat {
  margin-top: 0.5rem; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* creator apply link in the header, deliberately distinct from the nav ---- */
.nav__apply {
  color: var(--gold) !important;
  position: relative; padding-left: 1.6rem;
}
.nav__apply::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.nav__apply::after { background: var(--gold); }
@media (max-width: 900px) {
  .nav__apply { padding-left: 0; margin-top: 1rem; font-size: 1.5rem; }
  .nav__apply::before { display: none; }
}

/* ========================================================================
   THE PROCESS, the loudest block on the page
   ===================================================================== */
.process {
  position: relative;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(85% 70% at 50% 0%, rgba(191,200,210,0.11), transparent 62%),
    linear-gradient(180deg, #0d0d11 0%, var(--ink) 70%);
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}
.process__head { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.process__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.9rem, 8vw, 6.2rem); line-height: 0.98; letter-spacing: -0.035em;
}
.process__lede { margin: 1.75rem auto 0; text-align: center; max-width: 40ch; }

/* three numbered steps with a connecting rule on desktop */
.steps3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  position: relative;
}
.steps3::before {
  /* line up with the centre of the numeral circles: card padding + half circle */
  content: ""; position: absolute; left: 8%; right: 8%; height: 1px;
  top: calc(clamp(2rem, 3.4vw, 2.75rem) + 34px);
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
@media (max-width: 860px) {
  .steps3 { grid-template-columns: 1fr; }
  .steps3::before { display: none; }
}

.process .ecard {
  text-align: center; background: var(--ink);
  padding: clamp(2rem, 3.4vw, 2.75rem) clamp(1.5rem, 2.6vw, 2.25rem);
  border-color: var(--line-soft);
}
.process .ecard__no {
  display: grid; place-items: center;
  width: 68px; height: 68px; margin: 0 auto 1.75rem;
  border: 1px solid rgba(191,200,210,0.42); border-radius: 50%;
  background: var(--ink);
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.02em;
  color: var(--gold);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.process .ecard:hover .ecard__no { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.process .ecard__t { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 1rem; }
.process .ecard__b { font-size: 0.95rem; }

.process__cta { text-align: center; margin-top: clamp(3rem, 6vw, 4.5rem); }
.btn--lg { padding: 1.15rem 2.4rem; font-size: 0.88rem; }

/* ========================================================================
   DECLUTTER PASS
   Tighter vertical rhythm, interior headings that do not compete with the
   hero, and content columns that stay centred on wide screens.
   ===================================================================== */
:root {
  --section-y: clamp(3.75rem, 7.5vw, 7rem);
}

/* interior page headings were running at hero scale */
.phead { padding-top: clamp(6.5rem, 12vh, 8.5rem); padding-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.phead .display {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.03em;
}
.phead .lede { font-size: clamp(1rem, 1.3vw, 1.15rem); }

/* a narrower measure for text-led pages, centred rather than stranded left */
.wrap--narrow { max-width: 880px; }

/* the segmented control belongs with its list, not floating above it */
.segs { margin-bottom: 1.25rem; }

/* trim the space around section headers */
.shead { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* accordion rows were tall enough to need scrolling for four questions */
.acc__q { padding-block: 1.15rem; }
.acc__a p { padding-bottom: 1.25rem; }

/* the closing CTA on every page does not need hero-scale type */
.cta__title { font-size: clamp(2rem, 4.6vw, 3.6rem); }

/* ---------------------------------------------- live embeds in the carousel
   Instagram and TikTok render their own light-themed cards, so the tile is a
   neutral frame rather than a styled surface. */
.post--embed {
  flex: 0 0 clamp(300px, 32vw, 348px);
  border: 1px solid var(--line-soft); border-radius: 4px;
  background: var(--surface); overflow: hidden;
  min-height: 520px;
  display: flex; align-items: stretch;
}
.post--embed:hover { transform: none; border-color: var(--line); }
.post--embed > * { width: 100%; }

.embed__wait {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; min-height: 520px;
  background: linear-gradient(170deg, #16161b, #0d0d11);
}
.embed__plat {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.embed__spin {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line); border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .embed__spin { animation: none; } }

.embed__yt { width: 100%; height: 520px; border: 0; display: block; background: #000; }
.post--embed .instagram-media,
.post--embed .tiktok-embed { margin: 0 !important; min-width: 100% !important; }

/* ========================================================================
   CRAFT PASS
   Three things make a page read as machine-made: every section built to the
   same eyebrow / centred heading / uniform card-grid template, soft radial
   glows behind everything, and identical rounded rectangles throughout.
   This section breaks all three.
   ===================================================================== */

/* ---- 1. asymmetry. Section labels move into the left margin, so the
   heading sits against a hanging label rather than stacked dead centre. --- */
/* Label and heading share the left edge with the content underneath, so the
   section reads down a single spine. Supporting text sits in a second column
   and is bottom aligned to the heading, which is where the asymmetry comes
   from rather than from indenting the title away from everything else. */
@media (min-width: 1000px) {
  .shead--split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 0 clamp(2rem, 5vw, 4.5rem);
    align-items: end;
  }
  .shead--split .h2 { margin: 0; }
  .shead--row { align-items: baseline; }
}
.shead__aside > div { max-width: 42ch; }

/* ---- 2. the glows go. A single low, off-centre light source instead of a
   symmetrical blob centred behind every hero. ---------------------------- */
.hero::before {
  width: 130vmax; height: 90vmax;
  left: 62%; top: -58vmax;
  background: radial-gradient(closest-side, rgba(191,200,210,0.075), transparent 72%);
  opacity: 0.9;
}
.phead::before { display: none; }
.process {
  background: linear-gradient(180deg, rgba(255,255,255,0.022) 0%, transparent 42%), var(--ink);
}
.process::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191,200,210,0.5) 22%, rgba(191,200,210,0.5) 78%, transparent);
}
.ecard {
  background: var(--surface);
  border-radius: 2px;
}
.post__card { background: linear-gradient(168deg, #17171d 0%, #0d0d11 100%); }
.post--card:hover .post__card { background: linear-gradient(168deg, #1e1e25 0%, #101015 100%); }

/* ---- 3. sharper, more editorial geometry ------------------------------- */
.card, .work, .shot, .ecard, .post, .post--embed, .field input,
.field textarea, .field select { border-radius: 2px; }

/* hairline rules between sections read as typesetting, not as card stacks */
.section + .section { border-top: 1px solid var(--line-soft); }
.process + .section, .section + .process { border-top: 0; }

/* display type: tighter, with optical sizing doing real work */
.display, .process__title, .cta__title {
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
}
.h2, .h3 { font-variation-settings: "opsz" 72, "WONK" 1; }

/* ---- 4. interaction detail --------------------------------------------- */
.btn { will-change: transform; }
.btn:active { transform: translateY(0) scale(0.985); }
.seg:active { transform: scale(0.985); }
.cbtn:active { transform: scale(0.94); }

a, button { -webkit-tap-highlight-color: rgba(191,200,210,0.2); }

/* the header gets out of the way when you are reading downward */
.header { transition: background .5s var(--ease), border-color .5s var(--ease),
                      transform .45s var(--ease); }
.header.is-tucked { transform: translateY(-100%); }

/* ---- 5. the tab control ------------------------------------------------ */
.segs { position: relative; isolation: isolate; }
.segs__pill {
  position: absolute; left: 3px; top: 3px; bottom: 3px;
  border-radius: 999px; background: var(--cream);
  transition: transform .45s var(--ease), width .45s var(--ease);
  z-index: -1;
}
.seg { position: relative; transition: color .35s var(--ease), transform .2s var(--ease); }
.seg.is-on { background: none; color: var(--ink); }

.faqpanels { position: relative; overflow: hidden; transition: height .45s var(--ease); }
.faqpanel { opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.faqpanel.is-enter { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  .faqpanels, .faqpanel, .segs__pill { transition: none; }
}

/* ---- 6. carousel affordances ------------------------------------------- */
.carousel { scroll-padding-inline: var(--gutter); cursor: grab; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel.is-dragging * { pointer-events: none; }
.carousel:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.carousel:not(.is-start)::before,
.carousel:not(.is-end)::after { content: none; }
.cbtn:disabled { opacity: 0.28; pointer-events: none; }

/* a slim custom scrollbar rather than the browser default */
.carousel { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.carousel::-webkit-scrollbar { display: block; height: 3px; }
.carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.carousel::-webkit-scrollbar-thumb:hover { background: rgba(191,200,210,0.5); }
.carousel::-webkit-scrollbar-track { background: transparent; }

/* ---- 7. anchors clear the fixed header --------------------------------- */
:target { scroll-margin-top: 96px; }

/* case study section headings, now that the small uppercase labels are gone */
.cs__h {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--cream-dim);
  margin-bottom: 1.25rem;
}

/* form error state, mirroring the success box */
.form-err {
  border: 1px solid rgba(190,90,80,0.45);
  background: rgba(190,90,80,0.10);
  padding: 1rem 1.2rem; font-size: 0.9rem; margin-bottom: 1.5rem;
  border-radius: 2px;
}
.btn[disabled] { opacity: 0.55; pointer-events: none; }


/* ---------------------------------------------- third-party embed blending
   Instagram and TikTok render inside cross-origin iframes, so their white
   card cannot be restyled from here. What can be done is take the glare off
   and give each one a deliberate frame, so the light card reads as a chosen
   material rather than as something that failed to theme. */
.post--embed {
  background: #0b0b0e;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.post--embed > iframe,
.post--embed > blockquote,
.post--embed .instagram-media,
.post--embed .tiktok-embed {
  filter: brightness(0.9) contrast(1.03) saturate(0.96);
  transition: filter 0.45s var(--ease);
}
.post--embed:hover > iframe,
.post--embed:hover > blockquote,
.post--embed:hover .instagram-media,
.post--embed:hover .tiktok-embed {
  filter: none;                       /* full fidelity when you engage with it */
}
