/* instrmnt.co v2 page layout. Colors, type and components come from tokens.css + components.css (the design system). */
/* Layout: content on the void; sticky work index + two parallax columns. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: var(--stroke-rule) solid var(--focus); outline-offset: 2px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); } }
.section { position: relative; padding-block: 96px; }
@media (min-width: 900px) { .section { padding-block: 144px; } }
.head { display: grid; gap: var(--space-16); margin-bottom: var(--space-48); max-width: 980px; }
.h-section { font-size: clamp(40px, 6vw, 72px); line-height: .95; font-weight: 700; letter-spacing: -.035em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--canvas); padding: 8px 12px; }
.in-slash { color: var(--signal-ink); }

main, .site-footer { position: relative; z-index: 1; }

/* ---------- Nav: floating pill with odometer links + contained ticker ---------- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; pointer-events: none; display: flex; justify-content: center; padding: calc(env(safe-area-inset-top, 0px) + 12px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); }
.navpill { pointer-events: auto; padding: 6px; border-radius: 10px; background: var(--charcoal); box-shadow: 0 0 0 1px rgba(252, 252, 252, .08); max-width: 100%; }
.navpill__card { display: grid; gap: 4px; padding: 4px; border-radius: 6px; background: var(--void); box-shadow: inset 0 0 0 1px rgba(252, 252, 252, .1); overflow: hidden; }
.navpill__row { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.navpill__logo a { display: flex; align-items: center; height: 30px; padding: 0 12px 0 8px; }
.navpill__logo img { height: 18px; width: auto; }
.navpill__cta { margin-left: auto; }
.odo { position: relative; display: flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 4px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink-muted); white-space: nowrap; transition: color .3s ease-out, background-color .3s ease-out; --odo: 0; }
.odo:hover, .odo:focus-visible { color: var(--ink); }
.odo[aria-current="true"] { color: var(--ink); background: rgba(252, 252, 252, .08); box-shadow: inset 0 0 0 1px rgba(252, 252, 252, .14); }
@media (prefers-reduced-motion: no-preference) { .odo:hover, .odo:focus-visible { --odo: 1; } }
.navpill__cta .odo { padding-right: 18px; }
.odo__word { display: flex; align-items: center; height: 1em; line-height: 1em; }
.odo__sp { display: inline-block; width: .6em; height: 1em; }
.odo__cell { position: relative; display: inline-block; overflow: hidden; height: 1em; line-height: 1em; }
.odo__cell > .odo__sz { visibility: hidden; }
.odo__strip { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; transform: translateY(calc(var(--odo) * -5em)); transition: transform 520ms cubic-bezier(.23, 1, .32, 1); transition-delay: calc(var(--odo) * var(--d, 0ms)); }
.odo__strip > span { display: block; height: 1em; line-height: 1em; text-align: center; }
.odo__strip > span::before, .odr__strip > span::before { content: attr(data-g); }
.ping { position: absolute; top: 4px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--signal); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.nticker { width: 0; min-width: 100%; display: flex; height: 18px; overflow: hidden; border-radius: 2px; background: var(--ash); color: var(--void); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 18px; }
.nticker__track { display: flex; flex: 0 0 auto; align-items: center; white-space: nowrap; will-change: transform; }
.nticker__track span { padding: 0 1em; }
.nticker__track i { font-style: normal; color: var(--signal-ink); }
.navpill__menu { display: none; }
.navpill__toggle { border: 0; background: none; cursor: pointer; padding-right: 26px; }
.navpill__toggle::after { content: ""; position: absolute; right: 10px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .3s cubic-bezier(.23, 1, .32, 1); }
.navpill.is-open .navpill__toggle { color: var(--ink); }
.navpill.is-open .navpill__toggle::after { transform: rotate(45deg); }
@media (max-width: 760px) {
  .navpill { width: 100%; }
  .navpill__row { flex-wrap: wrap; }
  .navpill__menu { display: block; margin-left: auto; }
  .navpill__cta { margin-left: 0; }
  .navpill__link { order: 10; flex: 0 0 100%; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height .4s cubic-bezier(.23, 1, .32, 1), opacity .25s ease-out, visibility 0s linear .4s; }
  .navpill.is-open .navpill__link { max-height: 52px; opacity: 1; visibility: visible; transition: max-height .4s cubic-bezier(.23, 1, .32, 1), opacity .3s ease-out .05s, visibility 0s; }
  .navpill__link .odo { height: 48px; font-size: 15px; letter-spacing: .1em; padding: 0 12px; border-radius: 0; box-shadow: inset 0 1px 0 rgba(252, 252, 252, .08); }
  .navpill__link .odo[aria-current="true"] { background: rgba(252, 252, 252, .06); box-shadow: inset 0 1px 0 rgba(252, 252, 252, .08), inset 2px 0 0 var(--signal); }
}
@media (prefers-reduced-motion: reduce) { .ping::after { animation: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; min-height: max(600px, 90svh); display: grid; grid-template-rows: 1fr auto; padding-block: 110px 40px; }
.hero__title { font-family: var(--font-sans); font-weight: 800; letter-spacing: -.045em; line-height: .86; color: var(--ink); font-size: clamp(64px, 12.5vw, 196px); display: grid; }
.hero__title .l1 { justify-self: start; }
.hero__title .l2 { justify-self: center; }
.hero__title .l3 { justify-self: end; }
@media (max-width: 700px) { .hero__title .l2, .hero__title .l3 { justify-self: start; } }
.hero__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-24); margin-top: var(--space-48); }
.hero__foot .in-lede { max-width: 30em; font-size: 17px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-16) var(--space-32); align-items: center; margin-top: var(--space-24); }
.scroll-cue { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); transition: opacity .3s ease-out; }
.is-scrolled-past .scroll-cue { opacity: 0; }
@media (min-width: 1000px) { .intro { grid-template-columns: 1fr; } .intro__copy { max-width: 1100px; } }
/* letter rise (only when JS split the title) */
.split .ch { display: inline-block; transform: translateY(0); transition: transform .7s cubic-bezier(.2,.7,.1,1), opacity .5s ease-out; transition-delay: calc(var(--i) * 28ms); }
.split.is-waiting .ch { transform: translateY(.55em); opacity: 0; }

