:root {
  --bg: #0d0d0d;
  --bg-2: #161616;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.14);
  --card: #ffffff;
  --card-fg: #0d0d0d;
  --accent: #c6ff3d;
  --grad: conic-gradient(from 0deg, #c6ff3d, #6bffc7, #e2ecff, #8fd96f, #c6ff3d);

  --f-sans: "Clash Grotesk", "Inter Tight", system-ui, sans-serif;
  --f-body: "Inter Tight", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(16px, 4vw, 60px);
}
[data-theme="light"] {
  --bg: #f3f1ec;
  --bg-2: #e9e6df;
  --fg: #0d0d0d;
  --muted: rgba(13, 13, 13, 0.6);
  --line: rgba(13, 13, 13, 0.14);
  --card: #0d0d0d;
  --card-fg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
body.is-loading, html.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #0d0d0d; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }

/* Type */
.serif { font-family: var(--f-serif); font-weight: 400; }
.serif-i { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.h-xl {
  font-family: var(--f-sans); font-weight: 200;
  font-size: clamp(40px, 7vw, 108px); line-height: 0.98; letter-spacing: -0.035em;
  max-width: 14ch;
}
.h-lg { font-family: var(--f-sans); font-weight: 200; font-size: clamp(30px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -0.03em; max-width: 20ch; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 46ch; margin-top: 28px; }

/* split lines */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-family: var(--f-sans); font-weight: 500; font-size: 15px; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.pill::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.pill:hover::before { transform: translateY(0); }
.pill--light { background: var(--fg); color: var(--bg); }
.pill--light::before { background: var(--accent); }
.pill--light:hover { color: #0d0d0d; }
.pill--ghost { border: 1px solid var(--fg); }
.pill--ghost::before { background: var(--fg); }
.pill--ghost:hover { color: var(--bg); }
.pill--sm { height: 32px; padding: 0 14px; font-size: 13px; }
.pill--lg { height: 60px; padding: 0 34px; font-size: 18px; }

.circle-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fg); color: var(--bg); transition: transform 0.4s var(--ease), background 0.4s;
}
.circle-btn:hover { background: var(--accent); color: #0d0d0d; }
.circle-btn--line { background: transparent; color: var(--fg); border: 1px solid var(--line); width: 60px; height: 60px; font-size: 20px; }

.link-arrow { display: inline-flex; gap: 10px; margin-top: 56px; font-family: var(--f-sans); font-size: 18px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.link-arrow span { transition: transform 0.4s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: #0d0d0d; color: #fff;
  display: flex; align-items: flex-end; justify-content: space-between; padding: var(--pad);
}
.loader__logo {
  width: clamp(160px, 26vw, 340px); aspect-ratio: 1076 / 1150; background: #fff;
  -webkit-mask: url(media/logo-full.webp) center / contain no-repeat; mask: url(media/logo-full.webp) center / contain no-repeat;
  clip-path: polygon(0 100%, 0 100%, 0 100%, 0 100%);
}
.loader__count { font-family: var(--f-serif); font-size: clamp(28px, 4vw, 56px); }

/* Language switch */
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a {
  font-family: var(--f-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  padding: 7px 10px; border-radius: 999px; color: var(--muted); transition: background 0.3s, color 0.3s;
}
.lang a:hover { color: var(--fg); }
.lang a.is-active { background: var(--fg); color: var(--bg); }
@media (max-width: 560px) { .header__cta { display: none; } }

/* Liquid fluid that follows the mouse: drawn over the content like the reference, but never blocks clicks */
.flow { position: fixed; inset: 0; z-index: 2; pointer-events: none; width: 100%; height: 100%; }
main, .footer { position: relative; z-index: 1; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: transform 0.6s var(--ease), background 0.4s;
}
.header.is-hidden { transform: translateY(-110%); }
.header.is-solid { background: color-mix(in srgb, var(--bg) 94%, transparent); }
/* Logo: the brush artwork is used as a mask so it takes the theme colour */
.logo { display: inline-flex; color: var(--fg); }
.logo__mark { transition: transform 0.6s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__mark, .logo__full { display: block; background: currentColor; }
.logo__mark {
  width: 54px; aspect-ratio: 1070 / 1052;
  -webkit-mask: url(media/logo-mark.webp) center / contain no-repeat; mask: url(media/logo-mark.webp) center / contain no-repeat;
}
.logo__full {
  width: 150px; aspect-ratio: 1076 / 1150;
  -webkit-mask: url(media/logo-full.webp) center / contain no-repeat; mask: url(media/logo-full.webp) center / contain no-repeat;
}
.header__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; }
.theme-toggle .i-sun, [data-theme="light"] .theme-toggle .i-moon { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }

/* Orb + menu */
.orb {
  position: fixed; z-index: 60; left: 50%; bottom: 22px; translate: -50% 0;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: #fff;
}
.orb::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; z-index: -1;
  background: var(--grad);
  animation: spin 4s linear infinite;
}
.orb span { width: 20px; height: 1.5px; background: #0d0d0d; transition: transform 0.5s var(--ease), opacity 0.3s; }
.orb.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.orb.is-open span:nth-child(2) { opacity: 0; }
.orb.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

.menu { position: fixed; inset: 0; z-index: 55; pointer-events: none; display: flex; flex-direction: column; justify-content: center; padding: var(--pad); }
.menu.is-open { pointer-events: auto; }
.menu__bg { position: absolute; inset: 0; background: var(--fg); clip-path: circle(0% at 50% calc(100% - 49px)); transition: clip-path 0.7s var(--ease-io); }
.menu.is-open .menu__bg { clip-path: circle(150% at 50% calc(100% - 49px)); transition-duration: 1.1s; }
.menu__list { list-style: none; position: relative; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: inline-flex; align-items: flex-start; gap: 16px; color: var(--bg);
  font-family: var(--f-sans); font-weight: 200; font-size: clamp(48px, 9vh, 110px); line-height: 1; letter-spacing: -0.04em;
  transition: translate 0.6s var(--ease-io);
}
.anim .menu__list a { translate: 0 110%; }
.anim .menu.is-open .menu__list a { translate: 0 0; transition: translate 1s var(--ease-out) calc(0.45s + var(--i, 0) * 0.06s); }
.menu__list a::after { content: attr(data-i); font-size: 14px; letter-spacing: 0; font-weight: 400; margin-top: 12px; }
.menu__list a:hover { font-family: var(--f-serif); font-style: italic; }
.menu__foot { position: relative; display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 48px; color: var(--bg); opacity: 0; font-size: 14px; transition: opacity 0.3s; }
.menu.is-open .menu__foot { opacity: 1; transition: opacity 0.6s 0.8s; }

/* Talk badge */
.talk { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 96px; height: 96px; display: grid; place-items: center; }
.talk__ring { position: absolute; inset: 0; animation: spin 12s linear infinite; }
.talk__ring text { font-family: var(--f-sans); font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; fill: var(--fg); }
.talk__dot { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #0d0d0d; display: grid; place-items: center; font-size: 20px; transition: transform 0.5s var(--ease); }
.talk:hover .talk__dot { transform: rotate(45deg) scale(1.08); }
@media (max-width: 640px) { .talk { display: none; } }

/* Hero */
.hero { padding-top: 130px; }
.hero__top { display: grid; grid-template-columns: 1fr 1fr; padding: 0 var(--pad); max-width: 1360px; margin: 0 auto; }
.hero__tag { grid-column: 2; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; max-width: 22ch; }
.hero__sub { grid-column: 2; margin-top: 18px; max-width: 42ch; font-size: 17px; line-height: 1.5; color: var(--muted); }
.hero__ctas { grid-column: 2; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__media { position: relative; margin-top: 30px; }
.hero__caption {
  font-family: var(--f-body); font-weight: 300; font-size: 16px; line-height: 1.3; color: var(--muted); text-align: right;
  width: 50%; padding: 0 30px 16px var(--pad); display: block; position: relative;
}
.hero__caption i { display: inline-block; width: 26px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 8px; }
.hero__stage { --hero-ratio: 16 / 8.5; aspect-ratio: var(--hero-ratio); }
.hero__card {
  position: relative; margin: 0 auto; width: calc(100% - 2 * var(--pad)); max-width: 1360px;
  aspect-ratio: var(--hero-ratio); border-radius: 6px; overflow: hidden; background: var(--card);
  transform-origin: 50% 0;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img, .hero__slide video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform 7s linear; }
.hero__slide.is-active img, .hero__slide.is-active video { transform: scale(1); }
.hero__progress { position: absolute; left: 24px; right: 190px; bottom: 34px; height: 1px; background: rgba(255,255,255,0.25); }
.hero__progress span { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.hero__slide figcaption {
  position: absolute; left: 28px; bottom: 24px; color: #fff; font-family: var(--f-sans); font-weight: 300;
  font-size: clamp(22px, 3vw, 44px); letter-spacing: -0.02em; text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero__slide figcaption small { display: block; font-family: var(--f-body); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.hero__pause {
  position: absolute; right: 120px; bottom: 16px; z-index: 2; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(13, 13, 13, 0.35); transition: background 0.3s;
}
.hero__pause:hover { background: rgba(13, 13, 13, 0.6); }
.hero__pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero__pause svg { width: 16px; height: 16px; fill: currentColor; }
.hero__pause .i-play, .hero__pause.is-paused .i-pause { display: none; }
.hero__pause.is-paused .i-play { display: block; }
.hero__counter { position: absolute; right: 24px; bottom: 24px; color: #fff; font-family: var(--f-serif); font-size: 22px; mix-blend-mode: difference; }
@media (max-width: 800px) {
  .hero__top { grid-template-columns: 1fr; }
  .hero__tag, .hero__sub, .hero__ctas { grid-column: 1; }
  .hero__caption { width: 100%; text-align: left; padding-left: var(--pad); }
  .hero__stage { --hero-ratio: 4 / 5; }
}

/* Marquee */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; }
.marquee--big { padding: clamp(60px, 9vw, 120px) 0 0; }
.marquee--big span {
  font-family: var(--f-sans); font-weight: 200; font-size: clamp(64px, 13vw, 210px); letter-spacing: -0.05em; line-height: 1; padding-right: 0.3em;
}
.marquee--big em { font-family: var(--f-serif); font-style: italic; color: var(--accent); }
.marquee--logos { padding: 18px 0; border-top: 1px solid var(--line); }
.marquee--logos:last-child { border-bottom: 1px solid var(--line); }
.marquee--logos .logo-item {
  font-family: var(--f-sans); font-size: clamp(24px, 3vw, 40px); font-weight: 400; letter-spacing: -0.02em;
  padding: 0 clamp(28px, 4vw, 64px); color: var(--muted); transition: color 0.3s;
}
.marquee--logos .logo-item:nth-child(3n) { font-family: var(--f-serif); font-style: italic; }
.marquee--logos .logo-item:nth-child(4n) { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(18px, 2vw, 26px); }
.marquee--logos .logo-item:hover { color: var(--fg); }
.clients .container { margin-bottom: 56px; }

/* About */
.about .h-xl { max-width: 22ch; } /* this title is longer than the others */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; max-width: 980px; margin-left: auto; color: var(--muted); }
.about__h { margin-bottom: 14px; font-family: var(--f-sans); font-weight: 400; font-size: 22px; letter-spacing: -0.01em; color: var(--fg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 100px; border-top: 1px solid var(--line); }
.stat { padding: 32px 28px 0 0; border-right: 1px solid var(--line); padding-left: 28px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stat__num { font-family: var(--f-sans); font-weight: 200; font-size: clamp(56px, 7vw, 110px); letter-spacing: -0.05em; line-height: 1; margin: 18px 0; }
.stat__text { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; padding-left: 0; padding-bottom: 32px; }
}

/* Accordion */
.acc { margin-top: 72px; border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left;
  padding: 32px 0; font-family: var(--f-sans); font-weight: 300; font-size: clamp(26px, 3.6vw, 56px); letter-spacing: -0.03em; line-height: 1.05;
  transition: padding 0.5s var(--ease);
}
.acc__head .n { font-family: var(--f-body); font-size: 14px; color: var(--muted); letter-spacing: 0; margin-right: 24px; vertical-align: super; }
.acc__head:hover { padding-left: 16px; }
.acc__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background 0.4s, transform 0.5s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform 0.5s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon { background: var(--accent); color: #0d0d0d; border-color: transparent; transform: rotate(180deg); }
.acc__item.is-open .acc__icon::after { transform: rotate(0deg); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease-out); }
.acc__item.is-open > .acc__body { grid-template-rows: 1fr; transition-duration: 0.8s; }
.acc__clip { min-height: 0; overflow: hidden; }
.acc__inner { padding: 0 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.acc__inner:not(:has(.acc__media)) { grid-template-columns: 1fr; } /* a service without a picture uses the full width */
.acc__text { display: grid; gap: 28px; }
.acc__media { border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2); }
.acc__media img, .acc__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc__inner p { color: var(--muted); font-size: 18px; max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.tags span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; transition: background 0.3s, color 0.3s; }
.tags span:hover { background: var(--fg); color: var(--bg); }
.acc--faq { margin-top: 0; }
.acc--faq .acc__head { font-size: clamp(20px, 2vw, 28px); padding: 26px 0; }
.acc--faq .acc__icon { width: 40px; height: 40px; }
.acc--faq .acc__inner { grid-template-columns: 1fr; padding-bottom: 28px; }
@media (max-width: 800px) { .acc__inner { grid-template-columns: 1fr; } }

.services__cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 80px; flex-wrap: wrap; }
.services__cta p { font-size: clamp(24px, 2.6vw, 36px); max-width: 30ch; line-height: 1.15; }
.services__cta .services__cta-sub { margin-top: 14px; font-family: var(--f-body); font-weight: 300; font-size: 18px; line-height: 1.5; max-width: 46ch; color: var(--muted); }

/* Work */
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 72px; }
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px 40px; }
.work__item:nth-child(even) { margin-top: 140px; }
.work__media { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; background: var(--bg-2); }
.work__item:nth-child(3n+1) .work__media { aspect-ratio: 4 / 4.4; }
.work__media img, .work__media video { width: 100%; height: 120%; object-fit: cover; display: block; transition: scale 1.2s var(--ease); }
@media (hover: hover) {
  .work__item:hover .work__media img, .work__item:hover .work__media video { scale: 1.05; }
}
.work__tags { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 22px; }
.work__name { font-family: var(--f-sans); font-weight: 300; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.03em; margin-top: 8px; line-height: 1.1; }
.work__place { color: var(--muted); margin-top: 4px; }
@media (max-width: 800px) {
  .work__grid { grid-template-columns: 1fr; gap: 56px; }
  .work__item:nth-child(even) { margin-top: 0; }
}

/* Why */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
.why__card {
  background: var(--bg-2); border-radius: 6px; padding: 28px; min-height: 380px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.why__card::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%);
  left: var(--mx, 50%); top: var(--my, 50%); translate: -50% -50%; opacity: 0; transition: opacity 0.5s;
  pointer-events: none;
}
.why__card:hover::before { opacity: 1; }
.why__card:hover { transform: translateY(-8px); }
.why__n { font-family: var(--f-serif); font-size: 48px; font-style: italic; position: relative; }
.why__card h3 { font-family: var(--f-sans); font-weight: 400; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; position: relative; }
.why__card p { color: var(--muted); margin-top: 14px; font-size: 15px; position: relative; }
@media (max-width: 1000px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why__grid { grid-template-columns: 1fr; } .why__card { min-height: 280px; } }

/* Industries */
.ind__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ind {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 32px 48px; min-height: 240px;
  position: relative; overflow: hidden; isolation: isolate; transition: color 0.5s var(--ease);
}
.ind::before { content: ""; position: absolute; inset: 0; background: var(--fg); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.ind:hover { color: var(--bg); }
.ind:hover::before { transform: scaleY(1); }
.ind__n { font-size: 13px; opacity: 0.6; }
.ind h3 { font-family: var(--f-sans); font-weight: 300; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.02em; margin: 60px 0 10px; }
.ind p { opacity: 0.7; font-size: 15px; max-width: 34ch; }
.row-ctas { display: flex; gap: 12px; margin-top: 56px; flex-wrap: wrap; }
@media (max-width: 900px) { .ind__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ind__grid { grid-template-columns: 1fr; } }


/* Testimonials */
.testi__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.testi__nav { display: flex; gap: 10px; }
.testi__viewport { overflow: hidden; margin-top: 72px; padding-left: max(var(--pad), calc((100vw - 1360px) / 2 + var(--pad))); }
.testi__track { display: flex; gap: 20px; transition: transform 0.9s var(--ease); }
.tcard {
  flex: 0 0 min(460px, 84vw); background: var(--bg-2); border-radius: 6px; padding: 36px;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 420px;
}
.tcard__stars { color: var(--accent); letter-spacing: 3px; }
.tcard h3 { font-family: var(--f-serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 22px 0 14px; }
.tcard p { color: var(--muted); }
.tcard__who { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.tcard__av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); font-family: var(--f-sans); font-weight: 500; }
.tcard__who b { font-family: var(--f-sans); font-weight: 500; display: block; }
.tcard__who small { color: var(--muted); }

/* FAQ */
.faq__wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
@media (max-width: 900px) { .faq__wrap { grid-template-columns: 1fr; } }


/* CTA */
.cta__big { font-family: var(--f-sans); font-weight: 200; font-size: clamp(48px, 9vw, 150px); line-height: 0.95; letter-spacing: -0.045em; max-width: 12ch; }
.form { margin-top: 80px; display: grid; gap: 34px; max-width: 900px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.form label > span, .form__chips > span { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; width: 100%; }
.form input:not([type="checkbox"]), .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--fg);
  font: 300 22px var(--f-sans); padding: 10px 0; outline: none; transition: border-color 0.3s; resize: vertical;
}
.form input:focus, .form textarea:focus { border-color: var(--fg); }
.form label:has(input[required], textarea[required]) > span::after { content: " *"; } /* required fields */
.form__error { display: block; margin-top: 8px; font-size: 14px; color: #ff8a7a; }
.form__error:empty { display: none; }
.form :is(input, textarea)[aria-invalid="true"] { border-color: #ff8a7a; }
[data-theme="light"] .form__error { color: #b3261e; }
[data-theme="light"] .form :is(input, textarea)[aria-invalid="true"] { border-color: #b3261e; }
.form input:not([type="checkbox"]):focus-visible, .form textarea:focus-visible { outline: 2px solid var(--fg); outline-offset: 6px; border-radius: 2px; }
.form__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; cursor: pointer; transition: background 0.3s, color 0.3s; user-select: none; }
/* the checkbox stays in the page (hidden from view) so keyboards can reach and toggle each chip */
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 3px; }
.chip:has(input:checked) { background: var(--fg); color: var(--bg); }
/* the label text is muted by `.form label > span`; a selected chip needs it to switch with the background */
.chip:has(input:checked) > span { color: var(--bg); }
.form button { justify-self: start; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: 100px 0 120px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__grid h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 18px; }
.footer__grid a, .footer__grid span { display: block; margin-bottom: 8px; transition: opacity 0.3s; }
.footer__grid a:hover { opacity: 0.6; }
.logo--lg { margin-bottom: 8px; }
.footer__note { color: var(--muted); margin-top: 16px; }
.footer__mega { font-family: var(--f-sans); font-weight: 500; font-size: 18vw; line-height: 0.85; letter-spacing: -0.06em; text-align: center; margin-top: 80px; color: transparent; -webkit-text-stroke: 1px var(--line); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 40px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* Cookie */
.cookie {
  position: fixed; left: 16px; bottom: 22px; z-index: 45; display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; font-size: 13px;
  transform: translateY(160%); transition: transform 0.8s var(--ease);
}
.cookie.is-in { transform: none; }
@media (max-width: 1100px) { .cookie { left: 16px; right: auto; bottom: 92px; } }
@media (max-width: 760px) { .cookie { right: 16px; border-radius: 18px; flex-wrap: wrap; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* Studio: a sideways swipe by default; on desktop with scroll-driven animations it is pinned
   while the page scrolls it sideways (see "Motion" below) */
.studio { padding-bottom: 0; }
.studio__pin { display: block; }
.studio__track {
  display: flex; gap: 28px; padding: 0 var(--pad) 24px; flex-wrap: nowrap; align-items: flex-end;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
}
.studio__intro { flex: 0 0 min(520px, 86vw); padding-right: 40px; scroll-snap-align: start; }
.studio__intro .h-xl { font-size: clamp(40px, 5.6vw, 88px); }
.studio__features { list-style: none; margin: 36px 0 40px; border-top: 1px solid var(--line); }
.studio__features li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-sans); font-size: 18px; }
.studio__features li span { font-family: var(--f-body); font-size: 12px; color: var(--muted); padding-top: 5px; }
/* Reserve each card's final size before its photo or video loads. */
.studio__card { --frame-height: 62vh; --frame-ratio: 3 / 4; flex: none; margin: 0; }
.studio__card--1 { --frame-height: 52vh; --frame-ratio: 4 / 5; }
.studio__card--2 { --frame-height: 56vh; --frame-ratio: 16 / 10; }
.studio__frame {
  width: calc(var(--frame-height) * var(--frame-ratio)); height: var(--frame-height);
  overflow: hidden; border-radius: 6px; background: var(--bg-2);
}
.studio__frame img, .studio__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio__card figcaption { display: flex; gap: 12px; margin-top: 14px; font-family: var(--f-sans); font-size: 16px; }
.studio__card figcaption span { color: var(--muted); font-size: 12px; padding-top: 3px; }
@media (max-width: 899px) {
  .studio__card { --frame-height: 56vh; scroll-snap-align: center; }
}

/* ---------- Motion (no animation library) ----------
   main.js adds .anim to <html> unless reduced motion is on. Reveals switch on with .is-in when an
   element (or a group's container) comes into view. Scroll-linked effects use CSS scroll-driven
   animations, which the browser runs off the main thread; browsers without them get still versions. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.87, 0, .13, 1); }

.anim .reveal { opacity: 0; translate: var(--rx, 0) var(--ry, 50px); transition: opacity 1.2s var(--ease-out) var(--d, 0s), translate 1.2s var(--ease-out) var(--d, 0s); }
.anim .reveal.is-in, .anim .is-in > .reveal { opacity: 1; translate: 0 0; }
.anim .split .line > span { translate: 0 110%; rotate: 2deg; transition: translate 1.3s var(--ease-out) var(--d, 0s), rotate 1.3s var(--ease-out) var(--d, 0s); }
.anim .split.is-in .line > span { translate: 0 0; rotate: 0deg; }
.anim .hero__tag .line > span { rotate: 0deg; transition-duration: 1.4s; }

.anim .work-reveal .work__caption { opacity: 0; transition: opacity 0.4s var(--ease-out); }
.anim .work-reveal.is-in .work__caption { opacity: 1; }

.anim .acc__item.is-open .acc__inner { animation: acc-in 0.6s var(--ease-out) 0.1s both; }
@keyframes acc-in { from { opacity: 0; translate: 0 20px; } }

.anim .marquee__track { animation: marquee var(--marquee-dur, 40s) linear infinite paused; }
.anim .marquee.is-on .marquee__track { animation-play-state: running; }
.anim .marquee__track.reverse { animation-direction: reverse; }
@keyframes marquee { to { translate: -50% 0; } }

@supports (animation-timeline: view()) {
  .anim .hero__top { animation: hero-top-out linear both; animation-timeline: scroll(root); animation-range: 0px 40vh; }
  .anim .hero__media { view-timeline: --hero-media block; }
  .anim .hero__card { animation: hero-grow linear both; animation-timeline: --hero-media; animation-range: cover 10% cover 55%; }
  .anim .hero__stage { view-timeline: --hero-stage block; }
  .anim .hero__slides { animation: hero-drift linear both; animation-timeline: --hero-stage; animation-range: cover 50% cover 100%; }
  .anim .work__item { view-timeline: --work block; }
  .anim .work__media img, .anim .work__media video { animation: work-drift linear both; animation-timeline: --work; animation-range: cover 0% cover 100%; }
  .anim .footer { view-timeline: --footer block; }
  .anim .footer__mega { animation: footer-rise linear both; animation-timeline: --footer; animation-range: entry 0% entry 100%; }

  @media (min-width: 900px) {
    /* the gallery sticks while the page scrolls it sideways by exactly its overflow (--studio-dist) */
    .anim .studio__pin { height: calc(100vh + var(--studio-dist, 0px)); overflow: clip; view-timeline: --studio block; }
    .anim .studio__track {
      position: sticky; top: 0; height: 100vh; align-items: center; padding-bottom: 0;
      overflow: visible; scroll-snap-type: none;
      animation: studio-slide linear both; animation-timeline: --studio; animation-range: contain 0% contain 100%;
    }
  }
}
@keyframes hero-top-out { to { translate: 0 -40%; opacity: 0; } }
@keyframes hero-grow { to { scale: var(--hero-scale, 1); } }
@keyframes hero-drift { to { translate: 0 12%; } }
@keyframes work-drift { from { translate: 0 -16%; } to { translate: 0 0; } }
@keyframes footer-rise { from { translate: 0 60%; opacity: 0; } }
@keyframes studio-slide { to { translate: calc(-1 * var(--studio-dist, 0px)) 0; } }
