/* =====================================================================
   Brdge — inner pages, v2 ("the stage")
   Loaded after styles.css and pages.css on every page except the homepage.
   Pages opt in with <body class="v2" data-flavour="…">.

   Principles taken from the references (Apple, Linear, Consolev, Nordstar):
   one idea per screen; large, lighter type; the work shown as product,
   in frames, on a lit stage; dark and light sections alternating;
   a few signature scroll moments instead of fading every box.
   ===================================================================== */
.v2 {
  --night: #06070C;
  --night-2: #0D0F17;
  --ground: #F5F5F7;
  --ink: #1D1D1F;
  --soft: #6E6E73;
  --line: rgba(29, 29, 31, .12);
  --line-dark: rgba(255, 255, 255, .12);
  --big: 28px;                                   /* the corner of a stage */
  --glow: var(--blue);
  --glow-2: #7C9CFF;
  background: var(--ground);
}
.v2[data-flavour="launchpad"] { --glow: #7446F2; --glow-2: #C084FC; }
.v2[data-flavour="searchx"]   { --glow: #0A6EE6; --glow-2: #38D9F5; }
.v2[data-flavour="gateway"]   { --glow: #0A8268; --glow-2: #5EE6B8; }
.v2[data-flavour="about"]     { --glow: #2D5BFF; --glow-2: #A78BFA; }

/* ---------- Type: bigger and lighter ---------- */
.v2 h1, .v2 h2, .v2 h3 { font-weight: 500; letter-spacing: -.045em; }
.v2 h2 { font-size: clamp(2.5rem, 5.2vw, 5.25rem); line-height: 1; }
.v2 h2 em, .v2 .hero__title em { font-family: var(--accent); font-style: normal; font-weight: inherit; letter-spacing: inherit; }
.v2 .kicker { margin-bottom: clamp(1rem, 2vw, 1.5rem); font-size: var(--step-small); font-weight: 500; letter-spacing: .01em; color: var(--soft); }
.v2 .sub { max-width: 36ch; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -.015em; color: var(--soft); }
.v2 .dark .kicker, .v2 .dark .sub { color: rgba(255, 255, 255, .62); }

/* ---------- Surfaces ---------- */
.v2 main > section { background: transparent; }
.v2 main > section.dark { margin-inline: var(--gap); border-radius: var(--big); background: var(--night); color: #fff; }
.v2 main > section.paper { margin-inline: var(--gap); border-radius: var(--big); background: #fff; }
.v2 .wrap { padding-inline: clamp(20px, 5vw, 80px); }
.v2 .pad { padding-block: clamp(6rem, 12vw, 11rem); }
.v2 .pad-s { padding-block: clamp(4rem, 8vw, 7rem); }
.v2 .head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.v2 .head h2 { max-width: 14ch; }
.v2 .head .sub { margin-bottom: .4rem; }
.v2 .center { text-align: center; }
.v2 .center h2, .v2 .center .sub { margin-inline: auto; }

/* ---------- Nav: frosted glass ---------- */
.v2 .bar { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset; }

/* ---------- Glow: slow light behind the stage ---------- */
.glow { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.glow i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .5; filter: blur(80px); animation: glow-drift 22s ease-in-out infinite alternate; }
.glow i:nth-child(1) { left: -20vmax; top: -30vmax; background: radial-gradient(circle, var(--glow) 0%, transparent 62%); }
.glow i:nth-child(2) { right: -25vmax; top: -10vmax; background: radial-gradient(circle, var(--glow-2) 0%, transparent 60%); opacity: .32; animation-duration: 28s; animation-direction: alternate-reverse; }
.glow i:nth-child(3) { left: 20%; bottom: -45vmax; background: radial-gradient(circle, var(--glow) 0%, transparent 60%); opacity: .4; animation-duration: 34s; }
@keyframes glow-drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }

/* ---------- Hero: a lit stage, headline, then the work rising into view ---------- */
.v2 main > .stage-hero { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 0; margin: var(--gap) var(--gap) 0; padding: calc(64px + 7vh) 0 0; overflow: hidden; border-radius: var(--big); background: var(--night); color: #fff; text-align: center; }
.stage-hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-inline: 20px; }
.stage-hero__mark { width: auto; height: clamp(26px, 2.4vw, 34px); margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.v2 .stage-hero .hero__title { font-size: clamp(3rem, 7.6vw, 7.75rem); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.v2 .stage-hero .hero__title em { color: var(--glow-2); }
.stage-hero__sub { max-width: 34ch; margin-top: clamp(1.5rem, 3vw, 2.25rem); font-size: var(--step-lead); line-height: 1.35; letter-spacing: -.015em; color: rgba(255, 255, 255, .7); }
.v2 .stage-hero .hero__cta { justify-content: center; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.v2 .stage-hero .btn--paper { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.v2 .stage-hero .btn--paper::before { background: #fff; }
.v2 .stage-hero .btn--paper:hover { color: var(--ink); }
.v2 .stage-hero .btn--blue { --dot: #fff; background: var(--glow); }
.v2 .stage-hero .btn--blue:hover { background: var(--glow); color: var(--ink); }
.stage-hero__media { position: relative; z-index: 1; width: min(1180px, 92%); margin-top: clamp(3.5rem, 7vw, 6rem); transform-origin: 50% 0; }
.stage-hero__media::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: 0; height: 40%; background: linear-gradient(to top, var(--night), transparent); pointer-events: none; } /* taste-skill-ignore: fade the stage floor */
.float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: .6rem; padding: .7rem 1.05rem; border-radius: 999px; background: rgba(13, 15, 23, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 20px 40px -10px rgba(0, 0, 0, .5); font-size: var(--step-small); font-weight: 500; color: #fff; white-space: nowrap; animation: chip-float 6s ease-in-out infinite alternate; }
.float-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .2); }
.float-chip--b { animation-delay: -3s; }
.float-chip--b::before { background: var(--glow-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow-2) 25%, transparent); }
@keyframes chip-float { to { transform: translateY(-10px); } }

/* ---------- Devices: real screens in frames ---------- */
.device { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1); }
.device__bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #ECEDF1; }
.device__bar i { width: 11px; height: 11px; border-radius: 50%; background: #D3D5DC; }
.device__bar span { margin-inline: auto; padding: .2rem 2.5rem; border-radius: 6px; background: #fff; font-size: 11px; color: #8A8C94; }
.device img { display: block; width: 100%; height: auto; }
.device--phone { width: 100%; padding: 9px; border-radius: 44px; background: #0B0C11; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.device--phone img { border-radius: 36px; }
.devices { position: relative; }
.devices .device--back { position: absolute; width: 62%; right: -6%; top: -9%; opacity: .55; transform: scale(.94); filter: saturate(.6); }
.devices .device--front { position: relative; width: 82%; }
.devices .device--side { position: absolute; width: 22%; right: 3%; bottom: -4%; }
.devices .float-chip { left: 4%; top: 12%; }
.devices .float-chip--b { left: auto; right: 6%; top: auto; bottom: 22%; }

/* ---------- Logo band on dark ---------- */
.band { position: relative; z-index: 1; width: 100%; padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.band .kicker { text-align: center; color: rgba(255, 255, 255, .5); }
.band .ticker { margin-top: 1.5rem; }
.band .logos img { filter: brightness(0) invert(1); opacity: .62; }
.band .logos li:hover img { filter: brightness(0) invert(1); opacity: 1; }

/* ---------- Statement: one sentence that fills in as it is read ---------- */
.scrub { max-width: 22ch; margin-inline: auto; font: 500 clamp(2rem, 4.6vw, 4.5rem)/1.08 var(--display); letter-spacing: -.045em; text-align: center; text-wrap: balance; }
.scrub .sw { opacity: .16; }
.dark .scrub .sw { opacity: .2; }

/* ---------- Rail: a horizontal gallery of large cards ---------- */
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: rgba(29, 29, 31, .07); color: var(--ink); cursor: pointer; transition: background .25s, opacity .25s, transform .3s var(--ease); }
.rail-nav button:hover { background: rgba(29, 29, 31, .14); }
.rail-nav button:active { transform: scale(.94); }
.rail-nav button:disabled { opacity: .3; cursor: default; }
.rail-nav svg { width: 20px; height: 20px; }
.dark .rail-nav button { background: rgba(255, 255, 255, .1); color: #fff; }
.dark .rail-nav button:hover { background: rgba(255, 255, 255, .18); }
.rail { display: flex; gap: 16px; margin: 0; padding: 0 clamp(20px, 5vw, 80px) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: clamp(20px, 5vw, 80px); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { flex: none; scroll-snap-align: start; }
.tile { position: relative; display: flex; flex-direction: column; width: clamp(290px, 31vw, 470px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: var(--night-2); color: #fff; text-decoration: none; isolation: isolate; }
.tile--wide { width: clamp(320px, 52vw, 820px); aspect-ratio: auto; }
.tile > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(6, 7, 12, .78) 0%, rgba(6, 7, 12, .2) 38%, rgba(6, 7, 12, .1) 55%, rgba(6, 7, 12, .86) 100%); } /* taste-skill-ignore: scrim for legibility */
a.tile:hover > img { transform: scale(1.04); }
.tile__top { padding: clamp(22px, 2.4vw, 32px); }
.tile__top .kicker { margin-bottom: .6rem; color: rgba(255, 255, 255, .72); }
.tile__top h3 { max-width: 16ch; font-size: clamp(1.5rem, 2.1vw, 2.1rem); line-height: 1.08; }
.tile__foot { margin-top: auto; padding: clamp(22px, 2.4vw, 32px); }
.tile__foot p { max-width: 34ch; color: rgba(255, 255, 255, .78); }
.tile__metric { display: block; font: 600 clamp(2.75rem, 4.4vw, 4.5rem)/1 var(--display); letter-spacing: -.055em; }
.tile__client { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .2); font-size: var(--step-small); font-weight: 500; }
.tile__client span:last-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: background .3s, color .3s, transform .4s var(--ease); }
a.tile:hover .tile__client span:last-child { background: #fff; color: var(--ink); transform: rotate(-45deg); }
.tile--screen > img { object-fit: cover; object-position: 0 0; }
.tile--screen::after { background: linear-gradient(to bottom, rgba(6, 7, 12, .9) 0%, rgba(6, 7, 12, .55) 40%, rgba(6, 7, 12, .7) 62%, rgba(6, 7, 12, .95) 100%); }
.tile--light { background: #fff; color: var(--ink); }
.tile--light::after { display: none; }
.tile--light .tile__top .kicker, .tile--light .tile__foot p { color: var(--soft); }
.tile__art { flex: 1 1 auto; display: grid; place-items: center; padding: 0 clamp(22px, 2.4vw, 32px); }
.tile__art .device { width: 100%; }

/* ---------- Big statements with a number ---------- */
.bigstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2.5rem, 4vw, 4rem); }
.bigstat p:first-child { font: 500 clamp(1.75rem, 2.9vw, 2.9rem)/1.1 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.bigstat b { display: block; margin-bottom: .35rem; font: 600 clamp(3.5rem, 7vw, 7rem)/.95 var(--display); letter-spacing: -.06em; background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--glow-2) 70%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; } /* taste-skill-ignore: lit numeral */
.bigstat small { display: block; margin-top: 1rem; font-size: var(--step-small); color: rgba(255, 255, 255, .5); }

/* ---------- Pinned steps: the method told one step at a time ---------- */
.pin { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 7rem); }
.pin__sticky { position: sticky; top: calc(64px + 3rem); }
.pin__sticky .sub { margin-top: 1.5rem; }
.pin__nav { display: grid; gap: .25rem; margin-top: clamp(2.5rem, 5vw, 4rem); counter-reset: s; }
.pin__nav li { display: flex; align-items: center; gap: 1rem; font: 500 clamp(1.25rem, 1.7vw, 1.6rem)/1.5 var(--display); letter-spacing: -.035em; color: rgba(29, 29, 31, .28); transition: color .5s var(--ease); }
.pin__nav li::before { content: ''; width: 0; height: 2px; border-radius: 2px; background: var(--glow); transition: width .6s var(--ease); }
.pin__nav li.is-on { color: var(--ink); }
.pin__nav li.is-on::before { width: 28px; }
.pin__panels { display: grid; gap: 16px; }
.pin__panel { position: relative; display: flex; flex-direction: column; min-height: min(78vh, 720px); padding: clamp(28px, 3.4vw, 52px); overflow: hidden; border-radius: 24px; background: #fff; isolation: isolate; transition: transform .8s var(--ease); }
.pin__panel .pin__n { font: 300 clamp(5rem, 11vw, 10rem)/.8 var(--display); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--glow) 55%, transparent); }
.pin__panel h3 { margin-top: auto; font-size: clamp(2.25rem, 4vw, 3.75rem); }
.pin__panel p { max-width: 34ch; margin-top: 1rem; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -.015em; color: var(--soft); }
.pin__panel .pin__when { position: absolute; top: clamp(28px, 3.4vw, 52px); right: clamp(28px, 3.4vw, 52px); padding: .45rem .85rem; border-radius: 999px; background: color-mix(in srgb, var(--glow) 10%, #fff); color: var(--glow); font-size: var(--step-small); font-weight: 600; }
.pin__bar { height: 6px; margin-top: 2rem; overflow: hidden; border-radius: 6px; background: rgba(29, 29, 31, .07); }
.pin__bar i { display: block; height: 100%; border-radius: 6px; background: var(--glow); transform: scaleX(var(--fill, .25)); transform-origin: 0 50%; transition: transform 1.2s var(--ease); }
.pin__panel:not(.is-on) .pin__bar i { transform: scaleX(0); }
.pin__panel--dark { background: var(--night); color: #fff; }
.pin__panel--dark p { color: rgba(255, 255, 255, .66); }
.pin__panel--dark .pin__bar { background: rgba(255, 255, 255, .12); }
.pin__panel--dark .pin__when { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Index: a list read like a contents page ---------- */
.index { border-top: 1px solid var(--line); }
.index li { position: relative; display: grid; grid-template-columns: clamp(3rem, 7vw, 6rem) minmax(0, 1.2fr) minmax(0, 1fr) 52px; gap: 1rem clamp(1.5rem, 3vw, 3rem); align-items: center; padding-block: clamp(1.5rem, 2.6vw, 2.4rem); border-bottom: 1px solid var(--line); isolation: isolate; }
.index li::before { content: ''; position: absolute; inset: 0 calc(-1 * clamp(20px, 5vw, 80px)); z-index: -1; background: color-mix(in srgb, var(--glow) 6%, #fff); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.index li:hover::before { transform: none; }
.index__n { font-size: var(--step-small); font-weight: 500; color: var(--soft); font-variant-numeric: tabular-nums; }
.index h3 { font-size: clamp(1.6rem, 2.8vw, 2.75rem); font-weight: 400; line-height: 1.05; transition: translate .6s var(--ease); }
.index p { color: var(--soft); }
.index li:hover h3 { translate: 10px 0; }
.index__go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background .35s, color .35s, box-shadow .35s, transform .5s var(--ease); }
.index__go svg { width: 18px; height: 18px; }
.index li:hover .index__go { background: var(--ink); color: #fff; box-shadow: none; transform: rotate(-45deg); }
.index a.index__link { position: absolute; inset: 0; z-index: 1; }

/* ---------- Voices: one quote at a time, large ---------- */
.voice { position: relative; }
.voice__slides { display: grid; }
.voice__slide { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .8s var(--ease), transform .9s var(--ease), visibility 0s .8s; }
.voice__slide.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.voice__logo { width: auto; height: 30px; max-width: 160px; margin-bottom: clamp(2rem, 4vw, 3rem); object-fit: contain; filter: grayscale(1); opacity: .75; }
.voice blockquote p { max-width: 26ch; font: 400 clamp(1.75rem, 3.5vw, 3.4rem)/1.12 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.voice figcaption { display: flex; align-items: center; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); text-align: left; font-size: var(--step-small); color: var(--soft); }
.voice figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.voice figcaption b { display: block; font-size: var(--step-body); font-weight: 600; color: var(--ink); }
.voice__dots { display: flex; justify-content: center; gap: 8px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.voice__dots button { position: relative; width: 44px; height: 4px; padding: 0; overflow: hidden; border: 0; border-radius: 4px; background: rgba(29, 29, 31, .12); cursor: pointer; }
.voice__dots button::before { content: ''; position: absolute; inset: -12px 0; }
.voice__dots button i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.voice__dots button[aria-pressed="true"] i { animation: voice-fill var(--dwell, 7s) linear forwards; }
.voice.is-paused .voice__dots button[aria-pressed="true"] i { animation-play-state: paused; }
@keyframes voice-fill { to { transform: none; } }

/* ---------- Split feature: copy beside a stage ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: center; }
.split .btn { margin-top: 2rem; }
.split__stage { position: relative; display: grid; place-items: center; min-height: clamp(380px, 40vw, 560px); padding: clamp(24px, 4vw, 56px); overflow: hidden; border-radius: 24px; background: var(--night-2); isolation: isolate; }
.split__stage .glow i { opacity: .38; }

/* An AI answer, drawn in neutral chat styling */
.answer { position: relative; z-index: 1; width: min(460px, 100%); display: grid; gap: 14px; }
.answer__q { justify-self: end; max-width: 80%; padding: .85rem 1.1rem; border-radius: 18px 18px 4px 18px; background: rgba(255, 255, 255, .12); color: #fff; font-size: var(--step-body); }
.answer__a { padding: 1.1rem 1.25rem; border-radius: 18px 18px 18px 4px; background: #fff; color: var(--ink); font-size: var(--step-body); line-height: 1.5; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.answer__a mark { padding: .05em .3em; border-radius: 4px; background: color-mix(in srgb, var(--glow) 16%, #fff); color: var(--glow); font-weight: 600; }
.answer__src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .85rem; }
.answer__src span { padding: .25rem .6rem; border-radius: 999px; background: var(--ground); font-size: 12px; color: var(--soft); }

/* ---------- Finale: the ask ---------- */
.finale { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.finale h2 { font-size: clamp(3rem, 7vw, 7rem); line-height: .95; }
.finale .sub { margin-top: 1.75rem; }
.finale__mail { display: inline-block; margin-top: 2rem; font-size: var(--step-lead); color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); } /* taste-skill-ignore: underline */
.finale__mail:hover { background-size: 0 1px; background-position: 100% 100%; }
.v2 .finale .form { padding: clamp(24px, 3vw, 44px); border-radius: 24px; background: #fff; box-shadow: 0 30px 80px -40px rgba(6, 7, 12, .25); }
.v2 .finale .form input, .v2 .finale .form textarea, .v2 .finale .form select { border-radius: 12px; background: var(--ground); }
.v2 .finale .form .btn { margin-top: .5rem; }

/* ---------- Reveal: a softer rise for the v2 blocks ---------- */
.js .v2 [data-in] { transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .v2 [data-in].is-in { transform: none; }
.js .v2 .rail[data-in] > li { opacity: 0; transform: translateX(60px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .v2 .rail[data-in].is-in > li { opacity: 1; transform: none; }
.js .v2 .rail[data-in] > li:nth-child(2) { transition-delay: .08s; } .js .v2 .rail[data-in] > li:nth-child(3) { transition-delay: .16s; }
.js .v2 .rail[data-in] > li:nth-child(4) { transition-delay: .24s; } .js .v2 .rail[data-in] > li:nth-child(n+5) { transition-delay: .32s; }
.js .v2 .rail[data-in] { opacity: 1; transform: none; }

/* ---------- Footer meets the ground ---------- */
.v2 .foot { margin-top: var(--gap); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1023px) {
  .bigstats { grid-template-columns: 1fr; }
  .pin, .split, .finale { grid-template-columns: 1fr; }
  .pin__sticky { position: static; }
  .pin__nav { display: none; }
  .pin__panel { min-height: 0; gap: 2.5rem; }
  .pin__panel:not(.is-on) .pin__bar i { transform: scaleX(var(--fill, .25)); }
  .index li { grid-template-columns: 2.5rem minmax(0, 1fr) 44px; }
  .index li p { grid-column: 2; grid-row: 2; }
  .index__go { grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 44px; }
}
@media (max-width: 899px) {
  .v2 main > .stage-hero { padding-top: calc(56px + 4.5rem); }
  .stage-hero__media { width: 100%; padding-inline: 16px; }
  .devices .device--front { width: 100%; }
  .devices .device--back { display: none; }
  .devices .device--side { width: 30%; right: 4%; bottom: -8%; }
  .devices .float-chip { left: 6%; top: -5%; }
  .devices .float-chip--b { display: none; }
  .device__bar { height: 24px; gap: 5px; }
  .device__bar i { width: 7px; height: 7px; }
  .device__bar span { display: none; }
  .tile { width: 82vw; }
  .tile--wide { width: 88vw; }
  .rail-nav { display: none; }
  .voice blockquote p { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .glow i, .float-chip { animation: none; }
  .voice__dots button[aria-pressed="true"] i { animation: none; transform: none; }
}
.bigcount { font: 300 clamp(6rem, 12vw, 11rem)/.85 var(--display); letter-spacing: -.07em; color: var(--glow); }

/* ---------- Review fixes, round one ---------- */
.v2 .bar { color: var(--ink); }
.v2 ol { padding: 0; list-style: none; }
.tile, .tile--wide { aspect-ratio: auto; height: clamp(420px, 40vw, 600px); }
.pin__panel { min-height: min(64vh, 600px); }

/* Product tiles: the screen sits in a frame on a lit ground, never under the words */
.tile--device { background: radial-gradient(120% 90% at 85% 110%, color-mix(in srgb, var(--glow) 42%, transparent) 0%, transparent 62%), var(--night-2); } /* taste-skill-ignore: stage light */
.tile--device::after { display: none; }
.tile--device .tile__art { align-items: center; padding-block: .5rem; }
.tile--device .tile__art .device { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform 1.2s var(--ease); }
a.tile--device:hover .device, .tile--device:hover .tile__art .device { transform: translateY(-6px) scale(1.02); }
.tile--wide.tile--device .tile__top, .tile--wide.tile--device .tile__foot { max-width: 42%; }
.tile--wide.tile--device .tile__shot { position: absolute; z-index: -1; right: -3%; bottom: -8%; width: 60%; transition: transform 1.2s var(--ease); }
a.tile--wide.tile--device:hover .tile__shot { transform: translate(-6px, -8px); }

/* Client band on the light ground, under the stage */
.v2 .clients { padding-block: clamp(3rem, 6vw, 5rem) 0; }
.v2 .clients .kicker { text-align: center; }
.v2 .clients .ticker { margin-top: 1.25rem; }

@media (max-width: 899px) {
  .tile, .tile--wide { height: auto; min-height: 460px; }
  .tile--wide.tile--device .tile__top, .tile--wide.tile--device .tile__foot { max-width: none; }
  .tile--wide.tile--device .tile__shot { position: relative; right: auto; bottom: auto; width: 92%; margin: 1rem 0 -2rem 8%; }
}
.tile--wide.tile--device .tile__shot { top: 22%; bottom: auto; right: -5%; width: 56%; }
.finale h2 { font-size: clamp(3rem, 5.6vw, 5.75rem); }
.finale h2 .wd:last-of-type { white-space: nowrap; }
@media (max-width: 899px) { .tile--wide.tile--device .tile__shot { top: auto; } }
@media (max-width: 1023px) {
  .pin__panel { min-height: 0; }
  .pin__panel h3 { margin-top: 2.5rem; }
}
@media (max-width: 899px) {
  .tile--device .tile__top { order: 0; }
  .tile--device .tile__shot { order: 1; }
  .tile--device .tile__foot { order: 2; }
  .tile--wide.tile--device .tile__shot { margin: .5rem 0 0 auto; width: 90%; }
}

/* ---------- Proof: a full wall of client marks, in colour ---------- */
.wall-sec .head { justify-content: center; text-align: center; }
.wall-sec .head h2 { max-width: 16ch; margin-inline: auto; }
.wall-sec .head .sub { margin-inline: auto; }
.wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; overflow: hidden; border-radius: 24px; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.wall li { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 18% 16%; background: #fff; transition: background .4s; }
.wall img { width: auto; height: auto; max-width: 100%; max-height: 48px; object-fit: contain; transform: scale(var(--s, 1)); transition: transform .6s var(--ease); }
.wall li:hover { background: color-mix(in srgb, var(--glow) 4%, #fff); }
.wall li:hover img { transform: scale(calc(var(--s, 1) * 1.06)); }
.wall-note { margin-top: 1.5rem; text-align: center; font-size: var(--step-small); color: var(--soft); }

/* ---------- Capabilities band ---------- */
.v2 .words { padding-block: clamp(1.4rem, 2.6vw, 2.2rem); }
.v2 .words li { font-weight: 500; letter-spacing: -.035em; }
.v2 .words li::after { background: var(--glow); }

/* ---------- Six figures ---------- */
.bigstats--6 { grid-template-columns: repeat(3, 1fr); row-gap: clamp(3rem, 6vw, 5.5rem); }
.bigstats--6 .bigstat { padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }

/* ---------- Awards on the dark ground ---------- */
.awards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; overflow: hidden; border-radius: 20px; background: var(--line-dark); }
.awards li { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 230px; padding: 24px 20px; background: var(--night-2); }
.awards img { width: auto; height: 64px; max-width: 100%; object-fit: contain; object-position: 0 50%; }
.awards b { display: block; font-size: var(--step-small); font-weight: 600; color: #fff; line-height: 1.3; }
.awards span { display: block; margin-top: .3rem; font-size: var(--step-small); color: rgba(255, 255, 255, .55); }

@media (max-width: 1023px) {
  .wall { grid-template-columns: repeat(4, 1fr); }
  .awards { grid-template-columns: repeat(3, 1fr); }
  .bigstats--6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .wall { grid-template-columns: repeat(3, 1fr); }
  .wall li { padding: 16% 12%; }
  .awards { grid-template-columns: repeat(2, 1fr); }
  .bigstats--6 { grid-template-columns: 1fr; }
}
.wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.awards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wall li, .awards li { min-width: 0; }
@media (max-width: 1023px) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } .awards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Client wall as open rows of marks (any count, centred) */
.wall--rows { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.wall--rows li { flex: 0 0 calc(100% / 7); aspect-ratio: auto; height: clamp(84px, 8vw, 120px); padding: 0 clamp(14px, 2vw, 30px); background: none; }
.wall--rows li:hover { background: none; }
.wall--rows img { max-height: 46px; }
@media (max-width: 1023px) { .wall--rows li { flex-basis: 25%; } }
@media (max-width: 599px) { .wall--rows li { flex-basis: calc(100% / 3); height: 76px; } .wall--rows img { max-height: 34px; } }

/* ---------- Phone pass ---------- */
.v2 main h2, .v2 main h3 { text-wrap-style: balance; }
.v2 main p, .v2 main li, .v2 main figcaption { text-wrap-style: pretty; }
.voice__dots button::before { inset: -20px 0; }
@media (max-width: 1023px) {
  .pin__panel { gap: 0; }
  .pin__panel h3 { margin-top: 1.75rem; }
  .pin__bar { margin-top: 1.75rem; }
}
@media (max-width: 899px) {
  .finale__mail { padding-block: 10px; background-position: 0 calc(100% - 8px); }
}
@media (max-width: 899px) {
  /* Cards in a rail share one height, so no card ends short of its neighbours */
  .rail > li { display: flex; }
  .rail > li > .tile { flex: none; }
}
@media (max-width: 599px) {
  .tile, .tile--wide { width: 82vw; }
}
.v2 .nw { white-space: nowrap; }
@media (max-width: 899px) {
  /* Photo cards are taller on a phone and the copy covers more of the picture: a deeper floor keeps it legible */
  .tile:not(.tile--screen)::after { background: linear-gradient(to bottom, rgba(6, 7, 12, .88) 0%, rgba(6, 7, 12, .6) 24%, rgba(6, 7, 12, .2) 42%, rgba(6, 7, 12, .78) 62%, rgba(6, 7, 12, .94) 100%); } /* taste-skill-ignore: scrim for legibility */
}

/* Brand type: Montserrat only; the emphasised phrase takes the page colour */
.v2 h2 em, .v2 .hero__title em, .v2 h3 em { font-family: var(--display); font-style: normal; font-weight: inherit; letter-spacing: inherit; font-size: 1em; color: var(--glow); }
.v2 .dark h2 em, .v2 .stage-hero .hero__title em, .v2 .hero h1 em { color: var(--glow-2); }

/* Client wall rows: each mark takes the width its shape needs, rows wrap and centre on every screen */
.wall--rows { --lh: clamp(30px, 3vw, 44px); row-gap: clamp(8px, 1.2vw, 16px); }
.wall--rows li { flex: 0 0 auto; height: auto; min-width: 0; padding: clamp(10px, 1.4vw, 18px) clamp(16px, 2.6vw, 40px); }
.wall--rows img { width: auto; height: calc(var(--lh) * var(--s, 1)); max-width: min(78vw, 300px); max-height: none; object-fit: contain; transform: none; }
.wall--rows li:hover img { transform: scale(1.04); }
@media (max-width: 599px) { .wall--rows { --lh: 26px; } .wall--rows li { flex: 0 0 auto; height: auto; padding: 10px 14px; } .wall--rows img { max-height: none; } }

/* Tap targets: 44px-tall dot buttons with the 4px bar drawn inside, so the whole height is tappable */
.voice__dots button { height: 44px; overflow: visible; background: transparent; border-radius: 0; }
.voice__dots button::before { inset: 20px 0; border-radius: 4px; background: rgba(29, 29, 31, .12); }
.dark .voice__dots button::before { background: rgba(255, 255, 255, .18); }
.voice__dots button i { inset: 20px 0; border-radius: 4px; }
.voice__dots { margin-top: clamp(1.5rem, 4vw, 3rem); }

/* Safari: blurred, animated glows escape a rounded overflow:hidden box unless it is its own layer with a mask */
.glow { isolation: isolate; transform: translateZ(0); -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); }

/* contrast (WCAG AA): small accent labels and the current nav link sit a shade darker than the accent itself */
.pin__panel .pin__when { color: color-mix(in srgb, var(--glow) 80%, #000); }
.bar__links a[aria-current="page"] { color: color-mix(in srgb, var(--blue) 60%, #000); }
.bento__cell .kicker { color: #55555A; }

/* case studies: a second route for readers who belong to another division */
.finale__route { margin-top: 1.25rem; font-size: var(--step-small); color: var(--soft); }
.finale__route a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.finale__route a:hover { color: var(--blue); }

/* ---- page covers: one full-screen photograph, a two-line title, a small caps line ---- */
.v2 main > .cover { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(100svh - var(--gap)); margin: var(--gap) var(--gap) 0; padding: 0 clamp(22px, 5vw, 88px) clamp(72px, 11vh, 112px); overflow: hidden; border-radius: var(--big); background: #0E1018; color: #fff; }
.cover__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: coverIn 2.2s cubic-bezier(.2, .7, .2, 1) forwards; }
.cover::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6, 7, 12, .82) 0%, rgba(6, 7, 12, .4) 42%, rgba(6, 7, 12, .08) 72%), linear-gradient(to right, rgba(6, 7, 12, .5) 0%, rgba(6, 7, 12, 0) 62%); }
.cover__copy { max-width: 1100px; }
.cover__title { margin: 0; font-family: Montserrat, sans-serif; font-size: clamp(3rem, 8.2vw, 8.75rem); font-weight: 400; line-height: .98; letter-spacing: -.045em; color: #fff; }
.cover__title em { display: block; font-style: italic; font-weight: 300; letter-spacing: -.04em; color: inherit; }
.cover__title span { display: block; padding-left: .6em; }
.cover__lead { margin-top: clamp(1.4rem, 2.6vw, 2.2rem); font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.cover__scroll { position: absolute; left: 50%; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: .35rem; transform: translateX(-50%); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #fff; text-decoration: none; opacity: .85; }
.cover__scroll:hover { opacity: 1; }
.cover__scroll svg { animation: coverNudge 2.4s ease-in-out infinite; }
@keyframes coverIn { to { transform: scale(1); } }
@keyframes coverNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.v2 main > .cover + .stage-hero, .v2 main > .cover + .lp-hero { margin-top: var(--gap); padding-top: clamp(3.5rem, 7vw, 6rem); }
@media (max-width: 699px) {
  .v2 main > .cover { min-height: 86svh; padding-bottom: 76px; }
  .cover__title span { padding-left: .35em; }
  .cover__lead { font-size: 12px; letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) { .cover__img, .cover__scroll svg { animation: none; transform: none; } }

/* case studies: the Poppins-style opening, a brief beside what we built */
.cbrief { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); width: min(1100px, 100%); margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid rgba(255, 255, 255, .16); text-align: left; }
.cbrief__k { margin-bottom: 1rem; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.cbrief__p { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .88); }
.cbrief__list { margin: 0; padding: 0; list-style: none; }
.cbrief__list li { padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: var(--step-body); color: #fff; }
.cbrief__list li:first-child { padding-top: 0; }
.cbrief + .hero__cta { margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 799px) { .cbrief { grid-template-columns: 1fr; } }

/* Case studies cover: two slow filmstrips of the work itself, every frame a real product in someone's hands */
.cover--strip { overflow: hidden; background: #07080D; }
.cover__strip { --g: clamp(6px, .6vw, 10px); position: absolute; inset: 0; z-index: -2; display: flex; flex-direction: column; gap: var(--g); overflow: hidden; }
.cover__track { display: flex; flex: 1 1 0; min-height: 0; width: max-content; animation: coverDrift 140s linear infinite; will-change: transform; }
.cover__track--b { animation-name: coverDriftBack; animation-duration: 160s; }
.cover__track img { flex: none; height: 100%; width: auto; aspect-ratio: 3 / 4; margin-right: var(--g); object-fit: cover; filter: saturate(.92) brightness(.82); opacity: 0; animation: coverFrame 1.4s cubic-bezier(.2, .7, .2, 1) forwards; }
.cover__track img:nth-child(2) { animation-delay: .08s; } .cover__track img:nth-child(3) { animation-delay: .16s; } .cover__track img:nth-child(4) { animation-delay: .24s; } .cover__track img:nth-child(5) { animation-delay: .32s; } .cover__track img:nth-child(6) { animation-delay: .4s; }
.cover--strip::before { background: linear-gradient(to top, rgba(6, 7, 12, .92) 0%, rgba(6, 7, 12, .6) 36%, rgba(6, 7, 12, .18) 68%, rgba(6, 7, 12, .3) 100%), linear-gradient(to right, rgba(6, 7, 12, .6) 0%, rgba(6, 7, 12, 0) 62%); }
@keyframes coverDrift { to { transform: translateX(-50%); } }
@keyframes coverDriftBack { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes coverFrame { to { opacity: 1; } }
@media (max-width: 599px) { .cover__track { animation-duration: 90s; } .cover__track--b { animation-duration: 105s; } }
@media (prefers-reduced-motion: reduce) { .cover__track, .cover__track--b { animation: none; } .cover__track img { animation: none; opacity: 1; } }
