/* reFLOP AI: brand tokens from the identity sheets (Mark, icons & palette).
   Colour rule: orange always means reFLOP AI (the platform). Ink is reFLOP (the engine) and everything else. */
/* Self-hosted brand fonts (SIL Open Font License), variable weight. */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/space-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/space-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #111214;
  --signal: #FF5A1F;          /* reFLOP AI in shapes, lines and tiles */
  --ai: #C8400E;              /* reFLOP AI in text: Signal, darkened to pass 4.5:1 on Paper */
  --ai-wash: #FFEFE7;
  --paper: #F5F5F3;
  --graphite: #5B5E63;
  --white: #FFFFFF;
  --line: #DCDCD7;
  --mute: #8B8E93;

  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1200px;
  --nav: 88px;
  --r: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --edge: clamp(20px, 4.5vh, 56px);   /* equal gap under the top bar and above the bottom bar */
  --block: clamp(20px, 3.5vh, 40px);  /* minimum gap between a page's blocks */

  /* Type and spacing shared by every page heading block (Home and inner pages) */
  --ink-2: #34363A;                          /* lead text */
  --t-display: clamp(40px, 5vw, 72px);       /* Home headline only */
  --t-lead: clamp(17px, 1.4vw, 19px);        /* the paragraph under any h1 */
  --head-gap: clamp(14px, 2vh, 20px);        /* h1 to lead */
  --cta-gap: clamp(24px, 3.5vh, 32px);       /* lead to buttons */
  --col-gap: 32px;                           /* 12-column grid gutter */
  --label: 500 12.5px/1.3 var(--mono);       /* small mono labels: wire labels, field names, phases */
  --label-track: 0.01em;
  --flow-cols: 1.05fr minmax(180px, 1fr) .95fr;  /* How it works figure and its key row */
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
p, dd { text-wrap: pretty; }  /* no one-word last lines */
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
code { font: 500 0.88em/1 var(--mono); letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: #FFD3BF; color: var(--ink); }

.ai { color: var(--ai); white-space: nowrap; }  /* the name never breaks across lines */
.line { display: block; }  /* one sentence per line */
.nobr { white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 30px; height: 30px; }
.wordmark { font: 400 23px/1 var(--sans); letter-spacing: -0.03em; white-space: nowrap; }
.wordmark b { font-weight: 700; }
.ai-tag { display: inline-block; position: relative; top: -0.72em; margin-left: 3px; font: 600 8.5px/1 var(--mono); letter-spacing: 0.02em; border: 1.4px solid currentColor; border-radius: 3px; padding: 1.5px 2.5px 1px; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink);
  font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #2A2B2F; border-color: #2A2B2F; }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.cta-short { display: none; }

.link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .25s var(--ease); }
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* ---------- nav ---------- */
.nav { position: relative; z-index: 5; view-transition-name: site-nav; }
::view-transition-group(site-nav) { animation: none; }
::view-transition-old(site-nav) { display: none; }
::view-transition-new(site-nav) { animation: none; }
.nav__row { display: flex; align-items: center; gap: 32px; height: var(--nav); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-size: 15px; color: var(--graphite); white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding: 4px 0; transition: background-size .25s var(--ease), color .2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); background-size: 100% 1.5px; }

/* ---------- page shell ---------- */
main { flex: 1; }
.page { display: flex; flex-direction: column; padding: var(--edge) 0; }
/* The heading block stays at the top (same height on every page), the last block
   ends exactly --edge above the bottom bar, and spare space is shared between blocks. */
.page > .wrap { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--block); }
.page > .wrap > * { margin-top: 0; }
.fig-contents { display: contents; }
.steps-group .steps { margin-top: 0; }
.site-footer { padding: 0 0 22px; color: var(--graphite); font-size: 14px; }
.site-footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }

h1 { font: 500 clamp(36px, 4.4vw, 64px)/1.02 var(--sans); letter-spacing: -0.045em; text-wrap: balance; }
h2 { font: 500 clamp(26px, 2.8vw, 36px)/1.1 var(--sans); letter-spacing: -0.03em; }
h3 { font: 500 19px/1.3 var(--sans); letter-spacing: -0.01em; }
.page__lead { margin-top: var(--head-gap); max-width: 56ch; color: var(--ink-2); font-size: var(--t-lead); line-height: 1.55; }
.page__lead + .page__lead { margin-top: .55em; }
.page__lead--lines { max-width: none; }  /* each .line sentence keeps its own row on desktop */

