/* Stepthrough website: the brand deck's look on the web. Ink and bone, one orange, Helvetica Neue (as the deck) and
   IBM Plex Mono (for Menlo). Outlined words echo the logo's outlined "through". */
:root {
  --ink: #0c0c0c;
  --bone: #f0ede6;
  --bone-2: #e2ded6;
  --orange: #ff5c00;
  --soft: #8c461a;
  --mid: #828282;
  --line-dark: #464646;
  --line-light: #c8c4bc;
  --white: #fff;
  --pad: clamp(20px, 5.7vw, 110px);
  --head: "Helvetica Neue", Helvetica, Arial, sans-serif;  /* the deck's face; static outlines, so outlined words draw clean */
  --mono: "IBM Plex Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { background: var(--bone); color: var(--ink); font-family: var(--head); font-size: 18px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { padding: 0 var(--pad); max-width: 1920px; margin: 0 auto; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.label { font-family: var(--mono); font-size: 14px; color: var(--orange); display: block; margin-bottom: 18px; }
h2 { font-size: clamp(36px, 5.2vw, 84px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 40px; }
h3 { font-weight: 700; letter-spacing: -0.01em; }
.outline { color: transparent; -webkit-text-stroke: 1.4px currentColor; letter-spacing: 0; }  /* no negative tracking: letters never cross */
.dark .outline, .hero .outline, .close .outline, .work-splash .outline, .from-head .outline { -webkit-text-stroke-color: var(--white); }
h2 .outline { -webkit-text-stroke-color: var(--ink); }
.dark h2 .outline, .work-splash h2 .outline { -webkit-text-stroke-color: var(--white); }
.lede { font-size: clamp(17px, 1.4vw, 22px); max-width: 640px; margin-bottom: 18px; color: inherit; opacity: 0.85; }
.section { padding: clamp(80px, 10vw, 150px) 0; }
.dark { background: var(--ink); color: var(--white); }

/* buttons + chips */
.btn { display: inline-block; background: var(--orange); color: var(--ink); text-decoration: none; font-weight: 700; padding: 15px 26px; border-radius: 999px; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: #ff7a30; }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-small { padding: 10px 18px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.chip { font-family: var(--mono); font-size: 13px; background: transparent; color: inherit; border: 1.4px solid currentColor; border-radius: 999px; padding: 9px 16px; cursor: pointer; opacity: 0.6; transition: all .2s; }
.chip:hover { opacity: 1; }
.chip.on { opacity: 1; background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 30px; padding: 18px var(--pad); transition: background .3s; }
.nav.solid { background: rgba(12, 12, 12, 0.92); backdrop-filter: blur(10px); }
.nav-mark img { width: 92px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--white); text-decoration: none; font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--orange); }
.nav-burger { display: none; background: none; border: 0; width: 34px; height: 24px; position: relative; cursor: pointer; }
.nav-burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--white); transition: .3s; }
.nav-burger span:first-child { top: 6px; } .nav-burger span:last-child { bottom: 6px; }

