/* Gravitate Media homepage
   One typeface (Switzer). Light page; photography always sits behind a fluted-glass shader (js/glass.js).
   Shape rule: buttons 4px, tiles 16px, panels 22px. One UI accent (electric blue). */

@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --page: #eceff6;
  --surface: #f7f8fc;
  --ink: #0c1440;
  --ink-2: rgba(12, 20, 64, .64);
  --ink-3: rgba(12, 20, 64, .62);   /* inactive items: lighter than body text, still above 4.5:1 contrast */
  --line: rgba(12, 20, 64, .12);
  --accent: #2a3fe0;
  --accent-soft: #e4e7fc;
  --navy: #0b1352;
  --panel: #1b2fb8;                 /* shows behind a glass panel until its photo is drawn */
  --white: #fff;
  --glass: rgba(255, 255, 255, .14);
  --glass-line: rgba(255, 255, 255, .32);
  --soft: rgba(255, 255, 255, .8);
  --dim: rgba(255, 255, 255, .6);
  --sans: "Switzer", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 3vw, 44px);
  --edge: 20px;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 8h12M8.5 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: var(--white); }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
h1, h2 { font-weight: 300; text-wrap: balance; letter-spacing: -.045em; }
h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1; }
h3 { font-weight: 500; font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 999px; }
.on-dark :focus-visible { outline-color: var(--white); }
[tabindex="-1"]:focus { outline: none; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute; top: 12px; left: 12px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: 14px;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Layout ---------- */
.page {
  padding:
    var(--edge)
    max(var(--edge), env(safe-area-inset-right, 0px))
    8px
    max(var(--edge), env(safe-area-inset-left, 0px));
}
.wrap { padding-inline: var(--gutter); }
section { scroll-margin-top: 12px; }
.sec { padding-block: clamp(88px, 11vw, 160px); }
.sec.flush { padding-top: 0; }
.head { max-width: 900px; }
.lede { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); max-width: 50ch; margin-top: 22px; }
.lede + .lede { margin-top: 14px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.actions.after { margin-top: 32px; }
.cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 15px 18px 15px 22px; border-radius: 4px;
  background: var(--white); color: var(--ink);
  font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.cta::after {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .45s var(--ease);
}
.cta:hover { background: #e4e7fc; }
.cta:hover::after { transform: translateX(4px); }
.cta:focus-visible { border-radius: 6px; }
.cta.sm { gap: 18px; padding: 11px 14px 11px 18px; font-size: 14px; }
.cta.sm::after { width: 14px; height: 14px; }
.cta.ink { background: var(--ink); color: var(--white); }
.cta.ink:hover { background: var(--accent); }
.ghost {
  display: inline-flex; padding: 10px 2px; font-size: 15px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.ghost:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Glass panels ---------- */
.gl { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; background: var(--panel); color: var(--white); }
.gl > canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity .45s var(--ease); }
.gl.is-ready > canvas { opacity: 1; }
.gl::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  display: flex; flex-direction: column;
  min-height: clamp(660px, calc(100vh - 2 * var(--edge)), 960px);
  min-height: clamp(660px, calc(100svh - 2 * var(--edge)), 960px);
}
.hero::after {
  background:
    radial-gradient(60% 55% at 88% 92%, rgba(6, 12, 60, .62) 0%, rgba(6, 12, 60, 0) 70%),
    linear-gradient(100deg, rgba(9, 20, 100, .68) 0%, rgba(9, 20, 100, .36) 42%, rgba(9, 20, 100, 0) 68%),
    linear-gradient(180deg, rgba(6, 12, 60, .4) 0%, rgba(6, 12, 60, 0) 20%),
    linear-gradient(0deg, rgba(6, 12, 60, .45) 0%, rgba(6, 12, 60, 0) 30%);
}
.hero .inner { position: relative; flex: 1; display: flex; flex-direction: column; padding: 20px var(--gutter) clamp(28px, 3vw, 44px); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.brand svg { width: 28px; height: 26px; }
.pill {
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.pill a { padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: var(--soft); white-space: nowrap; transition: background-color .4s var(--ease), color .4s var(--ease); }
.pill a:hover { color: var(--white); background: rgba(255, 255, 255, .16); }
.navr { display: flex; align-items: center; gap: 8px; }

/* Menu button: three thin lines that turn into a cross */
.menu {
  display: none; position: relative; flex: none; width: 44px; height: 44px; margin-right: -11px;
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
}
.menu i, .menu i::before, .menu i::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor; }
.menu i { top: calc(50% - .75px); transition: background-color .2s; }
.menu i::before, .menu i::after { content: ""; left: 0; transition: transform .4s var(--ease); }
.menu i::before { transform: translateY(-7px); }
.menu i::after { transform: translateY(7px); }
.menu[aria-expanded="true"] i { background-color: transparent; }
.menu[aria-expanded="true"] i::before { transform: rotate(45deg); }
.menu[aria-expanded="true"] i::after { transform: rotate(-45deg); }
.menu:focus-visible { border-radius: 8px; outline-offset: 0; }
.mnav {
  position: fixed; z-index: 60; inset: 0;
  display: flex; flex-direction: column; gap: 28px;
  padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--navy); color: var(--white);
  opacity: 0; transition: opacity .3s var(--ease);
}
.mnav[hidden] { display: none; }
.mnav.is-open { opacity: 1; }
.mnav-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.mnav-top .menu { display: block; }
.mlinks { display: flex; flex-direction: column; margin-top: auto; }
.mlinks li { border-top: 1px solid rgba(255, 255, 255, .16); transform: translateY(14px); transition: transform .5s var(--ease); }
.mlinks li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.mnav.is-open .mlinks li { transform: none; }
.mlinks a { display: block; padding: 14px 2px; font-size: clamp(30px, 8vw, 44px); font-weight: 300; line-height: 1.1; letter-spacing: -.04em; }
.mnav-end { display: flex; flex-direction: column; gap: 18px; }
.mnav-end .cta { padding-block: 17px; font-size: 16px; }
.mmail { align-self: center; font-size: 14px; color: var(--dim); }
html.menu-open { overflow: hidden; }

/* Slim header: slides in when you scroll back up past the hero (below 1081px) */
.mhead {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: none; align-items: center; justify-content: space-between; min-height: 56px;
  padding: env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--page); border-bottom: 1px solid var(--line); color: var(--ink);
  transform: translateY(-100%); visibility: hidden;
  transition: transform .4s var(--ease), visibility 0s linear .4s;
}
.mhead.is-shown { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
.mhead .brand { font-size: 17px; }
.mhead .brand svg { width: 24px; height: 22px; }

.copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 48px; margin-top: auto; padding-top: 64px; }
.lead-col { display: flex; flex-direction: column; gap: 22px; }
.eyebrow { max-width: 34ch; font-size: 14px; color: var(--soft); }
h1 { font-size: clamp(38px, 4.5vw, 80px); line-height: .98; }
h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
h1 .ln > span { display: block; }
.copy .side { display: flex; flex-direction: column; gap: 22px; max-width: 400px; padding-bottom: 10px; }
.sub { font-size: clamp(16px, 1.25vw, 18px); color: var(--soft); }
.support { margin-top: 14px; max-width: 36ch; font-size: 13.5px; color: var(--dim); }

