/* ============================================================
   STELLR MEDIA — premium agency site
   Monochrome · bold type · cinematic
   Display: Manrope (heavy)  ·  Body/UI: Inter
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg:        #0A0A0A;
  --bg-2:      #101010;
  --surface:   #161616;
  --surface-2: #1E1E1E;
  --line:      rgba(255, 255, 255, .10);
  --line-2:    rgba(255, 255, 255, .22);

  --text:   #F4F4F4;
  --text-2: #9A9A9A;
  --text-3: #5C5C5C;

  --accent:      #FFFFFF;
  --accent-soft: rgba(255, 255, 255, .07);
  --ink:         #0A0A0A;   /* text on light surfaces */

  --serif: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;  /* display */
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4.2vw, 4rem);
  --section: clamp(4rem, 7vw, 7rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, .84, .36, 1);

  --nav-h: 84px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.has-js { scroll-behavior: auto; }      /* Lenis owns scrolling */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--ink); }

/* Film-grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: .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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- FOCUS / A11Y ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--r-sm);
  transform: translateY(-150%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- TYPOGRAPHY HELPERS ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
}
.eyebrow--center { justify-content: center; text-align: center; }
.eyebrow__idx {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: .04em;
  font-size: .82rem;
  color: var(--text-3);
}

.section-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.section-title em,
.hero__title em,
.promise__head em,
.footer__line em {
  font-style: normal;
  font-weight: 300;
  color: var(--text);
}

/* ---------- BUTTONS ---------- */
.btn {
  --pad-y: 1rem;
  --pad-x: 1.9rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .4s var(--ease), background .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease),
              box-shadow .45s var(--ease);
  will-change: transform;
}
.btn > span { position: relative; z-index: 1; }

.btn--solid {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 12px 44px -18px rgba(255, 255, 255, .5);
}
.btn--solid:hover {
  background: #E6E6E6;
  box-shadow: 0 18px 56px -16px rgba(255, 255, 255, .6);
}
.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, .015);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn--block { width: 100%; }