/* hero */
.hero { position: relative; height: 100vh; min-height: 640px; color: var(--white); overflow: hidden; }
/* hero slideshow: each moment slowly zooms in, then fades into the next (Behrad, 16 Nov) */
.hero-slides { position: absolute; inset: 0; background: var(--ink); }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 1s ease; will-change: transform, opacity; }
.hero-slide.on { opacity: 1; animation: kenburns 4.4s linear forwards; }
.hero-slide.off { opacity: 0; transform: scale(1.1); }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero-caption { position: absolute; right: var(--pad); bottom: 150px; display: flex; gap: 14px; opacity: .85; text-align: right; z-index: 2; }
.hero-caption #heroCount { color: var(--orange); }
.hero-caption #heroText { transition: opacity .5s; }
.hero-caption { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
@media (max-width: 700px) { .hero-caption { left: var(--pad); right: auto; bottom: auto; top: calc(150px + 22vw); text-align: left; gap: 10px; } }
@keyframes settle { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,12,.85) 0%, rgba(12,12,12,.15) 45%, rgba(12,12,12,.2) 65%, rgba(12,12,12,.9) 100%); }
.hero-top { position: absolute; top: 92px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; }
.hero-logo { position: absolute; top: 130px; left: var(--pad); width: min(64vw, 1200px); opacity: 0; animation: rise 1s .3s ease-out forwards; }
.hero-bottom { position: absolute; bottom: 56px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.hero-line { font-size: clamp(24px, 2.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; opacity: 0; animation: rise 1s .6s ease-out forwards; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* marquee */
.marquee { background: var(--bone); border-bottom: 1px solid var(--line-light); overflow: hidden; padding: 28px 0; }
.marquee-track { display: flex; gap: 70px; width: max-content; animation: scroll 55s linear infinite; animation-play-state: paused; align-items: center; padding-left: var(--pad); }
.marquee.go .marquee-track { animation-play-state: running; }
.marquee-track img { flex: none; opacity: 0.85; }  /* sizes set per logo in main.js; no pause on hover (Behrad, 16 Nov) */
@keyframes scroll { to { transform: translateX(-50%); } }

/* the move */
.move-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.move h2 { font-size: clamp(30px, 3.4vw, 60px); }
.one-line { white-space: nowrap; }  /* "Anyone can sell the fake." stays on one line (Danny) */
.move-steps { list-style: none; display: flex; gap: 26px; margin-top: 30px; font-family: var(--mono); font-size: 14px; }
.move-steps li { opacity: 0.35; transition: opacity .3s, color .3s; }
.move-steps li span { margin-right: 6px; }
.move-steps li.on { opacity: 1; }
.move-steps li[data-step="3"].on { color: var(--orange); }
.move-visual { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: end; }
.play { width: 100%; }
.play .court { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 2; }
.play .rim { fill: none; stroke: var(--white); stroke-width: 2.5; }
.play text { font-family: var(--head); font-weight: 800; font-size: 34px; }
.play .x { fill: rgba(255,255,255,.75); } .play .o { fill: var(--white); }
.play path.fake, .play path.bite, .play path.through { fill: none; stroke-linecap: round; }
.play .fake { stroke: rgba(255,255,255,.8); stroke-width: 3; stroke-dasharray: 6 7; }
.play .bite { stroke: rgba(255,255,255,.5); stroke-width: 3; }
.play .through { stroke: var(--orange); stroke-width: 6; }
.move-gif .move-anim, .move-gif video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 24px; display: block; background: #000; }
.move-gif figcaption { margin-top: 10px; opacity: .6; }

/* we come from it */
.from { background: var(--ink); color: var(--white); padding-bottom: 0; }
.from-strips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; height: 78vh; min-height: 560px; padding: 0 var(--pad); }
.strip { position: relative; overflow: hidden; border-radius: 24px; }  /* softer, rounded (Danny, 15 Nov) */
.strip img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); transition: transform .8s, filter .5s; }
.strip:hover img { transform: scale(1.05); filter: brightness(.85); }
.strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 40px 40px; background: linear-gradient(0deg, rgba(12,12,12,.95), transparent); display: flex; flex-direction: column; gap: 6px; }
.strip figcaption .mono { color: var(--orange); }
.strip strong { font-size: clamp(22px, 1.9vw, 34px); letter-spacing: -0.02em; white-space: nowrap; }  /* full names on one line (Danny) */
.strip em { font-style: normal; opacity: .85; }
.strip small { font-family: var(--mono); font-size: 12px; opacity: 0; transform: translateY(8px); transition: .4s; }
.strip:hover small { opacity: .7; transform: none; }
.from-foot { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-top: 60px; padding-bottom: 100px; flex-wrap: wrap; }
.from-brands { display: flex; gap: 16px; align-items: center; max-width: 720px; }
.from-brands img { width: 92px; height: 92px; }
.from-brands p { opacity: .85; }
.stats { display: flex; gap: 50px; }
/* odometer: each digit is a reel that spins and stops on the real figure; the width never changes */
.odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.odo-reel { display: flex; flex-direction: column; transition: transform 2.2s cubic-bezier(.15, .75, .1, 1); }
.odo-reel span { height: 1em; line-height: 1; }
.stat b { line-height: 1; display: block; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: clamp(34px, 4vw, 64px); letter-spacing: -0.03em; border-top: 2px solid var(--orange); padding-top: 10px; }
.stat:nth-child(n+2) b { border-top-color: var(--line-dark); }
.stat .mono { opacity: .6; }

/* core motion */
.motion { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.motion-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; margin-bottom: 18px; transition: transform .5s; }
.motion-card:hover img { transform: translateY(-6px); }
.motion-card .mono { color: var(--orange); }
.motion-card h3 { font-size: 26px; margin: 4px 0 6px; }
.motion-card p { opacity: .75; font-size: 16px; }