/* ---------- Proof band ---------- */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 4vw, 64px); padding-block: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 40px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 0 18px; border-left: 1px solid var(--line); }
.st:first-child { padding-left: 0; border-left: 0; }
.st .n { font-size: clamp(30px, 2.8vw, 44px); font-weight: 300; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.st:first-child .n { color: var(--accent); }
.st .l { max-width: 16ch; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 28px; min-width: 0; }
.logos img { width: auto; height: 32px; object-fit: contain; filter: grayscale(1) brightness(.3); opacity: .7; }
.logos img.wide { height: 15px; }
.lg, .lg-set { display: contents; }
.lg-copy { display: none; }
.m-only { display: none; }

/* ---------- Problem bento ---------- */
.bento { display: grid; grid-template-columns: 1.05fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.bento > * { min-width: 0; }
.bento .pic { grid-row: 1 / 3; min-height: 484px; }
.tile { display: flex; flex-direction: column; gap: 12px; min-height: 236px; padding: 28px 26px 30px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.tile h3 { margin-top: auto; font-size: 21px; }
.tile p { max-width: 34ch; font-size: 15px; color: var(--ink-2); }
.tile.tint { background: var(--accent-soft); border-color: rgba(42, 63, 224, .16); }
.tile.deep { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tile.deep p { color: rgba(255, 255, 255, .72); }

/* ---------- What we do: list on the left, one photograph on the right that changes with it ---------- */
.sys { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; gap: clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 88px); }
.caps { display: flex; flex-direction: column; justify-content: center; }
.cap { border-top: 1px solid var(--line); }
.cap:last-child { border-bottom: 1px solid var(--line); }
.cap button {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  width: 100%; padding: 22px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: clamp(22px, 2vw, 30px); font-weight: 300; letter-spacing: -.03em;
  color: var(--ink-3); transition: color .2s var(--ease);
}
.cap button:focus-visible { border-radius: 6px; }
.cap.on button { color: var(--ink); }
.cap .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease); }
.cap.on .body { grid-template-rows: 1fr; }
.cap .body > div { overflow: hidden; }
.cap .body p { max-width: 42ch; padding-bottom: 24px; font-size: 16px; color: var(--ink-2); }
.photo { width: 100%; min-height: 560px; max-height: 720px; aspect-ratio: 1 / 1.02; }
.photo::after { background: linear-gradient(0deg, rgba(6, 12, 60, .35) 0%, rgba(6, 12, 60, 0) 40%); }

/* ---------- Results ---------- */
.cases { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.case { display: flex; flex-direction: column; gap: 18px; min-width: 0; min-height: 460px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.case .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case .top img { width: auto; height: 28px; filter: grayscale(1) brightness(.3); opacity: .85; }
.case .sector { font-size: 13px; color: var(--ink-2); }
.case .fig { margin-top: auto; font-size: clamp(52px, 5vw, 80px); font-weight: 300; line-height: .9; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.case .what { max-width: 30ch; font-size: 15px; color: var(--ink-2); }
.case .how { padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.case.photo-c { border: 0; background: var(--panel); color: var(--white); }
.case.photo-c::after { background: linear-gradient(180deg, rgba(6, 12, 60, .15) 0%, rgba(6, 12, 60, .25) 40%, rgba(6, 12, 60, .85) 100%); }
.case.photo-c .top img { filter: grayscale(1) brightness(0) invert(1); }
.case.photo-c .sector { color: rgba(255, 255, 255, .7); }
.case.photo-c .what { color: rgba(255, 255, 255, .78); }
.case.photo-c .how { border-top-color: rgba(255, 255, 255, .2); }

/* ---------- How we work: four steps as alternating rows, one idea each ---------- */
.steps { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 112px); margin-top: clamp(48px, 6vw, 88px); }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 112px); }
.step:nth-child(even) .s-img { order: 2; }
.s-img { aspect-ratio: 4 / 3; }
.s-body { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.s-body > p { max-width: 40ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-2); }
.s-body > .s-n { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.s-body h3 { font-size: clamp(32px, 3.4vw, 52px); font-weight: 300; line-height: 1.02; letter-spacing: -.04em; }
.s-body > .s-note { align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); font-size: 15px; color: var(--ink); }

/* ---------- Ways to work: three options as ruled columns ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(40px, 5vw, 64px); }
.way { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 2px solid var(--ink); }
.way h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 300; letter-spacing: -.03em; }
.way p { max-width: 34ch; font-size: 16px; color: var(--ink-2); }

/* ---------- Gap Map ---------- */
.gapmap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 660px; }
.gapmap::after { background: linear-gradient(90deg, rgba(8, 16, 80, .92) 0%, rgba(8, 16, 80, .8) 42%, rgba(8, 16, 80, .18) 64%, rgba(8, 16, 80, 0) 100%); }
.gm-copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(40px, 5vw, 80px) var(--gutter); }
.gm-copy .lede { margin-top: 0; color: var(--soft); }
.gets-h { margin-bottom: -10px; font-size: 14px; color: var(--dim); }
.gets { max-width: 470px; margin-top: 4px; }
.gets li { padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 16px; }
.gets li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.terms { font-size: 14px; color: var(--dim); }
.terms b { font-weight: 500; color: var(--white); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(28px, 5vw, 80px); }
.faq .head { position: sticky; top: 32px; }
.qs { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; border-radius: 8px; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 500; letter-spacing: -.015em;
}
summary::-webkit-details-marker { display: none; }
summary .pm { position: relative; flex: none; width: 16px; height: 16px; margin-right: 4px; }
summary .pm::before, summary .pm::after { content: ""; position: absolute; left: 0; top: calc(50% - .75px); width: 100%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
summary .pm::after { transform: rotate(90deg); }
details[open] summary .pm::after { transform: rotate(0deg); }
details p { max-width: 60ch; padding: 0 44px 24px 0; color: var(--ink-2); }

/* ---------- Closing ---------- */
.closing { display: flex; align-items: flex-end; min-height: clamp(560px, 78vh, 760px); }
.closing::after { background: linear-gradient(0deg, rgba(8, 16, 80, .8) 0%, rgba(8, 16, 80, .2) 55%, rgba(8, 16, 80, .3) 100%), linear-gradient(90deg, rgba(8, 16, 80, .55) 0%, rgba(8, 16, 80, 0) 55%); }
.closing .c { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 48px; width: 100%; padding: clamp(40px, 5vw, 72px) var(--gutter); }
.closing h2 { max-width: 12ch; font-size: clamp(44px, 6vw, 96px); line-height: .95; }
.closing .side { display: flex; flex-direction: column; gap: 22px; max-width: 340px; padding-bottom: 8px; }

/* ---------- Footer ---------- */
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 64px var(--gutter) 32px; }
.foot > * { min-width: 0; }
.foot .tag { max-width: 34ch; margin-top: 14px; color: var(--ink-2); }
.foot h2 { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--ink-2); }
.foot ul { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot ul a { overflow-wrap: anywhere; transition: color .3s var(--ease); }
.foot ul a:hover { color: var(--accent); }
.foot .base a { transition: color .3s var(--ease); }
.foot .base a:hover, .foot .base a[aria-current] { color: var(--ink); }
.foot .base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }

/* ---------- Legal pages ---------- */
.lnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-top: 8px; }
.legal { max-width: 820px; padding-block: clamp(40px, 7vw, 104px) clamp(64px, 8vw, 120px); }
.legal:focus { outline: none; }
.legal h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1; }
.legal .updated { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.legal h2 { margin-top: clamp(40px, 5vw, 56px); font-size: clamp(22px, 2vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }
.legal p, .legal li { max-width: 66ch; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.legal h2 + p, .legal h2 + ul, .legal p + p { margin-top: 12px; }
.legal .updated + p { margin-top: 36px; }
.legal li { position: relative; margin-top: 12px; padding-left: 22px; }
.legal li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1.5px; background: var(--accent); }
.legal b { font-weight: 500; color: var(--ink); }
.legal a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- Motion ----------
   Headline lines rise out of their masks on load; panels settle as they scroll in; the hero copy drifts up as you
   leave it. Scroll-linked where supported (js/main.js adds a one-shot fallback), compositor-only throughout. */
@media (prefers-reduced-motion: no-preference) {
  h1 .ln > span { animation: lineup .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 40ms); }
  h1 .ln:nth-child(1) > span { --i: 1; }
  h1 .ln:nth-child(2) > span { --i: 2; }
  h1 .ln:nth-child(3) > span { --i: 3; }
  .rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 40ms); }
  .hero .eyebrow { --i: 0; }
  .hero .sub { --i: 5; }
  .hero .actions { --i: 6; }
  @media (max-width: 760px) { .lg-set { animation: marquee 38s linear infinite; } }

  @supports (animation-timeline: view()) {
    .settle { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .lift { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .hero .copy { animation: leave linear both; animation-timeline: scroll(root); animation-range: 0 85vh; }
  }
  .reveal { transform: translateY(40px); transition: transform 1.1s var(--ease); }
  .reveal.is-in { transform: none; }

  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    details::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
    details[open]::details-content { height: auto; }
  }
}
@keyframes lineup { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { transform: translateY(22px); } to { transform: none; } }
@keyframes settle { from { transform: translateY(48px) scale(.98); } to { transform: none; } }
@keyframes lift { from { transform: translateY(28px); } to { transform: none; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes leave { to { transform: translateY(-70px); opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pill { display: none; }
  .menu { display: block; }
}
@media (max-width: 1080px) {
  .mhead { display: flex; }
}
@media (min-width: 1081px) {
  .mnav { display: none; }
}
@media (max-width: 980px) {
  .sys { grid-template-columns: 1fr; }
  .photo { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .cases { grid-template-columns: 1fr 1fr; }
  .cases .photo-c { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero::after { background: linear-gradient(180deg, rgba(9, 20, 100, .55) 0%, rgba(9, 20, 100, .3) 40%, rgba(6, 12, 60, .7) 100%); }
  .copy { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .pic { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
  .gapmap { grid-template-columns: 1fr; min-height: 0; }
  .gapmap::after { background: linear-gradient(180deg, rgba(8, 16, 80, .88) 0%, rgba(8, 16, 80, .75) 60%, rgba(8, 16, 80, .55) 100%); }
  .faq { grid-template-columns: 1fr; }
  .faq .head { position: static; }
  .closing .c { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ways { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  h1 .ln, h1 .ln > span { display: inline; }
  h1 .ln:last-child { display: block; }
  .navr .cta.sm { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .st:nth-child(3) { padding-left: 0; border-left: 0; }
  .logos { justify-content: flex-start; gap: 20px 26px; }
  .bento, .cases { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .case { min-height: 380px; }
  details p { padding-right: 0; }
}
/* Phones: one column, swipeable card rows, full-width buttons in thumb reach */
@media (max-width: 760px) {
  :root { --edge: 10px; }
  .d-only { display: none; }
  .m-only { display: inline; }
  .gl { border-radius: 18px; }
  .sec { padding-block: 72px; }
  .lede { margin-top: 16px; }

  .hero .inner { padding-top: 14px; }
  .copy { gap: 26px; padding-top: 40px; }
  .hero .actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .hero .actions .cta, .gapmap .actions .cta, .closing .actions .cta, .actions.after .cta { flex: 1; padding-block: 17px; font-size: 16px; }
  .hero .actions .ghost { align-self: center; }

  /* Stats keep the desktop's ruled columns, two by two; logos run as one slow row like the desktop strip */
  .proof { gap: 36px; padding-block: 36px 8px; }
  .stats { gap: 26px 0; }
  .stats .st, .stats .st:first-child, .stats .st:nth-child(3) { padding: 0 0 0 16px; border-left: 1px solid var(--line); }
  .st .l { max-width: 18ch; }
  .logos {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 0; overflow: hidden;
    margin-inline: calc(-1 * var(--gutter));
    -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .lg-set { display: flex; flex: none; align-items: center; gap: 44px; padding-right: 44px; }
  .lg-copy { display: flex; }
  .lg { display: block; flex: none; }
  .logos img { height: 28px; }
  .logos img.wide { height: 13px; }

  /* Wide photos sit in the top part of the hero and closing panels and fade into navy, instead of being
     zoomed in to fill a tall, narrow screen */
  .hero, .closing { background: var(--navy); }
  .hero > canvas, .closing > canvas {
    height: 56%;
    -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent);
  }
  .closing > canvas { height: 40%; }
  .hero::after { background: linear-gradient(180deg, rgba(6, 12, 60, .45) 0%, rgba(6, 12, 60, 0) 22%); }
  .closing::after { background: none; }

  /* Problem tiles and results become rows you swipe through; the next card peeks in from the edge */
  .bento, .cases {
    display: flex; gap: 10px; margin-top: 36px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .bento::-webkit-scrollbar, .cases::-webkit-scrollbar { display: none; }
  .bento > *, .cases > * { flex: 0 0 84%; scroll-snap-align: start; }
  .bento .pic { min-height: 0; }
  .tile { min-height: 320px; padding: 24px 22px 26px; }
  .case { min-height: 420px; padding: 24px; }

  .sys { gap: 20px; margin-top: 36px; }
  .photo { aspect-ratio: 16 / 10; }
  .cap button { padding: 18px 0; font-size: 22px; }
  .cap .body p { padding-bottom: 20px; }

  .steps { gap: 56px; margin-top: 40px; }
  .step { grid-template-columns: 1fr; gap: 24px; }
  .step:nth-child(even) .s-img { order: 0; }
  .s-img { aspect-ratio: 16 / 10; }
  .s-body { gap: 14px; }
  .s-body h3 { font-size: 30px; }

  .ways { gap: 28px; margin-top: 36px; }
  .way h3 { font-size: 24px; }

  .gm-copy { gap: 18px; padding: 40px 22px; }
  summary { padding: 20px 0; font-size: 17px; }
  .closing { min-height: 680px; }
  .closing .c { padding: 36px 22px; }
  .closing .side { max-width: none; }
  .foot { padding-top: 48px; }
}
@media (max-width: 400px) {
  .foot { grid-template-columns: 1fr; }
}

@media (prefers-reduced-transparency: reduce) {
  .pill { background: rgba(12, 24, 110, .92); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .gl > canvas, .gl::after { display: none; }
  .cta { border: 1px solid; }
}
@media print {
  .gl { background: none; color: var(--ink); }
  .gl > canvas, .gl::after, .menu, .mnav, .mhead, .lg-copy, .skip { display: none; }
  .settle, .lift, .reveal { animation: none !important; transform: none !important; }
}

/* Phones without motion: the logo row stays still and wraps */
@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .logos { flex-wrap: wrap; justify-content: center; margin-inline: 0; -webkit-mask: none; mask: none; }
  .lg-set { flex-wrap: wrap; justify-content: center; gap: 22px 32px; padding: 0; }
  .lg-copy { display: none; }
}