/* ---------- CUSTOM CURSOR ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.cursor-on { cursor: none; }
  body.cursor-on a,
  body.cursor-on button,
  body.cursor-on summary,
  body.cursor-on input,
  body.cursor-on textarea { cursor: none; }
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    pointer-events: none;
  }
  .cursor__dot,
  .cursor__ring {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor__dot {
    width: 6px; height: 6px;
    background: var(--accent);
  }
  .cursor__ring {
    width: 38px; height: 38px;
    border: 1px solid var(--line-2);
    transition: width .3s var(--ease), height .3s var(--ease),
                border-color .3s var(--ease), background .3s var(--ease);
  }
  .cursor.is-hover .cursor__ring {
    width: 64px; height: 64px;
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .cursor.is-hover .cursor__dot { opacity: 0; }
}

/* ---------- SCROLL PROGRESS ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 8000;
  background: var(--line);
}
.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 7000;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease),
              border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  transition: height .4s var(--ease);
}
.nav.is-scrolled .nav__inner { height: 66px; }

.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img {
  height: 26px;
  width: auto;
  display: block;
  transition: height .4s var(--ease);
}
.nav.is-scrolled .nav__logo img { height: 22px; }

.nav__links {
  display: flex;
  gap: 2.4rem;
  margin-left: auto;
  margin-right: 2.2rem;
}
.nav__links a {
  position: relative;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  padding: .35rem 0;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav__cta { --pad-y: .7rem; --pad-x: 1.4rem; }
.nav__toggle { display: none; }

/* ---------- FULLSCREEN MENU ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 6900;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-out);
  visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0% 0); visibility: visible; }
body.menu-open { overflow: hidden; }

.menu__nav { display: flex; flex-direction: column; gap: .35rem; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 5.5rem);
  line-height: 1.12;
  letter-spacing: -.04em;
  opacity: 0;
  transform: translateY(40px);
  transition: transform .4s var(--ease);
}
body.menu-open .menu__nav a { animation: menuIn .7s var(--ease-out) forwards; }
.menu__nav a:nth-child(1) { animation-delay: .12s; }
.menu__nav a:nth-child(2) { animation-delay: .18s; }
.menu__nav a:nth-child(3) { animation-delay: .24s; }
.menu__nav a:nth-child(4) { animation-delay: .30s; }
.menu__nav a:nth-child(5) { animation-delay: .36s; }
.menu__nav a:nth-child(6) { animation-delay: .42s; }
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }
.menu__nav a:hover { transform: translateX(14px); }
.menu__idx {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text-3);
}
.menu__foot {
  margin-top: clamp(2rem, 6vw, 4rem);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-2);
  font-size: .92rem;
}
.menu__social { display: flex; gap: 1.4rem; }
.menu__social a:hover, .menu__foot a:hover { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4vh) 0 6vh;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

/* aurora background — monochrome (adapted from the CSS aurora effect) */
.aurora {
  --aurora: repeating-linear-gradient(100deg,
    #ffffff 10%, #9aa0ad 15%, #e8eaee 20%, #6f7480 25%, #cccfd6 30%);
  --stripes: repeating-linear-gradient(100deg,
    #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16%);
  position: absolute;
  inset: -10px;
  pointer-events: none;
  opacity: .45;
  will-change: transform;
  background-image: var(--stripes), var(--aurora);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(10px);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--stripes), var(--aurora);
  background-size: 200%, 100%;
  background-attachment: fixed;
  mix-blend-mode: difference;
  animation: aurora 60s linear infinite;
}
@keyframes aurora {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}

.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.15rem, 6.6vw, 6rem);
  line-height: 1;
  letter-spacing: -.045em;
  margin: 1.5rem 0 1.9rem;
}
.hero__sub {
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--text-2);
}
.hero__actions {
  display: flex;
  gap: .8rem;
  margin-top: 2.4rem;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
.marquee__track {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.marquee__track--rev { animation-direction: reverse; }
.marquee__track--slow { animation-duration: 58s; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee--head {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 1.7rem 0;
}
.marquee--head span {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  letter-spacing: -.03em;
  color: var(--text);
  padding-right: .35em;
}
.marquee--head i { color: var(--text-3); font-style: normal; padding: 0 .35em; }

.marquee--logos { padding: .35rem 0; }
.marquee--logos span {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  letter-spacing: -.02em;
  color: var(--text-2);
}
.marquee--logos i {
  color: var(--text-3);
  font-style: normal;
  font-size: .8em;
  padding: 0 1.4rem;
}

/* ============================================================
   BRAND PROMISE
   ============================================================ */
.promise {
  padding: var(--section) 0;
  text-align: center;
}
.promise .container { max-width: 1000px; }
.promise .eyebrow { justify-content: center; }
.promise__head {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1.03;
  letter-spacing: -.04em;
  margin: 1.6rem 0 2.2rem;
  text-wrap: balance;
}
.promise__body {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.5vw, 2.05rem);
  line-height: 1.5;
  letter-spacing: -.02em;
  max-width: 25ch;
  margin: 0 auto 2.6rem;
}
.promise__body .word { transition: color .4s var(--ease); }

/* ============================================================
   LOGOS
   ============================================================ */
.logos {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.logos .eyebrow { margin-bottom: .6rem; color: var(--text-3); }

/* ============================================================
   ABOUT + STATS
   ============================================================ */
.about { padding: var(--section) 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about__copy .section-title { margin: 1.4rem 0 1.8rem; }
.about__text {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-2);
  max-width: 46ch;
}
.about__aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 3vw, 3rem);
}
.about__aside-label {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 2.4rem;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 1.7rem 1.4rem;
}
.stat__num {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.6vw, 3.8rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: .55rem;
  font-size: .82rem;
  color: var(--text-2);
}

/* ============================================================
   OUR MARKETS  (interactive image accordion)
   ============================================================ */
.markets { padding: var(--section) 0; }
.markets__grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.markets__intro .section-title { margin: 1.4rem 0 1.6rem; }
.markets__text {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-2);
  max-width: 42ch;
  margin-bottom: 2rem;
}
.markets__accordion {
  display: flex;
  gap: .7rem;
  height: clamp(380px, 54vh, 500px);
}
.market {
  position: relative;
  flex: 1 1 0;
  flex-grow: 1;
  min-width: 54px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: flex-grow .7s var(--ease-out);
}
.market.is-active { flex-grow: 6.5; }
.market__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06) brightness(.9);
  transition: transform 1.1s var(--ease-out), filter .7s var(--ease);
}
/* selected panel reveals full colour */
.market.is-active .market__img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1.02) saturate(1.05) brightness(1);
}
.market__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.5), rgba(10,10,10,.84));
  transition: background .5s var(--ease);
}
.market.is-active .market__overlay {
  background: linear-gradient(180deg, rgba(10,10,10,.04), rgba(10,10,10,.6));
}
.market__label {
  position: absolute;
  left: 50%;
  bottom: 1.7rem;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.025em;
  color: #FFFFFF;
  white-space: nowrap;
  pointer-events: none;
  transition: transform .5s var(--ease), bottom .5s var(--ease);
}
.market:not(.is-active) .market__label {
  bottom: 5.5rem;
  transform: translateX(-50%) rotate(90deg);
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services { padding: var(--section) 0; }
.services__head {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.svc {
  background: var(--bg);
  padding: clamp(1.6rem, 2.4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
  transition: background .45s var(--ease);
}
.svc:hover { background: var(--surface); }
.svc__no {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-3);
  transition: color .4s var(--ease);
}
.svc:hover .svc__no { color: var(--text); }
.svc__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  margin: 1.4rem 0 1.5rem;
  transition: border-color .4s var(--ease), background .4s var(--ease),
              transform .5s var(--ease);
}
.svc__icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc:hover .svc__icon {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-3px);
}
.svc h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: .8rem;
  /* reserve two lines so one- and two-line titles align across the grid */
  min-height: 2.3em;
}
.svc p {
  font-size: .92rem;
  color: var(--text-2);
  margin-top: auto;
}
.svc--cta {
  background: var(--accent);
  color: var(--ink);
}
.svc--cta:hover { background: #E6E6E6; }
.svc--cta .svc__no { color: rgba(10,10,10,.45); }
.svc--cta h3 { color: var(--ink); }
.svc--cta p { color: rgba(10,10,10,.72); margin-top: 1rem; }
.svc__cta-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
}
.svc__cta-link svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s var(--ease);
}
.svc--cta:hover .svc__cta-link svg { transform: translateX(5px); }
.case--cta:hover .svc__cta-link svg { transform: translateX(5px); }