/* ---------- Intro / track record ---------- */
.intro { display: grid; gap: var(--space-48); align-items: center; }
@media (min-width: 1000px) { .intro { grid-template-columns: 6fr 5fr; gap: 96px; } }
.intro__copy { display: grid; gap: var(--space-24); }
.intro__copy p.big { font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
.intro .in-console { background: rgba(23, 22, 23, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.intro .in-console__grid .in-readout__figure { font-size: clamp(40px, 4.4vw, 56px); }

/* ---------- Grids ---------- */
.grid-3 { display: grid; gap: var(--space-24); }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-5 { display: grid; gap: var(--space-32) var(--space-24); }
@media (min-width: 640px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } }
.grid-3 > *, .grid-5 > * { min-width: 0; }
.in-card { background: rgba(23, 22, 23, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.in-card--bare { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-top-color: var(--line-strong); }

/* ---------- Fit (light page-turn) ---------- */
.fit { display: grid; gap: var(--space-48); }
@media (min-width: 1000px) { .fit { grid-template-columns: 5fr 7fr; gap: 96px; } }
.fit__intro { display: grid; gap: var(--space-24); align-content: start; }
.fit__intro .in-hero { font-size: clamp(48px, 6.5vw, 88px); }
.fit__intro p { color: var(--ink-muted); font-size: 19px; line-height: 1.55; max-width: 30em; }
@media (max-width: 560px) { .in-fit li { grid-template-columns: 1fr; gap: var(--space-8); } }

/* ---------- Work: sticky index + two parallax columns ---------- */
.work { display: grid; gap: var(--space-48); }
@media (min-width: 1000px) { .work { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; } }
.work__index { display: grid; gap: var(--space-24); align-content: start; }
@media (min-width: 1000px) { .work__index { position: sticky; top: 112px; } }
.work__count { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--ink-subtle); vertical-align: super; margin-left: 6px; }
.work__list { list-style: none; padding: 0; margin: 0; border-top: var(--stroke-hairline) solid var(--line); }
.work__list a { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--space-16); align-items: baseline; padding: var(--space-16) 0; border-bottom: var(--stroke-hairline) solid var(--line); text-decoration: none; font-size: 21px; font-weight: 600; letter-spacing: -.015em; transition: padding-left .2s ease-out; }
.work__list a:hover { padding-left: 6px; }
.work__list .in-index { align-self: center; }
.work__list .arr { color: var(--ink-subtle); font-size: 16px; }
.work__cols { display: grid; gap: var(--space-16); }
@media (min-width: 640px) { .work__cols { grid-template-columns: 1fr 1fr; align-items: start; } .work__col--b { margin-top: 160px; } }
.work__col { display: grid; gap: var(--space-16); will-change: transform; }

.wcard { position: relative; display: block; overflow: hidden; background: var(--surface); text-decoration: none; color: var(--ink); isolation: isolate; }
.wcard__media { position: relative; width: 100%; aspect-ratio: var(--ar, 4 / 5); overflow: hidden; }
.wcard__media img, .wcard__media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.1,1); }
.wcard:hover .wcard__media img, .wcard:hover .wcard__media video { transform: scale(1.03); }
.wcard__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: var(--space-16); padding: var(--space-16); background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.wcard__cap .in-label { color: #fcfcfc; }
.wcard__plus { font-family: var(--font-sans); font-size: 24px; line-height: 1; color: #fcfcfc; transition: transform .24s ease-out; }
.wcard:hover .wcard__plus { transform: rotate(90deg); }
/* placeholder: instrument graph paper */
.wcard--pending .wcard__media { background-color: var(--surface); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; display: grid; place-items: center; }
.wcard--pending .pending { display: grid; gap: var(--space-8); justify-items: center; text-align: center; padding: var(--space-24); background: var(--surface); }
.wcard--pending .pending img { width: 88px; height: 88px; object-fit: contain; }
.wcard--pending .brandword { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.work__also { margin-top: var(--space-32); color: var(--ink-subtle); }

/* ---------- Case files ---------- */
.case { display: grid; gap: var(--space-48); padding-block: var(--space-48); }
.case + .case { border-top: var(--stroke-hairline) solid var(--line); }
@media (min-width: 1000px) { .case { grid-template-columns: 5fr 7fr; gap: 80px; } }
.case__copy { display: grid; gap: var(--space-24); align-content: start; min-width: 0; }
.case__mark { width: 72px; height: 72px; object-fit: contain; }
.case__mark--key { width: auto; }
.case .in-case__name { font-size: clamp(56px, 7vw, 96px); margin: 0; }
.case__story { color: var(--ink-muted); font-size: 19px; line-height: 1.55; max-width: 32em; }
.case .in-case__metrics { min-width: 0; background: rgba(8, 8, 8, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.case .in-readout__figure { font-size: clamp(44px, 5vw, 64px); }
@media (max-width: 560px) { .case .in-case__metrics { grid-template-columns: 1fr; } .case .in-case__metrics > *:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ---------- Team ---------- */
.team { display: grid; gap: var(--space-48) var(--space-24); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team .in-team { width: auto; }
.team .in-team__photo { width: 100%; height: auto; }
.team p { color: var(--ink-muted); font-size: 15px; line-height: 1.5; }

/* ---------- Approach ---------- */
.phases { display: grid; gap: var(--space-32); list-style: none; padding: 0; }
@media (min-width: 900px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phase { display: grid; gap: var(--space-16); align-content: start; padding-top: var(--space-24); border-top: var(--stroke-gauge) solid var(--ink); }
.phase:nth-child(2) { border-top-color: var(--ink-subtle); }
.phase:nth-child(3) { border-top-color: var(--iron); }
.phase h3 { font-size: 32px; line-height: 1.05; font-weight: 700; letter-spacing: -.025em; }
.phase p { color: var(--ink-muted); font-size: 17px; line-height: 1.55; }

/* ---------- Close ---------- */
.close { display: grid; gap: var(--space-48); min-height: 90svh; align-content: center; }
.close blockquote { display: grid; gap: var(--space-16); max-width: 1100px; }
.close blockquote p { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.close cite { font-style: normal; }
.close__cta { display: grid; gap: var(--space-24); padding-top: var(--space-48); border-top: var(--stroke-hairline) solid var(--line); }
.close__cta .in-hero { font-size: clamp(48px, 8vw, 120px); }
.close__row { display: flex; flex-wrap: wrap; gap: var(--space-16) var(--space-32); align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); }
.site-footer .in-footer { padding-left: 0; padding-right: 0; background: transparent; }
@media (max-width: 760px) { .in-footer__cols { grid-template-columns: 1fr 1fr; } .in-footer__cols > :first-child { grid-column: 1 / -1; } .in-footer__base { flex-direction: column; gap: var(--space-8); } }
.footer-wire { width: 100%; max-width: 720px; height: auto; opacity: .9; }

/* ---------- Hero: the i draws in, the dot drops, the counter calibrates ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__mark { display: grid; justify-items: center; align-content: center; gap: var(--space-32); }
.hero__i { width: auto; height: clamp(180px, 46svh, 520px); overflow: visible; }
.hero__i .stem { fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; }
.hero__i .dot { fill: var(--signal); transform-box: fill-box; transform-origin: 100% 100%; }
.hero__count { display: flex; gap: var(--space-16); align-items: baseline; margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); min-height: 1.4em; }
.hero__count b { font-weight: 500; color: var(--ink); min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; transition: opacity .3s ease-out; }
.hero__count.is-done b { opacity: 0; width: 0; min-width: 0; overflow: hidden; }
.js .hero.is-loading .stem { fill: transparent; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ld-draw .9s cubic-bezier(.6,0,.2,1) .15s forwards, ld-fill .3s ease-out .95s forwards; }
.js .hero.is-loading .dot { transform: translate(-40px, -90px) rotate(-25deg) scale(.2); opacity: 0; animation: ld-drop .55s cubic-bezier(.3,1.6,.5,1) 1s forwards; }
.js .hero.is-loading .hero__foot, .js.is-loading-page .site-nav { opacity: 0; }
.hero__foot, .site-nav { transition: opacity .5s ease-out; }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-fill { to { fill: var(--ink); } }
@keyframes ld-drop { to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .split .ch { transition: none; }
  .split.is-waiting .ch { transform: none; opacity: 1; }
  .work__col { transform: none !important; }
}

/* ---------- Track record: scroll-printed receipt ---------- */
.rc-sec { --row: 22.4px; position: relative; }
.rc-sec.theme-light, #fit.theme-light { --canvas: #eeebe4; }
.rc-sec .receipt { background: var(--bone); box-shadow: 0 1px 0 rgba(8, 8, 8, .06), 0 12px 32px -12px rgba(8, 8, 8, .18); }
.rc-stage { padding-block: 96px; }
.rc { display: grid; gap: var(--space-48); }
.rc__left { display: grid; gap: var(--space-24); align-content: start; min-width: 0; }
.rc__body { color: var(--ink-muted); font-size: 19px; line-height: 1.55; max-width: 28em; }
.rc__count { display: grid; gap: var(--space-16); justify-items: start; margin-top: var(--space-16); }
.rc__num { display: flex; align-items: baseline; font-family: var(--font-sans); font-weight: 800; letter-spacing: -.04em; font-size: clamp(72px, 11vw, 168px); line-height: 1; font-variant-numeric: tabular-nums; }
.rc__affix { line-height: 1; }
.odr { position: relative; display: inline-block; overflow: hidden; height: 1em; line-height: 1em; transition: opacity .3s ease-out; }
.odr.is-lead { opacity: .22; }
.odr__w { visibility: hidden; display: block; }
.odr__strip { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; transform: translateY(calc(var(--k, 0) * -1em)); transition: transform .5s cubic-bezier(.23, 1, .32, 1); }
.odr__strip > span { display: block; height: 1em; line-height: 1em; text-align: center; }
.rc__badge { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--signal); color: var(--on-signal); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.rc__badge:empty { display: none; }

.rc__right { position: relative; min-width: 0; }
.rc__pin { position: relative; }
.receipt { --q: 1; position: relative; width: 100%; max-width: 56ch; width: round(down, 100%, 1ch); background: var(--linen); color: var(--void); font-family: var(--font-mono); font-size: calc(var(--row) / 1.6); line-height: var(--row); text-transform: uppercase; letter-spacing: 0; padding-block: 0 calc(var(--row) * .5); clip-path: inset(0 0 calc((1 - var(--q)) * 100%) 0); }
.rl { display: flex; align-items: flex-end; gap: 1ch; height: var(--row); padding: 0 2ch; white-space: nowrap; margin: 0; transition: background-color .15s linear, color .15s linear; }
.rl > .t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rl > .v { flex: none; font-weight: 600; }
.rl .fill { flex: 1; min-width: 2ch; overflow: hidden; white-space: nowrap; opacity: .35; }
.rl .fill::before { content: attr(data-fill); }
.rl--rule, .rl--blank, .rl--title { padding: 0; gap: 0; }
.rl--rule .fill { opacity: .5; }
.rl--blank .sp, .rl--title .sp { flex: 1; }
.rl--title .t { font-weight: 700; padding: 0 1ch; }
.rl--group { font-weight: 700; }
.rl--punch .v { color: var(--signal-ink); }
.rl.is-cur { background: var(--signal); color: var(--on-signal); }
.rl.is-cur .fill { opacity: .5; }
.printhead { position: absolute; left: -1ch; right: -1ch; height: 2px; background: var(--graphite); top: calc(var(--q, 1) * 100%); opacity: clamp(0, calc((1 - var(--q, 1)) * 20), 1); pointer-events: none; font-family: var(--font-mono); font-size: calc(var(--row) / 1.6); max-width: calc(56ch + 2ch); }
.printhead span { position: absolute; top: -8px; height: 8px; width: 3ch; background: var(--graphite); left: calc(1ch + var(--tri, 1) * (100% - 5ch)); }

/* Phones and short screens: the counter rides along under the nav while the receipt prints */
@media not all and (min-width: 1000px) and (min-height: 600px) {
  .rc { gap: var(--space-24); }
  .rc__left { display: contents; }
  .rc__count { position: sticky; top: 84px; z-index: 2; padding-block: 8px 12px; margin-top: 0; background: var(--canvas); box-shadow: 0 1px 0 var(--line); width: 100%; }
  .rc__num { font-size: clamp(56px, 16vw, 96px); }
}

/* Desktop: a pinned stage. The page holds still while the receipt prints, then moves on. */
@media (min-width: 1000px) and (min-height: 600px) {
  .rc-sec { height: calc(100svh + var(--scroll, 2400px)); }
  .rc-stage { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding-block: 92px 24px; overflow: hidden; }
  .rc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(64px, 7vw, 120px); align-items: end; }
  .rc__count { margin-top: clamp(24px, 6svh, 72px); }
  .rc__h { font-size: clamp(32px, min(7svh, 3.6vw), 68px); white-space: nowrap; }
  .rc__body { font-size: clamp(15px, 2.1svh, 19px); }
  .rc__num { font-size: clamp(56px, min(15svh, 7.4vw), 156px); }
  .rc__left { gap: clamp(12px, 2.4svh, 24px); }
  .receipt { transform: translateY(calc((1 - var(--q)) * 100%)); }
  .printhead { top: 100%; left: auto; width: calc(min(round(down, 100%, 1ch), 56ch) + 2ch); }
  .rc__pin .receipt { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-sec { height: auto !important; }
  .rc-stage { position: static; height: auto; }
  .receipt { --q: 1 !important; transform: none !important; clip-path: none; }
  .printhead { display: none; }
}
.hero__foot .scroll-cue { margin-left: auto; }

/* Hero → record seam: calibration gauge, then a bare red line into the receipt card */
.gauge { position: absolute; left: 50%; top: var(--g-top, 70%); bottom: calc(var(--g-ext, 120px) * -1); width: 1px; pointer-events: none; --gy: 0px; transition: opacity .5s ease-out; }
.gauge::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: var(--g-ext, 120px); background: rgba(252, 252, 252, .14); }
.gauge::after { content: ""; position: absolute; top: 0; bottom: var(--g-ext, 120px); left: 4px; width: 12px;
  background:
    repeating-linear-gradient(to bottom, rgba(252, 252, 252, .32) 0 1px, transparent 1px 40px) 0 0 / 12px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(252, 252, 252, .16) 0 1px, transparent 1px 8px) 0 0 / 6px 100% no-repeat; }
.gauge__fill { position: absolute; left: 0; top: 0; width: 1px; height: var(--gy); background: var(--signal); }
.gauge__dot { position: absolute; left: 0; top: 0; width: 11px; height: 11px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--signal); transform: translateY(var(--gy)); box-shadow: 0 0 0 4px rgba(254, 30, 52, .14); }
.gauge__read { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .18em; color: var(--ink-muted); font-variant-numeric: tabular-nums; transition: opacity .25s ease-out; }
.gauge.is-out .gauge__read { opacity: 0; }
.gauge.is-idle .gauge__dot { animation: g-idle 2.4s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes g-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
.js .hero.is-loading .gauge { opacity: 0; }
.hero__count { opacity: 0; transition: opacity .5s ease-out; }
.js .hero.is-loading .hero__count { opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) { .gauge { --gy: var(--g-len, 160px); } .gauge.is-idle .gauge__dot { animation: none; } }

/* Capabilities: sticky stacking cards (each new card slides over the last, leaving its title strip) */
.stack { --off: 96px; --strip: 84px; --h: clamp(420px, calc(100svh - var(--off) - (var(--count) - 1) * var(--strip) - 24px), 640px); list-style: none; margin: 0; padding: 0; }
.stack::after { content: ""; display: block; height: calc(var(--strip) * (var(--count) - 1)); }
.svc { --bg: var(--charcoal); --fg: var(--bone); --muted: var(--pebble); --slash: var(--signal); --rule: rgba(252, 252, 252, .14);
  position: sticky; top: calc(var(--off) + var(--i) * var(--strip)); height: var(--h); display: flex; flex-direction: column; padding: 0 28px 28px;
  background: var(--bg); color: var(--fg); border-radius: 12px; overflow: hidden; box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .55); }
/* Bottom margins make every card release from the stack at the same moment (no card sliding over the strips). The next card's negative top margin cancels the extra space in flow. */
.svc { margin-bottom: calc((var(--count) - 1 - var(--i)) * var(--strip)); }
.svc + .svc { margin-top: calc(24px - (var(--count) - var(--i)) * var(--strip)); }
.svc--bone { --bg: #eeebe4; --fg: var(--void); --muted: #4a4848; --slash: var(--signal-ink); --rule: rgba(8, 8, 8, .14); }
.svc--white { --bg: var(--bone); --fg: var(--void); --muted: #4a4848; --slash: var(--signal-ink); --rule: rgba(8, 8, 8, .14); }
.svc--signal { --bg: var(--signal); --fg: var(--void); --muted: rgba(8, 8, 8, .72); --slash: var(--void); --rule: rgba(8, 8, 8, .2); }
.svc--void { --bg: var(--void); box-shadow: inset 0 0 0 1px rgba(252, 252, 252, .14), 0 -18px 40px -24px rgba(0, 0, 0, .55); }
.svc__strip { flex: none; height: var(--strip); display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--rule); }
.svc__strip .in-index { color: var(--muted); }
.svc__strip .in-slash { color: var(--slash); }
.svc__title { margin: 0; font-family: var(--font-sans); font-weight: 800; font-size: clamp(28px, 2.8vw, 44px); line-height: 1; letter-spacing: -.035em; color: var(--fg); }
.svc__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 96px); padding-top: 28px; }
.svc__texts { align-self: stretch; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.svc__desc { margin: 0; max-width: 20em; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.3; letter-spacing: -.01em; color: var(--fg); }
.svc__list { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 10px 48px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svc__media { margin: 0; height: 100%; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: rgba(128, 128, 128, .14); }
.svc__media img, .svc__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc__pending { height: 100%; display: grid; place-items: center; color: var(--muted);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
@media (max-width: 1099px) {
  .svc__list { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media (max-width: 759px) {
  .stack { --off: 84px; --strip: 60px; }
  .svc { height: auto; padding: 0 18px 20px; }
  .svc__title { font-size: 24px; }
  .svc__strip { gap: 16px; }
  .svc__body { grid-template-columns: 1fr; gap: 20px; padding-top: 18px; }
  .svc__media { order: -1; height: auto; width: 100%; }
}
@media (max-height: 640px) and (min-width: 760px) { .svc { position: relative; top: auto; } .stack::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .svc { position: relative; top: auto; } .stack::after { display: none; } }

/* ---------- Principles: stacked sections, floating cards, gauge outline ---------- */
.principles { position: relative; padding-top: 96px; }
@media (min-width: 900px) { .principles { padding-top: 144px; } }
.principles__head .head { margin-bottom: 56px; }
.pr { --h: 74svh; position: relative; z-index: calc(var(--i) + 1); height: var(--h); min-height: 580px; margin-top: -40px; }
.pr:first-child { margin-top: 0; }
.pr__bg { position: absolute; inset: 0; overflow: hidden; border-radius: 40px 40px 0 0; background: var(--canvas);
  box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(252, 252, 252, .1); }
.pr--dark { --canvas: var(--charcoal); }
.pr--light { --canvas: #eeebe4; }
.pr--void { --canvas: var(--void); }
.pr--light .pr__bg { box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .55); }
.pr__bg-inner { position: absolute; inset: -8% 0; will-change: transform; transform: scale(1.15);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%); mask: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%); opacity: .7; }
.pr__text { position: relative; z-index: 10; display: grid; justify-items: center; gap: 14px; padding: 52px 24px 0; text-align: center; }
.pr__big { margin: 0; font-family: var(--font-sans); font-weight: 800; font-size: clamp(72px, 11vw, 200px); line-height: .84; letter-spacing: -.055em; color: var(--ink); will-change: transform; }
.pr__count { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--ink-muted); will-change: transform; }
.pr__card { position: absolute; z-index: 20; left: 50%; bottom: 4svh; width: min(860px, 64vw); transform: translateX(-50%); }
.pr__card-inner.in-card { position: relative; will-change: transform; gap: 20px; padding: 44px 48px 44px 76px; border-radius: 12px; border-color: var(--line-strong);
  background: rgba(8, 8, 8, .78); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.pr--void .pr__card-inner.in-card { background: rgba(23, 22, 23, .9); }
.pr--light .pr__card-inner.in-card { background: rgba(252, 252, 252, .9); border-color: rgba(8, 8, 8, .16); box-shadow: 0 30px 80px -34px rgba(8, 8, 8, .35); }
.pr__card .in-card__title { font-size: clamp(30px, 3.4vw, 56px); font-weight: 800; letter-spacing: -.03em; }
.pr__card .in-card__body { font-size: clamp(17px, 1.55vw, 24px); line-height: 1.45; max-width: 34em; }
/* gauge: ruled track down the card's left edge, red fill + dot + readout driven by scroll */
.pg { --gp: 0; position: absolute; left: 34px; top: 34px; bottom: 34px; width: 1px; background: var(--line-strong); }
.pg::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 12px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 1px, transparent 1px 40px) 0 0 / 12px 100% no-repeat,
              repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 8px) 0 0 / 6px 100% no-repeat; }
.pg__fill { position: absolute; left: -.5px; top: 0; width: 2px; height: calc(var(--gp) * 100%); background: var(--signal); }
.pg__dot { position: absolute; left: 0; top: calc(var(--gp) * 100%); width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(254, 30, 52, .14); }
@media (max-width: 759px) {
  .pr { --h: auto; height: auto; min-height: 100svh; padding-bottom: 72px; margin-top: -28px; }
  .pr__bg { border-radius: 28px 28px 0 0; }
  .pr__text { padding-top: 48px; }
  .pr__big { font-size: 19vw; }
  .pr__card { position: relative; left: auto; bottom: auto; width: auto; margin: 40px 16px 0; transform: none; }
  .pr__card-inner.in-card { padding: 28px 24px 28px 52px; }
  .pg { left: 22px; top: 22px; bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .pr__bg-inner, .pr__big, .pr__count, .pr__card-inner { transform: none !important; }
  .pg { --gp: 1 !important; }
}

/* Recap: all three principles side by side, pulls up over the last section */
.pr.pr-all { --canvas: var(--charcoal); height: auto; min-height: 0; }
.pr-all__in { position: relative; z-index: 10; display: grid; gap: 28px; padding-block: 72px 96px; }
.pr-all__row { display: grid; gap: 20px; }
@media (min-width: 900px) { .pr-all__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pr-all__card.in-card { position: relative; gap: 14px; padding: 32px 28px 32px 60px; border-color: var(--line-strong); background: rgba(8, 8, 8, .7); }
.pr-all__card .in-card__title { font-size: clamp(24px, 2vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.pr-all__card .pg { left: 26px; top: 26px; bottom: 26px; }
@media (max-width: 759px) { .pr.pr-all { min-height: 0; padding-bottom: 0; } .pr-all__in { padding-block: 48px 72px; } .pr-all__row { gap: 12px; } .pr-all__card.in-card { padding: 20px 20px 20px 52px; gap: 8px; } .pr-all__card .in-card__body { display: none; } .pr-all__card .pg { top: 16px; bottom: 16px; } }

/* ---------- Fit: rounded panel, sticky intro + sticky stacking cards ---------- */
.fitx { padding: clamp(24px, 4vw, 56px) clamp(8px, 1.5vw, 20px); }
.fitx__panel { --canvas: #eeebe4; background: var(--canvas); border-radius: 40px; padding-block: clamp(72px, 9vw, 128px); }
.fitx__grid { display: grid; gap: 48px; }
.fitx__intro { display: grid; gap: 24px; align-content: start; }
.fitx__intro .in-hero { font-size: clamp(48px, 6.5vw, 96px); }
.fitx__intro p { margin: 0; color: var(--ink-muted); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 26em; }
.fstack { --tab: 64px; --top: 112px; --gap: 28svh; list-style: none; margin: 0; padding: 0; }
.fc { position: relative; display: grid; align-content: start; gap: 18px; min-height: clamp(300px, 44svh, 420px);
  padding: 22px clamp(24px, 3vw, 40px) clamp(28px, 3vw, 40px); background: var(--bone); color: var(--ink);
  border: 1px solid rgba(8, 8, 8, .1); border-radius: 18px; box-shadow: 0 -14px 34px -22px rgba(8, 8, 8, .35); }
.fc + .fc { margin-top: 16px; }
.fc__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: calc(var(--tab) - 22px); padding-bottom: 14px; border-bottom: 1px solid rgba(8, 8, 8, .12); }
.fc__label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.fc__meta { display: inline-flex; align-items: center; gap: 14px; }
.fc__title { margin: 8px 0 0; font-family: var(--font-sans); font-weight: 800; font-size: clamp(30px, 3.2vw, 52px); line-height: 1; letter-spacing: -.035em; max-width: 14em; }
.fc__body { margin: 0; align-self: end; color: var(--ink-muted); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; max-width: 32em; }
/* mini gauge: horizontal track, red fill + dot */
.fg { --gp: 0; position: relative; width: 72px; height: 9px; }
.fg::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: rgba(8, 8, 8, .25); }
.fg::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: repeating-linear-gradient(to right, rgba(8, 8, 8, .3) 0 1px, transparent 1px 9px); }
.fg__fill { position: absolute; left: 0; top: 3.5px; height: 2px; width: calc(var(--gp) * 100%); background: var(--signal); }
.fg__dot { position: absolute; top: 4.5px; left: calc(var(--gp) * 100%); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(254, 30, 52, .16); }
@media (min-width: 900px) {
  .fitx__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 112px); align-items: start; }
  .fitx__intro { position: sticky; top: var(--sticky-top, 120px); }
  /* cards stick with stepped offsets so earlier cards stay visible as tabs.
     bottom margins make all cards release together; the next card's negative top margin cancels it in flow */
  .fc { position: sticky; top: calc(var(--top) + var(--i) * var(--tab)); margin-bottom: calc((var(--count) - 1 - var(--i)) * var(--tab) + var(--gap)); }
  .fc + .fc { margin-top: calc(0px - (var(--count) - var(--i)) * var(--tab)); }
  .fstack::after { content: ""; display: block; height: 30svh; }
}
@media (max-width: 899px) { .fc { min-height: 0; } .fc__body { margin-top: 4px; } }
@media (prefers-reduced-motion: reduce) { .fc { position: relative !important; top: auto !important; } .fg { --gp: 1 !important; } }
.principles__head .head { justify-items: center; text-align: center; max-width: none; }
.principles__title { font-size: clamp(56px, 9vw, 152px); line-height: .9; letter-spacing: -.05em; }
.work__soon > span { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--space-16); align-items: baseline; padding: var(--space-16) 0; border-bottom: var(--stroke-hairline) solid var(--line); font-size: 21px; font-weight: 600; letter-spacing: -.015em; color: var(--ink-subtle); }
.work__soon .in-index { align-self: center; }
.work__soon .arr { color: var(--ink-subtle); font-size: 16px; letter-spacing: .1em; }
.team__head { max-width: none; }
.team__quote { max-width: none; font-size: clamp(36px, 4.6vw, 72px); line-height: 1.02; }
.team__head cite { font-style: normal; }
.team .in-team { align-content: start; }
.team__li.in-btn { justify-self: start; margin-top: 4px; background: var(--signal); border-color: var(--signal); color: var(--void); font-weight: 600; }
.team__li.in-btn:hover { background: #ff3a4e; border-color: #ff3a4e; }
.team__li .in-arrow { font-size: 13px; }
/* Partners: light rounded panel */
.teamx { padding: clamp(24px, 4vw, 56px) clamp(8px, 1.5vw, 20px) 0; }
.teamx__panel { --canvas: #eeebe4; background: var(--canvas); border-radius: 40px; padding-block: clamp(64px, 8vw, 112px) clamp(48px, 5vw, 72px); }
.teamx .team p { color: var(--ink-muted); }
.teamx .team__head { margin-bottom: clamp(40px, 4vw, 56px); }
/* Close */
.close { min-height: 0; padding-block: clamp(96px, 12vw, 160px); }
.close__cta { gap: clamp(32px, 4vw, 48px); padding-top: 0; border-top: 0; }
.in-footer__cols { grid-template-columns: 2fr 1fr 1fr; }

/* ---------- Mobile: collapsible work grid + case files ---------- */
.mtoggle { display: none; }
@media (max-width: 759px) {
  .mtoggle { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; height: 52px; padding: 0 18px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: transparent; color: var(--ink); cursor: pointer;
    font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
  .mtoggle__ic { position: relative; width: 12px; height: 12px; flex: none; }
  .mtoggle__ic::before, .mtoggle__ic::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--signal); transition: transform .3s cubic-bezier(.23, 1, .32, 1); }
  .mtoggle__ic::after { transform: rotate(90deg); }
  .mtoggle[aria-expanded="true"] .mtoggle__ic::after { transform: rotate(0); }
  .work__cols.is-collapsed { max-height: var(--cap, 1800px); overflow: hidden; position: relative; }
  .work__cols.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to bottom, rgba(8, 8, 8, 0), var(--canvas)); pointer-events: none; }
  .work__more { margin-top: 20px; }
  .case__more { margin-top: 4px; }
  .team__li .in-arrow { display: none; }
}


/* Case files: collapsed by default on all screens */
.case .mtoggle.case__more { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 360px; height: 52px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; transition: border-color .2s ease-out; }
.case .mtoggle.case__more:hover { border-color: var(--ink-muted); }
.case__more .mtoggle__ic { position: relative; width: 12px; height: 12px; flex: none; }
.case__more .mtoggle__ic::before, .case__more .mtoggle__ic::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--signal); transition: transform .3s cubic-bezier(.23, 1, .32, 1); }
.case__more .mtoggle__ic::after { transform: rotate(90deg); }
.case__more[aria-expanded="true"] .mtoggle__ic::after { transform: rotate(0); }
.case:not(.is-open) .case__story, .case:not(.is-open) .in-case__metrics { display: none; }
@media (min-width: 1000px) { .case:not(.is-open) { grid-template-columns: 1fr; } }
@media (max-width: 759px) { .case .mtoggle.case__more { max-width: none; } }

