/* MATSYA — paper, the logo's navy as ink, one signal blue for Vajra and one grey for fibre.
   Headlines are set in Unbounded, a wide geometric face that echoes the logo's wordmark; text and figures in IBM Plex.
   The dark theme turns it around: the logo's navy becomes the page and the ink turns to light. */
:root {
  color-scheme: light;
  --navy: #100d33;
  --paper: #f3f3f6;
  --paper-2: #eaeaf0;
  --ink: #100d33;
  --ink-2: #3d3b5c;
  --muted: #5f5e78;
  --line: #dcdbe6;
  --blue: #2a55e0;
  --blue-soft: #b9c5f3;
  --fibre: #858499;
  --display: 'Unbounded', 'Avenir Next', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1320px;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --panel: #ffffff;
  --panel-shadow: 0 22px 50px -18px rgba(16, 13, 51, .32), 0 3px 10px -4px rgba(16, 13, 51, .1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #100d33; --paper-2: #1a1747; --ink: #ecebff; --ink-2: #c4c3df; --muted: #9d9cc0;
  --line: #2d2a5e; --blue: #8aa0ff; --blue-soft: #3b4696; --fibre: #8e8dad;
  --panel: #1b1850; --panel-shadow: 0 26px 60px -16px rgba(0, 0, 0, .65), 0 2px 8px -2px rgba(0, 0, 0, .4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #100d33; --paper-2: #1a1747; --ink: #ecebff; --ink-2: #c4c3df; --muted: #9d9cc0;
    --line: #2d2a5e; --blue: #8aa0ff; --blue-soft: #3b4696; --fibre: #8e8dad;
    --panel: #1b1850; --panel-shadow: 0 26px 60px -16px rgba(0, 0, 0, .65), 0 2px 8px -2px rgba(0, 0, 0, .4);
  }
}
/* a theme switch cross-fades colours; set only for the moment of the switch */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease, text-decoration-color .45s ease, fill .45s ease, stroke .45s ease !important;
}
html.theme-anim .theme g { transition: opacity .35s ease, transform .6s var(--ease-out) !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar-h); }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--paper); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.nowrap { white-space: nowrap; }
.stack span { display: block; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

h1, h2 { font-family: var(--display); font-weight: 300; margin: 0; text-wrap: balance; }
h3 { font: 500 1.02rem/1.35 var(--sans); margin: 0; }
h1 { font-size: clamp(2.35rem, 3.9vw, 3.6rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 2.9vw, 2.7rem); line-height: 1.1; letter-spacing: -.04em; max-width: 19ch; }
.lede { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.45; color: var(--ink-2); max-width: 36ch; margin-top: 1.25rem; }

/* the star field sits behind everything; the Earth and solid panels cover it */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@media print { .sky { display: none; } }

/* bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 10; height: var(--bar-h); transition: background-color .3s, box-shadow .3s, color .3s; }
.bar.scrolled {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.bar.on-dark { background: color-mix(in srgb, var(--navy) 82%, transparent); color: #ecebff; box-shadow: none; }
.bar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { font: 500 .74rem/1 var(--display); letter-spacing: .3em; margin-right: -.3em; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 1.1rem; }
.crumb { font-size: .9rem; padding-left: 1.1rem; border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent); line-height: 1; }
.bar-end { display: flex; align-items: center; gap: clamp(1.1rem, 2.6vw, 2.4rem); }
.bar nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.6vw, 2.4rem); }
.bar nav .back { display: inline-flex; align-items: center; gap: .45rem; opacity: 1; }
.bar nav .back svg { width: 12px; height: 12px; transition: transform .25s var(--ease-out); }
.bar nav .back:hover svg { transform: translateX(-3px); }

/* theme switch: shows the moon in light, the sun in dark */
.theme { width: 34px; height: 34px; display: grid; place-items: center; flex: none; padding: 0; cursor: pointer; background: none;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 50%; color: inherit; transition: background-color .2s, border-color .2s; }
.theme:hover { background: color-mix(in srgb, currentColor 8%, transparent); border-color: color-mix(in srgb, currentColor 40%, transparent); }
.theme svg { width: 16px; height: 16px; overflow: visible; }
.theme g { transform-origin: 12px 12px; transition: opacity .35s ease, transform .6s var(--ease-out); }
.theme .sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme .sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme .moon { opacity: 0; transform: rotate(90deg) scale(.5); }
.bar nav a { font-size: .9rem; text-decoration: none; color: inherit; opacity: .72; transition: opacity .2s; }
.bar nav a:hover, .bar nav a[aria-current] { opacity: 1; }
.bar nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* hero */
.hero {
  min-height: max(620px, min(100svh, 960px));
  display: grid; grid-template-columns: minmax(0, 5.1fr) minmax(0, 6.9fr); align-items: center; gap: clamp(1rem, 3vw, 3rem);
  padding-top: var(--bar-h);
}
.hero-copy { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vh, 3.75rem); padding-block: 2rem; }
.hero .lede { max-width: 30ch; }
.stage { height: min(calc(100svh - var(--bar-h) - 2rem), 58vw, 860px); min-height: 460px; }
#shell { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#shell:active { cursor: grabbing; }
.js #shell { opacity: 0; transition: opacity 1.6s var(--ease); }
html:not(.js) .stage, html:not(.js) .race, html:not(.js) .race-result, html:not(.js) .theme { display: none; }
.js #shell.ready { opacity: 1; }