.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; font: 500 12.5px/1 var(--mono); white-space: nowrap; }
.pill--solid { background: var(--ink); color: var(--paper); }
.pill--ai { border: 1.5px dashed var(--signal); color: var(--ai); }
.pill--line { border: 1.5px solid var(--ink); color: var(--ink); }

/* pause control for looping figures */
.pause {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin-top: 16px;
  border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--graphite);
  font: 500 13px/1 var(--mono); cursor: pointer; transition: border-color .2s, color .2s;
}
.pause:hover { border-color: var(--ink); color: var(--ink); }
.pause::before { content: ""; width: 8px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.pause[aria-pressed="true"]::before { width: 0; height: 0; border: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.is-paused, .is-paused * { animation-play-state: paused !important; }

.glyph { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 3px; background: var(--ink); }
.glyph--outline { background: transparent; border: 1.5px solid var(--ink); }
.glyph--ai { background: transparent; border: 1.5px dashed var(--signal); }

/* =========================================================
   Home: the headline block and a compact laptop-to-GPU figure share a
   12-column grid. The supporting facts sit on the same columns below.
   ========================================================= */
/* Spare height is split evenly above and below the hero row, so it sits balanced
   between the top bar and the facts instead of leaving one empty band. */
.hero__grid { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; align-content: center; }
.hero__text { grid-column: 1 / span 7; }
.hero h1 { font-size: var(--t-display); line-height: 1.02; max-width: 14ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--cta-gap); }

/* The figure: laptop on top, GPU below, tensor ops travelling between them.
   reFLOP AI sits beside the wire, linked to both ends but off the data path. */
.pipe { grid-column: 8 / -1; display: grid; }
.pipe .node { padding: 14px 18px; }
.pipe .code { margin-top: 10px; font-size: 13px; }
.pipe__mid { display: grid; grid-template-columns: minmax(160px, 1fr) auto; height: clamp(104px, 15vh, 148px); }
.pipe__wire { position: relative; }
.pipe__line { position: absolute; top: 0; bottom: 0; left: 30px; width: 2px; background: var(--ink); }
.pipe__line--back { left: 56px; background: repeating-linear-gradient(180deg, var(--graphite) 0 6px, transparent 6px 11px); opacity: .6; }
.pipe .packet { left: 25px; top: 0; animation-name: travel-y; }
.pipe .packet--back { left: 51px; animation-name: travel-y-back; }
.pipe__label { position: absolute; left: 76px; top: calc(50% - 20px); font: var(--label); letter-spacing: var(--label-track); white-space: nowrap; }
.pipe__label--back { top: calc(50% + 4px); color: var(--graphite); }
.pipe__route { position: relative; display: flex; align-items: center; margin-right: 16px; }
.pipe__route::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1.5px dashed var(--signal); }
.pipe .router { padding: 10px 16px; text-align: left; }
.pipe .router .node__title { justify-content: flex-start; font-size: 17px; }
.pipe .router .node__sub { margin-top: 0; font-size: 13.5px; }
.pipe__gpu .node__title { font-size: 17px; }

.facts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 16px; }
.facts__item:first-child { grid-column: 1 / span 7; }
.facts__item:last-child { grid-column: 8 / -1; }
.facts dt { font: var(--label); letter-spacing: var(--label-track); color: var(--graphite); }
.facts dd { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 48ch; }

/* =========================================================
   How it works: the flow figure
   ========================================================= */
.flow {
  margin-top: clamp(24px, 4vh, 44px);
  display: grid; grid-template-columns: var(--flow-cols); grid-template-rows: auto 44px auto;
}
.node { position: relative; z-index: 1; border-radius: var(--r); background: var(--white); border: 1.5px solid var(--ink); padding: 16px 20px; }
.node__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; font-size: 18px; letter-spacing: -0.015em; }
.node__sub { color: var(--graphite); font-size: 14.5px; margin-top: 2px; }

.router { grid-column: 2; grid-row: 1; background: var(--ai-wash); border: 1.5px dashed var(--signal); text-align: center; }
.router .node__title { justify-content: center; font-size: 20px; }
.flow .router { justify-self: center; min-width: 100%; width: max-content; }  /* grows past a narrow wire column instead of wrapping */
.bracket { grid-column: 1 / 4; grid-row: 2; margin: -1px calc(100% / 6.2) 0; border: 1.5px dashed var(--signal); border-bottom: 0; border-radius: 8px 8px 0 0; }