/* ============================================================
   CASE STUDIES (horizontal pin)
   ============================================================ */
.work { padding: var(--section) 0; overflow: hidden; }
.work.is-pinned { padding: 0; }
.work__intro {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.work__viewport { width: 100%; }
.work__track {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-inline: var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
}
/* enabled by JS on capable desktops: heading + cards fill one pinned screen */
.work.is-pinned .work__viewport {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
}
.work.is-pinned .work__intro { margin-bottom: 0; }
.work.is-pinned .work__track {
  flex: none;
  flex-direction: row;
  align-items: stretch;
  height: clamp(380px, 50vh, 480px);
  max-width: none;
  margin-inline: 0;
  gap: 1.5rem;
  padding-inline: var(--gutter);
  will-change: transform;
}
.work.is-pinned .case { flex: 0 0 min(560px, 78vw); }

.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.4rem;
  min-height: 340px;
  transition: border-color .45s var(--ease), transform .5s var(--ease);
}
.case:hover { border-color: var(--line-2); }
.case__head { display: flex; flex-direction: column; gap: 1rem; }
.case__tag {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  padding: .4rem .8rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
}
.case__head h3 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -.035em;
}
.case__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.case__num {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.case__label {
  display: block;
  margin-top: .5rem;
  font-size: .82rem;
  color: var(--text-2);
}
.case--cta {
  background: var(--bg-2);
  justify-content: center;
  gap: 1rem;
}
.case--cta .case__tag { color: var(--text-2); }
.case--cta h3 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  letter-spacing: -.035em;
}
.case--cta p { color: var(--text-2); }
.case--cta .svc__cta-link { color: var(--text); }