.figures { display: grid; grid-template-columns: 11.5rem max-content; column-gap: 0; justify-items: start; margin: 1.6rem 0 0; }

/* the race: pick two cities, then run Vajra against fibre */
.race { display: grid; gap: 1.35rem; justify-items: start; }
.race-route { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: .9rem; width: min(100%, 25rem); }
.field { display: grid; gap: .3rem; min-width: 0; }
.field-label { font-size: .8rem; color: var(--muted); }
.field-button {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; min-width: 0; cursor: pointer;
  padding: .35rem 0 .5rem; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font: inherit; font-size: 1.05rem; color: var(--ink); text-align: left; transition: border-color .2s;
}
.field-button:hover, .field.open .field-button { border-bottom-color: var(--ink); }
.field-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-button::after { content: ''; flex: none; width: 6px; height: 6px; margin: 0 .3rem .25rem 0;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.field.open .field-button::after { transform: translateY(.3rem) rotate(-135deg); }

/* the city menu: a floating panel; destinations show their Vajra and fibre times */
.field-list {
  position: absolute; top: calc(100% + .7rem); z-index: 30; width: min(20rem, calc(100vw - 2 * var(--gutter)));
  max-height: min(27rem, 62vh); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: .4rem; list-style: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--panel-shadow); outline: none;
}
.field-list[hidden] { display: none; }
.field[data-field="from"] .field-list { left: 0; }
.field[data-field="to"] .field-list { right: 0; }
.field.open .field-list { animation: menu-in .18s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.field-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .52rem .7rem; border-radius: 9px;
  cursor: pointer; color: var(--ink-2); font-size: .95rem; line-height: 1.3; }