/* ---------- Team: flip cards ---------- */
.flip { position: relative; aspect-ratio: 4 / 5; perspective: 1400px; cursor: pointer; outline: none; }
.flip:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.flip__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.flip__face { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip__front .in-team__photo { width: 100%; height: 100%; aspect-ratio: auto; }
.flip__back { transform: rotateY(180deg); display: grid; grid-template-rows: 2fr 1fr; background: var(--void); color: var(--bone); }
@media (hover: hover) { .flip:hover .flip__inner { transform: rotateY(180deg); } }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  background: rgba(8, 8, 8, .72); color: var(--bone); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.flip__hint-ic { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.flip__img { position: relative; overflow: hidden; }
.flip__home, .flip__team { position: absolute; inset: 0; }
.flip__home { clip-path: polygon(0 0, 100% 0, 0 100%); background: #262525 center / cover no-repeat;
  background-image: linear-gradient(rgba(252,252,252,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(252,252,252,.06) 1px, transparent 1px); background-size: 20px 20px; }
.flip__home[style*="url("] { background-size: cover; }
.flip__team { clip-path: polygon(100% 0, 100% 100%, 0 100%); background: linear-gradient(to bottom right, var(--t3) 0 53.5%, var(--t2) 53.5% 58%, var(--t1) 58%); }
.flip__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--bone) calc(50% - 1px) calc(50% + .5px), transparent calc(50% + .5px)); opacity: .9; pointer-events: none; }
.flip__ph { position: absolute; left: 14px; top: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(252,252,252,.55); }
.flip__team-name { position: absolute; right: 14px; bottom: 12px; max-width: 70%; text-align: right; font-family: var(--font-sans); font-weight: 800; font-size: clamp(16px, 1.6vw, 22px); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; color: #fff; }
.team .flip__fact { margin: 0; padding: 16px 18px; display: flex; align-items: center; font-size: clamp(13px, 1vw, 15px); line-height: 1.45; color: var(--pebble); border-top: 1px solid rgba(252,252,252,.12); }
.teamx .in-team { gap: 14px; }
.teamx .in-team__photo { filter: grayscale(1) contrast(1.1); }
@media (hover: hover) { .flip__hint-t::after { content: ""; } }
@media (hover: none) { .flip__hint-t { font-size: 0; } .flip__hint-t::before { content: "Tap to flip"; font-size: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .flip__inner { transition: none; }
}
@media (max-width: 640px) {

  .flip__team-name { right: 10px; bottom: 8px; font-size: 13px; }
  .flip__ph { left: 10px; top: 10px; font-size: 8px; }
  .flip__hint { right: 6px; bottom: 6px; height: 20px; padding: 0 7px; }
}
.flip__home--photo { background-color: #262525; background-repeat: no-repeat; }

/* Team back v2: photo fills the frame, team sits in a small corner pennant */
.flip__home { clip-path: none; }
.flip__team { clip-path: none; pointer-events: none;
  background: linear-gradient(to bottom right, transparent 0 77.6%, rgba(252,252,252,.9) 77.6% 77.9%, var(--t3) 77.9% 80.4%, var(--t2) 80.4% 82.6%, var(--t1) 82.6%); }
.flip__img::after { display: none; }
.flip__team-name { right: 10px; bottom: 9px; max-width: 34%; font-family: var(--font-mono); font-weight: 600; font-size: 9.5px; line-height: 1.25; letter-spacing: .12em; color: #fff; }
@media (max-width: 640px) { .flip__team-name { font-size: 7.5px; right: 7px; bottom: 6px; } }
/* Card ticker: personal blurbs, same look as the menu ticker */
.flip__back:has(.cticker) { grid-template-rows: minmax(0, 2fr) auto minmax(0, 1fr); }
.cticker { display: flex; height: 20px; overflow: hidden; background: var(--ash); color: var(--void); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 20px; }
.cticker__track { display: flex; flex: 0 0 auto; align-items: center; white-space: nowrap; animation: cticker 14s linear infinite; }
.cticker__track span { padding: 0 .9em; }
.cticker__track i { font-style: normal; color: var(--signal-ink); }
.flip:not(:hover):not(.is-flipped) .cticker__track { animation-play-state: paused; }
@keyframes cticker { to { transform: translateX(-100%); } }
.cticker + .flip__fact { border-top: 0; }
@media (prefers-reduced-motion: reduce) { .cticker__track { animation: none; } }
@media (max-width: 640px) { .cticker { height: 16px; line-height: 16px; font-size: 8px; } }
/* pennant sizing fix */
.flip__team { background: linear-gradient(to bottom right, transparent 0 72.5%, rgba(252,252,252,.9) 72.5% 72.8%, var(--t3) 72.8% 75.6%, var(--t2) 75.6% 78%, var(--t1) 78%); }
.flip__team-name { max-width: 44%; font-size: 9px; }
@media (max-width: 640px) {
  .flip__team-name { display: none; }
  .flip__back { grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); }
  .flip__back:has(.cticker) { grid-template-rows: minmax(0, 1.25fr) auto minmax(0, 1fr); }
  .team .flip__fact { font-size: 10.5px; line-height: 1.3; padding: 8px 10px; }
}
.flip__team { display: none; }
/* Fun fact as a quote */
.team .flip__fact { position: relative; align-items: flex-start; padding: 18px 20px 18px 44px; font-family: var(--font-sans); font-style: italic; font-weight: 500;
  font-size: clamp(14px, 1.15vw, 17px); line-height: 1.38; letter-spacing: -.005em; color: var(--bone); }
.team .flip__fact::before { content: "\201C"; position: absolute; left: 16px; top: 8px; font-family: var(--font-serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--signal); }
@media (max-width: 640px) {
  .team .flip__fact { padding: 9px 10px 9px 24px; font-size: 11px; line-height: 1.3; }
  .team .flip__fact::before { left: 8px; top: 5px; font-size: 24px; }
}
.teamx .team .flip__fact { color: #fcfcfc; }
/* quote mark as oversized background glyph */
.team .flip__fact { overflow: hidden; padding: 18px 20px; isolation: isolate; }
.team .flip__fact::before { left: -6px; top: -18px; z-index: -1; font-size: 190px; line-height: 1; color: var(--signal); opacity: .22; }
@media (max-width: 640px) {
  .team .flip__fact { padding: 9px 10px; }
  .team .flip__fact::before { left: -4px; top: -10px; font-size: 100px; }
}
.team .flip__fact::before { left: 6px; top: 8px; font-size: 150px; line-height: .8; opacity: .24; }
@media (max-width: 640px) { .team .flip__fact::before { left: 3px; top: 4px; font-size: 80px; } }
.team .flip__fact::before { left: -2px; top: 6px; font-size: 280px; line-height: .7; opacity: .26; }
@media (max-width: 640px) { .team .flip__fact::before { left: -1px; top: 3px; font-size: 150px; } }
.team .flip__fact::before { top: 40px; }
@media (max-width: 640px) { .team .flip__fact::before { top: 22px; } }
/* Card back v3: lower half blends into the page, ticker closes the photo */
.flip__back { background: transparent; }
.flip__img { background: var(--void); }
.cticker { border-bottom: 1.5px solid #080808; }
.teamx .team .flip__fact { background: #eeebe4; color: #080808; border-top: 1.5px solid #080808; padding: 16px 2px 0;
  font-size: clamp(15px, 1.3vw, 19px); line-height: 1.38; letter-spacing: .005em; }
.cticker + .flip__fact { border-top: 0 !important; }
.team .flip__fact::before { content: none; }
@media (max-width: 640px) { .teamx .team .flip__fact { padding: 8px 1px 0; font-size: 12px; line-height: 1.3; } }
/* Fun fact: mono, matches the PARTNER label */
.teamx .team .flip__fact { font-family: var(--font-mono); font-style: normal; font-weight: 400; font-size: clamp(12.5px, 1vw, 14px); line-height: 1.6; letter-spacing: .005em; color: #262525; padding-top: 14px; }
@media (max-width: 640px) { .teamx .team .flip__fact { font-size: 10.5px; line-height: 1.45; padding-top: 8px; } }

/* Hero v3: stem draws + fills, then the red bars streak in one by one */
.hero__i .bar { fill: var(--signal); transform-box: fill-box; transform-origin: 100% 50%; }
.hero__i .stem { stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.js .hero.is-loading .bar { transform: scaleX(0); opacity: 0; animation: ld-bar .38s cubic-bezier(.2, .9, .25, 1) forwards; animation-delay: calc(1s + var(--b) * .11s); }
@keyframes ld-bar { 0% { transform: scaleX(0); opacity: 0; } 60% { opacity: 1; } 100% { transform: scaleX(1); opacity: 1; } }

/* ---------- Label-printer tape (replaces the serif accent) ---------- */
@font-face { font-family: 'Share Tech Mono'; src: url('../fonts/ShareTechMono.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
:root { --font-label: 'Share Tech Mono', var(--font-mono); }
.in-conn {
  display: inline-block; font-family: var(--font-label); font-style: normal; font-weight: 400;
  font-size: .5em; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--bone); background: var(--void); padding: .16em .45em .1em; border-radius: 0;
  transform: rotate(-1.5deg) translateY(-.14em);
}
#fit-title .in-conn { font-size: .4em; }
.rc__badge { border-radius: 0; font-family: var(--font-label); font-weight: 400; font-size: 13px; letter-spacing: .1em; }