.laptop { grid-column: 1; grid-row: 3; align-self: center; }
.code { margin-top: 12px; padding: 12px 16px; border-radius: 8px; background: var(--ink); color: #B9BBB7; font: 400 13px/1.6 var(--mono); white-space: pre; overflow: hidden; }
.code .k { color: var(--white); font-weight: 600; }

.wire { grid-column: 2; grid-row: 3; align-self: center; position: relative; height: 64px; margin: 0 -2px; }
.wire__line { position: absolute; left: 0; right: 0; height: 2px; }
.wire__line--out { top: 22px; background: var(--ink); }
.wire__line--back { top: 42px; background: repeating-linear-gradient(90deg, var(--graphite) 0 6px, transparent 6px 11px); opacity: .6; }
.wire__label { position: absolute; left: 50%; transform: translateX(-50%); font: var(--label); letter-spacing: var(--label-track); white-space: nowrap; }
.wire__label--out { top: 0; color: var(--ink); }
.wire__label--back { top: 54px; color: var(--graphite); }
.packet { position: absolute; z-index: 1; top: 17px; left: 0; width: 12px; height: 12px; border-radius: 2.5px; background: var(--ink); animation: travel 2.4s linear infinite; }
.packet:nth-of-type(2) { animation-delay: -.8s; }
.packet:nth-of-type(3) { animation-delay: -1.6s; }
.packet--back { top: 37px; background: var(--paper); border: 1.5px solid var(--graphite); animation-name: travel-back; animation-delay: -.4s; }
.packet--back:nth-of-type(5) { animation-delay: -1.6s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
@keyframes travel-back { 0% { left: calc(100% - 12px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@keyframes travel-y { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 12px); opacity: 0; } }
@keyframes travel-y-back { 0% { top: calc(100% - 12px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 0; opacity: 0; } }

.gpus { grid-column: 3; grid-row: 3; display: grid; gap: 8px; }
.gpu { padding: 11px 18px; border-color: var(--line); color: var(--graphite); background: transparent; }
.gpu .node__title { font-size: 16px; }
.gpu--active { border: 2px solid var(--ink); color: var(--ink); background: var(--white); padding: 14px 18px; }
.gpu--active .node__title { font-size: 18px; }
.chip-grid { display: grid; grid-template-columns: repeat(3, 9px); gap: 3px; }
.chip-grid i { width: 9px; height: 9px; border-radius: 2px; background: currentColor; opacity: .35; }
.gpu--active .chip-grid i { opacity: 1; background: var(--ink); animation: flash 2.4s infinite; }
.gpu--active .chip-grid i:nth-child(2) { animation-delay: .27s; }
.gpu--active .chip-grid i:nth-child(3) { animation-delay: .54s; }
.gpu--active .chip-grid i:nth-child(4) { animation-delay: .81s; }
.gpu--active .chip-grid i:nth-child(5) { animation-delay: 1.08s; }
.gpu--active .chip-grid i:nth-child(6) { animation-delay: 1.35s; }
.gpu--active .chip-grid i:nth-child(7) { animation-delay: 1.62s; }
.gpu--active .chip-grid i:nth-child(8) { animation-delay: 1.89s; }
.gpu--active .chip-grid i:nth-child(9) { animation-delay: 2.16s; }
@keyframes flash { 0%, 12%, 100% { background: var(--ink); } 4% { background: #B9BBB7; } }

.keys { display: grid; grid-template-columns: var(--flow-cols); gap: 24px; margin-top: clamp(28px, 4.5vh, 44px); }
.key { padding-right: 8px; }
.key > span { text-wrap: pretty; }
/* GPU host disclosure: full width under the figure, marked with the GPU's chip grid */
.keys { grid-auto-flow: row dense; }
.key--ai { grid-column: 3; grid-row: span 2; }      /* the routing note keeps its column... */
.key--host { grid-column: 1 / span 2; max-width: 94ch; color: var(--ink-2); }  /* ...so the host note sits right under the figure */
.key--host strong { font-weight: 500; color: var(--ink); }
.glyph--host {
  background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 6.5px);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 5px, transparent 5px 6.5px);
  mask: repeating-linear-gradient(180deg, #000 0 5px, transparent 5px 6.5px);
}
.key { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.4; }

/* =========================================================
   Respawn: the timeline
   ========================================================= */

.timeline { margin-top: clamp(24px, 4vh, 44px); display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; }
.tl-labels, .tl-tracks { --row: 38px; --gap: 14px; --bt: 3px; display: grid; grid-auto-rows: var(--row); row-gap: var(--gap); }
.tl-labels span { align-self: center; font: 500 12px/1.2 var(--mono); letter-spacing: .04em; color: var(--graphite); }
.tl-labels .ai { color: var(--ai); font-weight: 600; }
.tl-labels small { display: block; margin-top: 3px; font-size: 11px; font-weight: 500; color: var(--graphite); }
.tl-tracks { position: relative; }
.tl-track { position: relative; border-bottom: 1px dotted var(--line); }
.tl-track--ai { background: var(--ai-wash); border-bottom: 0; border-radius: 6px; }
.bar, .chip, .tick, .cross { position: absolute; top: var(--bt); }
.bar {
  left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); height: 32px;
  display: flex; align-items: center; padding: 0 12px; border-radius: 6px;
  font: 500 13px/1 var(--mono); white-space: nowrap; overflow: hidden;
}
.bar--run { background: var(--ink); color: var(--paper); }
.bar--laptop { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
.bar--wait { border: 1.5px dashed var(--mute); color: var(--graphite); }
.tick { left: calc(var(--a) * 1%); width: 4px; height: 32px; background: var(--signal); border-radius: 1px; }
.cross { left: calc(var(--a) * 1% - 11px); width: 22px; height: 32px; }
.cross::before, .cross::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 3px; background: var(--ink); }
.cross::before { transform: translate(-50%, -50%) rotate(45deg); }
.cross::after { transform: translate(-50%, -50%) rotate(-45deg); }
.chip { left: calc(var(--a) * 1%); height: 32px; display: flex; align-items: center; padding: 0 12px; border-radius: 6px; background: var(--signal); color: var(--ink); font: 600 13px/1 var(--mono); white-space: nowrap; z-index: 1; }
.beat { position: absolute; left: calc(var(--a) * 1%); top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 1.5px; background: var(--signal); }
.wire-v {
  position: absolute; z-index: 0; left: calc(var(--a) * 1%); width: 0;
  top: calc(var(--bt) + 32px);
  height: calc(var(--to) * (var(--row) + var(--gap)) - 32px);
  border-left: 2px dashed var(--signal);
}
.wire-v::after { content: ""; position: absolute; left: -6px; bottom: -1px; border: 5px solid transparent; border-top: 7px solid var(--signal); border-bottom: 0; }
.wire-v--up::after { bottom: auto; top: -1px; border-top: 0; border-bottom: 7px solid var(--signal); }
.wire-v b { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); font: 600 11px/1 var(--mono); color: var(--ai); white-space: nowrap; }
.wire-v:not(.wire-v--up) b { top: 26px; }
.span { position: absolute; top: 6px; left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); height: 10px; border: 1.5px solid var(--mute); border-top: 0; }
.span--lost { border-color: var(--signal); }
.span b { position: absolute; top: 16px; left: 0; font: 500 12px/1 var(--mono); white-space: nowrap; color: var(--graphite); }
.span--lost b { color: var(--ai); }
.tl-track--measure { border-bottom: 0; }
.short { display: none; }

.curtain {
  position: absolute; top: -4px; bottom: -4px; right: -2px; left: 0; z-index: 3;
  background: var(--paper); border-left: 2px solid var(--signal);
  animation: sweep 12s linear infinite;
}
@keyframes sweep {
  0% { left: 0; }
  25% { left: 39.5%; }
  30% { left: 41%; }
  40% { left: 54%; }
  46% { left: 59%; }
  56% { left: 73%; }
  76%, 100% { left: 100%; border-left-color: transparent; }
}

.steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(24px, 4vh, 40px); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.steps li { position: relative; padding-right: 16px; animation: 12s linear infinite; }
.steps li::before { content: ""; display: block; position: relative; width: 16px; height: 16px; border-radius: 3px; background: var(--signal); margin-bottom: 14px; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--graphite); font-size: 15px; margin-top: 4px; }
.steps li:nth-child(1) { animation-name: s1; }
.steps li:nth-child(2) { animation-name: s2; }
.steps li:nth-child(3) { animation-name: s3; }
.steps li:nth-child(4) { animation-name: s4; }
.steps li:nth-child(5) { animation-name: s5; }
@keyframes s1 { 0%, 29% { opacity: .3; } 30%, 97% { opacity: 1; } 100% { opacity: .3; } }
@keyframes s2 { 0%, 39% { opacity: .3; } 40%, 97% { opacity: 1; } 100% { opacity: .3; } }
@keyframes s3 { 0%, 45% { opacity: .3; } 46%, 97% { opacity: 1; } 100% { opacity: .3; } }
@keyframes s4 { 0%, 49% { opacity: .3; } 50%, 97% { opacity: 1; } 100% { opacity: .3; } }
@keyframes s5 { 0%, 55% { opacity: .3; } 56%, 97% { opacity: 1; } 100% { opacity: .3; } }

/* =========================================================
   Status
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(24px, 4vh, 44px); }
.card { border-radius: 14px; padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.card--oss { background: var(--white); border: 1.5px solid var(--ink); }
.card--co { background: var(--ai-wash); border: 1.5px dashed var(--signal); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.card__name { font: 700 28px/1 var(--sans); letter-spacing: -0.035em; }
.card__what { color: var(--graphite); font-size: 15px; margin-top: 8px; }
.tiles { display: grid; gap: 10px; }
.tile { position: relative; padding-left: 32px; font-size: 16.5px; line-height: 1.4; }
.tile::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 3px; background: var(--ink); }
.tile--done::before { background: var(--signal); }
.tile--planned::before { background: transparent; border: 1.5px dashed var(--signal); }
.card .link { margin-top: auto; align-self: flex-start; font-weight: 500; }
.card--co .link { color: var(--ai); }

.block { margin-top: clamp(32px, 5.5vh, 56px); }
.roadmap { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 20px; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; border-top: 1.5px dashed var(--signal); }
.roadmap li { position: relative; padding-right: 16px; }
.roadmap li::before { content: ""; display: block; position: relative; width: 28px; height: 28px; border-radius: 5px; border: 1.5px dashed var(--signal); background: var(--paper); margin-bottom: 12px; }
.roadmap li.done::before { border: 0; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M8 14.5l4 4 8-9' fill='none' stroke='%23111214' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px no-repeat; }
.roadmap li.now::before { border: 0; background: var(--signal); box-shadow: 0 0 0 5px rgba(255, 90, 31, .22); }
.roadmap .phase { display: block; font: var(--label); letter-spacing: var(--label-track); color: var(--graphite); margin-bottom: 6px; }
.roadmap li.now .phase { color: var(--ai); font-weight: 600; }
.roadmap b { font-weight: 500; font-size: 17px; line-height: 1.3; display: block; }
.roadmap li.done b { color: var(--graphite); }


/* =========================================================
   Recruiting: grey index tabs on the left drive the white job panel on the right.
   All panels share one grid cell, so the panel (and the tabs beside it) never
   change height when a different role is selected.
   ========================================================= */
.roles { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: stretch; }
.roles__list { display: flex; flex-direction: column; gap: 8px; }
.role-tab {
  position: relative; flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
  width: 100%; padding: 12px 18px; border: 0; border-radius: var(--r); background: #EAEAE6;
  font: inherit; color: var(--graphite); text-align: left; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.role-tab:hover { background: #E0E0DB; color: var(--ink); }
.role-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.role-tab[aria-selected="true"]::after {
  content: ""; position: absolute; right: -9px; top: 50%; margin-top: -9px;
  border: 9px solid transparent; border-right: 0; border-left-color: var(--ink);
}
.role-tab__title { font-weight: 500; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.role-tab__meta { font: var(--label); letter-spacing: var(--label-track); color: var(--mute); }
.role-tab[aria-selected="true"] .role-tab__meta { color: #A9ABA7; }

/* Panels share three rows through subgrid: title, summary, then line + details.
   Each row is as tall as its tallest version across all roles, so every part of
   the panel sits in the same place whichever role is selected. */
.roles__panels { display: grid; grid-template-rows: auto auto auto; }
.role {
  grid-column: 1; grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; row-gap: 14px; align-content: start;
  background: var(--white); border: 1.5px solid var(--ink); border-radius: 14px; padding: clamp(22px, 2.4vw, 30px);
}
.has-role-tabs .role[hidden] { display: grid; visibility: hidden; }
.role:focus-visible { outline-offset: 4px; }
.role__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.role__head h2 { font-size: clamp(22px, 2vw, 28px); }
.role__head .pill { flex: none; }
.role__summary { color: var(--graphite); font-size: 16.5px; }
.role__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-self: start; padding-top: 16px; border-top: 1px solid var(--line); }
.role__body h3 { font: var(--label); letter-spacing: var(--label-track); color: var(--graphite); margin-bottom: 12px; }
.role__build { display: grid; gap: 8px; }
.role__build li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.4; }
.role__build li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 6px; border: 1.5px solid var(--ink); font-size: 14px; white-space: nowrap; }

.apply { display: flex; align-items: center; gap: 20px; }
.apply .btn { flex: none; }
.apply p { color: var(--graphite); font-size: 15px; }

@media (min-width: 1024px) and (max-width: 1199px) {
  .roles { grid-template-columns: minmax(0, 3.3fr) minmax(0, 8.7fr); gap: 20px; }
  .role-tab__title { font-size: 15.5px; }
  .role__body { gap: 22px; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .roles { grid-template-columns: 1fr; gap: 18px; }
  .roles__list { flex-direction: row; }
  .role-tab { padding: 12px 14px; justify-content: flex-start; }
  .role-tab__title { font-size: 14.5px; }
  .role-tab[aria-selected="true"]::after { right: auto; left: 50%; top: auto; bottom: -9px; margin: 0 0 0 -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
}

/* =========================================================
   Contact
   ========================================================= */
/* Contact: the catchphrase and the contact block sit together, centred between the bars */
.contact > .wrap { justify-content: center; }
.contact-body { display: flex; flex-direction: column; gap: clamp(36px, 6vh, 64px); }
.contact .statement { font: 500 clamp(36px, 4.8vw, 72px)/1.04 var(--sans); letter-spacing: -0.045em; }
.statement span { color: var(--ai); text-decoration: underline dashed 2px; text-decoration-color: var(--signal); text-underline-offset: .14em; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 96px; align-items: start; }
.contact-pitch p { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: #34363A; max-width: 36ch; }
.contact-pitch { padding-top: 20px; }
.contact-pitch .actions { margin-top: 32px; }
.contact-rows { border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: baseline; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.contact-row dt { font: var(--label); letter-spacing: var(--label-track); color: var(--graphite); }
.contact-row dd { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 761px) and (max-height: 920px) {
  h1 { font-size: clamp(34px, 3.8vw, 54px); }
  .page__lead { font-size: 17px; }
  .flow { margin-top: 20px; grid-template-rows: auto 32px auto; }
  .router { padding: 12px 20px; }
  .keys { margin-top: 20px; row-gap: 12px; }
  .key { font-size: 16px; line-height: 1.38; }
  .split { margin-top: 20px; }
  .card { gap: 14px; padding: 22px 26px; }
  .block { margin-top: 28px; }
  .timeline { margin-top: 20px; }
  .steps { margin-top: 20px; }
}

@media (min-width: 761px) and (max-height: 820px) {
  :root { --edge: 22px; --block: 14px; }
  h1 { font-size: clamp(32px, 3.4vw, 48px); }
  :root { --t-display: clamp(36px, 4.4vw, 60px); }
  .page__lead { font-size: 16px; }
  .code { line-height: 1.5; }
  .gpu { padding: 9px 16px; }
  .gpu--active { padding: 12px 16px; }
  .keys { margin-top: 14px; row-gap: 10px; }
  .key { font-size: 15.5px; line-height: 1.36; }
  .flow { grid-template-rows: auto 24px auto; }
  .router { padding: 9px 20px; }
  .flow .router .node__sub { margin-top: 0; }
  .card { gap: 12px; padding: 20px 24px; }
  .card__name { font-size: 24px; }
  .tiles { gap: 8px; }
  .tile { font-size: 15.5px; }
  .block { margin-top: 22px; }
  .roadmap { margin-top: 14px; }
  .roadmap b { font-size: 15.5px; }
  .page__lead { line-height: 1.5; }
  .card__what { margin-top: 6px; }
  .roadmap::before { top: 11px; }
  .roadmap li::before { width: 24px; height: 24px; margin-bottom: 10px; }
  .roadmap li.done::before { background-size: 24px; }
  .roadmap .phase { margin-bottom: 4px; }
  .role { gap: 10px; padding: 20px 24px; }
  .role__head h2 { font-size: 22px; }
  .role__summary { font-size: 15.5px; }
  .role__body { padding-top: 12px; }
  .role__build li { font-size: 15px; }
  .skill { height: 28px; font-size: 13.5px; }
  .role-tab__title { font-size: 15.5px; }
}

@media (max-width: 1023px) {
  /* touch screens: invisible 44px tap areas around small links, same look */
  .logo, .nav__links a, .link { position: relative; }
  .logo::after, .nav__links a::after, .link::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
  .long { display: none; }
  .short { display: inline; }
  :root { --flow-cols: 1fr minmax(120px, .7fr) 1fr; }
  .keys { grid-template-columns: 1fr; gap: 14px; }
  .key--ai, .key--host { grid-column: auto; grid-row: auto; }
  .pipe .code { font-size: 12.5px; }
  /* Home stays side by side (half-screen windows): text and figure split the row
     evenly, the facts follow the same columns, and the wire label takes two lines. */
  .hero__text, .facts__item:first-child { grid-column: 1 / span 6; }
  .pipe, .facts__item:last-child { grid-column: 7 / -1; }
  .pipe__label { white-space: normal; width: 11ch; }
  .pipe__label:not(.pipe__label--back) { top: calc(50% - 38px); }
  .pipe__label--back { top: calc(50% + 6px); }
  .contact-grid { grid-template-columns: 1fr; }
  .nav__row, .nav__links { gap: 16px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .code { font-size: 11.5px; }
  .bar, .chip { padding: 0 8px; font-size: 12px; }
  .span--lost b { top: -15px; }
  .tl-track--measure { margin-top: 10px; }
}
@media (max-width: 760px) {
  :root { --nav: 64px; }
  .nav__row { flex-wrap: wrap; height: auto; padding-top: 20px; padding-bottom: 4px; gap: 16px 12px; justify-content: space-between; }
  .nav__links { border-top: 1px solid var(--line); }
  .nav__links { order: 3; width: 100%; margin-left: 0; gap: 8px; justify-content: space-between; }
  .cta-long { display: inline; }
  .cta-short { display: none; }
  .nav__links a { font-size: 13.5px; padding: 13px 0; }

  :root { --t-display: clamp(36px, 10.4vw, 44px); }
  .actions .btn { flex: 1 1 100%; }
  .hero__grid { flex: none; grid-template-columns: minmax(0, 1fr); row-gap: var(--block); }
  .hero__text, .pipe { grid-column: 1; }
  .pipe { width: 100%; max-width: 520px; }
  .pipe .code { font-size: 11.5px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts__item:first-child, .facts__item:last-child { grid-column: 1; }

  /* Same figure as Home on a phone: laptop on top, the wire straight down to the
     chosen H100, and reFLOP AI beside the wire. Its dashed line joins the laptop
     and the GPUs, which is the desktop bracket turned on its side. */
  .flow { grid-template-columns: minmax(160px, 1fr) auto; grid-template-rows: auto 112px auto; }
  .laptop { grid-column: 1 / -1; grid-row: 1; }
  .wire { grid-column: 1; grid-row: 2; align-self: stretch; height: auto; margin: 0; }
  .router, .bracket { grid-column: 2; grid-row: 2; margin: 0 16px 0 0; }
  .flow .router { align-self: center; justify-self: stretch; width: auto; min-width: 0; padding: 10px 16px; text-align: left; }
  .router .node__title { justify-content: flex-start; font-size: 17px; }
  .router .node__sub { margin-top: 0; font-size: 13.5px; }
  .bracket { align-self: stretch; width: auto; height: auto; border: 0; border-radius: 0; background: repeating-linear-gradient(180deg, var(--signal) 0 4px, transparent 4px 7px) center / 1.5px 100% no-repeat; }
  .gpus { grid-column: 1 / -1; grid-row: 3; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .flow .gpu { padding: 10px 14px; }
  .flow .gpu--active { grid-column: 1 / -1; order: -1; padding: 14px 18px; }
  .flow .gpu .node__title { white-space: nowrap; }
  .wire__line { left: auto; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .wire__line--out { left: 30px; }
  .wire__line--back { left: 56px; background: repeating-linear-gradient(180deg, var(--graphite) 0 6px, transparent 6px 11px); }
  .wire__label { left: 76px; transform: none; }
  /* "Tensor ops + inputs" takes two lines beside reFLOP AI; "Results" sits under it */
  .wire__label--out, .pipe__label { white-space: normal; width: 11ch; }
  .wire__label--out, .pipe__label:not(.pipe__label--back) { top: calc(50% - 38px); }
  .wire__label--back, .pipe__label--back { top: calc(50% + 6px); }
  .packet { left: 25px; top: 0; animation-name: travel-y; }
  .packet--back { left: 51px; animation-name: travel-y-back; }

  /* paragraphs: a touch tighter on narrow columns */
  :root { --t-lead: 16.5px; }
  .page__lead { line-height: 1.5; }
  .key { font-size: 16px; line-height: 1.45; }
  .facts dd { font-size: 15px; }
  .keys { grid-template-columns: 1fr; gap: 16px; }

  .timeline { grid-template-columns: 1fr; }
  .tl-labels { display: none; }
  .tl-tracks { --row: 58px; --gap: 8px; --bt: 20px; }
  .tl-track::before { content: attr(data-label); position: absolute; top: 4px; left: 0; font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--graphite); }
  .tl-track--ai::before { color: var(--ai); font-weight: 600; left: 6px; }
  .tl-track .span { top: 26px; }
  .bar, .chip { font-size: 11.5px; padding: 0 8px; }
  .tl-track--ai .beat { top: 36px; }
  .chip--expire { display: none; }
  .wire-v b { display: none; }
  .span--lost b { top: -15px; }
  .steps { grid-template-columns: 1fr; row-gap: 22px; }
  .steps::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .steps li { display: grid; grid-template-columns: 16px 1fr; column-gap: 18px; padding: 0; }
  .steps li::before { grid-row: 1 / 3; margin: 2px 0 0; }

  .split { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; row-gap: 18px; }
  .roadmap::before { left: 13px; right: auto; top: 14px; bottom: 14px; border-top: 0; border-left: 1.5px dashed var(--signal); }
  .roadmap li { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; padding: 0; }
  .roadmap li::before { grid-row: 1 / 3; margin: 0; }

  .contact-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .roles { grid-template-columns: 1fr; }
  .roles__list { display: none; }
  .roles__panels { gap: 16px; }
  .roles__panels { grid-template-rows: none; }
  .role, .has-role-tabs .role[hidden] { grid-row: auto; display: flex; flex-direction: column; gap: 14px; visibility: visible; }
  .role__head { flex-direction: column-reverse; gap: 12px; }
  .role__body { grid-template-columns: 1fr; gap: 20px; }
  .apply { flex-direction: column; align-items: stretch; gap: 14px; }
  .contact-pitch { padding-top: 0; }
  .contact-pitch .actions .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  /* narrowest phones: wires move in so reFLOP AI keeps room for its label */
  .flow, .pipe__mid { grid-template-columns: minmax(140px, 1fr) auto; }
  .wire__line--out, .pipe__line { left: 18px; }
  .wire__line--back, .pipe__line--back { left: 40px; }
  .packet, .pipe .packet { left: 13px; }
  .packet--back, .pipe .packet--back { left: 35px; }
  .wire__label, .pipe__label { left: 58px; }
  .flow .router, .pipe .router { padding: 10px 14px; }
  .router, .bracket, .pipe__route { margin-right: 12px; }
  .laptop, .pipe__laptop { padding: 14px 16px; }
  .code { padding: 12px 14px; font-size: 11px; }
  .pipe .code { font-size: 11px; }
  .flow .gpu:not(.gpu--active) .chip-grid { grid-template-columns: repeat(3, 6px); gap: 2px; }
  .flow .gpu:not(.gpu--active) .chip-grid i { width: 6px; height: 6px; border-radius: 1.5px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* below 370px five links no longer fit one row: two rows on three aligned columns */
@media (max-width: 369px) {
  .nav__links { display: grid; grid-template-columns: repeat(3, max-content); justify-content: space-between; gap: 0; }
  .nav__links a { padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .curtain, .packet { display: none; }
  .steps li { opacity: 1; }
  .pause { display: none; }
  @view-transition { navigation: none; }
}