.field-list li.active { background: var(--paper-2); color: var(--ink); }
.field-list li[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.opt-name { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.opt-name::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.field-list li[aria-selected="true"] .opt-name::before { background: var(--blue); }
.opt-meta { display: inline-flex; align-items: center; gap: .35rem; flex: none; font-size: .8rem; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt-meta .key { width: 6px; height: 6px; }
.opt-meta .key + span + .key { margin-left: .45rem; }
.swap { width: 34px; height: 34px; margin-bottom: .15rem; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink-2); transition: color .2s, border-color .2s; }
.swap:hover { color: var(--ink); border-color: var(--ink-2); }
.swap svg { width: 15px; height: 15px; transition: transform .45s var(--ease-out); }
.swap.turned svg { transform: rotate(180deg); }
.run { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.35rem .8rem 1.1rem; cursor: pointer;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .95rem; font-weight: 500;
  transition: background-color .2s, transform .15s; }
.run:hover { background: var(--blue); }
.run:active { transform: scale(.97); }
.run svg { width: 12px; height: 12px; }
.num.counting { font-variant-numeric: tabular-nums; }
.race-result { min-height: 3.1em; margin-top: 1.1rem; font-size: .95rem; color: var(--ink-2); max-width: 36ch; }
.race-result strong { font-weight: 500; color: var(--ink); }
.race-result span { display: block; margin-top: .15rem; font-size: .82rem; color: var(--muted); }
.figures dt { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--muted); }
.figures dd { margin: .35rem 0 0; display: flex; align-items: baseline; gap: .35rem; }
.num { font: 300 clamp(2.2rem, 3.4vw, 3rem)/1 var(--display); letter-spacing: -.05em; }
.unit { font-size: 1rem; color: var(--muted); }
.key { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.key-vajra { background: var(--blue); }
.key-fibre { background: var(--fibre); }

/* sections */
.section { padding-block: clamp(6rem, 13vw, 11rem) 0; }
.section:last-child { padding-bottom: clamp(6rem, 13vw, 11rem); }
.note, .chart-note { font-size: .88rem; color: var(--muted); max-width: 64ch; }

/* why: one-way New York–London against fibre and the vacuum floor */
.chart { margin-top: clamp(3rem, 6vw, 4.5rem); --name: clamp(7rem, 16vw, 11rem); --max: 35; }
.chart-title { font-size: .92rem; color: var(--ink-2); margin-bottom: 1.75rem; }
.plot { position: relative; padding: 2.4rem 0 2.2rem; background: var(--paper); }   /* data areas stay clear of the stars */
.plot-area { position: absolute; inset: 0 0 0 var(--name); }
.tick, .limit { position: absolute; top: 0; bottom: 0; left: calc(var(--v) / var(--max) * 100%); width: 1px; }
.tick { background: var(--line); top: 1.9rem; }
.tick i, .limit i { position: absolute; font: normal 400 .78rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.tick i { bottom: 0; left: 0; transform: translateX(-50%); }
.tick:first-child i { transform: none; }
.limit { background: var(--ink); top: 1.9rem; bottom: 1.6rem; }
.limit i { top: -1.9rem; left: 0; transform: translateX(-50%); color: var(--ink); }
.lane { position: relative; display: grid; grid-template-columns: var(--name) 1fr; align-items: center; height: 4.25rem; }
.lane-name { font-size: 1rem; color: var(--ink); padding-right: 1rem; }
.lane-track { position: relative; height: 100%; }
.lane-bar { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; width: calc(var(--v) / var(--max) * 100%); border-radius: 2px; }
.lane-dot { position: absolute; top: 50%; left: calc(var(--v) / var(--max) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper); }
.lane-value { position: absolute; bottom: calc(50% + .7rem); left: calc(var(--v) / var(--max) * 100%); transform: translateX(-50%); font-size: .92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lane-vajra .lane-bar, .lane-vajra .lane-dot { background: var(--blue); }
.lane-fibre .lane-bar, .lane-fibre .lane-dot { background: var(--fibre); }
.chart-note { margin-top: 1.25rem; }

/* routes */
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: clamp(3rem, 6vw, 4.5rem) 0 1.25rem; font-size: .88rem; color: var(--ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: .55rem; }
table.routes { width: 100%; border-collapse: collapse; background: var(--paper); }
.routes th, .routes td { padding: 1.05rem 0 1.05rem 1.5rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 400; }
.routes thead th { font-size: .82rem; color: var(--muted); padding-top: 0; padding-bottom: .85rem; border-bottom-color: var(--ink); vertical-align: bottom; }
.routes th:first-child { padding-left: 0; text-align: left; }
.routes tbody th { font: 300 1rem/1.3 var(--display); letter-spacing: -.02em; }
.routes td { font: 400 .95rem var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.routes td.gain { color: var(--ink); font-weight: 500; }
.routes tbody tr { --ring: var(--paper); transition: background-color .2s; }
.routes tbody tr:hover { background: var(--paper-2); --ring: var(--paper-2); }
.routes .viz { width: 34%; padding-left: 2.75rem; padding-right: .5rem; }
.scale { display: flex; justify-content: space-between; font-size: .78rem; font-variant-numeric: tabular-nums; }
.scale i { font-style: normal; }
.dumbbell { position: relative; display: block; height: 12px; --scale: 100; }
.dumbbell::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.dumbbell .link { position: absolute; top: 50%; height: 2px; margin-top: -1px; left: calc(var(--s) / var(--scale) * 100%); width: calc((var(--g) - var(--s)) / var(--scale) * 100%); background: var(--blue-soft); }
.dot-m, .dot-f { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ring); }
.dot-m { left: calc(var(--s) / var(--scale) * 100%); background: var(--blue); }
.dot-f { left: calc(var(--g) / var(--scale) * 100%); background: var(--fibre); }
.routes + .note { margin-top: 1.25rem; }

/* mission */
/* columns in proportion to each render's aspect ratio (488/516, 922/615), so both tiles share one height */
.hardware { display: grid; grid-template-columns: 946fr 1499fr; gap: 10px; margin-top: clamp(3rem, 6vw, 4.5rem); }
.hardware img { width: 100%; height: auto; border-radius: 6px; background: var(--navy); }
.hardware figcaption { font-size: .88rem; color: var(--muted); margin-top: .8rem; }

/* contact */
.contact .mail { margin-top: 2.25rem; }
.mail { display: inline-block; font-size: clamp(1.15rem, 1.6vw, 1.4rem); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--line); transition: text-decoration-color .2s, color .2s; }
.mail:hover { color: var(--blue); text-decoration-color: currentColor; }

/* links that lead somewhere else on the site */
.cta { display: inline-block; font-size: 1rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em;
  text-decoration-color: var(--line); transition: color .2s, text-decoration-color .2s; }
.cta:hover { color: var(--blue); text-decoration-color: currentColor; }
.hero .cta { align-self: flex-start; }
.section > .cta { margin-top: 2rem; }
.lede.after { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* the delay: each event in ink, the waiting that follows in grey */
.vignettes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(3rem, 6vw, 4.5rem); max-width: 1120px; }
.vignettes p { font: 300 clamp(1.15rem, 1.6vw, 1.42rem)/1.35 var(--display); letter-spacing: -.03em; }
.vignettes span + span { color: var(--muted); }

/* three layers joined into one chain; the network, Vajra, carries the blue */
.layers { list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.layers li { position: relative; padding-top: 2.4rem; }
.layers li::before { content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--paper); z-index: 1; }
.layers li:not(:last-child)::after { content: ''; position: absolute; top: 5.5px; left: 0; width: calc(100% + 2.5rem); height: 1px; background: var(--ink); }
.layers li:last-child::before { background: var(--blue); }
.layers h3 a { text-decoration: none; }
.layers h3 a:hover { color: var(--blue); }
.layers p { color: var(--ink-2); margin-top: .5rem; max-width: 30ch; }

/* Vajra, in brief */
.teaser { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.teaser-route { font-size: .92rem; color: var(--ink-2); }
.teaser .figures { margin-top: 1rem; }

/* satellite relay: a full-bleed night scene, the words laid over the dark side of the Earth */
.night {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  margin-top: clamp(6rem, 13vw, 11rem); height: clamp(560px, min(100svh - var(--bar-h), 72vw), 1100px);
  background: #03040a; color: #f3f3f6;
}
/* oversized by 6% top and bottom, so the drift never shows an edge */
.night-media { position: absolute; left: 0; right: 0; top: -6%; height: 112%; z-index: -2; will-change: transform; }
.night-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
/* night falls toward the words: dark from the bottom and the left, a soft vignette elsewhere */
.night::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(3, 4, 10, .92) 0%, rgba(3, 4, 10, .7) 24%, rgba(3, 4, 10, .26) 50%, rgba(3, 4, 10, 0) 68%),
    linear-gradient(to right, rgba(3, 4, 10, .62) 0%, rgba(3, 4, 10, .2) 38%, rgba(3, 4, 10, 0) 60%),
    radial-gradient(130% 100% at 72% 28%, rgba(3, 4, 10, 0) 58%, rgba(3, 4, 10, .5) 100%);
}
.night-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: clamp(3rem, 9vh, 6rem); }
.night h2 { font-size: clamp(2rem, 3.7vw, 3.4rem); max-width: 13em; color: #fff; text-shadow: 0 1px 24px rgba(3, 4, 10, .35); }
.night .lede { color: rgba(243, 243, 246, .84); max-width: 38ch; }

/* the close */
.statement { font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.15; max-width: none; }
.statement span { display: block; }
.statement span + span { margin-top: .35em; }
.closing .lede { margin-top: 1.75rem; }
.reach { margin-top: 2.25rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); }
.reach .mail { font-size: inherit; color: var(--ink); }

/* products: the lineup, then each product on a stage of the logo's navy, in either theme */
.products-hero { padding: calc(var(--bar-h) + clamp(3.5rem, 12vh, 7.5rem)) 0 clamp(3rem, 7vh, 4.5rem); }
.products-hero h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.lineup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 6vh, 4rem); }
.lineup a { display: grid; align-content: start; gap: .4rem; padding-top: 1.1rem; border-top: 1px solid var(--ink); text-decoration: none; }
.lineup-name { font: 400 clamp(1.1rem, 1.5vw, 1.35rem)/1.2 var(--display); letter-spacing: -.03em; transition: color .2s; }
.lineup-line { font-size: .95rem; color: var(--muted); }
.lineup a:hover .lineup-name { color: var(--blue); }

