@font-face { font-family: 'InterV'; src: url('../fonts/InterVariable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #08090d; --text: #e4e8f4; --muted: #7e87a6; --muted2: #a6aec7; --line: #252b3b;
  --blue: #3B82F6; --purple: #A855F7; --green: #10B981; --sky: #38BDF8; --amber: #F59E0B;
  --gutter: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
body { margin: 0; color: var(--text); font-family: 'InterV', Inter, system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }

#film { position: fixed; inset: 0; width: 100vw; height: 100lvh; display: block; z-index: 0; }
html:not(.js) #film { display: none; }

/* one fixed scrim: a soft vignette, plus the plate that keeps copy readable over the map */
#scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,9,13,.95) 0, rgba(8,9,13,.88) calc(var(--gutter) + 400px), rgba(8,9,13,.4) calc(var(--gutter) + 500px), rgba(8,9,13,0) calc(var(--gutter) + 640px)),
    radial-gradient(ellipse at 60% 50%, rgba(0,0,0,0) 45%, rgba(0,0,0,.5) 100%); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 18px var(--gutter);
  background: linear-gradient(rgba(8,9,13,.82), rgba(8,9,13,0)); }
.nav-logo { display: block; line-height: 0; margin-right: auto; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--muted2); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-menu { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(13,15,21,.72); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; backdrop-filter: blur(6px); }
.btn:hover { border-color: #46506d; background: rgba(28,32,50,.85); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #5a96f8; border-color: #5a96f8; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* ---------- beats ---------- */
main, .foot { position: relative; z-index: 2; }
.js .beat { height: calc(var(--vh) * 1vh); }
.js .stick { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; padding: 84px var(--gutter) 48px; pointer-events: none; }
html:not(.js) .stick { padding: 120px var(--gutter) 40px; }
.copy { width: min(470px, 100%); pointer-events: auto; }
/* the text holds its place; sections swap it with a quick fade, never a slide */
.js .copy { opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; }
.js .beat.in .copy { opacity: 1; visibility: visible; transition: opacity .32s ease .08s, visibility 0s; }

.eyebrow { color: var(--blue); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
h1 { font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.035em; font-weight: 650; margin-bottom: 22px; }
h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.06; letter-spacing: -.028em; font-weight: 650; margin-bottom: 18px; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; margin-bottom: 8px; }
.copy p:not(.eyebrow):not(.tag):not(.readout) { color: var(--muted2); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--text); text-underline-offset: 4px; text-decoration-color: var(--blue); }
.tag { margin-top: 18px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.readout { margin-top: 18px; font-size: 15px; color: var(--muted2); font-variant-numeric: tabular-nums; }
.readout b { color: var(--text); font-weight: 650; }

.tiles { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; }
.tiles li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.4; color: var(--muted2); }
.tiles li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.tiles b { display: block; color: var(--text); font-weight: 600; }

/* contact sits under the wordmark the points form */
.contact .stick { justify-content: center; align-items: flex-end; padding-bottom: 12vh; text-align: center; }
.contact .copy { width: min(560px, 100%); }
.contact .actions { justify-content: center; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 26px var(--gutter); border-top: 1px solid #1c2032; background: var(--bg); color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted2); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- phones and narrow tablets ---------- */
@media (max-width: 860px), (max-width: 1199px) and (orientation: portrait) {
  body { font-size: 16px; }
  .nav { padding: 12px var(--gutter); gap: 12px; }
  .nav-links { display: none; }
  .nav-menu { display: block; position: relative; }
  .nav-menu summary { list-style: none; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu summary span { width: 20px; height: 2px; background: var(--text); border-radius: 1px; }
  .nav-sheet { position: absolute; right: 0; top: 50px; width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #0d0f15; }
  .nav-sheet a { display: block; padding: 11px 12px; text-decoration: none; font-size: 15px; }
  #scrim { background: linear-gradient(180deg, rgba(8,9,13,0) 48%, rgba(8,9,13,.88) 64%, rgba(8,9,13,.97) 100%); }
  .js .stick { align-items: flex-end; padding: 72px var(--gutter) 26px; }
  .copy { width: 100%; }
  h1 { font-size: clamp(38px, 11vw, 54px); margin-bottom: 14px; }
  h2 { font-size: clamp(27px, 8vw, 38px); margin-bottom: 10px; }
  h3 { font-size: 18px; }
  .eyebrow { font-size: 11.5px; margin-bottom: 10px; }
  .copy p:not(.eyebrow):not(.tag):not(.readout) { font-size: 15.5px; line-height: 1.45; }
  .actions { margin-top: 16px; }
  .btn { min-height: 44px; padding: 0 18px; }
  .btn-sm { min-height: 38px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 12px; }
  .tiles li { font-size: 12.5px; padding-left: 14px; }
  .tiles li::before { top: 5px; width: 7px; height: 7px; }
  .link, .tag, .readout { margin-top: 10px; }
  .contact .stick { padding-bottom: 26px; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .js .copy, .js .beat.in .copy { transition: none; }
}

/* the full nav needs about 1080px; below that it wraps, so the menu button takes over earlier */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-menu { display: block; position: relative; }
  .nav-menu summary { list-style: none; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; }
  .nav-menu summary::-webkit-details-marker { display: none; }
  .nav-menu summary span { width: 20px; height: 2px; background: var(--text); border-radius: 1px; }
  .nav-sheet { position: absolute; right: 0; top: 50px; width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #0d0f15; }
  .nav-sheet a { display: block; padding: 11px 12px; text-decoration: none; font-size: 15px; }
}

/* stacked screens (phones, and tablets held upright): the film sits above the copy */
@media (max-width: 860px), (max-width: 1199px) and (orientation: portrait) {
  .copy { max-width: 560px; }
  .link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(13,15,21,.72); text-decoration: none; }
  .contact .copy { margin: 0 auto; }
}

/* where you are on the page: one hairline across the top */
#progress { position: fixed; z-index: 6; top: 0; left: 0; right: 0; height: 2px; background: rgba(228,232,244,.07); pointer-events: none; }
#progress i { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
html:not(.js) #progress { display: none; }