/* ============================================================
   TESTIMONIALS  (avatar-pill selector)
   ============================================================ */
.quotes { padding: var(--section) 0; }
.quotes__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.quotes__head .eyebrow { justify-content: center; }

.tst {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.6rem;
}
.tst__quote-wrap {
  position: relative;
  padding: 0 clamp(1rem, 4vw, 2.6rem);
  max-width: 44rem;
  min-height: clamp(170px, 24vh, 240px);
  display: flex;
  align-items: center;
}
.tst__mark {
  position: absolute;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0;
  color: rgba(255, 255, 255, .07);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.tst__mark--open  { left: -.1em; top: .42em; }
.tst__mark--close { right: -.1em; bottom: -.1em; }

.tst__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.7vw, 2.05rem);
  line-height: 1.42;
  letter-spacing: -.02em;
  text-align: center;
  color: var(--text);
  transition: opacity .4s var(--ease), filter .4s var(--ease),
              transform .4s var(--ease);
}
.tst__quote.is-swapping {
  opacity: 0;
  filter: blur(6px);
  transform: scale(.98);
}

.tst__role {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tst__role.is-swapping { opacity: 0; transform: translateY(8px); }

/* author + role byline */
.tst__byline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.tst__author {
  display: none;                 /* desktop: the active pill carries the name */
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  color: var(--text);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tst__author.is-swapping { opacity: 0; transform: translateY(8px); }

/* prev / next nav — phones only */
.tst__nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}
.tst__arrow {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: border-color .3s var(--ease), background .3s var(--ease),
              transform .25s var(--ease);
}
.tst__arrow svg {
  width: 21px; height: 21px;
  fill: none; stroke: var(--text);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tst__arrow:active { background: var(--accent-soft); transform: scale(.92); }
.tst__count {
  min-width: 4.5ch;
  text-align: center;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.tst__count b { color: var(--text); font-weight: 700; }

.tst__pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.tst__pill {
  display: flex;
  align-items: center;
  border-radius: 100px;
  padding: 4px;
  background: transparent;
  transition: background .5s cubic-bezier(.4,0,.2,1),
              padding .5s cubic-bezier(.4,0,.2,1);
}
.tst__pill:not(.is-active):hover { background: var(--surface-2); }
.tst__pill.is-active {
  background: var(--accent);
  padding: 6px 18px 6px 6px;
  box-shadow: 0 10px 30px -12px rgba(255,255,255,.4);
}
.tst__pill:not(.is-active):hover { padding: 6px 18px 6px 6px; }

.tst__avatar {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-family: var(--serif);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: -.02em;
  color: var(--text);
  transition: transform .5s cubic-bezier(.4,0,.2,1),
              box-shadow .5s cubic-bezier(.4,0,.2,1);
}
.tst__pill:not(.is-active):hover .tst__avatar { transform: scale(1.05); }
.tst__pill.is-active .tst__avatar {
  box-shadow: 0 0 0 2px rgba(10,10,10,.18);
}

.tst__name-wrap {
  display: grid;
  grid-template-columns: 0fr;
  margin-left: 0;
  opacity: 0;
  transition: grid-template-columns .5s cubic-bezier(.4,0,.2,1),
              opacity .4s var(--ease), margin-left .5s cubic-bezier(.4,0,.2,1);
}
.tst__pill.is-active .tst__name-wrap,
.tst__pill:hover .tst__name-wrap {
  grid-template-columns: 1fr;
  opacity: 1;
  margin-left: .6rem;
}
.tst__name-wrap > .tst__name { overflow: hidden; }
.tst__name {
  display: block;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  transition: color .3s var(--ease);
}
.tst__pill.is-active .tst__name { color: var(--ink); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: var(--section) 0; }
.faq__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.faq__head {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: sticky;
  top: 120px;
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.7rem 0;
  list-style: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  letter-spacing: -.025em;
  transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--text-2); }
.faq__sign {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  background: var(--accent);
  top: 50%; left: 50%;
  transition: transform .4s var(--ease);
}
.faq__sign::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__sign::after  { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
/* no-JS: native <details> drives the sign */
.faq__item[open] .faq__sign::after { transform: translate(-50%, -50%) scaleY(0); }
/* with JS: the is-open class drives it, so the close animation can finish first */
.has-js .faq__item .faq__sign::after { transform: translate(-50%, -50%) scaleY(1); }
.has-js .faq__item.is-open .faq__sign::after { transform: translate(-50%, -50%) scaleY(0); }

.faq__body { overflow: hidden; }
.has-js .faq__body { height: 0; }
.has-js .faq__item.is-open .faq__body { height: auto; }
.faq__body > p {
  padding-bottom: 1.7rem;
  color: var(--text-2);
  font-size: 1rem;
  max-width: 56ch;
}
.faq__body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: var(--section) 0; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__intro .section-title { margin: 1.4rem 0 1.6rem; }
.contact__lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-2);
  max-width: 42ch;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 2.2rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -.03em;
  color: var(--text);
  transition: opacity .3s var(--ease);
}
.contact__email svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--text);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.contact__email:hover { opacity: .65; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: .95rem 1.1rem;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-2);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #C7C7C7; }
.field__error {
  font-size: .8rem;
  color: var(--text-2);
  min-height: 1em;
}
.form__status {
  font-size: .92rem;
  color: var(--text);
  min-height: 1.2em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(3.5rem, 8vw, 7rem) 0 2.5rem;
}
.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.footer__mark {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.footer__mark svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--text);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .35s var(--ease), transform .35s var(--ease);
}
.footer__mark:hover { background: var(--accent); border-color: var(--accent); }
.footer__mark:hover svg { stroke: var(--ink); transform: translateY(-3px); }
.footer__line {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.footer__logo {
  height: 30px;
  width: auto;
  display: block;
}
.footer__brand p {
  margin-top: 1rem;
  max-width: 34ch;
  color: var(--text-2);
  font-size: .92rem;
}
.footer__nav { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .5rem;
}
.footer__nav a {
  font-size: .95rem;
  color: var(--text-2);
  width: fit-content;
  transition: color .3s var(--ease);
}
.footer__nav a:hover { color: var(--text); }
.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-3);
}
.footer__base a {
  color: inherit;
  transition: color .3s var(--ease);
}
.footer__base a:hover { color: var(--text); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.has-js [data-reveal].is-in { opacity: 1; transform: none; }

.has-js [data-line] {
  display: block;
  overflow: hidden;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.has-js [data-line] > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1.05s var(--ease-out);
}
.has-js [data-line].is-in > span { transform: translateY(0); }

/* ============================================================
   SUBPAGES — shared page header
   ============================================================ */
.page-head {
  position: relative;
  padding: calc(var(--nav-h) + clamp(4rem, 11vh, 7.5rem)) 0 clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head__glow {
  position: absolute;
  left: 72%; top: -20%;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 68%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin: 1.5rem 0 0;
}
.page-title em { font-style: normal; font-weight: 300; }
.page-lead {
  margin-top: 1.7rem;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-2);
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.svc-list { padding: clamp(1.5rem, 3vw, 3rem) 0 0; }
.svc-row {
  display: grid;
  grid-template-columns: .85fr 1.35fr;
  gap: clamp(1.8rem, 5vw, 5rem);
  padding: clamp(2.6rem, 5vw, 4.4rem) 0;
  border-bottom: 1px solid var(--line);
}
.svc-row__head { display: flex; flex-direction: column; gap: 1.3rem; }
.svc-row__no {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-3);
}
.svc-row__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
}
.svc-row__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--text);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.svc-row__head h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.svc-row__body { display: flex; flex-direction: column; gap: 1.6rem; }
.svc-row__desc {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--text-2);
  max-width: 54ch;
}
.svc-row__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem 1.6rem;
}
.svc-row__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .95rem;
  color: var(--text);
}
.svc-row__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 11px; height: 1.5px;
  background: var(--accent);
}

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog { padding: clamp(2.5rem, 5vw, 4.5rem) 0 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 300px;
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: background .4s var(--ease), border-color .4s var(--ease),
              transform .4s var(--ease);
}
.post-card:hover {
  background: var(--surface);
  border-color: var(--line-2);
  transform: translateY(-4px);
}
.post-card__tag {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  padding: .4rem .8rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
}
.post-card__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.18;
  letter-spacing: -.03em;
}
.post-card__excerpt {
  font-size: .95rem;
  color: var(--text-2);
}
.post-card__meta {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: .55rem;
  font-size: .82rem;
  color: var(--text-3);
}