/* every sport */
.sport-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.sport-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sport-tiles figure { transition: opacity .35s, transform .35s; }
.sport-tiles figure.dim { opacity: .15; transform: scale(.97); }
.sport-tiles img, .text-tile div { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.text-tile div { background: var(--ink); color: var(--white); display: flex; align-items: center; padding: 24px; }
.text-tile b { font-size: 24px; line-height: 1.1; }
.sport-tiles figcaption { font-size: 15px; margin-top: 10px; }
.sport-tiles figcaption .mono { display: block; color: var(--orange); margin-bottom: 3px; }

/* map */
.map { position: relative; }
.map-readout { color: var(--orange); min-height: 1em; margin-top: 14px; }
.map-card { position: absolute; z-index: 5; width: 260px; background: var(--bone); color: var(--ink); border-radius: 16px; overflow: hidden; pointer-events: none; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.map-card img[hidden] { display: none; }
.map-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.map-card .mono { display: block; color: var(--orange); padding: 12px 16px 2px; }
.map-card p { font-size: 15px; padding: 0 16px 14px; }
.map-dot { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; pointer-events: none; animation: pulse 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.5); } }
.map svg { width: 100%; height: auto; }
.map path { fill: #303034; stroke: var(--ink); stroke-width: .4; transition: fill .3s, opacity .3s; }
.map path.been { fill: var(--orange); }
.map path.network { fill: var(--soft); }
.map path:hover { opacity: .75; cursor: crosshair; }
.map-legend { display: flex; gap: 30px; margin-top: 20px; opacity: .8; flex-wrap: wrap; }
.k { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; }
.k.been { background: var(--orange); } .k.network { background: var(--soft); }

/* truths */
.truths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.truth img { width: 100%; aspect-ratio: 16/11; object-fit: cover; margin-bottom: 20px; }
.truth .mono { color: var(--orange); }
.truth h3 { font-size: 28px; line-height: 1.1; margin: 6px 0 12px; }
.truth p { opacity: .8; }

/* who we help */
.help { position: relative; background: var(--ink); color: var(--white); }
.help-head { position: absolute; top: clamp(60px, 7vw, 110px); left: 0; right: 0; z-index: 2; }
.help-panels { display: grid; grid-template-columns: repeat(3, 1fr); height: 92vh; min-height: 620px; }
.panel { position: relative; overflow: hidden; border-right: 2px solid var(--ink); }
.panel img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); transition: filter .5s, transform .8s; }
.panel:hover img { filter: brightness(.7); transform: scale(1.04); }
.panel div { position: absolute; bottom: 60px; left: 40px; right: 40px; }
.panel h3 { font-size: clamp(28px, 2.6vw, 44px); line-height: 1.05; margin-bottom: 12px; }
.panel p { opacity: .85; }

/* work */
.work-splash { position: relative; height: 80vh; min-height: 520px; display: flex; align-items: flex-end; margin-top: calc(-1 * clamp(80px, 10vw, 150px)); margin-bottom: 60px; }
.work-splash img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: brightness(.55); }
.work-splash .wrap { position: relative; width: 100%; padding-bottom: 40px; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case { position: relative; cursor: pointer; text-align: left; background: none; border: 0; color: inherit; font: inherit; }
.case .ph { position: relative; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 16px; }
.case img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; }
.case:hover img { transform: scale(1.05); filter: brightness(.6); }
.case .big { position: absolute; left: 20px; bottom: 16px; font-size: 52px; font-weight: 800; letter-spacing: -0.03em; color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.case .big small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; opacity: .9; }
.case .cl { font-family: var(--mono); font-size: 13px; color: var(--orange); }
.case h3 { font-size: 26px; margin: 4px 0 6px; }
.case p { opacity: .7; font-size: 15px; }
.case .more { font-family: var(--mono); font-size: 13px; margin-top: 8px; display: inline-block; opacity: .6; }
.case:hover .more { opacity: 1; color: var(--orange); }
.case.hide { display: none; }

/* how we work */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: end; margin-bottom: 90px; }
.ladder article { background: var(--bone-2); padding: 34px; }
.ladder article:nth-child(1) { min-height: 260px; } .ladder article:nth-child(2) { min-height: 330px; } .ladder article:nth-child(3) { min-height: 400px; }
.ladder .dark-card { background: var(--ink); color: var(--white); }
.ladder .mono { color: var(--orange); }
.ladder h3 { font-size: 30px; margin: 10px 0; }
.playbook { border-top: 2px solid var(--ink); }
/* always open: every offering listed, no click needed (Danny, 15 Nov) */
.playbook-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 28px; font-weight: 800; }
.playbook-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding-bottom: 30px; }
.playbook-cols h4 { color: var(--orange); font-weight: 400; margin-bottom: 10px; }
.playbook-cols ul { list-style: none; columns: 2; column-gap: 30px; }
.playbook-cols div:last-child ul { columns: 1; }
.playbook-cols li { padding: 6px 0; border-bottom: 1px solid var(--line-light); break-inside: avoid; }

