/* =========================================================================
   RVV Technologies
   1. Tokens and base   2. Shared UI      3. Header, menu, footer
   4. Home              5. Inner pages    6. Motion layer
   ========================================================================= */

/* 1. Tokens and base ---------------------------------------------------- */

/* Helvetica Neue is used where installed (Apple devices). Elsewhere the fallback in
   fonts.css stands in. To use a licensed web font, add its @font-face as "HN Web". */

:root {
  --navy: #141f2c;
  --deep: #0a121d;
  --red: #d90700;
  --paper: #fff;
  --mist: #f5f7fa;
  --slate: #3a475a;
  --soft: #c3ccd9;
  --font: "HN Web", "Helvetica Neue", "RVV Heros", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { font-family: var(--font); color: var(--slate); background: var(--deep); line-height: 1.55; overflow-x: clip; font-synthesis-weight: none; }
h1, h2, h3, h4, blockquote { font-weight: 300; line-height: 1.04; letter-spacing: -.025em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 9.6vw, 10rem); line-height: .96; }
h2 { font-size: clamp(2.4rem, 6.4vw, 6.4rem); }
h3 { font-size: clamp(1.8rem, 3.6vw, 3.4rem); }
p { max-width: 58ch; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }
section { position: relative; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* 2. Shared UI ---------------------------------------------------------- */

.dark { background: var(--deep); color: var(--soft); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.light { background: var(--paper); }
.mist { background: var(--mist); }
.wrap { padding: clamp(80px, 12vw, 180px) var(--pad); }
.lead { margin-top: 28px; font-size: clamp(1.08rem, 1.7vw, 1.45rem); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border: 1px solid currentColor; border-radius: 99px; background: transparent; color: inherit; font-weight: 500; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #fff; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover { color: var(--navy); border-color: #fff; }
.btn:hover::after { transform: none; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { color: var(--navy); border-color: #fff; }
.light .btn:not(.red):hover, .mist .btn:not(.red):hover { color: #fff; border-color: var(--navy); }
.light .btn::after, .mist .btn::after { background: var(--navy); }
.light .btn.red:hover, .mist .btn.red:hover { color: #fff; border-color: var(--navy); }
.row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tags li { padding: 7px 15px; border: 1px solid currentColor; border-radius: 99px; font-size: .92rem; }
.more { display: inline-block; margin-top: 24px; padding-bottom: 4px; border-bottom: 2px solid var(--red); font-weight: 500; }

/* velocity marquee */
.ticker { overflow: hidden; white-space: nowrap; padding: 26px 0; background: var(--red); color: #fff; }
.ticker .track { display: inline-flex; will-change: transform; }
.ticker b { padding: 0 .35em; font-weight: 300; font-size: calc(clamp(2.4rem, 6vw, 5.4rem) - 6px); line-height: 1; letter-spacing: -.02em; }
.ticker b:nth-child(even) { color: transparent; -webkit-text-stroke: 1px #fff; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: clamp(60px, 9vw, 130px) var(--pad); }
.stats div { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); }
.stats strong { display: block; font-weight: 300; font-size: clamp(2.6rem, 6.2vw, 6.4rem); line-height: 1; letter-spacing: -.04em; white-space: nowrap; color: #fff; }

/* stacked cards */
.values { display: grid; gap: 26px; margin-top: 70px; }
.value { position: sticky; top: calc(100px + var(--i) * 24px); display: grid; grid-template-columns: 1.25fr 1fr; min-height: min(62vh, 560px); overflow: hidden; border-radius: 28px; background: var(--navy); color: #d7dde6; transform-origin: 50% 0; }
.value > div { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(26px, 4.4vw, 64px); }
.value h3 { color: #fff; font-size: clamp(2.1rem, 5vw, 5rem); }
.value p { font-size: 1.2rem; }
.value img { width: 100%; height: 100%; min-height: 0; object-fit: cover; position: absolute; inset: 0; }
.value figure { position: relative; }
.value:nth-child(2) { background: #24344a; }
.value:nth-child(3) { background: var(--deep); }
.value:nth-child(4) { background: var(--red); color: #fff; }

/* team */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 70px; padding-bottom: 50px; }
.team.four { grid-template-columns: repeat(4, 1fr); }
.person .ph { aspect-ratio: 3 / 4; margin-bottom: 18px; overflow: hidden; border-radius: 18px; background: #dde3ec; }
.person img { width: 100%; height: 106%; object-fit: cover; object-position: 50% 0; filter: grayscale(1); transition: filter .5s; }
.person:hover img { filter: none; }
.person h4 { margin-bottom: 4px; font-size: 1.35rem; }
.person .bio { margin-top: 10px; font-size: .95rem; }

/* logo strips */
.logos { overflow: hidden; white-space: nowrap; margin-top: 22px; }
.logos .track { display: inline-flex; will-change: transform; }
.chip { display: inline-flex; flex: none; align-items: center; justify-content: center; width: clamp(170px, 18vw, 260px); height: 126px; margin-right: 22px; padding: 20px; border: 1px solid #e1e6ee; border-radius: 18px; background: #fff; }
.chip img { width: auto; height: auto; max-width: 100%; max-height: 84px; }
.clients { padding: clamp(80px, 10vw, 150px) 0; overflow: hidden; }
.clients > h2, .certs-wrap { padding: 0 var(--pad); }
.clients .logos:first-of-type { margin-top: 60px; }
.certs-wrap { margin-top: 110px; }
.certs { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; perspective: 900px; }
.certs .chip { flex: 1 1 180px; height: 170px; margin: 0; }
.certs .chip img { max-height: 120px; }

.quote { display: flex; flex-direction: column; justify-content: center; min-height: 55vh; border-top: 1px solid #dde3ec; }
.quote blockquote { max-width: 14em; font-size: clamp(2.2rem, 6vw, 6rem); }
.quote blockquote.long { max-width: 17em; font-size: clamp(1.95rem, 4.6vw, 4.5rem); }
.quote:nth-of-type(even) { align-items: flex-end; text-align: right; }
.quote footer { margin-top: 28px; font-weight: 500; color: var(--navy); }

.cta { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; overflow: hidden; text-align: center; background: var(--red); color: #fff; }
.cta-fill, .cta-ring { display: none; }
.cta-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 8.5em; color: #fff; font-size: clamp(3.2rem, 11vw, 11.5rem); line-height: .95; }
.cta p { margin-top: 30px; font-size: 1.3rem; }
.cta .row { justify-content: center; }
.cta .btn.white { background: #fff; border-color: #fff; color: var(--navy); }
.cta .btn.white::after { background: var(--navy); }
.cta .btn.white:hover { color: #fff; }

/* dialogs */
dialog { margin: auto; border: 0; font-family: var(--font); }
dialog::backdrop { background: rgba(10, 18, 29, .82); backdrop-filter: blur(8px); }
#quote { width: min(560px, 92vw); max-height: 90vh; padding: 34px; border-radius: 24px; color: var(--slate); }
#quote h3 { margin-bottom: 8px; }
#quote label { display: block; margin-top: 14px; color: var(--navy); }
#quote input, #quote select, #quote textarea { width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid #ccd4df; border-radius: 10px; background: #fff; color: var(--navy); font-size: 16px; }
#quote .btn { color: var(--navy); }
#quote .btn.red { color: #fff; }
#quote .btn::after { background: var(--mist); }
#quote .btn:hover { color: var(--navy); border-color: var(--navy); }

/* 3. Header, menu, footer ----------------------------------------------- */

.skip { position: fixed; left: 12px; top: -60px; z-index: 120; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--navy); }
.skip:focus { top: 12px; }
.head { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--pad); color: #fff; transition: transform .45s, background .35s; }
.head.solid { background: rgba(10, 18, 29, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.head.hide { transform: translateY(-102%); }
.head { flex-wrap: wrap; row-gap: 10px; }
.logo img { width: auto; height: 46px; border-radius: 4px; }
.nav { display: flex; gap: 30px; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.head-actions { display: flex; gap: 10px; }
.head .btn { min-height: 42px; padding: 0 20px; }
.menu-btn { display: none; }
#menu { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; padding: 20px var(--pad) 40px; overflow: auto; background: var(--deep); color: #fff; }
#menu[open] { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
#menu .btn { align-self: flex-start; }
#menu nav a { display: block; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-weight: 300; font-size: 2.4rem; }
#menu nav a[aria-current="page"] { color: #ff4a42; }
#bar { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; }

.foot { padding-bottom: 30px; }
.news { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 70px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.news p { margin-top: 14px; }
.cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 34px; padding: 70px 0; }
.cols p { margin-top: 18px; }
.cols .social { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 16px; }
.cols h4 { margin-bottom: 16px; font-size: 1.15rem; }
.cols a:not(.logo) { display: block; width: fit-content; max-width: 100%; padding: 5px 0; overflow-wrap: anywhere; }
.cols a:hover { color: #fff; }
.cols address { margin-top: 8px; font-style: normal; }
.giant { overflow: hidden; color: #fff; }
.giant svg { display: block; width: clamp(220px, 38%, 640px); height: auto; overflow: hidden; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 34px; font-size: .9rem; }

/* 4. Home ---------------------------------------------------------------- */

.hero { display: flex; align-items: flex-end; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.slides, .slides img, .tint, .hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.slides img { object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.6s, transform 7s linear; }
.slides img.on { opacity: .62; transform: scale(1); }
.tint { background:
  linear-gradient(105deg, rgba(10, 18, 29, .95) 28%, rgba(10, 18, 29, .6) 62%, rgba(217, 7, 0, .36)),
  repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .05) 79px 80px),
  repeating-linear-gradient(0deg, transparent 0 79px, rgba(255, 255, 255, .05) 79px 80px); }
.hero-in { position: relative; width: 100%; padding: 0 var(--pad) clamp(40px, 9vh, 100px); }
.hero h1 { max-width: 11.5em; }
.line { display: block; margin: -.1em 0 -.26em; padding: .1em 0 .26em; overflow: hidden; }
.line > span { display: block; }
.hero-in p { margin-top: 26px; font-size: clamp(1.02rem, 1.4vw, 1.25rem); }

.w { display: inline-block; }
.keep { white-space: nowrap; }

/* divisions: static layout first, pinned layout in the motion layer */
.sol { overflow: hidden; }
.sol-head { padding: clamp(90px, 11vw, 150px) var(--pad) 0; }
.sol-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; padding: 60px var(--pad) 100px; }
.sol-list h3 { margin-bottom: 16px; }
.sol-list .shot { width: 100%; margin-bottom: 20px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.sol-bg, #solCanvas, .sol-index { display: none; }

.ss { overflow: hidden; }
.ss-track { position: relative; display: flex; flex-direction: column; gap: 56px; padding: 90px var(--pad); }
.ss-intro p { margin-top: 24px; font-size: 1.15rem; }
.node { padding-left: 24px; border-left: 2px solid var(--red); }
.node h3 { margin-bottom: 12px; }
.proj { position: relative; display: flex; align-items: flex-end; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.proj .media { position: absolute; inset: 0; }
.proj .media picture { display: contents; }
.proj .media img { width: 100%; height: 100%; object-fit: cover; }
.proj .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 18, 29, .1) 30%, rgba(10, 18, 29, .92)); }
.proj .cap { position: relative; padding: 0 var(--pad) 9vh; color: #fff; }
.proj h3 { margin-bottom: 16px; color: #fff; font-size: clamp(2.6rem, 8vw, 8rem); }
.proj-head { padding-bottom: 70px; }

.reel { padding: clamp(70px, 9vw, 130px) 0; overflow: hidden; }
.reel h2 { padding: 0 var(--pad); margin-bottom: 50px; }
.reel .logos { margin-top: 18px; }
.reel .track a { flex: none; margin-right: 18px; overflow: hidden; border-radius: 16px; }
.reel .track img { width: clamp(220px, 28vw, 420px); aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.reel .track a:hover img { transform: scale(1.08); }

/* 5. Inner pages --------------------------------------------------------- */

.phero { display: flex; align-items: flex-end; min-height: 82vh; min-height: 82svh; padding: 150px var(--pad) clamp(50px, 9vh, 100px); overflow: hidden; }
.phero .bg { position: absolute; inset: 0; }
.phero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.phero .hero-in { padding: 0; }
.phero h1 { max-width: 11em; font-size: clamp(2.6rem, 8.6vw, 8.6rem); }

.subnav { position: sticky; top: 70px; z-index: 40; display: flex; gap: 8px; padding: 12px var(--pad); overflow-x: auto; background: rgba(10, 18, 29, .92); backdrop-filter: blur(12px); transition: top .45s; scrollbar-width: none; }
.nav-hidden .subnav { top: 0; }
.subnav a { flex: none; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 99px; color: #fff; transition: background .3s, border-color .3s; }
.subnav a.on, .subnav a:hover { background: var(--red); border-color: var(--red); }

.division { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 100px); align-items: start; padding: clamp(80px, 10vw, 150px) var(--pad); scroll-margin-top: 90px; }
.division .copy { position: sticky; top: 150px; }
.division h2 { font-size: clamp(2.4rem, 5.2vw, 5.4rem); }
.division .copy > p { margin-top: 24px; font-size: 1.18rem; }
.checks { margin-top: 30px; }
.checks li { padding: 14px 0; border-top: 1px solid rgba(128, 143, 165, .35); font-size: 1.08rem; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.collage figure { overflow: hidden; border-radius: 20px; aspect-ratio: 3 / 4; }
.collage figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.visuals { display: grid; gap: 18px; min-width: 0; }
.stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: radial-gradient(62% 66% at 50% 46%, #1f3149 0%, #121f31 52%, var(--deep) 100%); }
.dark .stage { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.collage figure:only-child { grid-column: 1 / -1; }

/* SenseSmart */
.ss-hero { display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; padding: 160px var(--pad) clamp(50px, 9vh, 100px); overflow: hidden; }
.ss-hero > canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }
.ss-hero .hero-in { padding: 0; }
.ss-hero h1 { font-size: clamp(3rem, 12vw, 12rem); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.tile { padding: 30px; border: 1px solid #dde3ec; border-radius: 20px; background: #fff; }
.tile h3 { margin-bottom: 10px; font-size: 1.7rem; }
.dark .tile { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }
.note { margin-top: 36px; font-size: .95rem; }
.grid.two { grid-template-columns: 1fr 1fr; }
.tile .checks { margin-top: 18px; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 28px; margin-top: 60px; }
.figures div { padding-top: 18px; border-top: 2px solid var(--red); }
@media (min-width: 1100px) { .figures { grid-template-columns: repeat(5, 1fr); } .figures strong { font-size: clamp(2.6rem, 4.1vw, 4.8rem) !important; } }
.figures strong { display: block; margin-bottom: 6px; color: var(--navy); font-weight: 300; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }

/* Projects gallery */
.cat { padding: clamp(70px, 9vw, 130px) var(--pad); scroll-margin-top: 70px; }
.cat > p { margin-top: 18px; font-size: 1.15rem; }
.masonry { columns: 3 280px; column-gap: 18px; margin-top: 48px; }
.tilebtn { display: block; width: 100%; margin-bottom: 18px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #243247; cursor: zoom-in; break-inside: avoid; }
.tilebtn img { width: 100%; transition: transform .7s var(--ease); }
.tilebtn:hover img { transform: scale(1.07); }
#lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; padding: 16px; background: transparent; color: #fff; }
#lightbox[open] { display: grid; grid-template-rows: 1fr auto; gap: 14px; }
#lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
#lightbox .controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
#lightbox .controls span { width: 100%; text-align: center; }

/* About */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 60px; }
.duo > div { padding: clamp(28px, 4vw, 60px); border-radius: 26px; background: var(--navy); color: #d7dde6; }
.duo > div:last-child { background: var(--red); color: #fff; }
.duo h3 { margin-bottom: 22px; color: #fff; }
.duo p { font-size: 1.3rem; }
.rows { margin-top: 56px; }
h2.next { margin-top: 100px; }
.rows li { padding: 30px 0; border-top: 1px solid #dde3ec; font-weight: 300; font-size: clamp(1.5rem, 3.2vw, 2.8rem); line-height: 1.2; color: var(--navy); }
.map { width: 100%; height: 420px; margin-top: 50px; border: 0; border-radius: 22px; background: #dde3ec; }

.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.contact-split h2 { font-size: clamp(2.4rem, 4.8vw, 4.8rem); }
.details { margin-top: 44px; }
.details div { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid #dde3ec; }
.details dt { color: var(--navy); font-weight: 500; }
.details dd { min-width: 0; overflow-wrap: anywhere; }
.details a { text-decoration: underline; text-underline-offset: 4px; }
.cform { padding: clamp(24px, 4vw, 52px); border-radius: 26px; background: var(--mist); }
.cform h3 { margin-bottom: 8px; }
.cform label { display: block; margin-top: 16px; color: var(--navy); }
.cform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cform input, .cform textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #ccd4df; border-radius: 10px; background: #fff; color: var(--navy); font-size: 16px; }
.cform .btn { margin-top: 24px; }
.cform .note { margin-top: 16px; }

/* 6. Motion layer (html.anim is added by main.js) ------------------------ */

#curtain { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: radial-gradient(48% 48% at 50% 50%, var(--navy) 0%, var(--deep) 100%); touch-action: none; transition: opacity .35s ease; }
#curtain.on { display: grid; }
#curtain svg { width: clamp(150px, 32vmin, 260px); height: auto; transition: opacity .35s ease, transform .55s cubic-bezier(.5, 0, .2, 1); }
#curtain.enter, #curtain.enter svg { opacity: 0; transition: none; }
#curtain.enter svg { transform: scale(.9); }
#curtain.out { opacity: 0; pointer-events: none; transition: opacity .55s ease .12s; }
#curtain.out svg { opacity: 0; transform: scale(1.16); }
#cursor { position: fixed; left: 0; top: 0; z-index: 90; display: none; width: 34px; height: 34px; margin: -17px; border: 1px solid #fff; border-radius: 50%; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: width .25s, height .25s, margin .25s; }
#cursor.big { width: 72px; height: 72px; margin: -36px; background: #fff; }
@media (hover: hover) and (pointer: fine) { .anim #cursor { display: block; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }

.anim .sol { height: 100vh; height: 100svh; min-height: 620px; background: radial-gradient(56% 62% at 70% 46%, #1b2c43 0%, #101c2c 45%, var(--deep) 78%); }
.anim .sol-head { position: absolute; top: 0; left: 0; z-index: 2; padding-top: 100px; }
.anim .sol-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.6rem); }
.anim .sol-head .more { margin-top: 12px; }
.anim #solCanvas { display: block; position: absolute; top: 72px; right: 0; width: 60%; height: calc(100% - 156px); }
.anim .sol-list { display: block; position: absolute; left: var(--pad); width: min(520px, 40%); top: 53%; padding: 0; transform: translateY(-50%); pointer-events: none; }
.anim .sol-list article { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; translate: 0 -45%; transform: translateY(40px); transition: opacity .45s, transform .6s var(--ease), visibility .45s; }
.anim .sol-list article.on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.anim .sol-list h3 { font-size: clamp(2.4rem, 5.4vw, 5.6rem); }
.anim .sol-list .shot { display: none; }
.anim .sol-index { display: flex; position: absolute; left: var(--pad); right: var(--pad); bottom: 24px; z-index: 2; gap: 10px; }
.sol-index button { position: relative; flex: 1; min-width: 0; padding: 18px 0 4px; border: 0; background: none; color: #9aa7b8; text-align: left; cursor: pointer; }
.sol-index button i { position: absolute; left: 0; right: 0; top: 0; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.sol-index button b { display: block; width: 100%; height: 100%; background: #ff2a1f; transform: scaleX(0); transform-origin: left; }
.sol-index button.on { color: #fff; }

.anim .ss { height: 100vh; height: 100svh; min-height: 600px; }
.anim .ss-track { flex-direction: row; align-items: center; gap: 0; width: max-content; height: 100%; padding: 0 var(--pad); will-change: transform; }
.anim .ss-intro { width: min(640px, 84vw); margin-right: 8vw; }
.anim .node { position: relative; width: min(440px, 76vw); height: 46%; padding: 56px 50px 0 0; border: 0; }
.anim .node::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #d4dae3; }
.anim .node::after { content: ""; position: absolute; left: 0; top: -10px; width: 22px; height: 22px; border: 2px solid #aab4c3; border-radius: 50%; background: var(--mist); transition: .4s; }
.anim .node .fill { position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; }
.anim .node.on::after { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 12px rgba(217, 7, 0, .14); }
.anim .node h3 { color: #9aa6b5; transition: color .4s; }
.anim .node.on h3 { color: var(--navy); }
.anim .ss-shot { width: min(860px, 86vw); }

.anim .cta { height: 100vh; height: 100svh; min-height: 560px; padding-top: 40px; padding-bottom: 40px; background: var(--deep); }
.anim .cta h2 { max-width: 9em; font-size: clamp(2.8rem, min(6.4vw, 11vh), 6.4rem); }
.anim .cta-fill { display: block; position: absolute; inset: 0; background: var(--red); clip-path: circle(0 at 50% 50%); }
.anim .cta-ring { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.cta-ring circle { fill: none; stroke: #ff2a1f; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; }

/* Without motion, logo rows wrap and photo rows scroll by hand. */
html:not(.anim) .clients .logos .track { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0 var(--pad); }
html:not(.anim) .clients .chip { margin: 0; }
html:not(.anim) .reel .logos { overflow-x: auto; }

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1100px) {
  .team, .team.four { grid-template-columns: repeat(3, 1fr); }
  .team.four { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
@media (min-width: 1101px) {
  .team .person:nth-child(even) { margin-top: 80px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .division, .contact-split { grid-template-columns: minmax(0, 1fr); }
  .division .copy { position: static; }
  .grid { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .value { grid-template-columns: 1fr; grid-template-rows: 190px 1fr; min-height: 66svh; }
  .value figure { order: -1; }
  .anim #solCanvas { top: 130px; width: 100%; height: 39%; }
  .anim .sol { background: radial-gradient(90% 34% at 50% 33%, #1b2c43 0%, var(--deep) 100%); }
  .anim .sol-head .more { display: none; }
  .anim .sol-list { top: auto; bottom: 58px; left: var(--pad); right: var(--pad); width: auto; height: 38%; transform: none; }
  .anim .sol-list article { translate: none; }
  .anim .sol-list h3 { font-size: 2.1rem; }
  .sol-list p { font-size: .95rem; }
  .anim .sol-list .tags { margin-top: 12px; }
  .anim .sol-list .tags li { padding: 4px 11px; font-size: .8rem; }
  .anim .sol-list .more { margin-top: 12px; }
  .sol-index span { display: none; }
  .anim .sol-index { gap: 6px; }
}
@media (max-width: 760px) {
  .stats, .cols { grid-template-columns: 1fr 1fr; }
  .cols > div:first-child, .cols > div:last-child { grid-column: 1 / -1; }
  .team, .team.four { grid-template-columns: 1fr 1fr; gap: 18px; }
  .person h4 { font-size: 1.1rem; }
}
@media (max-width: 560px) {
  .grid, .grid.two { grid-template-columns: 1fr; }
  .cform .two { grid-template-columns: 1fr; }
  .logo img { height: 38px; }
  .head { gap: 8px; }
  .head .btn { padding: 0 14px; font-size: .92rem; }
  .masonry { columns: 2; column-gap: 10px; }
  .tilebtn { margin-bottom: 10px; border-radius: 12px; }
}
