/* Astra One. A star atlas printed in lapis: engraved pale-blue line work, cyanotype photographs, one gold star.
   Type: Archivo for headings (wordmark at its widest), Instrument Sans for text, Martian Mono for labels and figures.
   Shape rule: everything rectangular is cut at 4px (buttons, chips, inputs, cells, plates, photos). Anything round is
   an instrument: the globe, the practice circles, the dial, the signal rings and the arrow buttons.
   Theme rhythm: lapis sections, with white paper below the hero, behind How we work and behind the FAQ.
   Frosted glass only on things that sit over moving content: the nav, the mobile menu, the open industry caption, the phone notification.
   Label rule: gold mono caps after a gold star, only on the three practice sections (Build, Grow, Reach), which map to the circles.
   Spacing rule: sections 128px desktop / 88px mobile, heading to content 48px, gutters 24px / 16px.
   Z-index scale: art 0, content 1, nav 50, menu 55. */

:root {
  --lapis: #0F2A6E;
  --lapis-deep: #0A1F57;
  --lapis-2: #143580;
  --line: rgba(190, 206, 245, .16);
  --line-2: rgba(190, 206, 245, .3);
  --chart: rgba(176, 196, 244, .38);
  --paper: #EDF0F8;
  --paper-2: #F8FAFE;
  --ink: #0A1F57;
  --ink-2: #3B4C7E;
  --text: #DCE3F5;
  --muted: #A9B6DA;
  --gold: #E8BE5A;
  --gold-2: #F2CF7B;
  --gold-ink: #7A5A10;     /* gold that passes AA as text on paper */
  --l-line: rgba(15, 42, 110, .13);
  --l-line-2: rgba(15, 42, 110, .26);
  --gold-line: #C99A2E;   /* gold strokes that hold up on white */
  --bad: #FF9C8A;
  --bad-ink: #A3271A;

  --r: 4px;
  --display: "Archivo", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
  --gutter: 24px;
  --section: 128px;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 0l6.2 13.8L40 20l-13.8 6.2L20 40l-6.2-13.8L0 20l13.8-6.2z'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* No CSS smooth scrolling: a smooth scroll in flight while ScrollTrigger refreshes on resize gives negative starts and
   pins on the wrong step. In-page links smooth-scroll in JS instead (main.js). */
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
html:has(.legal) { scroll-behavior: smooth; } /* legal pages run no ScrollTrigger */
body { margin: 0; background: var(--lapis); color: var(--text); font: 400 16.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; font-stretch: 104%; letter-spacing: -.03em; color: var(--paper); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.section { padding: var(--section) 0; position: relative; }
/* Light sections (below the hero, FAQ): white paper with lapis ink, same gold. */
.section--light { background: var(--paper-2); color: var(--ink); color-scheme: light; }
.section--light h2, .section--light h3 { color: var(--ink); }
.section--light .sub { color: var(--ink-2); }
.section--light .link { color: var(--ink); background-image: linear-gradient(var(--gold-line), var(--gold-line)); }
.section--light .link:hover { color: var(--gold-ink); }
.section--light :focus-visible { outline-color: var(--lapis); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 70; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: var(--r); }
.skip:focus { left: 8px; }

.h2 { font-size: clamp(2rem, 1.15rem + 2.6vw, 3.5rem); line-height: 1.06; max-width: 18ch; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin-top: 20px; }
.fine { font-size: 13px; color: var(--muted); }
.label { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font: 500 12px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.label::before { content: ""; width: 13px; height: 13px; background: var(--gold); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.logo img { width: 34px; height: 34px; }
.logo__word { font: 700 19px/1 var(--display); font-stretch: 125%; letter-spacing: .02em; }
.logo__word small { display: block; margin-top: 5px; font: 500 8.5px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .34em; color: var(--muted); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; border: 0; border-radius: var(--r);
  background: var(--gold); color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer;
  font: 600 15.5px/1 var(--font); letter-spacing: -.005em;
  box-shadow: inset 0 -2px 0 rgba(122, 90, 16, .35), 0 10px 24px -14px rgba(5, 14, 44, .9);
  transition: background-color .3s var(--ease), transform .2s var(--ease);
}
.btn::after { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; transition: transform .6s var(--ease); }
.btn:hover { background: var(--gold-2); }
.btn:hover::after { transform: rotate(90deg) scale(1.15); }
.btn:active { transform: scale(.98); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn.is-loading { opacity: .75; cursor: progress; }

.link { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); font-weight: 500; text-decoration: none; padding: 6px 0; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.link i { transition: transform .4s var(--ease); }
.link:hover { background-size: 100% 1px; color: var(--gold-2); }
.link:hover i { transform: translateX(4px); }

.round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--paper); display: grid; place-items: center; cursor: pointer; font-size: 18px; transition: border-color .3s, background-color .3s, transform .2s var(--ease); }
.round:hover { border-color: var(--gold); color: var(--gold); }
.round:active { transform: scale(.94); }
.round:disabled { opacity: .35; cursor: default; }

.chip { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; cursor: pointer; font: 500 14.5px/1 var(--font); color: var(--text); transition: background-color .25s, border-color .25s, color .25s, transform .2s var(--ease); }
.chip:hover { border-color: var(--gold); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; }
/* The frosted bar is a pseudo-element, not the nav itself: a backdrop-filter on .nav would become the containing block
   for the fixed mobile menu inside it and collapse the menu to the bar's height. */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 31, 87, .88); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity .4s; }
.nav.is-solid::before, .nav.is-menu::before { opacity: 1; }
.nav__in { display: flex; align-items: center; gap: 32px; height: 76px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { color: rgba(237, 240, 248, .82); text-decoration: none; font-size: 15px; transition: color .25s; }
.nav__links a:hover { color: var(--gold-2); }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span:not(.sr) { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--paper); transition: transform .45s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 76px 0 0; z-index: 55; background: rgba(10, 31, 87, .74); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); border-top: 1px solid var(--line); padding: 32px var(--gutter); overflow-y: auto; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu a:not(.btn) { font: 500 2rem/1.4 var(--display); color: var(--paper); text-decoration: none; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.menu .btn { margin-top: 24px; align-self: flex-start; opacity: 0; transition: opacity .5s var(--ease) .3s; }
.menu.is-open a:not(.btn) { opacity: 1; transform: none; }
.menu.is-open .btn { opacity: 1; }
.menu.is-open a:nth-child(2) { transition-delay: .05s; }
.menu.is-open a:nth-child(3) { transition-delay: .1s; }
.menu.is-open a:nth-child(4) { transition-delay: .15s; }
.menu.is-open a:nth-child(5) { transition-delay: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(100dvh, 620px); display: flex; align-items: center; padding: 76px 0 0; overflow: hidden; /* copy centred in the space under the nav, level with the A */
  background: radial-gradient(90% 80% at 74% 42%, #16388A 0%, var(--lapis) 48%, var(--lapis-deep) 100%); }
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__chart { position: absolute; z-index: 0; top: calc(50% + 38px); right: max(-10vw, -160px); width: min(62vw, 116vh, 1000px); height: auto; transform: translateY(-48%); overflow: visible; } /* -48%: the A sits slightly above the globe centre, so this puts the A level with the copy */
.hero__copy { width: 100%; }
.hero__title { font-size: clamp(2.4rem, min(4.5vw, 8.6vh) + .4rem, 5rem); line-height: 1.03; letter-spacing: -.035em; }
.hero__title span { display: block; }
.hero__sub { margin-top: 26px; max-width: 46ch; color: var(--muted); font-size: clamp(1.05rem, .95rem + .35vw, 1.25rem); }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 36px; }

.chart__grid path { fill: none; stroke: rgba(176, 196, 244, .17); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__globe { fill: none; stroke: rgba(176, 196, 244, .17); stroke-width: 1; vector-effect: non-scaling-stroke; } /* as faint as the graticule */
/* Three rings that keep leaving the globe: each grows from its edge and fades out, a third of a cycle apart */
.chart__pulse circle { fill: none; stroke: rgba(196, 212, 250, .55); stroke-width: 1.2; vector-effect: non-scaling-stroke; transform-box: view-box; transform-origin: 400px 400px; opacity: 0; animation: ripple 10s cubic-bezier(.2, .6, .35, 1) infinite; }
.chart__pulse circle:nth-child(2) { animation-delay: -3.33s; }
.chart__pulse circle:nth-child(3) { animation-delay: -6.67s; }
@keyframes ripple { 0% { transform: scale(1); opacity: 0; } 8% { opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.chart__lines path { fill: none; stroke: rgba(226, 233, 252, .8); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 0; } /* no non-scaling-stroke here: it breaks pathLength dashes in Chrome */
.chart__stars circle { fill: #F4F7FF; }
.chart__gold { fill: var(--gold); transform-origin: 400px 420px; }

/* ---------- Practices: three circles meeting on the mark ---------- */
.practices__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.venn { position: relative; width: min(100%, 580px); aspect-ratio: 1; margin: 0 auto; }
.venn__c { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--l-line-2); background: rgba(15, 42, 110, .04); cursor: pointer; transition: background-color .6s var(--ease), border-color .6s; }
.venn__c--build { left: 20%; top: 4%; }
.venn__c--reach { left: 2%; top: 36%; }
.venn__c--grow { left: 38%; top: 36%; }
.venn__c:hover { background-color: rgba(15, 42, 110, .075); }
.venn__c.is-on { background-color: rgba(232, 190, 90, .2); border-color: var(--gold-line); } /* no scale: it would knock the labels out of line */
/* A gold dot orbits the lit circle */
.venn__c::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle at 50% 6px, var(--gold-line) 0 4.5px, transparent 5.5px); opacity: 0; transition: opacity .5s; animation: orbit 14s linear infinite; }
.venn__c.is-on::before { opacity: 1; }
@keyframes orbit { to { transform: rotate(360deg); } }
.venn__label { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; text-align: center; white-space: nowrap; }
/* Each label sits in the middle of its circle's uncovered part: 0.36 of the radius out from the centre, away from where the three meet */
.venn__c--build .venn__label { left: 50%; top: 28%; }
.venn__c--reach .venn__label { left: 34%; top: 60%; }
.venn__c--grow .venn__label { left: 66%; top: 60%; }
.venn__label i { font-size: clamp(26px, 2.6vw, 36px); color: var(--lapis); transition: color .5s; }
.venn__label b { font: 500 clamp(1.1rem, .85rem + .6vw, 1.5rem)/1.1 var(--display); font-stretch: 104%; letter-spacing: -.02em; color: var(--ink); }
.venn__label small { font: 500 10.5px/1.3 var(--mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.venn__c.is-on .venn__label i { color: var(--gold-ink); }
.venn__core { position: absolute; z-index: 1; left: 50%; top: 55.3%; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--lapis); display: grid; place-content: center; justify-items: center; gap: 5px; pointer-events: none;
  box-shadow: 0 0 0 6px rgba(232, 190, 90, .28), 0 18px 40px -16px rgba(10, 31, 87, .6); }
.venn__core img { width: clamp(34px, 3.6vw, 54px); height: auto; }
.venn__core small { font: 500 9px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }

.tabs { display: flex; gap: 0; margin-top: 40px; border-bottom: 1px solid var(--l-line); }
.tab { position: relative; padding: 12px 0; margin-right: 34px; border: 0; background: none; cursor: pointer; font: 500 1.35rem/1.2 var(--display); color: var(--ink-2); transition: color .3s; }
.tab:not(:last-child)::after { content: "/"; position: absolute; right: -22px; color: var(--l-line-2); }
.tab::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-line); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tab[aria-selected="true"] { color: var(--gold-ink); }
.tab[aria-selected="true"]::before { transform: none; }
.tab:focus-visible { outline-color: var(--lapis); }
.pane { padding-top: 8px; }
.pane__list li { padding: 18px 0; font-size: 1.15rem; color: var(--ink); }
.pane__list li + li { border-top: 1px solid var(--l-line); }
.pane .link { margin-top: 18px; }
.pane:not([hidden]) { animation: rise .6s var(--ease); }
/* Pinned (desktop, set by main.js): the circles hold still while scrolling lights Build, Grow and Reach in turn */
.practices.is-pinned { height: 100vh; min-height: 600px; padding: 76px 0 0; display: flex; align-items: center; } /* centred in the space under the nav */
.practices.is-pinned .practices__grid { width: 100%; }
.practices.is-pinned .venn { width: min(100%, 76vh, 580px); }
.practices.is-pinned .h2 { font-size: clamp(1.9rem, min(3.4vw, 6.4vh), 3.5rem); }
.practices.is-pinned .sub { margin-top: clamp(10px, 2vh, 20px); }
.practices.is-pinned .tabs { margin-top: clamp(16px, 4vh, 40px); }
.practices.is-pinned .pane__list li { padding: clamp(7px, 1.6vh, 18px) 0; font-size: clamp(1rem, 2.2vh, 1.15rem); }
.practices.is-pinned .pane .link { margin-top: clamp(8px, 1.6vh, 18px); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Build bento ---------- */
.build .h2 { max-width: 22ch; }
.bento { display: grid; grid-template-columns: 1.05fr 1fr 1fr; grid-template-areas: "photo wide wide" "photo api shop" "mobile cloud cloud"; gap: 16px; margin-top: 48px; }
.cell { position: relative; padding: 30px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(20, 53, 128, .5); display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: border-color .4s; }
.cell:hover { border-color: var(--line-2); }
.cell h3 { font-size: 1.5rem; line-height: 1.15; }
.cell p { color: var(--muted); }
.cell__icon { font-size: 30px; color: var(--gold); margin-bottom: 8px; }
.cell--photo { grid-area: photo; padding: 0; border: 0; min-height: 420px; }
.cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento > .cell--wide:first-of-type { grid-area: wide; }
.bento > .cell:nth-child(3) { grid-area: api; }
.bento > .cell:nth-child(4) { grid-area: shop; }
.cell--paper { grid-area: mobile; background: var(--paper); border-color: var(--paper); }
.cell--paper h3 { color: var(--ink); }
.cell--paper p { color: var(--ink-2); }
.cell--paper .cell__icon { color: var(--gold-ink); }
.cell--cloud { grid-area: cloud; background: linear-gradient(120deg, rgba(20, 53, 128, .7), rgba(10, 31, 87, .4)); }
.cell--cloud::after { content: ""; position: absolute; right: -90px; bottom: -150px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid var(--line-2); box-shadow: 0 0 0 40px rgba(20, 53, 128, .25), 0 0 0 41px var(--line); pointer-events: none; }
.cell--cloud p { max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tags li { font: 500 11.5px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--r); }
.mono-list { margin-top: auto; font: 400 13px/1.9 var(--mono); font-stretch: 87.5%; color: var(--text) !important; }
.logos { display: flex; flex-wrap: wrap; gap: 22px; margin-top: auto; padding-top: 8px; color: var(--paper); }
.logo-i { display: block; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--i) center/contain no-repeat; mask: var(--i) center/contain no-repeat; opacity: .85; }

/* ---------- Grow plates ---------- */
.grow__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.plates__nav { display: flex; gap: 10px; flex: none; }
.plates { margin-top: 48px; }
.plates__track { --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--edge) 8px; scroll-padding: 0 var(--edge); scrollbar-width: none; overscroll-behavior-x: contain; }
.plates__track::-webkit-scrollbar { display: none; }
.plates__track:focus-visible { outline-offset: -2px; }
.plate { flex: 0 0 clamp(270px, 26vw, 350px); scroll-snap-align: start; background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 12px 12px 28px; box-shadow: 0 24px 50px -30px rgba(3, 10, 36, .9); }
.plate:nth-child(even) { margin-top: 44px; }
.plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.plate h3 { color: var(--ink); font-size: 1.45rem; margin: 22px 12px 8px; }
.plate p { color: var(--ink-2); margin: 0 12px; font-size: 15.5px; }
.plates__bar { position: relative; height: 2px; margin-top: 40px; }
.plates__bar::before { content: ""; position: absolute; inset: 0; top: .5px; height: 1px; background: var(--line-2); }
.plates__bar span { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, .2)); transition: transform .2s linear; }

/* ---------- Reach: sender demo ---------- */
.reach { background: linear-gradient(180deg, var(--lapis) 0%, var(--lapis-deep) 100%); }
.reach__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 44px; }
.feats li { display: flex; align-items: flex-start; gap: 14px; color: var(--paper); line-height: 1.45; }
.feats i { font-size: 24px; color: var(--gold); flex: none; }
.sender { display: flex; flex-direction: column; align-items: center; }
.sender__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sender__chips .chip { font: 500 11px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; height: 34px; padding: 0 10px; }
.sender__stage { position: relative; width: min(100%, 520px); aspect-ratio: 1; display: grid; place-items: center; margin-top: 44px; }
.sender__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.sender__rings circle { fill: none; stroke: var(--chart); stroke-width: 1; transform-origin: 300px 300px; animation: ping 6s var(--ease) infinite; }
.sender__rings circle:nth-child(2) { animation-delay: .5s; }
.sender__rings circle:nth-child(3) { animation-delay: 1s; }
.sender__rings circle:nth-child(4) { animation-delay: 1.5s; stroke-dasharray: 2 6; }
@keyframes ping { 0%, 100% { opacity: .35; } 40% { opacity: 1; stroke: rgba(242, 207, 123, .55); } }
.phone { position: relative; width: 248px; aspect-ratio: 9 / 18.6; border-radius: 40px; padding: 9px; background: #050B22; box-shadow: 0 0 0 1px rgba(237, 240, 248, .14), 0 40px 80px -30px rgba(0, 4, 20, .9); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 22px; border-radius: 12px; background: #050B22; transform: translateX(-50%); z-index: 2; }
.phone__screen { height: 100%; border-radius: 32px; padding: 54px 12px 0; text-align: center; overflow: hidden; background: radial-gradient(120% 70% at 50% 0%, #2A4C9C 0%, #13306F 55%, #0B1D52 100%); }
.phone__time { font: 400 56px/1 var(--display); font-stretch: 100%; letter-spacing: -.03em; color: var(--paper); }
.phone__date { margin-top: 6px; font-size: 13px; color: rgba(237, 240, 248, .8); }
.note { margin-top: 30px; text-align: left; padding: 12px 13px; border-radius: 16px; background: rgba(237, 240, 248, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--paper); font-size: 13.5px; line-height: 1.42; }
.note.is-new { animation: note .7s var(--ease); }
@keyframes note { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.note__head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: 12px; }
.note__head i { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-size: 13px; }
.note__head b { font-weight: 600; letter-spacing: .02em; }
.note__head span { margin-left: auto; color: rgba(237, 240, 248, .65); }
.sender__use { margin-top: 4px; max-width: 42ch; text-align: center; color: var(--paper); min-height: 3.2em; }
.sender .fine { margin-top: 10px; text-align: center; }

/* ---------- Process dial ---------- */
.process { position: relative; padding: var(--section) 0; overflow: hidden; }
.process__grid { display: grid; grid-template-columns: 1.1fr 1fr 24px; gap: clamp(32px, 5vw, 80px); align-items: center; }
.dial__svg { width: 100%; max-width: 620px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.dial__svg .d-ring { fill: none; stroke: var(--l-line-2); stroke-width: 1; }
.dial__svg .d-tick { stroke: var(--l-line-2); stroke-width: 1; }
.dial__svg .d-label { font: 500 15px var(--mono); letter-spacing: .24em; fill: var(--ink-2); transition: fill .4s; }
.dial__svg .d-label.is-on { fill: var(--gold-ink); }
.dial__svg .d-arc { fill: none; stroke: var(--gold-line); stroke-width: 2; }
.dial__svg .d-needle { fill: var(--gold-line); }
.dial__svg .d-hub { fill: var(--lapis); stroke: var(--gold); stroke-width: 3; }
.process__copy .h2 { margin-bottom: 40px; }
.steps { counter-reset: step; }
.step { padding: 18px 0 18px 22px; border-left: 1px solid var(--l-line-2); transition: border-color .4s, opacity .4s; }
.step h3 { font-size: 1.5rem; color: var(--ink-2); transition: color .4s; }
.step p { margin-top: 8px; color: var(--ink-2); max-width: 44ch; }
.step.is-on { border-left-color: var(--gold-line); }
.step.is-on h3 { color: var(--ink); }
.rail { display: none; }
/* Pinned (desktop, set by main.js): one step at a time, large, with a progress rail */
.process.is-pinned { height: 100vh; min-height: 640px; padding: 0; display: flex; align-items: center; }
.process.is-pinned .process__grid { width: 100%; }
.process.is-pinned .dial__svg { max-height: 82vh; width: auto; max-width: 100%; }
.process.is-pinned .process__copy .h2 { font-size: 1.3rem; color: var(--ink-2); margin-bottom: 28px; }
.process.is-pinned .steps { display: grid; }
.process.is-pinned .step { grid-area: 1 / 1; border: 0; padding: 0; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.process.is-pinned .step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.process.is-pinned .step h3 { font-size: clamp(2.6rem, 1.5rem + 3vw, 4.4rem); color: var(--ink); }
.process.is-pinned .step p { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); }
.process.is-pinned .rail { display: block; position: relative; justify-self: end; width: 2px; height: 52vh; background: var(--l-line); }
.process.is-pinned .rail span { position: absolute; inset: 0; background: var(--gold-line); transform-origin: top; transform: scaleY(var(--p, 0)); }

/* ---------- Industries slices ---------- */
.slices { display: flex; gap: 10px; height: clamp(420px, 64vh, 620px); margin-top: 48px; }
.slice { flex: 1 1 0; min-width: 0; transition: flex-grow .7s var(--ease); }
.slice.is-open { flex-grow: 5.2; }
.slice__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--lapis-deep); cursor: pointer; text-align: left; }
.slice__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease), filter .6s; filter: brightness(.82); }
.slice__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 31, 87, 0) 35%, rgba(10, 31, 87, .92) 100%); }
.slice.is-open img { transform: none; filter: none; }
.slice__tag { position: absolute; z-index: 1; left: 50%; bottom: 22px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); white-space: nowrap; font: 500 12px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); transition: opacity .3s; }
.slice__body { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; display: grid; gap: 8px; padding: 20px 22px 22px; border-radius: var(--r); border: 1px solid rgba(237, 240, 248, .16); background: rgba(10, 31, 87, .45); opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .6s var(--ease); pointer-events: none; }
.slice.is-open .slice__body { -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); } /* frost only where a caption shows */
.slice__body::before { content: ""; width: 56px; height: 2px; background: var(--gold); margin-bottom: 8px; }
.slice__body b { font: 500 1.7rem/1.15 var(--display); font-stretch: 104%; letter-spacing: -.02em; color: var(--paper); }
.slice__body span { color: var(--text); max-width: 40ch; }
.slice.is-open .slice__tag { opacity: 0; }
.slice.is-open .slice__body { opacity: 1; transform: none; transition-delay: .25s, .25s; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq .h2 { max-width: 12ch; }
.faq .link { margin-top: 28px; color: var(--gold-ink); }
.qa details { border-top: 1px solid var(--l-line-2); }
.qa details:last-child { border-bottom: 1px solid var(--l-line-2); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font-size: 1.18rem; font-weight: 500; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(var(--gold-line), var(--gold-line)) center/16px 1.5px no-repeat, linear-gradient(var(--gold-line), var(--gold-line)) center/1.5px 16px no-repeat; transition: transform .5s var(--ease); }
.qa details[open] summary::after { transform: rotate(135deg); }
.qa details p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 62ch; }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(70% 60% at 15% 30%, #16388A 0%, rgba(15, 42, 110, 0) 70%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.brief { margin-top: 44px; }
.brief__row { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.brief__row:last-child { border-bottom: 1px solid var(--line); }
.brief__k { padding-top: 11px; font: 500 12px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.brief__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.form { color-scheme: light; position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); box-shadow: 0 40px 80px -40px rgba(3, 10, 36, .9); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input { display: grid; gap: 7px; }
.input--full { grid-column: 1 / -1; }
.input label { font-size: 14px; font-weight: 600; color: var(--ink); }
.input label small { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.input input, .input textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--paper-2); border: 1px solid #B9C4E2; border-radius: var(--r); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.input textarea { resize: vertical; min-height: 112px; }
.input input::placeholder { color: #5D6C97; }
.input input:focus, .input textarea:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(232, 190, 90, .55); }
.input__err { min-height: 0; font-size: 13px; color: var(--bad-ink); }
.input.is-bad input, .input.is-bad textarea { border-color: var(--bad-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--lapis); }
.form .btn { box-shadow: inset 0 0 0 1px rgba(122, 90, 16, .45), inset 0 -2px 0 rgba(122, 90, 16, .35); }
.form .btn:focus-visible { outline-color: var(--lapis); }
.form__status { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.form__status:empty { display: none; }
.form__status.is-bad { color: var(--bad-ink); }
.form__done[hidden] { display: none; }
.form__done { position: absolute; inset: 0; z-index: 2; border-radius: var(--r); background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 32px; }
.form__done img { filter: brightness(0) saturate(100%) invert(11%) sepia(57%) saturate(3000%) hue-rotate(218deg); }
.form__done h3 { color: var(--ink); font-size: 1.8rem; }
.form__done p { color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--lapis-deep); padding: 72px 0 32px; border-top: 1px solid var(--line); }
/* The mark as the footer's sign-off: tonal legs, the gold star turning slowly */
.footer__mark { justify-self: end; align-self: center; width: clamp(150px, 16vw, 230px); height: auto; }
.footer__mark .fm-legs { fill: var(--lapis-2); stroke: rgba(190, 206, 245, .28); stroke-width: .5; }
.footer__mark .fm-star { fill: var(--gold); transform-box: fill-box; transform-origin: center; animation: twinkle 7s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(.82); opacity: .8; } }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand p { margin-top: 22px; color: var(--muted); font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 { font: 500 12px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.footer__col a { color: var(--paper); text-decoration: none; font-size: 15px; width: fit-content; }
.footer__col a:hover { color: var(--gold-2); }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 24px; font-size: 14px; color: var(--muted); }
.footer__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--gold-2); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.bento [data-reveal]:nth-child(2), .feats[data-reveal] { transition-delay: .08s; }
.bento [data-reveal]:nth-child(3) { transition-delay: .14s; }
.bento [data-reveal]:nth-child(4) { transition-delay: .2s; }
.bento [data-reveal]:nth-child(5) { transition-delay: .1s; }
.bento [data-reveal]:nth-child(6) { transition-delay: .18s; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; filter: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 140px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); }
.legal .updated { margin-top: 14px; color: var(--muted); font-size: 14px; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--text); margin-top: 12px; max-width: 70ch; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--gold-2); }
mark.todo { background: rgba(255, 179, 64, .22); color: #FFD27A; padding: 0 4px; border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "photo wide" "photo api" "shop mobile" "cloud cloud"; }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .practices__grid, .reach__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .venn { order: 2; width: min(100%, 440px); }
  .process__grid { grid-template-columns: 1fr; }
  .dial__svg { max-width: 420px; }
  .slices { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; height: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .slices::-webkit-scrollbar { display: none; }
  .slice, .slice.is-open { flex: 0 0 min(78vw, 360px); scroll-snap-align: center; }
  .slice__btn { height: 440px; cursor: default; }
  .slice__tag { display: none; }
  .slice__body { opacity: 1; transform: none; }
  .slice img { transform: none; filter: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --section: 88px; }
  body { font-size: 16px; }
  .hero { align-items: flex-end; padding: 96px 0 clamp(40px, 7vh, 64px); }
  .hero__chart { top: 44px; right: auto; left: 50%; width: min(118vw, 560px); transform: translateX(-50%); opacity: .7; }
  .dial__svg .d-label { font-size: 24px; letter-spacing: .16em; }
  .slice__body b { font-size: 1.45rem; }
  .hero__cta { gap: 20px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "photo" "wide" "api" "shop" "mobile" "cloud"; }
  .cell--photo { min-height: 0; aspect-ratio: 4 / 3; }
  .cell { padding: 24px; }
  .venn__label small, .venn__core small { display: none; } /* too small to fit the circles on phones; the list above names the services */
  .grow__head { display: block; }
  .plates__nav { display: none; }
  .plate { flex-basis: 80vw; }
  .plate:nth-child(even) { margin-top: 0; }
  .feats { grid-template-columns: 1fr; }
  .sender__chips { justify-content: flex-start; }
  .form__grid { grid-template-columns: 1fr; }
  .brief__row { grid-template-columns: 1fr; gap: 10px; }
  .brief__k { padding-top: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__mark { grid-column: 1 / -1; grid-row: 1; justify-self: start; width: 120px; }
  .footer__brand { grid-column: 1 / -1; }
  .tab { margin-right: 28px; font-size: 1.2rem; }
  .tab:not(:last-child)::after { right: -19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .chart__pulse { display: none; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