/* logos */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 50px 30px; align-items: center; justify-items: center; border-top: 1px solid var(--line-light); padding-top: 50px; }
.logo-wall img { max-width: 100%; height: auto !important; object-fit: contain; filter: grayscale(1); transition: transform .3s; }
.logo-wall img:hover { transform: scale(1.08); }
.note { color: var(--mid); margin-top: 40px; }

/* close */
.close { position: relative; color: var(--white); background: var(--ink); min-height: 100vh; display: flex; align-items: stretch; overflow: hidden; }
.close > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
@media (max-width: 700px) { .close > img { object-position: 36% 60%; } }  /* keep all four of the crew in a narrow crop */
/* the ending photo (crew walking the waterfront): text in the sky, wordmark at the bottom, the crew clear in between */
.close-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,12,.72) 0%, rgba(12,12,12,.35) 38%, rgba(12,12,12,.12) 55%, rgba(12,12,12,.2) 70%, rgba(12,12,12,.9) 100%); }
.close-inner { position: relative; width: 100%; padding-top: 120px; padding-bottom: 50px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 100vh; }
.close-top > .mono { color: var(--orange); }
.close h2 { margin: 14px 0 20px; }
.close-contacts { display: flex; gap: 30px; flex-wrap: wrap; margin: 20px 0 0; font-size: 22px; font-weight: 700; }
.close-contacts a { text-decoration: none; border-bottom: 2px solid var(--orange); }
.close-logo { width: min(60vw, 900px); margin-bottom: 26px; }
.close-foot { display: flex; justify-content: space-between; opacity: .7; flex-wrap: wrap; gap: 10px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(12,12,12,.8); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: var(--bone); color: var(--ink); width: min(1200px, 100%); max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 0.9fr 1.1fr; }
.modal-box > img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.modal-body { padding: 44px; }
.modal-body > .mono { color: var(--orange); }
.modal-body h3 { font-size: 44px; letter-spacing: -0.02em; margin: 6px 0 24px; }
.modal-body dl { display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--line-light); }
.modal-body dt, .modal-body dd { padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.modal-body dt { font-family: var(--mono); font-size: 13px; color: var(--mid); }
.modal-body dt.community, .modal-body dd.community { color: var(--orange); }
.modal-body dd.community { color: var(--ink); font-weight: 600; }
.m-stats { display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.m-stats b { display: block; font-size: 46px; letter-spacing: -0.03em; }
.m-stats span { font-family: var(--mono); font-size: 12px; color: var(--mid); }
.m-moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.m-moments img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.m-moments p { font-size: 13px; margin-top: 6px; }
.modal-x { position: absolute; top: 12px; right: 16px; background: var(--ink); color: var(--white); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 2; }

/* reveal on scroll */
.reveal { transform: translateY(24px); transition: transform .8s; }
.reveal.in { transform: none; }

/* mobile */
@media (max-width: 900px) {
  /* full screen height set explicitly: the bar's blur makes it the containing block, so inset: 0 would only be bar-high
     and the closed menu showed through at the top (16 Nov). Hidden when closed, after the slide-up finishes. */
  .nav-links { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; background: var(--ink); flex-direction: column; justify-content: center; align-items: center; gap: 30px; transform: translateY(-100%); visibility: hidden; transition: transform .4s, visibility 0s .4s; }
  .nav-links a { font-size: 28px; }
  .nav.open .nav-links { transform: none; visibility: visible; transition: transform .4s; }
  .nav-burger { display: block; margin-left: auto; z-index: 2; }
  .nav .btn-small { display: none; }
  .hero-top { flex-direction: column; gap: 4px; top: 84px; }
  .hero-logo { width: calc(100vw - 2 * var(--pad)); top: 150px; }
  .hero-bottom { bottom: 30px; }
  .hero-ctas .btn { padding: 13px 20px; }
  .move-grid, .sport-grid, .modal-box, .playbook-cols { grid-template-columns: 1fr; }
  .move-visual { grid-template-columns: 1fr 1fr; }
  .from-strips, .help-panels { grid-template-columns: 1fr; height: auto; }
  .strip, .panel { height: 70vh; }
  .help-head { position: static; padding-top: 80px; padding-bottom: 20px; }
  .motion, .truths, .cases, .ladder { grid-template-columns: 1fr 1fr; }
  .sport-tiles { grid-template-columns: 1fr 1fr; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .stats { gap: 24px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .motion, .truths, .cases, .ladder { grid-template-columns: 1fr; }
  .move-steps { gap: 14px; font-size: 12px; }
  .modal-body { padding: 26px; } .modal-body dl { grid-template-columns: 1fr; } .modal-body dt { padding-bottom: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { transform: none; } }
