/* ==========================================================================
   Mike Foster portfolio, v2: white, gothic, loud.
   Titles: UnifrakturMaguntia. Everything else: Inter Tight.
   ========================================================================== */

@font-face {
  font-family: "Unifraktur";
  src: url("/assets/fonts/UnifrakturMaguntia-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #0b0b0a;
  --muted: #7a7a76;
  --line: rgba(11, 11, 10, 0.12);
  --lime: #00ff30;
  --red: #ff3b1f;
  --yellow: #ffe81a;

  /* Pirata One supplies only the lowercase "k" (Unifraktur's k reads as an f) */
  --goth: "Pirata One", "Unifraktur", "UnifrakturMaguntia", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(14px, 2.2vw, 32px);
  --radius: clamp(14px, 2vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }

.goth { font-family: var(--goth); font-weight: 400; letter-spacing: 0; }
.caps { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; text-transform: uppercase; }
.small { font-size: 12px; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Nav: links split left / right, logo docked in the middle
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter); pointer-events: none;
  transition: color 0.3s, background 0.3s;
}
.nav a, .nav span { pointer-events: auto; }
.nav__side { display: flex; gap: clamp(16px, 3vw, 44px); align-items: center; }
.nav__side--right { justify-content: flex-end; }
.nav__side a { position: relative; padding: 4px 0; }
.nav__side a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--lime); transition: right 0.35s var(--ease);
}
.nav__side a:hover::after, .nav__side a[aria-current="page"]::after { right: 0; }
.nav__slot { width: 92px; height: 42px; }
.nav__clock { color: var(--muted); }
body.is-scrolled .nav { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
body.on-dark .nav { color: #fff; }
body.is-scrolled.on-dark .nav { background: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,0.12); }
@media (max-width: 720px) {
  .nav__clock, .nav__hide-sm { display: none; }
  .nav__slot { width: 70px; }
}

/* The logo: a mask in the shape of the "m", filled by a sweeping layer */
.logo-dock {
  position: fixed; left: 0; top: 0; z-index: 60; width: 92px;
  transform-origin: 0 0; will-change: transform;
  pointer-events: auto;
}
.logo-fill {
  --base: var(--ink);
  position: relative; width: 100%; aspect-ratio: 141.1 / 64.54;
  background: var(--base);
  -webkit-mask: url("/assets/logo.svg") center / contain no-repeat;
          mask: url("/assets/logo.svg") center / contain no-repeat;
  transition: background 0.3s;
}
body.on-dark .logo-dock .logo-fill { --base: #fff; }
.logo-fill__layer {
  position: absolute; inset: -2%; background: var(--lime) center / cover no-repeat;
  clip-path: inset(0 100% 0 0);
  animation: logo-sweep 3.4s var(--ease) infinite;
}
@keyframes logo-sweep {
  0%   { clip-path: inset(0 100% 0 0); }
  30%  { clip-path: inset(0 0 0 0); }
  62%  { clip-path: inset(0 0 0 0); }
  92%, 100% { clip-path: inset(0 0 0 100%); }
}
.logo-dock:hover .logo-fill__layer { animation-duration: 1.4s; }

/* --------------------------------------------------------------------------
   Cursor
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.3s;
}
body.on-dark .cursor { background: var(--lime); }
.cursor__label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--lime); opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
body.on-dark .cursor__label { color: var(--ink); }
.cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-hidden { width: 0; height: 0; margin: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */
.home-hero {
  min-height: 100svh; display: grid; place-content: center; justify-items: center;
  text-align: center; padding: calc(var(--nav-h) + 4vh) var(--gutter) 6vh; gap: 2vh;
}
.home-hero__slot { width: min(44vw, 560px); aspect-ratio: 141.1 / 64.54; }
.home-hero__name { margin: 2vh 0 0; font-family: var(--goth); font-weight: 400; font-size: clamp(64px, 10.5vw, 190px); line-height: 0.9; }
.home-hero__line {
  margin: 0; font-weight: 500; text-transform: uppercase; letter-spacing: -0.035em;
  font-size: clamp(30px, 5.4vw, 98px); line-height: 0.92; max-width: 15ch;
}
/* Text that fills with colour and work, same sweep as the logo */
.fx-text { position: relative; display: inline-block; }
.fx-text__layer {
  position: absolute; inset: 0; color: transparent;
  background-color: var(--lime); background-position: center; background-size: cover; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  clip-path: inset(0 100% 0 0);
  animation: logo-sweep 3.4s var(--ease) infinite; animation-delay: 1.2s;
}
.home-hero__meta { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 2vh; color: var(--muted); }
.scroll-cue { margin-top: 3vh; display: inline-flex; gap: 10px; align-items: center; }
.scroll-cue i { width: 1px; height: 34px; background: var(--ink); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --------------------------------------------------------------------------
   Highlight strip: a coloured band with scrolling text (Saatchi-style)
   -------------------------------------------------------------------------- */
.strip {
  --hl: var(--lime);
  display: inline-block; vertical-align: middle; overflow: hidden; white-space: nowrap;
  background: var(--hl); color: var(--ink); width: min(46vw, 640px);
  font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; font-style: italic;
  font-size: clamp(22px, 3vw, 46px); line-height: 1.15; padding: 0.06em 0;
}
.strip--red { --hl: var(--red); }
.strip--yellow { --hl: var(--yellow); }
.strip__track { display: inline-flex; animation: marquee 16s linear infinite; }
.strip__track span { padding-right: 0.6em; }
.strip__track span::after { content: "\2726"; font-style: normal; margin-left: 0.6em; font-size: 0.7em; vertical-align: 0.15em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Featured project stack
   -------------------------------------------------------------------------- */
.feature { padding: clamp(80px, 12vw, 180px) var(--gutter) 0; text-align: center; }
.feature__title {
  margin: 0; font-family: var(--goth); font-weight: 400;
  font-size: clamp(58px, 10vw, 180px); line-height: 0.92;
}
.feature__client { margin-top: 10px; }
.feature__media {
  display: block; position: relative; margin-top: clamp(28px, 4vw, 56px);
  border-radius: var(--radius); overflow: hidden; background: #eee;
  aspect-ratio: 16 / 9; max-height: 88svh; width: 100%;
}
.feature__media img, .feature__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature__media:hover img { transform: scale(1.03); }
.feature__foot {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start;
  text-align: left; padding: 18px 0 0; max-width: 100%;
}
.feature__foot p { margin: 0; max-width: 62ch; font-weight: 500; text-transform: uppercase; font-size: 15px; line-height: 1.35; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 16px; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 14px; text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--lime); color: var(--ink); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
@media (max-width: 720px) {
  .feature__media { aspect-ratio: 4 / 5; }
  .feature__foot { grid-template-columns: 1fr; }
  .strip { width: 86vw; }
}

/* --------------------------------------------------------------------------
   Section heads, all-work grid, filters
   -------------------------------------------------------------------------- */
.section { padding: clamp(90px, 12vw, 180px) var(--gutter) 0; }
.section--dark { background: var(--ink); color: #fff; padding-bottom: clamp(80px, 10vw, 140px); margin-top: clamp(90px, 12vw, 180px); }
.section__head { text-align: center; margin-bottom: clamp(32px, 5vw, 64px); }
.section__title { margin: 0; font-family: var(--goth); font-weight: 400; font-size: clamp(64px, 12vw, 210px); line-height: 0.9; }
.section__sub { margin-top: 14px; }
.section__intro { max-width: 56ch; margin: 22px auto 0; color: var(--muted); }
.section--dark .section__intro { color: rgba(255,255,255,0.6); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button {
  padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink);
  font-size: 14px; transition: background 0.25s;
}
.filters button::before { content: "# "; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--lime); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 14px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; } }
@media (max-width: 460px) { .grid { grid-template-columns: 1fr; } }
.card.is-hidden { display: none; }
.card__media { position: relative; border-radius: calc(var(--radius) * 0.8); overflow: hidden; aspect-ratio: 4 / 3; background: #eee; }
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s, transform 1.2s var(--ease); }
.card__media .card__anim { opacity: 0; }
.card:hover .card__anim { opacity: 1; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.04); }
.card__client { margin-top: 10px; }
.card__title { font-family: var(--goth); font-size: clamp(26px, 2.2vw, 34px); line-height: 1; margin-top: 2px; }

/* Brands marquee */
.brands { overflow: hidden; white-space: nowrap; padding: clamp(60px, 8vw, 110px) 0 0; }
.brands__track { display: inline-flex; animation: marquee 60s linear infinite; }
.brands__track span { font-weight: 500; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(40px, 6vw, 96px); line-height: 1; padding-right: 0.35em; }
.brands__track span::after { content: "\2726"; color: var(--lime); -webkit-text-stroke: 1px var(--ink); font-size: 0.45em; vertical-align: 0.5em; margin-left: 0.35em; }

/* --------------------------------------------------------------------------
   Lens panel (the "look twice" reveal), used for the Lab teaser
   -------------------------------------------------------------------------- */
.lens-panel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 8; min-height: 420px; background: #111; cursor: none; color: #fff;
}
@media (hover: none) { .lens-panel { cursor: auto; } }
@media (max-width: 720px) { .lens-panel { aspect-ratio: 4 / 5; } }
.lens { position: absolute; inset: 0; }
.lens__pair { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.lens__pair.is-active { opacity: 1; }
.lens__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lens__process { clip-path: circle(var(--r, 0px) at var(--x, 50%) var(--y, 50%)); }
.lens__ring { position: absolute; left: 0; top: 0; pointer-events: none; border: 2px solid var(--lime); border-radius: 50%; }
.lens__ring span { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); color: var(--lime); white-space: nowrap; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.lens-panel__cap {
  position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; gap: 12px;
  pointer-events: none; text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.lens-panel__dots { display: flex; gap: 6px; pointer-events: auto; }
.lens-panel__dots button { width: 24px; height: 3px; background: rgba(255,255,255,0.35); position: relative; overflow: hidden; }
.lens-panel__dots button.is-active::after { content: ""; position: absolute; inset: 0; background: var(--lime); transform-origin: left; animation: dot-fill 7s linear forwards; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lab-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid rgba(255,255,255,0.18); }
.lab-list a { display: grid; gap: 4px; padding: 18px 16px 18px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.lab-list a:hover .goth { color: var(--lime); }
.lab-list .goth { font-size: 30px; line-height: 1; transition: color 0.25s; }
.lab-list .small { color: rgba(255,255,255,0.5); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: #fff; padding: clamp(90px, 12vw, 170px) var(--gutter) 22px; text-align: center; }
.footer__logo { width: min(36vw, 380px); margin: 0 auto 28px; color: var(--lime); }
.footer__logo svg { width: 100%; height: auto; display: block; }
.footer__title { margin: 0; font-family: var(--goth); font-weight: 400; font-size: clamp(64px, 11vw, 190px); line-height: 0.9; }
.footer__kicker { margin: 22px 0 0; color: rgba(255,255,255,0.6); }
.footer__email {
  display: inline-block; margin-top: 26px; font-weight: 500; text-transform: uppercase; letter-spacing: -0.03em;
  font-size: clamp(26px, 4.4vw, 72px); line-height: 1; border-bottom: 3px solid var(--lime); padding-bottom: 6px;
  transition: color 0.25s;
}
.footer__email:hover { color: var(--lime); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: clamp(70px, 9vw, 130px); color: rgba(255,255,255,0.55); }
.footer__bottom a:hover { color: var(--lime); }

/* --------------------------------------------------------------------------
   Case study (left-aligned, three columns)
   -------------------------------------------------------------------------- */
.case-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.7fr); gap: 32px;
  padding: calc(var(--nav-h) + clamp(60px, 12vh, 140px)) var(--gutter) clamp(40px, 6vw, 70px);
  align-items: start;
}
.case-head__title { margin: 0; font-family: var(--goth); font-weight: 400; font-size: clamp(48px, 5.6vw, 96px); line-height: 0.95; }
.case-head__client { margin-top: 14px; }
.case-head__meta { display: grid; gap: 8px; font-size: 14px; color: var(--muted); padding-top: 8px; }
.case-head__meta b { color: var(--ink); font-weight: 500; }
.case-head__desc .small { margin: 8px 0 10px; display: block; }
.case-head__desc p { margin: 0; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; }
@media (max-width: 960px) { .case-head { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

.case-hero { margin: 0 var(--gutter); border-radius: var(--radius); overflow: hidden; background: #eee; }
.case-hero img, .case-hero video { width: 100%; height: auto; max-height: 92svh; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: clamp(50px, 7vw, 90px) var(--gutter) 0; }
.stat__num { font-weight: 600; letter-spacing: -0.05em; font-size: clamp(56px, 7vw, 112px); line-height: 0.9; }
.stat__num::after { content: ""; display: block; width: 44px; height: 6px; background: var(--lime); margin-top: 14px; }
.stat__label { margin-top: 12px; max-width: 26ch; color: var(--muted); font-size: 15px; }

.story {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.7fr); gap: 32px;
  padding: clamp(60px, 8vw, 110px) var(--gutter);
}
.story__label { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 18px; }
.story__label .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; }
.story__quote { grid-column: 2; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.story__quote p {
  margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(22px, 2.1vw, 32px); line-height: 1.12;
}
.story__quote mark { background: var(--lime); color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.12em; }
.story__body { grid-column: 3; }
.story__body p { margin: 0 0 1.15em; font-size: 18px; line-height: 1.65; max-width: 68ch; }
@media (max-width: 960px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__quote, .story__body { grid-column: 1; }
  .story__label, .story__quote { position: static; }
}

.media-section { padding: 0 var(--gutter) clamp(50px, 7vw, 100px); }
.media-section__head { display: flex; justify-content: space-between; padding: 14px 0; margin-bottom: 14px; border-top: 1px solid var(--ink); }
.media-grid { display: grid; gap: 14px; grid-template-columns: repeat(12, 1fr); align-items: start; }
.media-grid > * { grid-column: span 12; }
.media-grid > .s-6 { grid-column: span 6; }
.media-grid > .s-4 { grid-column: span 4; }
.media-grid > .s-3 { grid-column: span 3; }
@media (max-width: 720px) {
  .media-grid > .s-6, .media-grid > .s-4 { grid-column: span 12; }
  .media-grid > .is-portrait, .media-grid > .s-3 { grid-column: span 6; }
}
.media-item { position: relative; border-radius: calc(var(--radius) * 0.6); overflow: hidden; background: #f0f0ee; }
.media-item img { width: 100%; height: auto; cursor: zoom-in; }
.media-item video { width: 100%; height: auto; }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: calc(var(--radius) * 0.6); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); margin: 0 var(--gutter); }
.pager a { padding: 26px 0 60px; display: grid; gap: 6px; align-content: start; }
.pager a:last-child { text-align: right; border-left: 1px solid var(--line); padding-left: 20px; }
.pager .goth { font-size: clamp(34px, 4.6vw, 76px); line-height: 0.95; }
.pager a:hover .goth { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 4px; text-underline-offset: 8px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(255,255,255,0.97); display: none; place-items: center; padding: 56px var(--gutter); }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 100%; width: auto; object-fit: contain; }
.lightbox__close { position: absolute; top: 18px; right: var(--gutter); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; padding: calc(var(--nav-h) + clamp(60px, 10vh, 120px)) var(--gutter) 0; }
.about-head h1 { margin: 0; font-family: var(--goth); font-weight: 400; font-size: clamp(64px, 10vw, 180px); line-height: 0.9; }
.about-head__bio { margin: 28px 0 0; max-width: 34ch; font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(20px, 2.2vw, 34px); line-height: 1.12; }
.about-head__bio mark { background: var(--lime); color: var(--ink); padding: 0 0.1em; }
.about-head__figure { margin: 0; }
.about-head__figure .small { margin-top: 10px; display: block; }
@media (max-width: 900px) { .about-head { grid-template-columns: minmax(0, 1fr); } }

.codefield { position: relative; overflow: hidden; background: var(--ink); border-radius: var(--radius); aspect-ratio: 4 / 5; touch-action: manipulation; }
.codefield img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s; }
.codefield canvas { position: absolute; inset: 0; }
.codefield.is-live img { opacity: 0; }
.codefield--photo { background: #eee; }
.codefield--photo.is-live img { opacity: 1; filter: grayscale(1); }

/* About portrait: a lens that reveals the animated logo behind you (same idea as the Lab lens) */
.portrait { position: relative; aspect-ratio: 512 / 683; border-radius: var(--radius); overflow: hidden; background: #f1f0ec; cursor: none; }
@media (hover: none) { .portrait { cursor: auto; } }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__reveal { position: absolute; inset: 0; background: #f1f0ec; clip-path: circle(var(--r, 0px) at var(--x, 50%) var(--y, 50%)); }
.portrait__logo { position: absolute; left: 50%; top: 38%; width: 165%; transform: translate(-50%, -50%) rotate(-10deg); }
.portrait__logo .logo-fill__layer { animation-duration: 2.4s; }

.client-list { margin: 0; font-weight: 500; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(30px, 4.4vw, 70px); line-height: 1.04; }
.client-list span { white-space: nowrap; transition: background 0.2s; }
.client-list span:hover { background: var(--lime); }
@media (max-width: 600px) { .client-list span { white-space: normal; } }
.client-list i { font-style: normal; color: var(--muted); font-size: 0.45em; vertical-align: 0.5em; padding: 0 0.25em; }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.7fr); gap: 32px; padding: 22px 0; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { grid-column: 3; font-weight: 600; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.02em; }
.faq details[open] .q { background: var(--lime); justify-self: start; }
.faq .a { padding: 0 0 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.7fr); gap: 32px; }
.faq .a p { grid-column: 3; margin: 0; max-width: 60ch; font-size: 18px; }
@media (max-width: 960px) {
  .faq summary, .faq .a { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .faq summary .q, .faq .a p { grid-column: 1; }
}
.edu { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.edu div { border-top: 1px solid var(--ink); padding-top: 14px; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
