/* =====================================================================
   Shoguns Studio · component library
   Brand tokens, font, highlighter, cards, textures and navy panels are
   taken from the current site. Everything else is one shared system:
   one spacing scale, one type scale, one card, three buttons.
   ===================================================================== */

:root {
  /* brand (unchanged from the current site) */
  --bg: #e9f0fd;
  --surface: #ffffff;
  --card: linear-gradient(145deg, #eaf2ff 0%, #f7faff 48%, #fff6cf 100%);
  --tint: #dbe5fb;
  --ink: #0b1446;
  --text: #1a2252;
  --muted: #545e8c;
  --blue: #1f44de;
  --blue-d: #1636b8;
  --yellow: #f8ec33;
  --simba: #e2001a;
  /* magnifier game colours (from the original site) */
  --indigo: #0a1a5c;
  --indigo-2: #14308f;
  --purple: #2f6bff;
  --magenta: #6cc3ff;
  --pattern: #1d348f;
  --sky: #6cc3ff;
  --line: rgba(11, 20, 70, .12);
  --line-2: rgba(11, 20, 70, .18);
  --shadow: 0 1px 2px rgba(11, 20, 70, .06), 0 18px 40px -22px rgba(11, 20, 70, .35);
  --ring: 0 0 0 2px rgba(248, 236, 51, .9);
  --r: 26px;
  --r-sm: 16px;
  --f: Saira, "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --max: 1320px;
  --gut: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px));
  --hdr: 76px;

  /* spacing scale: every gap on the site is one of these */
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: clamp(28px, 3.2vw, 48px);    /* section header to content */
  --s-sec: clamp(64px, 7.5vw, 112px); /* between sections */

  /* type scale: six sizes */
  --t-display: clamp(46px, 7.4vw, 112px);
  --t-h1: clamp(40px, 5vw, 76px);
  --t-h2: clamp(32px, 4.2vw, 60px);
  --t-h3: clamp(21px, 1.8vw, 27px);
  --t-lead: clamp(17px, 1.3vw, 20px);
  --t-body: 16px;
  --t-small: 13px;
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg) url("/img/carbon-light.png") 0 0 / 24px 24px; color: var(--text); font-family: var(--f); font-size: var(--t-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, h4, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ---------------------------------------------------------------- type */
.h { color: var(--ink); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
.h em { font-style: normal; background: linear-gradient(transparent 60%, var(--yellow) 60% 90%, transparent 90%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h--display { font-size: var(--t-display); letter-spacing: -.035em; line-height: .98; }
.h--1 { font-size: var(--t-h1); }
.h--2 { font-size: var(--t-h2); }
.h--3 { font-size: var(--t-h3); letter-spacing: -.012em; line-height: 1.15; }
.lead { color: var(--muted); font-size: var(--t-lead); line-height: 1.6; max-width: 58ch; }
.body { color: var(--muted); max-width: 62ch; }
.tag { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.tag--dash::before { content: ""; display: inline-block; width: 14px; height: 4px; margin-right: 8px; border-radius: 2px; background: var(--yellow); vertical-align: 3px; }
.eb { display: inline-flex; align-items: center; gap: 9px; justify-self: start; padding: 7px 14px 7px 11px; border-radius: 999px; background: var(--tint); color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.eb::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(31, 68, 222, .22); }
.on-dark .h, .on-dark.h { color: #fff; }
.on-dark .h em { background: none; color: var(--yellow); padding: 0; }
.on-dark .lead, .on-dark .body { color: #c3cdf2; }
.on-dark .eb { background: rgba(255, 255, 255, .12); color: #fff; }
.on-dark .eb::before { box-shadow: 0 0 0 3px rgba(248, 236, 51, .25); }
.on-dark .tag { color: #fff; }

/* ---------------------------------------------------------------- buttons: three kinds */
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.btn { background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border: 2px solid transparent; border-radius: 999px; cursor: pointer; font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: #fff36a; }
.btn--secondary { border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.on-dark .btn--secondary { border-color: rgba(255, 255, 255, .6); color: #fff; }
.on-dark .btn--secondary:hover { background: #fff; color: var(--ink); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-d); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.link { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--blue); font-size: 15px; font-weight: 700; }
.link svg { width: 12px; height: 12px; box-sizing: content-box; padding: 4px; border-radius: 50%; background: var(--yellow); color: var(--ink); transition: transform .2s ease; }
.link:hover svg { transform: translateX(4px); }
.on-dark .link { color: #fff; }

/* ---------------------------------------------------------------- header + navigation */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(233, 240, 253, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .3s ease; }
.hdr.is-solid { box-shadow: 0 1px 0 var(--line), inset 0 -2px 0 rgba(248, 236, 51, .6); }
.hdr__in { display: flex; align-items: center; gap: 18px; height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); }
.brand img { height: 46px; width: auto; }
.brand b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: none; margin-left: auto; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--text); font-size: 15px; font-weight: 600; transition: background .2s ease, color .2s ease; }
.nav__a:hover, .nav__item:focus-within > .nav__a, .nav__item:hover > .nav__a { background: var(--tint); }
.nav__a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav__a svg { width: 10px; height: 10px; transition: transform .2s ease; }
.nav__item:hover > .nav__a svg, .nav__item:focus-within > .nav__a svg { transform: rotate(180deg); }
.nav__menu { position: absolute; left: 50%; top: 100%; z-index: 5; display: grid; gap: 2px; min-width: 260px; margin-top: 8px; padding: 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item:hover > .nav__menu, .nav__item:focus-within > .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 700; }
.nav__menu a:hover { background: var(--tint); }
.nav__menu a span { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--yellow); font-size: 11px; font-weight: 800; }
.nav__menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.hdr__cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; font-size: 15px; font-weight: 700; }
.menu-btn svg { width: 18px; height: 18px; }
.mnav { border-top: 1px solid var(--line); max-height: calc(100svh - var(--hdr)); overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav__grid { display: grid; gap: 22px; padding: 22px 0 30px; }
.mnav__h { display: block; color: var(--ink); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.mnav__sub { display: grid; gap: 2px; margin-top: 8px; }
.mnav__sub a { padding: 6px 0; color: var(--muted); font-size: 16px; font-weight: 600; }
.mnav .btn { justify-self: start; }
@media (min-width: 1100px) {
  .nav, .hdr__cta { display: flex; }
  .hdr__cta { display: inline-flex; margin-left: 10px; }
  .menu-btn, .mnav { display: none !important; }
}

/* ---------------------------------------------------------------- sections */
.sec { padding-block: var(--s-sec); }
.sec--tint { background: linear-gradient(160deg, rgba(196, 214, 252, .78) 0%, rgba(226, 236, 255, .55) 50%, rgba(255, 238, 160, .5) 100%); }
.sec--ink { background: var(--ink) url("/img/carbon.png") 0 0 / 24px; }
.sec--flush-top { padding-top: 0; }
.sec:not(.sec--tint):not(.sec--ink):not(.sec--blue) + .sec:not(.sec--tint):not(.sec--ink):not(.sec--blue) { padding-top: 0; }

/* section header: label, heading, one line, optional action */
.shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 48px; margin-bottom: var(--s-6); }
.shead__txt { display: grid; justify-items: start; gap: 18px; max-width: 800px; }
.shead__txt .lead { margin-top: 2px; }
.shead--center { justify-content: center; text-align: center; }
.shead--center .shead__txt { justify-items: center; }
.shead--center .lead { margin-inline: auto; }

/* ---------------------------------------------------------------- card: one surface used everywhere */
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
a.card:hover, a.card:focus-visible, button.card:hover { transform: translateY(-6px); box-shadow: var(--shadow), var(--ring); }
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 999px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- home hero (video) */
.hero { padding: 0 max(12px, env(safe-area-inset-left, 0px)); }
.hero__card { position: relative; display: grid; align-items: end; min-height: calc(100svh - var(--hdr) - 12px); border-radius: 32px; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg video, .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(10deg, rgba(8, 15, 55, .92) 0%, rgba(8, 15, 55, .55) 42%, rgba(8, 15, 55, .08) 75%); }
.hero__in { display: grid; gap: 22px; justify-items: start; padding: 80px clamp(22px, 4vw, 64px) clamp(28px, 4vw, 56px); }
.hero__in .h { max-width: 12ch; }
.hero__sub { color: rgba(255, 255, 255, .88); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: 50ch; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; width: 100%; margin-top: 6px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hero__tags li { color: rgba(255, 255, 255, .82); font-size: 15px; font-weight: 600; white-space: nowrap; }
.hero__tags li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--yellow); vertical-align: 2px; }
.hero__pause { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero__pause svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- page header (listing pages) */
.phead { padding-block: clamp(48px, 6vw, 96px) var(--s-6); }
.phead__in { display: grid; justify-items: start; gap: 20px; max-width: 900px; }

/* ---------------------------------------------------------------- project hero (traditional) */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: rgba(255, 255, 255, .75); font-size: 14px; font-weight: 700; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--yellow); }
.crumbs--light { color: var(--muted); }
.crumbs--light a { color: var(--blue); }
.phero { padding: 0 max(12px, env(safe-area-inset-left, 0px)); }
.phero__card { position: relative; display: grid; align-items: end; min-height: clamp(520px, 78svh, 820px); border-radius: 32px; overflow: hidden; background: var(--ink); isolation: isolate; }
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img, .phero__bg video { width: 100%; height: 100%; object-fit: cover; }
.phero__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(8deg, rgba(8, 15, 55, .94) 0%, rgba(8, 15, 55, .66) 38%, rgba(8, 15, 55, .1) 72%); }
.phero__top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(18px, 2.4vw, 30px) clamp(22px, 4vw, 64px); }
.phero__logo { display: grid; place-items: center; height: 56px; padding: 8px 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.phero__logo img { max-height: 40px; width: auto; }
.phero__in { display: grid; gap: 20px; justify-items: start; max-width: 900px; padding: 120px clamp(22px, 4vw, 64px) clamp(30px, 4vw, 60px); }
.phero__in .tag { color: #fff; }
.phero__in .h { color: #fff; max-width: 16ch; }
.phero__in .h em { background: none; color: var(--yellow); padding: 0; }
.phero__in .lead { color: rgba(255, 255, 255, .86); }
.phero__play { position: absolute; right: clamp(22px, 4vw, 64px); bottom: clamp(30px, 4vw, 60px); display: grid; place-items: center; width: clamp(72px, 7vw, 104px); height: clamp(72px, 7vw, 104px); border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); cursor: pointer; box-shadow: 0 0 0 10px rgba(248, 236, 51, .22); transition: transform .2s ease; }
.phero__play:hover { transform: scale(1.06); }
.phero__play svg { width: 30%; height: 30%; margin-left: 6%; }
.facts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding-block: clamp(26px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.facts__list { display: flex; flex-wrap: wrap; gap: 18px 0; }
.facts__list li { display: grid; gap: 4px; padding: 0 clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--line-2); color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.3; max-width: 230px; }
.facts__list li:first-child { padding-left: 0; border-left: 0; }
.facts__list b { color: var(--ink); font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }

/* ---------------------------------------------------------------- stat cards */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.stat { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.4vw, 34px); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); transition: box-shadow .25s ease; }
.stat:hover { box-shadow: var(--shadow), var(--ring); }
.stat b { justify-self: start; padding: 0 .06em 2px; color: var(--blue); font-size: clamp(38px, 4.2vw, 62px); font-weight: 800; letter-spacing: -.03em; line-height: 1; background: linear-gradient(transparent 80%, rgba(248, 236, 51, .8) 80%); }
.stat span { color: var(--muted); font-size: 15.5px; font-weight: 600; line-height: 1.35; }

/* ---------------------------------------------------------------- logo tile, marquee and columns */
.logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 10px 14px; border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.logo img { width: 100%; height: 62%; object-fit: contain; }
a.logo:hover, a.logo:focus-visible, button.logo:hover { transform: translateY(-3px); box-shadow: var(--shadow), var(--ring); }
button.logo { cursor: pointer; }
.logo--dark { background: var(--ink); }
.logo--red { background: var(--simba); }
.logos__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 18px; }
.logos__lbl { color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.logos__lbl::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(31, 68, 222, .18); vertical-align: 1px; }
.logos__hint { color: var(--muted); font-size: 13px; font-weight: 600; }
.marquee { display: grid; gap: 14px; }
.marquee__row { overflow: hidden; padding-block: 8px; -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marq-x 80s linear infinite; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 90s; }
.marquee__row:hover .marquee__track, .marquee__row:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track > li { flex: 0 0 clamp(124px, 12.5vw, 186px); height: clamp(64px, 6.4vw, 92px); }
@keyframes marq-x { to { transform: translateX(-50%); } }

.lcols { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); height: clamp(420px, 44vw, 600px); overflow: hidden; -webkit-mask: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); }
.lcols__col { overflow: hidden; }
.lcols__track { display: grid; gap: clamp(12px, 1.6vw, 22px); animation: marq-y 46s linear infinite; }
.lcols__col--down .lcols__track { animation-direction: reverse; animation-duration: 52s; }
.lcols__col:nth-child(3) .lcols__track { animation-duration: 40s; }
.lcols:hover .lcols__track, .lcols:focus-within .lcols__track { animation-play-state: paused; }
.lcols__track > li { height: clamp(112px, 11.5vw, 156px); }
.lcols .logo { border-radius: var(--r); }
.lcols .logo img { height: 50%; width: 76%; }
@keyframes marq-y { to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__row { overflow: visible; -webkit-mask: none; mask: none; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; animation: none; }
  .lcols { height: auto; -webkit-mask: none; mask: none; }
  .lcols__track { animation: none; }
  [aria-hidden="true"].dupe { display: none; }
}

/* ---------------------------------------------------------------- project card */
.pcard__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.pcard__img img, .pcard__img video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__logo { position: absolute; left: 14px; top: 14px; display: grid; place-items: center; height: 46px; padding: 6px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.pcard__logo img { max-height: 32px; max-width: 120px; width: auto; }
.pcard__body { display: grid; gap: 10px; align-content: start; flex: 1; padding: 22px 26px 26px; }
.pcard__t { color: var(--ink); font-size: clamp(22px, 1.9vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.pcard__d { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--ink); font-size: 14.5px; font-weight: 800; }
.go svg { width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--yellow); transition: transform .2s ease; }
.card:hover .go svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- service card */
.scard { padding: clamp(24px, 2.4vw, 32px); gap: 14px; }
.scard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scard__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 800; }
.scard__arrow { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease; }
.scard:hover .scard__arrow { transform: translateX(4px); background: var(--yellow); }
.scard__t { margin-top: 6px; color: var(--ink); font-size: var(--t-h3); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.scard__d { color: var(--muted); font-size: 15.5px; line-height: 1.5; }

/* ---------------------------------------------------------------- process steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); counter-reset: step; }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.step::before { counter-increment: step; content: "0" counter(step); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 800; }
.step b { color: #fff; font-size: var(--t-h3); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.step span { color: #c3cdf2; font-size: 15.5px; line-height: 1.5; }
.steps__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .14); }
.steps__foot p { color: #c3cdf2; font-size: var(--t-lead); max-width: 60ch; }
@media (max-width: 999px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- text + media row */
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.row--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row--flip .row__txt { order: 2; }
.row__txt { display: grid; gap: 18px; justify-items: start; }
.row__txt .h:not(.h--1):not(.h--2) { font-size: clamp(28px, 3vw, 44px); }
.row + .row { margin-top: var(--s-sec); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--ink); font-size: 13px; font-weight: 600; }

/* media frame: image, video or a click-to-play film */
.media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.media--sq { aspect-ratio: 1; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media__cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.3; }
.media__cap--yellow { background: var(--yellow); }
.playbtn { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.playbtn::after { content: ""; width: clamp(64px, 6vw, 88px); aspect-ratio: 1; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3v10l8-5z' fill='%230b1446'/%3E%3C/svg%3E") 54% 50% / 34% no-repeat; box-shadow: 0 0 0 10px rgba(248, 236, 51, .22); transition: transform .2s ease; }
.playbtn:hover::after { transform: scale(1.08); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 16px); }

/* ---------------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.gallery > * { grid-column: span 2; aspect-ratio: 16 / 11; }
.gallery > :nth-child(-n+2) { grid-column: span 3; }
.gallery > .gallery__wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.gallery .media { height: 100%; aspect-ratio: auto; }
.gallery button.media { padding: 0; border: 0; cursor: zoom-in; }
.gallery button.media img { transition: transform .4s ease; }
.gallery button.media:hover img { transform: scale(1.04); }

/* ---------------------------------------------------------------- before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 22px); }
.ba video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.ba .media { aspect-ratio: 16 / 9; }
.ba .media__cap { top: 12px; bottom: auto; }

/* ---------------------------------------------------------------- film card + grid */
.films { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(14px, 1.8vw, 24px); }
.film { display: grid; gap: 10px; align-content: start; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); }
.film__img { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: linear-gradient(135deg, #1636b8, #0b1446); box-shadow: var(--shadow); }
.film__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.film__alt { position: absolute; left: 14px; bottom: 12px; right: 14px; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.film__alt::before { content: ""; display: block; width: 18px; height: 3px; margin-bottom: 8px; border-radius: 2px; background: var(--yellow); }
.film__img::after { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3v10l8-5z' fill='%230b1446'/%3E%3C/svg%3E") 55% 50% / 36% no-repeat; opacity: 0; transform: scale(.8); transition: opacity .2s ease, transform .2s ease; }
.film:hover .film__img::after, .film:focus-visible .film__img::after { opacity: 1; transform: scale(1); }
.film:hover .film__img img { transform: scale(1.05); }
.film__t { font-size: 16px; font-weight: 700; line-height: 1.25; }
.film__s { color: var(--muted); font-size: 13px; font-weight: 600; }
@media (max-width: 999px) { .films { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* filter tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-5); }
.tabs button { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 700; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--yellow); }
[data-filter-item][hidden] { display: none !important; }

/* ---------------------------------------------------------------- awards */
.awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.award { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.awards--1 { grid-template-columns: minmax(0, 1fr); }
.award__yr { grid-row: span 3; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: var(--tint); color: var(--blue); font-size: 17px; font-weight: 800; }
.award__res { justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.award__res--n { background: var(--tint); }
.award__nm { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.3; }
.award__nm small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.award__ttl { color: var(--muted); font-size: 14px; font-style: italic; }
@media (max-width: 799px) { .awards { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- quotes */
.quote { display: grid; gap: 22px; align-content: start; padding: clamp(26px, 3vw, 40px); }
.quote::before { content: "\201C"; display: block; height: 40px; color: var(--yellow); font-size: 100px; font-weight: 800; line-height: .82; }
.quote blockquote p { color: var(--ink); font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; letter-spacing: -.01em; line-height: 1.45; }
.quote--lead blockquote p { font-size: clamp(21px, 2vw, 29px); line-height: 1.38; }
.quote--lead { box-shadow: var(--shadow), var(--ring); }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; color: var(--muted); font-size: 14px; line-height: 1.35; }
.quote figcaption img { height: 34px; width: auto; max-width: 160px; object-fit: contain; }
.quote figcaption b { display: block; color: var(--ink); font-size: 16.5px; font-weight: 800; }
.quote__co { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.letter { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.7; }
details.more > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; color: var(--blue); font-size: 15px; font-weight: 700; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%230b1446' stroke-width='2.4'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .2s ease; }
details.more[open] > summary::after { transform: rotate(180deg); }
details.more[open] > summary { margin-bottom: 18px; }

/* ---------------------------------------------------------------- team card */
.person { display: grid; gap: 12px; align-content: start; }
.person__img { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #d9dce6; box-shadow: var(--shadow); }
.person__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: filter .4s ease, transform .4s ease; }
.person:hover .person__img img { filter: none; transform: scale(1.04); }
.person b { color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.person span { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.4; }

/* ---------------------------------------------------------------- next project */
.next { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.next__img { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--ink); }
.next__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.next:hover .next__img img { transform: scale(1.04); }
.next__body { display: grid; gap: 12px; align-content: center; justify-items: start; padding: clamp(24px, 3vw, 44px); }
.next__body b { color: var(--ink); font-size: clamp(30px, 3.4vw, 52px); font-weight: 800; letter-spacing: -.025em; line-height: 1; }

/* ---------------------------------------------------------------- call to action band */
.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 48px; align-items: center; padding: clamp(30px, 4.5vw, 64px); border-radius: var(--r); background: var(--ink) url("/img/carbon.png") 0 0 / 24px; }
.cta .shead__txt { gap: 16px; }
.cta__act { display: grid; gap: 16px; justify-items: start; }
.cta__mail { color: #fff; font-size: clamp(18px, 1.6vw, 22px); font-weight: 800; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 6px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- footer */
.ftr { padding: 60px 0 calc(34px + env(safe-area-inset-bottom, 0px)); border-top: 3px solid rgba(248, 236, 51, .8); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 36px 60px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.ftr__tag { margin-top: 16px; color: var(--muted); max-width: 40ch; }
.ftr__tag b { color: var(--ink); }
.ftr__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr); gap: 28px 24px; }
.ftr__col { display: grid; gap: 10px; align-content: start; }
.ftr__col a, .ftr__col span { color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.35; }
.ftr__col a:hover { color: var(--blue); }
.ftr__col .ftr__h { margin-bottom: 4px; color: var(--ink); font-size: 16px; font-weight: 800; }
.ftr__col .ftr__h::after { content: ""; display: block; width: 22px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--yellow); }
.ftr__col a[href^="mailto"] { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; color: var(--muted); font-size: 14px; }
.ftr__base a { color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------- lightbox */
.lb { width: min(1200px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 24px; background: var(--ink); color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(8, 15, 55, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lb__stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; max-height: calc(100svh - 120px); background: #000; }
.lb__stage iframe, .lb__stage video, .lb__stage img { width: 100%; height: 100%; border: 0; object-fit: contain; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.lb__t { font-size: 17px; font-weight: 800; }
.lb__note { display: grid; gap: 10px; place-items: center; padding: 30px; text-align: center; color: #c3cdf2; }
html:has(.lb[open]) body, html:has(.bio[open]) body { overflow: hidden; }

/* ---------------------------------------------------------------- reveal on scroll (gentle) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- tablet and phone */
@media (max-width: 999px) {
  .row, .row--flip, .cta, .next, .ftr__top { grid-template-columns: minmax(0, 1fr); }
  .row--flip .row__txt { order: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery > *, .gallery > :nth-child(-n+2) { grid-column: span 1; }
}
@media (max-width: 699px) {
  :root { --hdr: 68px; }
  .brand img { height: 40px; }
  .brand b { font-size: 19px; }
  .hero .btns { gap: 10px; }
  .hero .btns .btn { min-height: 46px; padding: 10px 18px; font-size: 15px; }
  .hero__tags { gap: 6px 16px; }
  .hero__tags li { font-size: 14px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .stat { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 18px 22px; }
  .stat b { font-size: 40px; }
  .marquee__track > li { flex-basis: 112px; height: 60px; }
  .lcols { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 520px; }
  .lcols__col:nth-child(3) { display: none; }
  .lcols__track > li { height: 104px; }
  .steps, .ba, .films { grid-template-columns: minmax(0, 1fr); }
  .films { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .film__t { font-size: 14.5px; }
  .phero__card { min-height: 560px; }
  .phero__in { padding-bottom: 110px; }
  .phero__play { left: clamp(22px, 4vw, 64px); right: auto; bottom: 28px; width: 64px; height: 64px; }
  .facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; }
  .facts__list li { padding: 0 0 0 14px; border-left: 3px solid var(--yellow); max-width: none; }
  .facts__list li:first-child { padding-left: 14px; border-left: 3px solid var(--yellow); }
  .ftr__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
  .tabs button { flex-shrink: 0; }
  .shead { margin-bottom: 28px; }
}

/* =====================================================================
   Section backgrounds: four tones, used in rhythm
   light (default) · wash (.sec--tint) · royal blue (.sec--blue) · navy (.sec--ink)
   Rules: no two neighbours share a tone; one or two blue bands per page;
   long reading stays on light.
   ===================================================================== */
.sec--blue { position: relative; isolation: isolate; background: var(--blue); overflow: hidden; }
.sec--blue::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/img/carbon.png") 0 0 / 24px; opacity: .22; mix-blend-mode: multiply; }
.sec--blue::after { content: ""; position: absolute; z-index: -1; right: -12%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(108, 195, 255, .45), transparent); pointer-events: none; }
.sec--blue, .sec--ink { color: #dfe6ff; }
.sec--blue .h, .sec--ink .h { color: #fff; }
.sec--blue .h em, .sec--ink .h em { background: none; color: var(--yellow); padding: 0; }
.sec--blue .lead, .sec--blue .body { color: #e3e9ff; }
.sec--ink .lead, .sec--ink .body { color: #c3cdf2; }
.sec--blue .eb, .sec--ink .eb { background: rgba(255, 255, 255, .14); color: #fff; }
.sec--blue .eb::before, .sec--ink .eb::before { box-shadow: 0 0 0 3px rgba(248, 236, 51, .3); }
.sec--blue .tag, .sec--ink .tag { color: var(--yellow); }
.sec--blue .link, .sec--ink .link { color: #fff; }
.sec--blue .btn--secondary, .sec--ink .btn--secondary { border-color: rgba(255, 255, 255, .7); color: #fff; }
.sec--blue .btn--secondary:hover, .sec--ink .btn--secondary:hover { background: #fff; color: var(--ink); }
.sec--blue .btn--blue { background: var(--ink); }
.sec--blue .logos__lbl, .sec--ink .logos__lbl { color: #fff; }
.sec--blue .logos__hint, .sec--ink .logos__hint { color: #c9d4ff; }
/* cards keep their light gradient on blue, so they pop like the reference site */
.sec--blue .card, .sec--ink .card { box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 24px 50px -24px rgba(0, 0, 0, .55); }
.sec--blue .card .tag { color: var(--blue); }
.sec--blue a.card:hover, .sec--ink a.card:hover { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55), 0 0 0 3px var(--yellow); }
/* films and awards on dark */
.sec--blue .film, .sec--ink .film { color: #fff; }
.sec--blue .film__s, .sec--ink .film__s { color: #c9d4ff; }
.sec--blue .film__img, .sec--ink .film__img { box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.sec--blue .award, .sec--ink .award { border-color: rgba(255, 255, 255, .2); }
.sec--blue .award__nm, .sec--ink .award__nm { color: #fff; }
.sec--blue .award__nm small, .sec--blue .award__ttl, .sec--ink .award__nm small, .sec--ink .award__ttl { color: #c9d4ff; }
.sec--blue .award__yr, .sec--ink .award__yr { background: rgba(255, 255, 255, .12); color: #fff; }
.sec--blue .media, .sec--ink .media { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }
.sec--blue .chips li, .sec--ink .chips li { background: rgba(255, 255, 255, .14); color: #fff; }
/* steps on blue use a deeper glass */
.sec--blue .step { background: rgba(11, 20, 70, .22); border-color: rgba(255, 255, 255, .18); }
/* a light section after a dark one, or vice versa, never collapses its top padding */


/* curved edge between bands (optional, adds the playful feel) */
.sec--wave { --wave: clamp(24px, 4vw, 56px); border-radius: var(--wave) var(--wave) 0 0; margin-top: calc(var(--wave) * -1); }

/* ---------------------------------------------------------------- hidden details (magnifier game) */
.hd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 4vw, 64px); align-items: center; }
.hd__txt { display: grid; gap: 18px; justify-items: start; }
.stage-frame { overflow: hidden; border-radius: 28px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); }
.stage { position: relative; aspect-ratio: 16 / 10; background: var(--indigo); touch-action: pan-y; cursor: none; }
@media (hover: none) { .stage { cursor: auto; } }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__ui { position: absolute; z-index: 2; display: flex; gap: 10px; }
.stage__ui--top { left: 16px; top: 16px; pointer-events: none; }
.stage__ui--bot { right: 16px; bottom: 16px; }
.chip { display: inline-block; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: opacity .5s ease; }
.chip[data-gone] { opacity: 0; }
@media (max-width: 899px) { .hd { grid-template-columns: minmax(0, 1fr); } .stage { aspect-ratio: 4 / 3; } }

/* home: featured section has its own lead line inside the heading block */
.shead__txt .lead b { color: inherit; }
.sec--blue .shead__txt .lead b { color: #fff; }

/* quote beside a short list */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.split__side { display: grid; gap: 14px; justify-items: start; }
.split__side .awards { width: 100%; }
.split__side .award:last-child { border-bottom: 1px solid var(--line-2); }
@media (max-width: 999px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   Round 5 refinements
   ===================================================================== */

/* hero: shorter, content sits higher, next section peeks in */
.hero__card { min-height: clamp(560px, calc(100svh - var(--hdr) - 110px), 820px); }
.hero__in { padding-bottom: clamp(36px, 4.6vw, 72px); }

/* stats: the label is as important as the number */
.stat { gap: 14px; }
.stat span { color: var(--ink); font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }

/* service cards with an image */
.scard--img { padding: 0; gap: 0; }
.scard__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #1636b8, #0b1446); }
.scard__media img, .scard__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.scard__media video { opacity: 0; }
.scard--img:hover .scard__media video.is-on { opacity: 1; }
.scard--img:hover .scard__media img { transform: scale(1.05); }
.scard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 20, 70, 0) 55%, rgba(11, 20, 70, .35)); pointer-events: none; }
.scard--img .scard__n { position: absolute; left: 16px; top: 16px; z-index: 1; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45); }
.scard__body { display: grid; gap: 8px; flex: 1; align-content: start; padding: 20px 24px 24px; }
.scard__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.scard--img .scard__t { margin-top: 0; }
.scard--img .scard__arrow { flex-shrink: 0; margin-top: 2px; }

/* steps: connected, numbered, alive on hover and as they scroll in */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; z-index: 0; left: calc(clamp(22px, 2.4vw, 30px) + 23px); right: calc(clamp(22px, 2.4vw, 30px) + 23px); top: calc(clamp(22px, 2.4vw, 30px) + 23px); height: 2px; background: repeating-linear-gradient(90deg, rgba(248, 236, 51, .55) 0 8px, transparent 8px 16px); }
.step { z-index: 1; cursor: default; background: #0f1b58; transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease; outline: none; }
.step::before { position: relative; transition: transform .3s ease, box-shadow .3s ease; }
.step::after { content: ""; position: absolute; left: clamp(22px, 2.4vw, 30px); right: clamp(22px, 2.4vw, 30px); bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.step:hover, .step:focus-visible, .step.is-active { transform: translateY(-8px); background: #16257a; border-color: rgba(248, 236, 51, .7); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }
.step:hover::before, .step:focus-visible::before, .step.is-active::before { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(248, 236, 51, .18); }
.step:hover::after, .step:focus-visible::after, .step.is-active::after { transform: scaleX(1); }
.step:hover b, .step:focus-visible b { color: var(--yellow); }
.step b { transition: color .25s ease; }
@media (prefers-reduced-motion: no-preference) {
  .js .steps .step.reveal { transition: opacity .6s ease, transform .6s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease; }
  .js .steps .step.reveal:nth-child(2) { transition-delay: .12s; }
  .js .steps .step.reveal:nth-child(3) { transition-delay: .24s; }
  .js .steps .step.reveal:nth-child(4) { transition-delay: .36s; }
  .js .steps .step.reveal.is-in:hover { transition-delay: 0s; }
}
@media (max-width: 999px) { .steps::before { display: none; } }

/* next project: headline above, card below */
.next__body .tag:first-child { display: none; }

/* sticky call-to-action tray (phones only) */
.tray { display: none; }
@media (max-width: 699px) {
  .tray { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 22px; background: rgba(11, 20, 70, .94); box-shadow: 0 18px 40px -12px rgba(11, 20, 70, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(calc(100% + 24px)); transition: transform .35s ease; }
  .tray.is-on { transform: none; }
  .tray .btn { min-height: 46px; padding: 10px 12px; font-size: 15px; }
  .tray .btn--secondary { border-color: rgba(255, 255, 255, .55); color: #fff; }
  body.has-tray .ftr { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

  /* hero on phones: tighter, nothing wasted */
  .hero { padding-inline: 10px; }
  .hero__card { min-height: 0; border-radius: 26px; }
  .hero__in { gap: 16px; padding: 210px 20px 24px; }
  .hero__in .eb { font-size: 12px; padding: 6px 12px 6px 10px; }
  .hero__in .h--display { font-size: clamp(44px, 13vw, 58px); }
  .hero__sub { font-size: 16.5px; line-height: 1.55; }
  .hero .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .hero .btns .btn { min-height: 48px; padding: 10px 12px; font-size: 15px; }
  .hero__foot { margin-top: 2px; }
  .hero__tags { gap: 8px 16px; }
  .hero__tags li { font-size: 13.5px; }
  .hero__pause { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; }
  .stat span { font-size: 17px; }
}

/* =====================================================================
   Round 6
   ===================================================================== */
/* heroes a little taller */
.hero__card { min-height: clamp(600px, calc(100svh - var(--hdr) - 56px), 880px); }
.phero__card { min-height: clamp(600px, 86svh, 900px); }
@media (max-width: 699px) {
  .hero__card { min-height: 0; }
  .phero__card { min-height: 620px; }
  .hero__in { padding-top: 240px; }
}

/* footer on phones: tidy two-column grid, nothing squeezed */
@media (max-width: 699px) {
  .ftr { padding-top: 44px; }
  .ftr__top { gap: 30px; padding-bottom: 28px; }
  .ftr__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "work studio" "svc svc" "contact contact"; gap: 30px 20px; }
  .ftr__col--work { grid-area: work; }
  .ftr__col--studio { grid-area: studio; }
  .ftr__col--svc { grid-area: svc; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .ftr__col--svc .ftr__h { grid-column: 1 / -1; }
  .ftr__col--contact { grid-area: contact; padding: 20px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
  .ftr__col--contact a[href^="mailto"] { overflow-wrap: normal; word-break: normal; font-size: 17px; }
  .ftr__col a, .ftr__col span { font-size: 15.5px; }
  .ftr__base { flex-direction: column; gap: 6px; }
  .ftr__base .ftr__dup { display: none; }
  body.has-tray .ftr { padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
}

/* =====================================================================
   Stage 3 components
   ===================================================================== */
/* hero variants */
.phero--short .phero__card { min-height: clamp(460px, 62svh, 640px); }
.phero__num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 16px; font-weight: 800; }
.phero .btns { margin-top: 6px; }
.note { color: var(--muted); font-size: 13.5px; font-style: italic; line-height: 1.5; max-width: 70ch; }
.facts__extra { display: grid; gap: 14px; width: 100%; padding-bottom: clamp(20px, 2.4vw, 32px); }
.linkrow { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* checklist */
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.4; }
.checks li::before { content: ""; flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%230b1446' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.sec--blue .checks li, .sec--ink .checks li { color: #fff; }
.panel { display: grid; gap: 18px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.panel .tag { color: var(--blue); }

/* numbered image cards (production stages) */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.stage-card { position: relative; display: grid; align-content: start; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; padding: 0; border: 0; text-align: left; cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.stage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow), var(--ring); }
.stage-card__img { position: relative; aspect-ratio: 1; background: #fff; }
.stage-card__img img { width: 100%; height: 100%; object-fit: contain; }
.stage-card__n { position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 800; }
.stage-card__body { display: grid; gap: 4px; padding: 16px 20px 20px; }
.stage-card__body b { color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1.2; }
.stage-card__body small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.flow { color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sec--blue .flow, .sec--ink .flow { color: var(--yellow); }
@media (max-width: 999px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* contained gallery images (artwork on white) */
.gallery--contain .media { background: #fff; }
.gallery--contain .media img { object-fit: contain; }
.gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery--4 > *, .gallery--4 > :nth-child(-n+2) { grid-column: span 1; aspect-ratio: 16 / 11; }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--3 > *, .gallery--3 > :nth-child(-n+2) { grid-column: span 1; aspect-ratio: 4 / 3; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--2 > *, .gallery--2 > :nth-child(-n+2) { grid-column: span 1; aspect-ratio: 16 / 10; }
@media (max-width: 999px) { .gallery--4, .gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* link card (e.g. a YouTube channel) */
.chan { display: grid; gap: 12px; align-content: center; justify-items: start; min-height: 100%; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--ink) url("/img/carbon.png") 0 0 / 24px; color: #fff; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.chan:hover { transform: translateY(-6px); box-shadow: var(--shadow), var(--ring); }
.chan .tag { color: var(--yellow); }
.chan b { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.chan span:not(.tag):not(.btn) { color: #c3cdf2; }

/* character book (Rainbocorns turnarounds) */
.book { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.book__view { position: relative; aspect-ratio: 1700 / 948; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.book__view img { width: 100%; height: 100%; object-fit: contain; }
.book__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; }
.book__name { color: var(--ink); font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; }
.book__side { display: grid; gap: 18px; }
.book__side > img { width: 180px; height: auto; }
.book__ranges { display: flex; flex-wrap: wrap; gap: 6px; }
.book__ranges button, .tabs--sm button { padding: 7px 12px; font-size: 13px; }
.book__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; }
.book__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; aspect-ratio: 720 / 402; }
.book__thumbs button[aria-current="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.book__thumbs button[hidden] { display: none; }
.book__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .book { grid-template-columns: minmax(0, 1fr); } .book__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: none; } }

/* bigger film tiles (live action modes) */
.films--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.films--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.film__n { position: absolute; left: 12px; top: 12px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; }
.film__d { color: var(--muted); font-size: 15px; line-height: 1.5; }
.sec--blue .film__d, .sec--ink .film__d { color: #dfe6ff; }
.film__logo { position: absolute; right: 12px; top: 12px; z-index: 1; display: grid; place-items: center; height: 40px; padding: 5px 10px; border-radius: 12px; background: #fff; }
.film__logo img { position: static; max-height: 28px; width: auto; }
.films .film__img img { z-index: 0; }
.showmore { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: var(--s-6); }
.showmore p { color: var(--muted); font-size: 14px; font-weight: 600; }
@media (max-width: 999px) { .films--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .films--2, .films--3 { grid-template-columns: minmax(0, 1fr); } }

/* team */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 0; border: 0; text-align: left; cursor: pointer; }
.founder__img { position: relative; min-height: 100%; aspect-ratio: 4 / 5; background: #d9dce6; overflow: hidden; }
.founder__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: filter .4s ease, transform .4s ease; }
.founder:hover .founder__img img { filter: none; transform: scale(1.04); }
.founder__body { display: grid; gap: 10px; align-content: center; padding: clamp(20px, 2.6vw, 36px); }
.founder__body b { color: var(--ink); font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.founder__tl { color: var(--ink); font-size: 17px; font-weight: 700; font-style: italic; line-height: 1.35; }
.founder__bio { color: var(--muted); font-size: 15px; line-height: 1.55; }
.group + .group { margin-top: var(--s-sec); }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.group__head h3 { color: var(--ink); font-size: var(--t-h3); font-weight: 800; letter-spacing: -.015em; }
.group__head p { color: var(--muted); }
.person { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.person__init { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink); font-size: 54px; font-weight: 800; background: linear-gradient(135deg, #e3e5ec, #c9ccd8); }
.person__more { color: var(--blue); font-size: 13px; font-weight: 700; }
.person:focus-visible .person__img { outline: 3px solid var(--blue); outline-offset: 3px; }
.person-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 28px); }
@media (max-width: 999px) { .founders { grid-template-columns: minmax(0, 1fr); } .person-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .founder { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } .founder__bio { display: none; } .person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } .person b { font-size: 17px; } }

/* bio dialog */
.bio { width: min(920px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 28px; background: var(--surface); color: var(--text); overflow: auto; }
.bio::backdrop { background: rgba(8, 15, 55, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bio__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.bio__img { position: relative; min-height: 320px; background: #d9dce6 center / cover no-repeat; }
.bio__txt { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 40px); }
.bio__txt p { color: var(--muted); }
.bio__txt .bio__tl { color: var(--ink); font-weight: 700; font-style: italic; }
.bio__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 8px; }
@media (max-width: 699px) { .bio__in { grid-template-columns: minmax(0, 1fr); } .bio__img { min-height: 260px; } }

/* say hello (scroll-driven Shogun) */
.scrub { position: relative; height: 175vh; }
.scrub__pin { position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr)); display: grid; place-items: center; padding: 10px 12px 14px; overflow: hidden; }
.scrub__stage { position: relative; width: min(100%, calc((100svh - var(--hdr) - 24px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 32px; overflow: hidden; background: #fbfbfb; box-shadow: var(--shadow), 0 0 0 2px rgba(248, 236, 51, .55); }
.scrub__stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.scrub__copy { --t: 0; position: absolute; z-index: 2; right: 3%; top: 7%; width: min(31%, 480px); display: grid; gap: 14px; justify-items: start; opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 24px)); }
.scrub__copy .h { font-size: clamp(36px, 4.4vw, 76px); }
.scrub__copy .lead { font-size: clamp(16px, 1.25vw, 20px); }
.scrub__hint { position: absolute; z-index: 2; left: 18px; bottom: 32px; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-size: 14px; font-weight: 700; transition: opacity .4s ease; }
.scrub__hint span { position: relative; width: 18px; height: 28px; border: 2px solid var(--ink); border-radius: 12px; }
.scrub__hint span::after { content: ""; position: absolute; left: 50%; top: 5px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: wheel 1.4s ease-in-out infinite; }
@keyframes wheel { 50% { transform: translateY(7px); opacity: .3; } }
.scrub__bar { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; height: 6px; border-radius: 3px; background: rgba(11, 20, 70, .1); overflow: hidden; }
.scrub__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--yellow)); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 899px) {
  .scrub { height: 165vh; }
  .scrub__stage { display: flex; flex-direction: column; aspect-ratio: auto; width: min(100%, calc((100svh - var(--hdr) - 250px) * .8)); border-radius: 26px; }
  .scrub__stage canvas { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 5; }
  .scrub__copy { position: static; width: auto; padding: 16px 18px 30px; }
  .scrub__copy .h { font-size: clamp(30px, 8.4vw, 46px); }
  .scrub__copy .lead { font-size: 15.5px; }
  .scrub__hint { top: 14px; bottom: auto; left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .scrub { height: auto; } .scrub__pin { position: static; height: auto; padding-block: 40px; } .scrub__bar, .scrub__hint { display: none; } }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact__txt { display: grid; gap: 20px; justify-items: start; }
.contact__mail { color: #fff; font-size: clamp(20px, 2vw, 28px); font-weight: 800; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 6px; overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(22px, 3vw, 40px); border-radius: var(--r); background: var(--surface); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); color: var(--ink); }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #f6f8ff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 68, 222, .2); }
.form [aria-invalid="true"] { border-color: #d0021b; }
.form__err { color: #b00016; font-weight: 700; }
.form .done { display: grid; gap: 16px; justify-items: start; }
.form .done pre { width: 100%; max-height: 220px; overflow: auto; padding: 14px; border-radius: 12px; background: #f6f8ff; font-size: 13px; white-space: pre-wrap; }
@media (max-width: 899px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* adviser panel / join band */
.adv { display: grid; gap: 12px; align-content: center; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r); background: var(--ink) url("/img/carbon.png") 0 0 / 24px; color: #c3cdf2; }
.adv .tag { color: var(--yellow); }
.adv .h { color: #fff; }
.adv a { color: #fff; font-weight: 700; }
/* breadcrumb and logo stay readable on bright pictures */
.phero__card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 140px; z-index: -1; background: linear-gradient(180deg, rgba(8, 15, 55, .55), transparent); pointer-events: none; }
.founder { width: 100%; }
.founder__img { aspect-ratio: auto; min-height: 340px; width: 100%; }
.person__grp { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.adv .row__txt p { color: #c3cdf2; }
@media (max-width: 699px) { .founder__img { min-height: 220px; } }
.person-grid > li { display: flex; }
.person { width: 100%; }
.person__img { display: block; width: 100%; }
/* gallery tiles keep one shape, whatever the picture */
.gallery > .media { height: auto; aspect-ratio: 16 / 11; }
.gallery > .media.gallery__wide { aspect-ratio: 21 / 9; }
.gallery--4 > .media, .gallery--5 > .media { aspect-ratio: 1; }
.gallery--3 > .media { aspect-ratio: 4 / 3; }
.gallery--2 > .media { aspect-ratio: 16 / 10; }
.gallery--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery--5 > *, .gallery--5 > :nth-child(-n+2) { grid-column: span 1; }
@media (max-width: 999px) { .gallery--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- mobile menu (rebuilt) */
.mnav { position: fixed; z-index: 70; left: 0; right: 0; top: var(--hdr); bottom: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; background: var(--bg) url("/img/carbon-light.png") 0 0 / 24px 24px; border-top: 1px solid var(--line); }
.mnav__grid { padding: 24px var(--gut) calc(32px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
.mnav__grid > a.mnav__h, .mnav__grp > a.mnav__h { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 28px; }
.mnav__grid > a.mnav__h::after, .mnav__grp > a.mnav__h::after { content: ""; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%230b1446' stroke-width='2.4'/%3E%3C/svg%3E") center / 13px no-repeat; flex-shrink: 0; }
.mnav__grp { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.mnav__grp > a.mnav__h { border-bottom: 0; padding-bottom: 6px; }
.mnav__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 0; }
.mnav__sub a { padding: 9px 0; color: var(--muted); font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.mnav__sub a:hover { color: var(--blue); }
.mnav .mnav__cta { display: grid; gap: 10px; margin-top: 22px; }
.mnav .mnav__cta .btn { width: 100%; }
.mnav__mail { margin-top: 18px; color: var(--ink); font-weight: 700; }
.mnav a[aria-current="page"] { color: var(--blue); }
html.menu-open body { overflow: hidden; }
html.menu-open .tray { transform: translateY(calc(100% + 24px)) !important; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.menu-btn[aria-expanded="true"] { background: var(--blue); }
html.menu-open .hdr { background: var(--bg); }
/* the header's blur would trap the fixed menu inside it, so it is switched off while the menu is open */
html.menu-open .hdr { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* phones: bigger tap targets, smaller project logos in the hero */
@media (pointer: coarse) {
  .link { min-height: 44px; }
  .crumbs a { display: inline-block; padding-block: 10px; }
  .ftr__col a { padding-block: 4px; }
}
@media (max-width: 699px) {
  .phero__top { align-items: flex-start; }
  .phero__logo { height: 44px; padding: 6px 10px; border-radius: 12px; flex-shrink: 0; }
  .phero__logo img { max-height: 28px; max-width: 110px; }
  .facts__extra .linkrow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .facts .btns .btn { flex: 1 1 auto; }
}

/* ---------------------------------------------------------------- mobile menu: full-screen list with accordions */
.mnav { display: flex; flex-direction: column; padding: 0; outline: none; }
.mnav[hidden] { display: none; }
.mlist { flex: 1 0 auto; padding: 8px 0; }
.mlist > li { border-bottom: 1px solid var(--line-2); }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 64px; padding: 12px var(--gut); border: 0; background: none; color: var(--ink); font: inherit; font-size: 22px; font-weight: 800; letter-spacing: -.01em; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mrow:active, .mrow:hover { background: rgba(31, 68, 222, .06); }
.mrow:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 0; }
.mrow__chev { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue); transition: transform .25s ease; }
.mrow--toggle[aria-expanded="true"] { color: var(--blue); }
.mrow--toggle[aria-expanded="true"] .mrow__chev { transform: rotate(180deg); }
.msub { padding: 0 0 10px; background: rgba(255, 255, 255, .55); }
.msub[hidden] { display: none; }
.mrow--sub { min-height: 52px; padding-left: calc(var(--gut) + 14px); font-size: 17px; font-weight: 600; color: var(--text); }
.mrow--sub .mrow__chev { width: 16px; height: 16px; color: var(--muted); }
.mrow[aria-current="page"] { color: var(--blue); box-shadow: inset 4px 0 0 var(--yellow); }
.mnav__foot { display: grid; gap: 10px; padding: 20px var(--gut) calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-2); background: var(--bg); position: sticky; bottom: 0; }
.mnav__foot .btn { width: 100%; min-height: 54px; font-size: 16px; }
.mnav__foot .btn--secondary { font-size: 15px; }

/* ---------------------------------------------------------------- office addresses */
.ftr__addr { color: var(--muted); font-size: 15px; font-weight: 500; font-style: normal; line-height: 1.45; }
.ftr__addr b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px 32px; width: 100%; margin-top: 8px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); }
.office { display: grid; gap: 10px; align-content: start; font-style: normal; }
.office .body { line-height: 1.55; }

/* ---------------------------------------------------------------- logo wall scroll buttons (all screens), Games card thumbnail (phones) */
.lwall { display: grid; gap: 16px; min-width: 0; }
.lcols.is-held .lcols__track { animation-play-state: paused; }
.lscroll { display: flex; align-items: center; justify-content: center; gap: 14px; -webkit-user-select: none; user-select: none; }
/* stop iPhone double-tap zoom when the arrows are tapped quickly (pinch zoom still works) */
.lcols, .lscroll, .lscroll__btn { touch-action: manipulation; }
.lscroll__btn { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s ease, background .15s ease; }
.lscroll__btn svg { width: 20px; height: 20px; }
.lscroll__btn:hover { background: var(--yellow); }
.lscroll__btn:active { transform: scale(.92); background: var(--yellow); }
.lscroll__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.lscroll__t { color: var(--muted); font-size: 14px; font-weight: 700; }
@media (max-width: 699px) {
  .lwall { gap: 10px; }
  .scard__media img[data-ytthumb-phone].is-lb { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .lscroll { display: none; } }

/* ---------------------------------------------------------------- work page: projects heading, coming-soon card, dark logo badge */
.work-intro { font-size: clamp(26px, 3vw, 44px); line-height: 1.12; max-width: 30ch; margin-bottom: clamp(22px, 2.6vw, 36px); }
.pcard__logo--dark { background: var(--ink); }
.pcard--soon { cursor: default; }
.pcard--soon .pcard__img { display: grid; place-items: center; background: linear-gradient(135deg, #fff 0%, #eef1fb 100%); }
.pcard--soon .pcard__img img { width: 64%; height: auto; object-fit: contain; }
.pcard--soon:hover .pcard__img img { transform: none; }
.pcard__soon { position: absolute; left: 14px; top: 14px; padding: 9px 15px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .05em; line-height: 1; text-transform: uppercase; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- about: Meet the Shogun copy */
.scrub__sub { color: var(--ink); font-size: clamp(20px, 1.7vw, 30px); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
@media (min-width: 900px) {
  /* desktop: the words scale with the Shogun's frame, so they keep the same clear spot on any screen size */
  .scrub__stage { container-type: inline-size; }
  .scrub__copy { top: 6%; gap: 12px; width: min(31%, 560px); }
  .scrub__copy .h { font-size: clamp(34px, 4.5cqw, 84px); }
  .scrub__sub { font-size: clamp(17px, 1.75cqw, 32px); }
  .scrub__copy .lead { font-size: clamp(14px, 1.27cqw, 22px); line-height: 1.55; }
}
.scrub__copy .lead + .lead { margin-top: -4px; }
@media (max-width: 899px) {
  /* phones and tablets: the Shogun plays full width; the words sit under him and the rest scrolls into view at the end */
  .scrub { height: 230vh; }
  .scrub__pin { height: auto; min-height: calc(100svh - var(--hdr)); align-items: start; overflow: visible; }
  .scrub__stage { width: 100%; }
  .scrub__stage canvas { aspect-ratio: 4 / 4.4; }
  .scrub__copy { width: auto; gap: 12px; padding: 16px 18px 26px; }
  .scrub__sub { font-size: 19px; }
}

/* ---------------------------------------------------------------- logo strip on phones: moved by script (see shoguns.js) */
@media (max-width: 699px) {
  .marquee__row.is-js { -webkit-mask: none; mask: none; }
  .marquee__row.is-js .marquee__track { animation: none; will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
}

/* ---------------------------------------------------------------- Miximals page */
button.media { padding: 0; border: 0; cursor: zoom-in; }
button.media img { transition: transform .4s ease; }
button.media:hover img { transform: scale(1.03); }
.row > .media { aspect-ratio: 16 / 10; }
.mix-made { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 700; }
.mix-made img { height: 46px; width: auto; }
.mix-gallery > .media { aspect-ratio: 2.6 / 1; }
.mix-sheet .media { aspect-ratio: 1915 / 796; background: #fff; }
.mix-sheet .media img { object-fit: contain; }
.ncard { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.ncard__img { display: grid; place-items: center; min-height: 220px; padding: clamp(24px, 3vw, 44px); background: #f5d84f; }
.ncard__img img { width: 100%; max-width: 380px; height: auto; transition: transform .4s ease; }
.ncard:hover .ncard__img img { transform: scale(1.04) rotate(-1deg); }
.ncard__body { display: grid; gap: 12px; align-content: center; justify-items: start; padding: clamp(24px, 3vw, 44px); }
.ncard__t { color: var(--ink); font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.ncard__d { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 60ch; }
@media (max-width: 799px) {
  .ncard { grid-template-columns: minmax(0, 1fr); }
  .ncard__img { min-height: 0; padding: 28px; }
  .mix-gallery > .media { aspect-ratio: 16 / 9; }
}

/* ---------------------------------------------------------------- work grid: coming-soon card as a full-width banner at the end */
.grid > .soon-wide { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .soon-wide .pcard--soon { flex-direction: row; align-items: stretch; }
  .soon-wide .pcard--soon .pcard__img { flex: 0 0 42%; aspect-ratio: auto; min-height: 200px; }
  .soon-wide .pcard--soon .pcard__img img { width: 58%; }
  .soon-wide .pcard--soon .pcard__body { align-content: center; padding: clamp(24px, 3vw, 44px); }
}

/* ---------------------------------------------------------------- case study page viewer (Dickie mascot) */
.deck { display: grid; gap: 16px; }
.deck__view .media { aspect-ratio: 16 / 9; background: #fff; }
.deck__view .media img { object-fit: contain; }
.deck__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.deck__n { margin-top: 4px; color: var(--ink); font-size: 17px; font-weight: 700; }
.deck__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.deck__thumbs button { flex: 0 0 clamp(110px, 12vw, 150px); aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; box-shadow: var(--shadow); }
.deck__thumbs button[aria-current="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.deck__thumbs button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.deck__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dickie-gallery > .media { aspect-ratio: 2576 / 1438; }
@media (min-width: 700px) and (max-width: 999px) { .dickie-gallery > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 699px) { .dickie-gallery { grid-template-columns: minmax(0, 1fr); } }
/* when a YouTube thumbnail can't load, the branded backup tile already carries the logo: don't show it twice */
.pcard__img img.is-fallback ~ .pcard__logo { display: none; }
.phero__bg:has(img.is-fallback) { background: radial-gradient(120% 90% at 70% 10%, #2a4fe0 0%, #1636b8 40%, #0b1446 100%); }
.phero__bg img.is-fallback { visibility: hidden; }