.show { position: relative; overflow: hidden; margin: 0; color: #e8e9ff;
  background: radial-gradient(75% 95% at 50% 42%, #251f68 0%, #17134b 38%, #100d33 72%); }
.show-card { border-radius: 8px; }
.show-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(236, 235, 255, .06); pointer-events: none; }

/* Ka-band: both tiles in perspective, to scale, lit by their phase */
.show-tiles { height: clamp(380px, 44vw, 640px); }
.show-tiles canvas { width: 100%; height: 100%; }
.show-label { position: absolute; left: 0; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: .1rem;
  font-size: .9rem; line-height: 1.35; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease); }
.show-label.placed { opacity: 1; }
.show-label b { font-weight: 500; color: #fff; }
.show-label span { font-size: .8rem; color: #a7aad4; }
.show-label .part { font-family: var(--mono); color: #c9ccf0; }
.show-fallback { display: none; }
html:not(.js) .show-tiles canvas, html:not(.js) .show-label { display: none; }
html:not(.js) .show-fallback { display: flex; align-items: center; justify-content: center; gap: 4%; height: 100%; --mm: clamp(2px, .5vw, 6px); }
.lattice { width: calc(var(--w) * var(--mm)); height: auto; }
.lattice .board { fill: #1b1850; }
.lattice .el { fill: #d8b46c; }

.product-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: start; margin-top: clamp(3rem, 6vw, 4.5rem); }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 3rem); margin: 0; }
.figs div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.figs dd { margin: 0; font: 300 clamp(1.55rem, 2.4vw, 2.2rem)/1.1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.figs dt { font-size: .9rem; color: var(--muted); }
.figs-compact dd { font-size: clamp(1.3rem, 1.9vw, 1.75rem); }
.product-note { margin-top: 1.75rem; font-size: .9rem; color: var(--muted); }

.reflector { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(5rem, 10vw, 8rem); }
.reflector img { width: 100%; height: auto; border-radius: 8px; background: var(--navy); }
.kit-title { font: 400 clamp(1.2rem, 1.6vw, 1.45rem)/1.25 var(--display); letter-spacing: -.03em; margin: 0; }
.kit-line { margin: .6rem 0 clamp(1.75rem, 3vw, 2.5rem); color: var(--ink-2); }

.product-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 2rem clamp(2rem, 5vw, 5rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem clamp(1.25rem, 2.5vw, 2.5rem); }
.points li { padding-top: 1rem; border-top: 1px solid var(--ink); color: var(--ink-2); }

/* Airavata: a relay drawn in line, the flight computer lit at its centre */
.show-craft { padding: clamp(1.5rem, 4vw, 3.5rem) clamp(.75rem, 3vw, 3rem); }
.show-craft svg { display: block; width: 100%; height: auto; }
.show-craft .craft-phone { display: none; }
.craft .panel { fill: var(--panel, url(#panel-fill)); stroke: #aab5ff; stroke-opacity: .55; stroke-width: 1; vector-effect: non-scaling-stroke; }
.craft .cells { fill: none; stroke: #aab5ff; stroke-opacity: .2; stroke-width: 1; }
.craft .yoke, .craft .boom, .craft .feed-boom { fill: none; stroke: #cfd5ff; stroke-opacity: .7; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.craft .hinge { fill: #100d33; stroke: #cfd5ff; stroke-opacity: .8; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.craft .bus { fill: #1d1a55; stroke: #dfe3ff; stroke-opacity: .8; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.craft .seam { stroke: #dfe3ff; stroke-opacity: .25; stroke-width: 1; }
.craft .patches { fill: #d8b46c; }
.craft .dish { fill: var(--dish, url(#dish-fill)); stroke: #ecd29a; stroke-opacity: .85; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.craft .dish-back { fill: none; stroke: #ecd29a; stroke-opacity: .45; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.craft .ribs { fill: none; stroke: #ecd29a; stroke-opacity: .35; stroke-width: .8; }
.craft .feed { fill: #ecd29a; }
.craft .terminal { fill: #1d1a55; stroke: #dfe3ff; stroke-opacity: .8; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.craft .lens { fill: #8aa0ff; }
.show-craft .link { fill: none; stroke: #7f98ff; stroke-width: 1.4; stroke-dasharray: 3 6; animation: flow 1.6s linear infinite; }
.show-craft .node { fill: #8aa0ff; }
.show-craft .core { fill: #3553ff; stroke: #c8d2ff; stroke-width: 1; }
.show-craft .pin { stroke: #c8d2ff; stroke-opacity: .8; stroke-width: 1.2; }
.show-craft .core-glow { animation: breathe 3.2s ease-in-out infinite; }
.show-craft .leader { fill: none; stroke: #c9cef5; stroke-opacity: .45; stroke-width: 1; }
.show-craft .tag { font: 400 14px var(--sans); fill: #c9cef5; }
.show-craft .tag-main { font: 400 18px var(--display); letter-spacing: -.02em; fill: #fff; }
@keyframes flow { to { stroke-dashoffset: -18; } }
@keyframes breathe { 50% { opacity: .45; } }

/* Optical: the relays along one orbit, each joined to the next by laser, over the night side of the Earth */
.show-orbit { height: clamp(460px, 46vw, 700px); margin-top: clamp(6rem, 13vw, 11rem); }
.orbit-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-scene .stars circle { fill: #dfe4ff; }
.orbit-scene .earth { fill: url(#earth-fill); }
.orbit-scene .air { fill: none; stroke: #5a78ff; stroke-width: 16; opacity: .55; filter: url(#air); }
.orbit-scene .orbit-path { fill: none; stroke: #c9cef5; stroke-opacity: .16; stroke-width: 1.2; stroke-dasharray: 2 7; }
.orbit-scene .laser { fill: none; stroke: #c3cfff; stroke-width: 1.5; }
.orbit-scene .laser-glow { fill: none; stroke: #5b7cff; stroke-width: 7; opacity: .75; filter: url(#beam-blur); }
.orbit-scene .pulse { fill: #fff; }
.show-copy { position: relative; padding-top: clamp(3rem, 7vw, 5.5rem); }
.show-orbit h2 { color: #fff; }
.show-orbit .lede { color: rgba(236, 235, 255, .8); }

/* footer */
.foot { background: var(--navy); color: #b3b2cf; font-size: .88rem; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2.25rem; }
.foot img { width: 140px; height: auto; }
.foot .copy { color: #8a89aa; }

/* dark theme: navy tiles and the footer sit on a navy page, so give them an edge */
[data-theme="dark"] .hardware img, [data-theme="dark"] .reflector img { box-shadow: 0 0 0 1px var(--line); }
[data-theme="dark"] .show-card { box-shadow: 0 0 0 1px var(--line); }
/* at night the scene's edges dissolve into the navy page instead of meeting it */
[data-theme="dark"] .night::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--paper) 0%, rgba(16, 13, 51, 0) 14%, rgba(16, 13, 51, 0) 88%, var(--paper) 100%); }
[data-theme="dark"] .foot { box-shadow: inset 0 1px 0 var(--line); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hardware img, html:not([data-theme="light"]) .reflector img { box-shadow: 0 0 0 1px var(--line); }
  html:not([data-theme="light"]) .show-card { box-shadow: 0 0 0 1px var(--line); }
  html:not([data-theme="light"]) .night::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, var(--paper) 0%, rgba(16, 13, 51, 0) 14%, rgba(16, 13, 51, 0) 88%, var(--paper) 100%); }
  html:not([data-theme="light"]) .foot { box-shadow: inset 0 1px 0 var(--line); }
}

/* headline entrance: whole words rise and settle, one after another */
.rise .w { display: inline-block; white-space: nowrap; opacity: 0; transform: translateY(.3em);
  transition: opacity 1.1s var(--ease-out), transform 1.5s var(--ease-out); transition-delay: calc(60ms + var(--i) * 85ms); }
.rise.in .w { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "stage" "readout"; gap: 0; min-height: 0; padding-top: calc(var(--bar-h) + 2.5rem); }
  .hero-copy { display: contents; }
  .hero-text { grid-area: text; }
  .stage { grid-area: stage; height: min(100vw, 600px); min-height: 0; margin: .5rem calc(-1 * var(--gutter)); }
  .readout { grid-area: readout; }
  .routes .viz { width: 30%; padding-left: 1.75rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .bar nav { gap: 1.1rem; }
  .bar nav a:not(.keep) { display: none; }
  .crumb { padding-left: .8rem; }
  .brand { gap: .8rem; }
  .bar-end { gap: 1rem; }
  .chart { --name: 8.25rem; }
  .lane-name { font-size: .92rem; }

  /* routes: one block per route */
  .routes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .routes, .routes tbody { display: block; }
  .routes tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem .75rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
  .routes tbody tr:first-child { border-top: 1px solid var(--ink); }
  .routes th, .routes td { padding: 0; border: 0; text-align: left; }
  .routes tbody th { grid-column: 1 / 3; grid-row: 1; font-size: 1.3rem; }
  .routes td.gain { grid-column: 3; grid-row: 1; text-align: right; align-self: baseline; }
  .routes td.gain::after { content: ' ms faster'; font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: .82rem; }
  .routes td.viz { grid-column: 1 / -1; grid-row: 2; width: auto; padding: .15rem 0; }
  .routes td[data-label] { grid-row: 3; }
  .routes td[data-label]::before { content: attr(data-label); display: block; font: 400 .78rem/1.4 var(--sans); color: var(--muted); }

  .hardware { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .lineup { grid-template-columns: minmax(0, 1fr); }
  .product-body, .reflector, .product-head, .points { grid-template-columns: minmax(0, 1fr); }
  .points { gap: 0; }
  .points li { padding: .9rem 0; }
  .points li + li { border-top-color: var(--line); }
  .show-tiles { height: 330px; }
  .show-label { font-size: .8rem; }
  .show-label span { font-size: .72rem; }
  .show-orbit { height: 460px; }
  .show-craft .craft-wide { display: none; }
  .show-craft .craft-phone { display: block; }
  .show-craft .tag { font-size: 17px; }
  .show-craft .tag-main { font-size: 21px; }
  .vignettes { grid-template-columns: minmax(0, 1fr); }
  .layers { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .layers li { padding: 0 0 0 2.2rem; }
  .layers li:not(:last-child)::after { top: 6px; left: 5.5px; width: 1px; height: calc(100% + 2rem); }
  /* phones: a tall crop on the relay spacecraft and its beam to the ground */
  .night { height: max(560px, 160vw); }
  .night-media img { object-position: 85% 0%; }
  .night::before {
    background:
      linear-gradient(to top, rgba(3, 4, 10, .95) 0%, rgba(3, 4, 10, .8) 32%, rgba(3, 4, 10, .3) 54%, rgba(3, 4, 10, 0) 68%),
      radial-gradient(140% 90% at 70% 20%, rgba(3, 4, 10, 0) 55%, rgba(3, 4, 10, .45) 100%);
  }
  .night-copy { flex-direction: column; align-items: flex-start; gap: 1.1rem; padding-bottom: 2.5rem; }
}

@media (max-width: 420px) {
  .crumb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .night-media { will-change: auto; }
  .theme g, .bar nav .back svg { transition: none; }
  .rise .w { transition: none; opacity: 1; transform: none; }
  .swap svg { transition: none; }
  .js #shell { transition: none; }
  .show-craft .link, .show-craft .core-glow { animation: none; }
  .orbit-scene .pulses { display: none; }
  .show-label { transition: none; }
}