/* ============================================================
   SUBPAGE CTA band
   ============================================================ */
.page-cta {
  padding: var(--section) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 6vw, 5.5rem);
}
.page-cta h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -.04em;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.page-cta p {
  max-width: 44ch;
  margin: 0 auto 2rem;
  color: var(--text-2);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

/* current-page nav link */
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

/* work / case studies page */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.case__summary {
  margin-top: 1rem;
  font-size: .95rem;
  color: var(--text-2);
}

/* stacked paragraphs on the about page */
.about__text + .about__text { margin-top: 1.15rem; }

@media (max-width: 1080px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .svc-row { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .svc-row__list { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 2.5rem;
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --nav-h: 72px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-left: auto;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .nav__toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
  }
  .nav__toggle-bars i {
    height: 1.5px;
    background: var(--text);
    transition: transform .4s var(--ease), opacity .3s var(--ease);
  }
  body.menu-open .nav__toggle-bars i:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
  body.menu-open .nav__toggle-bars i:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .contact__grid { grid-template-columns: 1fr; }

  /* markets accordion -> stacked cards on mobile */
  .markets__grid { grid-template-columns: 1fr; }
  .markets__accordion { flex-direction: column; height: auto; gap: .8rem; }
  .market, .market.is-active { flex: 1 1 auto; }
  .market { min-height: 132px; }
  .market__img { filter: grayscale(100%) contrast(1.06) brightness(.75); }
  .market__overlay,
  .market.is-active .market__overlay {
    background: linear-gradient(180deg, rgba(10,10,10,.25), rgba(10,10,10,.72));
  }
  .market__label,
  .market:not(.is-active) .market__label {
    bottom: 1.4rem;
    transform: translateX(-50%) rotate(0deg);
  }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  /* big, in-your-face hero headline on phones */
  .hero__title {
    font-size: clamp(2.9rem, 15vw, 4.6rem);
    line-height: .95;
    letter-spacing: -.05em;
    margin: 1.3rem 0 1.7rem;
  }
  .hero__sub { font-size: 1.15rem; }
  .hero .eyebrow { font-size: .78rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__base { justify-content: flex-start; }
  .case__metrics { grid-template-columns: 1fr; gap: 1.2rem; }
  /* testimonials: prev/next arrows replace the pill row on phones */
  .tst__pills { display: none; }
  .tst__nav { display: flex; }
  .tst__author { display: block; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .has-js [data-reveal],
  .has-js [data-line] > span { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
  .aurora::after { animation: none !important; }
  .cursor { display: none !important; }
  body.cursor-on { cursor: auto; }
}
