/* Galmuri11 subset to the characters this site sets in the pixel face; new glyphs fall back to monospace. */
@font-face { font-family: Galmuri11; font-weight: 400; font-display: swap; src: url('/fonts/Galmuri11-sub.woff2') format('woff2'); }
@font-face { font-family: Galmuri11; font-weight: 700; font-display: swap; src: url('/fonts/Galmuri11-Bold-sub.woff2') format('woff2'); }

/* Trappist — 통과 관측 (Trappist-1 transit).
   TRAPPIST-1 is a small red star whose planets were found by the dip in its light
   as each one crossed its face. A dithered pink star, product "worlds" in orbit,
   a light curve that dips once. Pixel chrome, loud Korean grotesk, flat pastel
   fields joined by ordered-dither bands. */

:root {
  --ink: #000;
  --paper: #fff;
  --sky: #bcd4ff;
  --rose: #ffd6ea;
  --star: #ff8fc8;
  --blue: #7fa6ff;
  --muted: #3f3d4a;
  --faint: #8a8796;
  --signal: #1f3bd1;

  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --pixel: Galmuri11, 'Pretendard Variable', monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --bar-h: 56px;
  --section-y: clamp(72px, 9vw, 136px);

  /* ordered-dither masks, 6px cells */
  --m12: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 0h6v6H0zM12 12h6v6h-6z'/%3E%3C/svg%3E");
  --m25: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 0h6v6H0zM12 0h6v6h-6zM0 12h6v6H0zM12 12h6v6h-6z'/%3E%3C/svg%3E");
  --m50: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 0h6v6H0zM12 0h6v6h-6zM6 6h6v6H6zM18 6h6v6h-6zM0 12h6v6H0zM12 12h6v6h-6zM6 18h6v6H6zM18 18h6v6h-6z'/%3E%3C/svg%3E");
  --m75: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M6 0h6v6H6zM18 0h6v6h-6zM0 6h24v6H0zM6 12h6v6H6zM18 12h6v6h-6zM0 18h24v6H0z'/%3E%3C/svg%3E");

  --notch: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));

  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
svg { display: block; }
::selection { background: var(--star); color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--bar-h) + 16px); }

.container { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.line { display: block; }
.pixel { font-family: var(--pixel); font-size: 12px; line-height: 1.6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--pixel); font-size: 13px; box-shadow: 4px 4px 0 var(--star); }
.skip-link:focus { top: 12px; }

/* Pixel triangle, the Trappist mark */
.mark {
  display: inline-block; flex: none; width: 22px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 10' shape-rendering='crispEdges'%3E%3Cpath d='M5 0h1v1h-1zM4 1h3v1h-3zM4 2h1v1h-1zM6 2h1v1h-1zM3 3h1v1h-1zM7 3h1v1h-1zM3 4h1v1h-1zM7 4h1v1h-1zM2 5h1v1h-1zM8 5h1v1h-1zM2 6h1v1h-1zM8 6h1v1h-1zM1 7h1v1h-1zM9 7h1v1h-1zM1 8h1v1h-1zM9 8h1v1h-1zM0 9h11v1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 10' shape-rendering='crispEdges'%3E%3Cpath d='M5 0h1v1h-1zM4 1h3v1h-3zM4 2h1v1h-1zM6 2h1v1h-1zM3 3h1v1h-1zM7 3h1v1h-1zM3 4h1v1h-1zM7 4h1v1h-1zM2 5h1v1h-1zM8 5h1v1h-1zM2 6h1v1h-1zM8 6h1v1h-1zM1 7h1v1h-1zM9 7h1v1h-1zM1 8h1v1h-1zM9 8h1v1h-1zM0 9h11v1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Instrument bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch;
  height: var(--bar-h); background: var(--ink); color: var(--paper);
  font-family: var(--pixel); font-size: 13px; line-height: 1;
}
.bar a { display: flex; align-items: center; text-decoration: none; }
.bar__brand { justify-self: start; gap: 10px; padding: 0 var(--gutter); font-size: 15px; white-space: nowrap; }
.bar__brand .mark { width: 20px; height: 18px; color: var(--star); }
.bar nav { display: flex; }
.bar nav a { padding: 0 clamp(14px, 2vw, 28px); border-left: 1px solid #333; }
.bar nav a:last-child { border-right: 1px solid #333; }
.bar nav a[aria-current] { background: var(--sky); color: var(--ink); }
.bar nav a:hover { background: var(--paper); color: var(--ink); }
.bar__cta { justify-self: end; padding: 0 var(--gutter); background: var(--star); color: var(--ink); white-space: nowrap; }
.bar__cta:hover { background: var(--paper); }
.bar :focus-visible { outline-color: var(--star); outline-offset: -4px; }
.bar nav a[aria-current]:focus-visible, .bar__cta:focus-visible, .bar nav a:hover:focus-visible { outline-color: var(--signal); }

/* ---------- Pixel buttons, links, badges ---------- */
.px-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  font-weight: 800; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  border: 3px solid transparent; clip-path: var(--notch);
}
.px-btn--ink { background: var(--ink); color: var(--paper); }
.px-btn--paper { background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--ink) border-box; }
.px-btn:hover { background: linear-gradient(var(--star), var(--star)) padding-box, var(--ink) border-box; color: var(--ink); }
.px-btn:active { transform: translateY(2px); }
/* clip-path would cut the outline off, so the notch drops while focused */
.px-btn:focus-visible { clip-path: none; }

.ulink { font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ulink:hover { color: var(--signal); }

.badge {
  display: inline-block; font-family: var(--pixel); font-size: 13px; font-weight: 400; line-height: 1;
  padding: 8px 10px 7px; border: 3px solid transparent; white-space: nowrap;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--ink) border-box;
  clip-path: var(--notch);
}
.badge--wip { background: linear-gradient(var(--sky), var(--sky)) padding-box, var(--ink) border-box; }
.badge--ink { background: var(--ink); color: var(--paper); }
.badge--idle { background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--faint) border-box; color: var(--muted); }

/* ---------- Dither bands between colour fields ---------- */
.dither { display: grid; grid-template-rows: repeat(4, 18px); background: var(--from); }
.dither i { background: var(--to); -webkit-mask: var(--m) 0 0 / 24px 24px; mask: var(--m) 0 0 / 24px 24px; }
.dither i:nth-child(1) { --m: var(--m12); }
.dither i:nth-child(2) { --m: var(--m25); }
.dither i:nth-child(3) { --m: var(--m50); }
.dither i:nth-child(4) { --m: var(--m75); }
.dither--sky-rose { --from: var(--sky); --to: var(--rose); }
.dither--sky-paper { --from: var(--sky); --to: var(--paper); }
.dither--rose-paper { --from: var(--rose); --to: var(--paper); }
.dither--paper-rose { --from: var(--paper); --to: var(--rose); }
.dither--paper-sky { --from: var(--paper); --to: var(--sky); }

/* ---------- Big type ---------- */
.mega { font-weight: 900; font-size: clamp(44px, 7.6vw, 124px); line-height: .96; letter-spacing: -0.055em; }
.section { padding-block: var(--section-y); }
.section--rose { background: var(--rose); }
/* Consecutive paper sections share one gap instead of two */
.section:not(.section--rose) + .section:not(.section--rose) { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 40px; margin-bottom: clamp(56px, 7vw, 104px); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; background: var(--sky);
  min-height: min(calc(100vh - var(--bar-h)), 1000px);
  padding-top: clamp(56px, 7vw, 104px);
  display: grid; grid-template-rows: 1fr auto;
}
.system {
  position: absolute; z-index: -1;
  width: min(68vw, 960px); aspect-ratio: 1;
  right: -4vw; top: 50%; transform: translateY(-54%);
}
.system svg { width: 100%; height: 100%; }
.transit { animation: transit 3.4s cubic-bezier(.45, .05, .55, .95) .4s both; }
@keyframes transit { from { transform: translateX(-470px); } to { transform: translateX(170px); } }

/* Orbit tags: the planet dot sits on the orbit and the label reads inward,
   so a tag stays inside the hero whenever its orbit point does. */
.world-tag {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(calc(-100% + 15px), -50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pixel); font-size: 13px; line-height: 1; white-space: nowrap;
  background: var(--paper); padding: 7px 7px 6px 10px; border: 2px solid var(--ink);
}
.world-tag i { flex: none; width: 12px; height: 12px; background: var(--ink); border-radius: 50%; }
.world-tag i.wip { background: var(--paper); border: 2px dashed var(--ink); }

.hero__copy { align-self: center; }
.headline {
  display: grid; justify-items: start;
  font-weight: 900; font-size: clamp(64px, 12.4vw, 204px); line-height: .9; letter-spacing: -0.065em;
  margin-left: -0.04em;
}
.headline .line { white-space: nowrap; }
.headline .line:nth-child(2) { padding-left: .9em; }
.lede {
  max-width: 27em; margin-top: clamp(32px, 4vw, 52px);
  font-size: clamp(17px, 1.45vw, 20px); font-weight: 500; line-height: 1.7;
  background: var(--paper); padding: 18px 22px; border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__foot { padding-bottom: clamp(28px, 3vw, 44px); }
.curve { margin-top: clamp(48px, 6vw, 88px); }
.curve svg { width: 100%; height: 64px; overflow: visible; animation: draw 3.4s cubic-bezier(.45, .05, .55, .95) .4s both; }
.curve__base { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 6; fill: none; vector-effect: non-scaling-stroke; opacity: .5; }
.curve__line { stroke: var(--ink); stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Batch index strip ---------- */
.run { display: flex; margin-top: 20px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.run__label { display: flex; align-items: center; padding: 0 20px; background: var(--ink); color: var(--paper); font-family: var(--pixel); font-size: 12px; white-space: nowrap; }
.run ul { display: flex; flex: 1; margin: 0; padding: 0; list-style: none; }
.run li { flex: 1; min-width: 0; }
.run li + li { border-left: 3px solid var(--ink); }
.run a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; height: 100%; padding: 10px 20px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.run a:hover { background: var(--rose); }
.run a:focus-visible { outline-offset: -6px; }
.run .badge { font-size: 12px; padding: 6px 8px 5px; }
.run--wide a { font-size: 16px; padding: 10px 16px; }

/* ---------- Inner-page mastheads ---------- */
.masthead {
  position: relative; overflow: hidden; isolation: isolate; background: var(--sky);
  padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 104px);
}
.masthead__sky {
  position: absolute; z-index: -1; width: min(58vw, 800px); aspect-ratio: 1;
  right: -10vw; top: 50%; transform: translateY(-50%);
}
.masthead__sky svg { width: 100%; height: 100%; }
.masthead .mega { font-size: clamp(44px, 7vw, 112px); max-width: 12em; }
.masthead .lede { margin-top: clamp(28px, 3.5vw, 48px); }
.masthead .run { margin-top: clamp(48px, 5vw, 72px); }

/* ---------- Worlds (products) ---------- */
.world { padding-bottom: clamp(56px, 7vw, 96px); }
.world:last-child { padding-bottom: 0; }
.world__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 2vw, 28px);
  border-top: 3px solid var(--ink); padding-top: clamp(20px, 2.4vw, 32px);
}
.orb { width: clamp(52px, 7vw, 108px); height: auto; }
.world__name { font-weight: 900; font-size: clamp(48px, 9vw, 152px); line-height: .92; letter-spacing: -0.065em; white-space: nowrap; }
.world__body {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px); align-items: start;
  margin-top: clamp(28px, 3.5vw, 48px);
}
.world--mirror .world__body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.world--mirror .world__text { order: 2; }
.world__text p { font-size: 18px; max-width: 30em; }
.world__text dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; margin: 24px 0 30px; }
.world__text dt { font-family: var(--pixel); font-size: 12px; color: var(--muted); }
.world__text dd { margin-top: 2px; font-weight: 800; }
.world:target .world__head { border-top-color: var(--signal); }

/* Classic pixel window: striped title bar, square close box */
.win { margin: 0; background: var(--paper); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.win__bar {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 34px; border-bottom: 3px solid var(--ink);
  background: repeating-linear-gradient(var(--ink) 0 2px, var(--paper) 2px 5px) center / calc(100% - 20px) 17px no-repeat, var(--paper);
}
.win__close { position: absolute; left: 18px; width: 16px; height: 16px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 0 0 4px var(--paper); }
.win__title { font-family: var(--pixel); font-size: 13px; line-height: 1; background: var(--paper); padding: 0 12px; white-space: nowrap; }
.win__body { padding: clamp(22px, 3vw, 36px); min-height: 230px; }

.meters { display: grid; gap: 22px; align-content: center; }
.meter { display: grid; grid-template-columns: 7em minmax(0, 1fr); align-items: center; gap: 16px; font-weight: 800; }
.meter__cells { position: relative; height: 22px; background: repeating-linear-gradient(90deg, #d9d6e2 0 10px, transparent 10px 14px); }
.meter__cells::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--n) * 14px); max-width: 100%;
  background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 14px);
}
.meter:nth-child(2) .meter__cells::before { background: repeating-linear-gradient(90deg, var(--star) 0 10px, transparent 10px 14px); }
.meter:nth-child(3) .meter__cells::before { background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 14px); }

.win--term .win__body { background: var(--ink); color: var(--paper); font-family: var(--pixel); font-size: 15px; line-height: 2.2; display: grid; align-content: center; }
.term p { overflow-wrap: anywhere; }
.term span { color: var(--star); margin-right: 8px; }
.caret { display: inline-block; width: 10px; height: 1.1em; vertical-align: -3px; margin-left: 4px; background: var(--sky); }

.stages { list-style: none; margin: 0; padding-block: 12px; }
.stages li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; }
.stages li + li { border-top: 2px dotted var(--ink); }
.stages b { display: grid; place-items: center; width: 56px; height: 56px; font-size: 22px; font-weight: 900; background: var(--star); clip-path: var(--notch); }
.stages li:nth-child(2) b { background: var(--sky); }
.stages li:nth-child(3) b { background: var(--rose); }
.stages span { display: grid; font-weight: 800; line-height: 1.4; }
.stages small { font-weight: 400; color: var(--muted); font-size: 14px; }
.stages em { font-style: normal; font-family: var(--pixel); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Method: three frames of one transit ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.split__text p { font-size: 18px; max-width: 30em; }
.split__text p + p { margin-top: 1em; }
.split__text strong { font-weight: 800; background: linear-gradient(transparent 58%, var(--star) 0); }

.phases {
  list-style: none; padding: 0; margin: clamp(48px, 6vw, 88px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 3px solid var(--ink); background: var(--paper);
}
.phases li { padding: 0 0 30px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 4px 16px; align-content: start; }
.phases li + li { border-left: 3px solid var(--ink); }
.phases svg { grid-column: 1 / -1; width: 100%; height: auto; background: var(--sky); border-bottom: 3px solid var(--ink); margin-bottom: 22px; }
.phases__n { grid-row: span 2; padding-left: 26px; font-weight: 900; font-size: 64px; line-height: .9; letter-spacing: -0.05em; }
.phases h3 { font-size: 24px; font-weight: 900; line-height: 1.25; letter-spacing: -0.03em; padding-right: 20px; }
.phases p { color: var(--muted); padding-right: 20px; }

/* ---------- Maker ---------- */
.maker__grid {
  display: grid; grid-template-columns: minmax(240px, 400px) minmax(0, 36em); gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.win--maker { transform: rotate(-2deg); }
.win--maker .win__body { display: grid; place-items: center; gap: 14px; min-height: 260px; background: var(--rose); }
.section--rose .win--maker .win__body { background: var(--sky); }
.win--maker .mark { width: 33px; height: 30px; }
.maker__name { font-family: var(--pixel); font-size: clamp(56px, 6.4vw, 92px); line-height: 1; }
.maker__text h2 { font-weight: 900; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.05em; margin-bottom: 22px; }
.maker__text p { font-size: 18px; }
.maker__text p + p { margin-top: 1em; }
.maker__text strong { font-weight: 800; background: linear-gradient(transparent 58%, var(--paper) 0); }
.maker__text .px-btn { margin-top: 30px; }

/* ---------- Contact and next-batch closers ---------- */
.closer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.closer__text p { font-size: 18px; max-width: 30em; }
.mail { display: inline-block; margin-top: 18px; font-weight: 900; font-size: clamp(26px, 3.4vw, 48px); letter-spacing: -0.04em; text-decoration-thickness: 3px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.mail:hover { color: var(--signal); }

/* ---------- Journal: an observation log ---------- */
.log { list-style: none; margin: 0; padding: 0; border-bottom: 3px solid var(--ink); }
.log__row {
  display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto; gap: 16px clamp(20px, 3vw, 48px);
  align-items: baseline; padding: clamp(24px, 3vw, 36px) 0; border-top: 3px solid var(--ink);
}
.log__no { font-weight: 900; font-size: clamp(56px, 7vw, 112px); line-height: .85; letter-spacing: -0.06em; }
.log__title { font-size: clamp(24px, 2.6vw, 36px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.2; }
.log__title a { text-decoration: none; background: linear-gradient(var(--star), var(--star)) 0 92% / 0 .35em no-repeat; transition: background-size .25s; }
.log__title a:hover { background-size: 100% .35em; }
.log__main p { color: var(--muted); max-width: 34em; margin-top: 10px; }
.log__meta { display: grid; justify-items: end; gap: 6px; font-weight: 800; white-space: nowrap; }
.log__row--next .log__no { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.log__row--next .log__title { color: var(--muted); }

/* ---------- Real product screens ---------- */
.shot { overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; border-top: 3px solid var(--ink); }
.shot--tall img { max-height: 620px; object-fit: cover; object-position: top; }
.device-pair { position: relative; padding-right: clamp(40px, 8vw, 120px); }
.device-pair .phone { position: absolute; right: 0; bottom: -28px; width: clamp(130px, 17vw, 210px); }
.device-pair .phone figcaption { display: none; }

.product { display: grid; gap: clamp(40px, 5vw, 64px); }
.product > .world__head, .product > .world__body { margin: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 3px solid var(--ink); background: var(--paper); }
.facts li { padding: 22px 22px 26px; }
.facts li + li { border-left: 3px solid var(--ink); }
.facts__n { display: inline-block; padding: 2px 6px; background: var(--ink); color: var(--paper); }
.facts h3 { margin: 14px 0 8px; font-size: 20px; font-weight: 900; line-height: 1.3; letter-spacing: -0.03em; }
.facts p { font-size: 15px; line-height: 1.7; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.gallery__item { margin: 0; }
.gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.gallery__item:hover img { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.gallery__item figcaption { margin-top: 14px; font-size: 15px; line-height: 1.6; }
.gallery__item figcaption b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 13px; margin-bottom: 2px; }

.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: clamp(28px, 4vw, 48px); background: var(--sky); border: 3px solid var(--ink); }
.phones--two { grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; gap: clamp(24px, 6vw, 96px); }
.phone { margin: 0; }
.phone__screen { padding: 8px; background: var(--ink); border-radius: 28px; box-shadow: 6px 6px 0 rgba(0, 0, 0, .25); }
.phone__screen img { display: block; width: 100%; height: auto; border-radius: 21px; }
.phone figcaption { margin-top: 12px; text-align: center; font-family: var(--pixel); font-size: 12px; }

.related { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 32px; align-items: start; padding-top: 24px; border-top: 3px solid var(--ink); }
.related__label { margin: 4px 0 0; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related a { font-size: clamp(18px, 1.8vw, 22px); font-weight: 800; letter-spacing: -0.02em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.related a::after { content: " →"; }
.related a:hover { color: var(--signal); }
.product-note { margin: 0; color: var(--muted); }

.section--sky { background: var(--sky); }
.section-head__note { max-width: 26em; font-size: 18px; line-height: 1.7; }
.world--compact { padding-top: clamp(40px, 5vw, 64px); border-top: 3px solid var(--ink); }
.world--compact + .world--compact { margin-top: clamp(56px, 7vw, 96px); }
.world--compact .world__head { border-top: 0; padding-top: 0; }
.world--compact .world__name { font-size: clamp(40px, 6.4vw, 104px); }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts h4 { margin: 14px 0 8px; font-size: 19px; font-weight: 900; line-height: 1.3; letter-spacing: -0.03em; }
.gallery--2 { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: start; }
.gallery--2:not(:has(.gallery__item--phone)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery__item--phone .phone__screen { max-width: 240px; }
.gallery__item--phone img { aspect-ratio: auto; object-fit: fill; border: 0; box-shadow: none; transform: none !important; }
.gallery__item--phone figcaption { text-align: left; }
.gatherings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.gathering { display: grid; gap: 28px; align-content: start; }
.gathering__text h3 { margin: 8px 0 12px; font-size: clamp(32px, 4vw, 56px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; }
.gathering__text > p:not(.pixel) { font-size: 17px; line-height: 1.8; margin-bottom: 18px; }
.gathering__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

.more-strip { margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 3px solid var(--ink); }
.more-strip__label { margin: 0 0 20px; }
.more-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.more-card { display: grid; gap: 6px; height: 100%; padding: 10px 10px 14px; text-decoration: none; background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.more-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.more-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 2px solid var(--ink); margin-bottom: 6px; }
.more-card__name { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.more-card__line { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Article ---------- */
.masthead--article .mega { font-size: clamp(40px, 6vw, 92px); line-height: 1.02; max-width: 13em; }
.article-kicker { margin-bottom: clamp(24px, 3vw, 40px); }
.article-dek { max-width: 27em; margin-top: clamp(28px, 3.5vw, 44px); font-size: clamp(18px, 1.8vw, 23px); font-weight: 600; line-height: 1.6; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.article-body { width: min(40em, 100% - var(--gutter) * 2); margin-inline: auto; padding-block: var(--section-y) clamp(48px, 5vw, 72px); }
.article-body p { font-size: 18px; line-height: 1.95; }
.article-body p + p { margin-top: 1.2em; }
.article-body h2 { margin: 2.2em 0 .7em; font-size: clamp(28px, 3.2vw, 44px); font-weight: 900; line-height: 1.1; letter-spacing: -0.045em; }
.note { position: relative; margin: 2.6em 0; background: var(--rose); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 38px 28px 26px; }
.note .badge { position: absolute; top: -17px; left: 22px; }
.article-body .note p { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.5; font-weight: 800; letter-spacing: -0.035em; }
.end-mark { display: block; width: 22px; height: 20px; margin-top: 48px; color: var(--star); }
.article-back { padding-top: 0; padding-bottom: var(--section-y);  display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* KeyFlow posts: sanitized rich text rendered in the studio's type */
.article-cover { width: min(64em, 100% - var(--gutter) * 2); margin: var(--section-y) auto 0; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: var(--sky); }
.article-cover img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.article-cover + .article-body { padding-top: clamp(48px, 6vw, 88px); }
.article-body--rich > :first-child { margin-top: 0; }
.article-body--rich > * + * { margin-top: 1.2em; }
.article-body--rich h2 { margin-top: 2.2em; }
.article-body--rich h3 { margin: 2em 0 .6em; font-size: clamp(22px, 2.3vw, 30px); font-weight: 900; line-height: 1.25; letter-spacing: -0.035em; }
.article-body--rich h4 { margin: 1.8em 0 .4em; font-size: 20px; font-weight: 800; }
.article-body--rich h3 + *, .article-body--rich h4 + *, .article-body--rich h2 + * { margin-top: 0; }
.article-body--rich :not(.link-card__text) > strong { font-weight: 800; background: linear-gradient(transparent 60%, var(--rose) 0); }
.article-body--rich h2 strong, .article-body--rich h3 strong { background: none; }
.article-body--rich a:not(.link-card) { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.article-body--rich a:not(.link-card):hover { color: var(--signal); }
.article-body--rich ul, .article-body--rich ol { padding-left: 1.4em; font-size: 18px; line-height: 1.85; }
.article-body--rich ul { list-style: square; }
.article-body--rich li + li { margin-top: .5em; }
.article-body--rich li::marker { color: var(--ink); font-weight: 800; }
.article-body--rich img:not(.link-card img) { display: block; max-width: 100%; height: auto; margin-inline: auto; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.article-body--rich p:has(> img:only-child) { margin-block: 2em; }
.article-body--rich hr { height: 16px; margin: 3em 0; border: 0; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px) center / 100% 4px no-repeat; }
.article-body--rich blockquote { margin: 2em 0; padding: 20px 24px; background: var(--rose); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.article-body--rich code { font-family: var(--pixel); font-size: .82em; padding: .1em .35em; background: var(--sky); }
.article-body--rich pre { overflow-x: auto; padding: 20px; background: var(--ink); color: var(--paper); }
.article-body--rich pre code { background: none; color: inherit; padding: 0; }
.article-body--rich table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article-body--rich th, .article-body--rich td { padding: 10px 12px; border: 2px solid var(--ink); text-align: left; }
.article-body--rich th { background: var(--sky); }
.drop-cap { font-size: 1.5em; font-weight: 900; background: var(--star); padding: 0 .12em; }
.link-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); margin: 2em 0; text-decoration: none; background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.link-card:hover { background: var(--sky); }
.link-card img { display: block; width: 100%; height: 100%; min-height: 110px; object-fit: cover; border-right: 3px solid var(--ink); background: var(--sky); }
.link-card__text { display: grid; align-content: center; gap: 6px; padding: 16px 20px; min-width: 0; }
.link-card__text strong { font-weight: 800; line-height: 1.35; }
.link-card__text > span:not(.link-card__host) { font-size: 14px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-card__host { color: var(--muted); }
.link-card:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }

/* ---------- Footer: the star sets behind the wordmark ---------- */
.foot { background: var(--sky); overflow: hidden; }
.foot__top {
  padding-top: clamp(56px, 7vw, 96px); padding-bottom: 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: end;
}
.foot__lead { grid-column: 1 / -1; }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--pixel); font-size: 15px; text-decoration: none; }
.foot__brand .mark { width: 20px; height: 18px; }
.foot__tag { margin-top: 12px; font-weight: 800; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -0.03em; }
.foot__top .mail { margin-top: 0; font-size: clamp(28px, 4.2vw, 60px); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px; }
.foot nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: var(--pixel); font-size: 13px; text-decoration: none;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--ink) border-box; border: 3px solid transparent; clip-path: var(--notch);
}
.foot nav a:hover { background: linear-gradient(var(--star), var(--star)) padding-box, var(--ink) border-box; }
.foot nav a:focus-visible { clip-path: none; }
.foot__horizon { position: relative; height: clamp(170px, 24vw, 360px); }
.foot__horizon svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot__word {
  position: absolute; left: 50%; bottom: -.16em; transform: translateX(-50%);
  font-weight: 900; font-size: 25vw; line-height: 1; letter-spacing: -0.075em; white-space: nowrap;
}
.foot__small {
  display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap;
  background: var(--ink); color: var(--paper); font-family: var(--pixel); font-size: 12px;
  padding: 14px var(--gutter);
}

.feed { border-top: 3px solid var(--ink); }
.feed-item { display: grid; grid-template-columns: 74px minmax(0, 1fr) 110px; gap: 24px; align-items: start; padding: 28px 0; border-bottom: 2px solid var(--ink); }
.feed-item__number { font-size: 24px; }
.feed-item__source { margin: 0 0 8px; font-size: 12px; }
.feed-item h2 { margin: 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.3; }
.feed-item h2 a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.feed-item__content > p:last-child { margin: 12px 0 0; line-height: 1.7; }
.feed-item time { font-family: var(--pixel); font-size: 12px; }
.feed-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.feed-intro p { max-width: 620px; margin: 0; }
.channels { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.channel { display: grid; gap: 8px; height: 100%; padding: 18px 20px; text-decoration: none; background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.channel:hover { background: var(--sky); }
.channel strong { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.channel span:last-child { line-height: 1.6; }
.channel__name { margin: 0; }
.maker__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.foot__navs { display: grid; gap: 8px; justify-items: end; }
.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; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 3px solid var(--ink); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts--3 { grid-template-columns: minmax(0, 1fr); }
  .facts--3 li + li { border-left: 0; border-top: 3px solid var(--ink); }
  .gatherings { grid-template-columns: minmax(0, 1fr); }
  .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels { grid-template-columns: minmax(0, 1fr); }
  .system { width: 110vw; right: -52vw; top: 0; transform: none; }
  .world-tag { display: none; }
  .masthead__sky { width: 96vw; right: -48vw; top: -12vw; transform: none; }
  .world__body, .world--mirror .world__body { grid-template-columns: minmax(0, 1fr); }
  .world--mirror .world__text { order: 0; }
  .split, .closer { grid-template-columns: minmax(0, 1fr); }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .phases li + li { border-left: 0; border-top: 3px solid var(--ink); }
  .phases li { grid-template-columns: 140px auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; padding: 0; column-gap: 16px; row-gap: 4px; }
  .phases svg { grid-column: 1; grid-row: 1 / span 2; margin: 0; border-bottom: 0; border-right: 3px solid var(--ink); height: 100%; }
  .phases__n { grid-row: 1 / span 2; padding-left: 4px; font-size: 48px; }
  .phases h3 { align-self: end; padding-top: 16px; font-size: 20px; }
  .phases p { align-self: start; grid-column: 3; padding-bottom: 16px; }
  .maker__grid { grid-template-columns: minmax(0, 1fr); }
  .win--maker { max-width: 360px; }
  .log__row { grid-template-columns: auto minmax(0, 1fr); }
  .log__meta { grid-column: 2; justify-items: start; }
  .run a { flex-wrap: wrap; font-size: 16px; padding-inline: 14px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li + li { border-left: 0; border-top: 3px solid var(--ink); }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 6px 12px 0; margin-right: calc(var(--gutter) * -1); }
  .gallery__item { scroll-snap-align: start; }
  .phones { gap: 16px; padding: 20px; }
  .phones--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related { grid-template-columns: minmax(0, 1fr); }
  .device-pair { padding-right: 64px; }
  body { font-size: 16px; }
  .bar { position: relative; grid-template-columns: minmax(0, 1fr) auto; height: auto; }
  .bar__brand, .bar__cta { height: 48px; }
  .bar nav { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid #333; }
  .bar nav a { flex: 1; justify-content: center; height: 44px; padding: 0; }
  .bar nav a:first-child { border-left: 0; }
  .bar nav a:last-child { border-right: 0; }
  [id] { scroll-margin-top: 16px; }

  .hero { min-height: 0; padding-top: 44px; }
  .system { width: 128vw; right: -70vw; top: -6vw; }
  .headline { font-size: clamp(48px, 16vw, 100px); line-height: .94; }
  .headline .line:nth-child(2) { padding-left: .5em; }
  .lede { box-shadow: 6px 6px 0 var(--ink); padding: 16px 18px; }
  .actions .px-btn { flex: 1 1 auto; }
  .curve { margin-top: 40px; }
  .curve svg { height: 48px; }

  .run { flex-direction: column; box-shadow: 6px 6px 0 var(--ink); }
  .run__label { min-height: 36px; }
  .run ul { flex-direction: column; }
  .run li + li { border-left: 0; border-top: 3px solid var(--ink); }
  .run a { flex-wrap: nowrap; min-height: 54px; }

  .masthead__sky { width: 120vw; right: -66vw; top: -16vw; }
  .dither { grid-template-rows: repeat(4, 12px); }

  .world__head { grid-template-columns: auto minmax(0, 1fr); }
  .world__head .badge { grid-column: 1 / -1; justify-self: start; }
  .world__name { font-size: clamp(40px, 13vw, 72px); white-space: normal; }
  .world__text dl { grid-template-columns: repeat(2, auto); gap: 12px 28px; }
  .world__text .px-btn { width: 100%; }
  .win { box-shadow: 6px 6px 0 var(--ink); }
  .win__body { min-height: 0; }
  .meter { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .win--term .win__body { font-size: 13px; min-height: 180px; }
  .stages li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .stages b { width: 44px; height: 44px; font-size: 18px; }
  .stages em { display: none; }

  .phases li { grid-template-columns: 96px auto minmax(0, 1fr); column-gap: 12px; }
  .phases__n { font-size: 40px; }
  .phases h3, .phases p { padding-right: 14px; }
  .maker__text .px-btn { width: 100%; }

  .log__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .feed-item { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .feed-item time { grid-column: 2; }
  .log__meta { grid-column: 1; }
  .note { padding: 34px 20px 22px; box-shadow: 6px 6px 0 var(--ink); }
  .article-body p { font-size: 17px; line-height: 1.9; }
  .article-body--rich ul, .article-body--rich ol { font-size: 17px; }
  .link-card { grid-template-columns: 88px minmax(0, 1fr); }
  .article-cover { box-shadow: 6px 6px 0 var(--ink); }

  .foot__top { grid-template-columns: minmax(0, 1fr); }
  .foot__navs { justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .px-btn:active { transform: none; }
}

/* ==========================================================================
   Motion — only when html.motion is set (JS on, reduced motion off)
   ========================================================================== */
@property --rv { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --rs { syntax: '<number>'; inherits: false; initial-value: 1; }

/* Covers the first paint until the intro or arrival wipe takes over; hides itself if JS never runs. */
html.intro body::before, html.wipe-in body::before {
  content: ""; position: fixed; inset: 0; z-index: 200; background: var(--ink);
  animation: cover-failsafe 0s linear 4s forwards;
}
@keyframes cover-failsafe { to { visibility: hidden; } }

.intro {
  position: fixed; inset: 0; z-index: 210; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-family: var(--pixel); cursor: pointer;
}
.intro::before {
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, var(--star) 3px 4px);
  animation: scan 1.2s steps(6) infinite;
}
@keyframes scan { to { background-position: 0 24px; } }
.intro__panel { position: relative; width: min(560px, 100% - 40px); }
.intro__tag { font-size: 12px; color: var(--star); letter-spacing: .12em; margin-bottom: 28px; }
.intro__log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.intro__log li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; font-size: clamp(16px, 2.4vw, 24px); animation: log-in .25s steps(3) both; }
.intro__log li span { color: #8a8796; }
.intro__log li b { font-weight: 400; }
.intro__log li:last-child b { color: var(--star); }
.intro__log li:last-child b::after { content: "▮"; margin-left: 6px; animation: blink .6s steps(1) infinite; }
@keyframes log-in { from { opacity: 0; transform: translateX(-12px); } }
@keyframes blink { 50% { opacity: 0; } }
.intro__bar { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; margin-top: 32px; }
.intro__bar i { height: 14px; border: 2px solid #3f3d4a; }
.intro__bar i.on { background: var(--star); border-color: var(--star); box-shadow: 0 0 12px var(--star); }
.intro__skip { margin-top: 20px; font-size: 11px; color: #5f5d6a; }

canvas.wipe { position: fixed; inset: 0; z-index: 205; width: 100vw; height: 100vh; pointer-events: none; }

/* Hero: live system */
html.motion .system {
  transform: perspective(1400px) translateY(-54%) translateY(var(--sy, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d; will-change: transform;
}
html.motion .system svg { overflow: visible; }
html.motion .system :is(svg, .system__video) { scale: calc(1 + var(--beat, 0) * .09); transition: scale .08s linear; }
.orbits ellipse { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 9; opacity: .45; vector-effect: non-scaling-stroke; }
html.motion .world-tag { transition: opacity .4s; }
html.motion .world-tag.is-behind { opacity: .35; }
html.motion .world-tag.is-away { opacity: 0; }
.system__video { position: absolute; inset: 7%; width: 86%; height: 86%; image-rendering: pixelated; animation: spin 140s linear infinite; }
.system__source { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.system.has-video svg > circle { display: none; }
.curve { position: relative; }
.curve__readout {
  position: absolute; right: 0; top: -30px; margin: 0; padding: 4px 8px;
  background: var(--paper); border: 2px solid var(--ink); font-size: 12px; white-space: nowrap;
}
.curve__readout.is-transit { background: var(--ink); color: var(--star); }
html.motion .curve svg { animation: none; }
.sparks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

html.motion .hero:not(.is-live) :is(.lede, .actions, .run, .curve) { opacity: 0; }
html.motion .hero.is-live .headline .line { animation: glitch-in .9s steps(9) calc(var(--li, 0) * 160ms) both; }
@keyframes glitch-in {
  0% { text-shadow: 10px 0 0 var(--star), -10px 0 0 #7fa6ff; transform: translateX(-14px) skewX(-8deg); }
  30% { text-shadow: -6px 0 0 var(--star), 6px 0 0 #7fa6ff; transform: translateX(8px) skewX(4deg); }
  60% { text-shadow: 3px 0 0 var(--star), -3px 0 0 #7fa6ff; transform: translateX(-3px); }
  100% { text-shadow: none; transform: none; }
}
html.motion .hero.is-live .lede { animation: pop-in .7s cubic-bezier(.2, 1.4, .4, 1) .9s both; }
html.motion .hero.is-live .actions { animation: pop-in .7s cubic-bezier(.2, 1.4, .4, 1) 1.1s both; }
html.motion .hero.is-live .curve { animation: fade-in .8s ease 1.2s both; }
html.motion .hero.is-live .run { animation: pop-in .7s cubic-bezier(.2, 1.4, .4, 1) 1.35s both; }
html.motion .hero.is-live .system { animation: system-in 1.6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes system-in { from { opacity: 0; scale: .7; filter: blur(12px); } }

/* Split type: characters rise in */
html.motion .is-split .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(8deg); filter: blur(6px); }
html.motion .is-split.is-in .ch {
  opacity: 1; transform: none; filter: none;
  transition: opacity .5s ease, transform .8s cubic-bezier(.2, 1.3, .3, 1), filter .5s ease;
  transition-delay: calc(var(--i) * 28ms);
}
html.motion .is-split.is-in .ch:hover { color: var(--signal); transform: translateY(-.08em) rotate(-4deg); transition-delay: 0s; }

/* Scroll reveals, combined with tilt through custom properties */
html.motion .reveal {
  opacity: 0; --rv: 44px; --rs: .97;
  transform: perspective(1000px) translateY(var(--rv)) scale(var(--rs)) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: opacity .9s ease var(--d, 0s), --rv 1s cubic-bezier(.2, 1, .3, 1) var(--d, 0s), --rs 1s cubic-bezier(.2, 1, .3, 1) var(--d, 0s);
}
html.motion .reveal.is-in { opacity: 1; --rv: 0px; --rs: 1; }
html.motion .is-split.reveal { opacity: 1; transform: none; }
html.motion .tilt:not(.reveal) { transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .3s ease; }
html.motion .tilt { position: relative; }
html.motion .tilt:is(.shot, .more-card, .channel, .link-card)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .45), transparent 45%);
  mix-blend-mode: soft-light;
}
html.motion .tilt:hover::after { opacity: 1; }
html.motion .gallery__item:hover img, html.motion .more-card:hover { transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }

/* Screenshots wipe in by pixel rows */
html.motion .shot.reveal img, html.motion .gallery__item.reveal img, html.motion .more-card.reveal img { clip-path: inset(0 0 100% 0); }
html.motion .shot.reveal.is-in img, html.motion .gallery__item.reveal.is-in img, html.motion .more-card.reveal.is-in img { animation: pixel-wipe 1s steps(12) calc(var(--d, 0s) + .25s) forwards; }
@keyframes pixel-wipe { to { clip-path: inset(0 0 0 0); } }
html.motion .win.reveal .win__bar { transform-origin: left; }
html.motion .win.reveal.is-in .win__bar { animation: bar-in .5s steps(6) var(--d, 0s) both; }
@keyframes bar-in { from { transform: scaleX(0); } }
html.motion .phone.reveal.is-in { animation: phone-float 6s ease-in-out calc(var(--d, 0s) + 1s) infinite; }
@keyframes phone-float { 50% { translate: 0 -10px; } }

/* Dither bands shimmer */
html.motion .dither i { animation: dither-drift 3.2s steps(6) infinite; }
html.motion .dither i:nth-child(2) { animation-duration: 4.4s; animation-direction: reverse; }
html.motion .dither i:nth-child(3) { animation-duration: 2.6s; }
html.motion .dither i:nth-child(4) { animation-duration: 5.2s; animation-direction: reverse; }
@keyframes dither-drift { to { -webkit-mask-position: 24px 0; mask-position: 24px 0; } }

/* Inner-page stars rotate their dither rings and loop a transit */
html.motion .masthead__sky circle[fill^="url"] { transform-box: view-box; transform-origin: 500px 500px; animation: spin 90s linear infinite; }
html.motion .masthead__sky circle[fill^="url"]:nth-of-type(odd) { animation-direction: reverse; animation-duration: 70s; }
html.motion .masthead__sky circle:last-of-type { animation: masthead-transit 7s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes masthead-transit { 0% { transform: translateX(-520px); } 60%, 100% { transform: translateX(520px); } }
@keyframes spin { to { transform: rotate(360deg); } }
html.motion .orb { animation: spin 24s linear infinite; }

/* Product ticker */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); border-block: 3px solid var(--ink); }
.ticker__row { display: flex; width: max-content; padding-block: 14px; font-weight: 900; font-size: clamp(28px, 4.4vw, 64px); letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.ticker__row + .ticker__row { background: var(--star); color: var(--ink); font-family: var(--pixel); font-weight: 400; font-size: clamp(18px, 2.2vw, 28px); letter-spacing: 0; }
.ticker__row span { padding-right: .6em; }
.ticker__row span::after { content: "✦"; padding-left: .6em; color: var(--star); }
.ticker__row + .ticker__row span::after { content: "◆"; color: var(--ink); }
html.motion .ticker__row { animation: marquee 28s linear infinite; }
html.motion .ticker__row + .ticker__row { animation-duration: 36s; animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker:hover .ticker__row { animation-play-state: paused; }

/* Cursor planet and scroll progress */
.progress { position: fixed; left: 0; top: 0; z-index: 120; width: 100%; height: 5px; background: repeating-linear-gradient(90deg, var(--star) 0 10px, var(--ink) 10px 12px); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.cursor-orb {
  position: fixed; left: -14px; top: -14px; z-index: 130; width: 28px; height: 28px; border-radius: 50%;
  background: var(--star); mix-blend-mode: difference; pointer-events: none; opacity: 0;
  transition: opacity .3s, width .25s, height .25s, left .25s, top .25s;
}
.cursor-orb.is-on { opacity: 1; }
.cursor-orb.is-link { width: 64px; height: 64px; left: -32px; top: -32px; }

@media (prefers-reduced-motion: reduce) {
  .intro, canvas.wipe, .sparks, .cursor-orb, .progress { display: none !important; }
}

/* Background radio */
.radio {
  position: fixed; left: 16px; bottom: 16px; z-index: 110;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px;
  width: min(380px, calc(100vw - 32px)); padding: 8px 10px 8px 8px;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.radio__cover { width: 48px; height: 48px; object-fit: cover; border: 2px solid var(--ink); image-rendering: pixelated; }
html.motion .radio.is-playing .radio__cover { animation: spin 6s linear infinite; border-radius: 50%; }
.radio__meta { min-width: 0; }
.radio__title { margin: 0; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio__artist { margin: 2px 0 0; font-size: 11px; }
.radio__artist a { text-decoration: none; color: var(--muted); }
.radio__eq { width: 60px; height: 28px; image-rendering: pixelated; }
.radio__btn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; font: 700 13px/1 var(--pixel); color: var(--paper); background: var(--ink); border: 0; cursor: pointer; }
.radio__btn:hover { background: var(--star); color: var(--ink); }
.radio__btn:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.radio.is-playing .radio__play { background: var(--star); color: var(--ink); }
@media (max-width: 640px) {
  .radio { left: 10px; right: 10px; bottom: 10px; width: auto; grid-template-columns: 40px minmax(0, 1fr) auto auto; }
  .radio__cover { width: 40px; height: 40px; }
  .radio__eq { display: none; }
  body { padding-bottom: 76px; }
}

/* Vibe coding pillar page */
.vibe .toc { margin: 0 0 2.4em; padding: 20px 24px; background: var(--sky); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.vibe .toc p { margin: 0 0 10px; }
.vibe .toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; font-size: 16px; }
.vibe .toc li + li { margin-top: .3em; }
.vibe__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.6em 0; list-style: none; padding: 0; }
.article-body--rich .vibe__grid img { border: 2px solid var(--ink); box-shadow: none; }
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--pixel); font-size: 22px; }
.faq__item[open] summary::after { content: "−"; }
.faq__item[open] summary { background: var(--rose); border-bottom: 3px solid var(--ink); }
.article-body--rich .faq__item h3 { margin: 0; font-size: 18px; }
.faq__item p { padding: 16px 20px; margin: 0; }
.vibe__reading { list-style: none; padding: 0; }
.vibe__reading a { font-weight: 800; }
@media (max-width: 640px) { .vibe .toc ol { columns: 1; } .vibe__grid { grid-template-columns: minmax(0, 1fr); } }
.article-body--rich .vibe__grid { list-style: none; padding-left: 0; }
.article-body--rich a.more-card { text-decoration: none; font-weight: inherit; }
.article-body--rich a.more-card:hover { color: inherit; }
.case__numbers { list-style: none; padding: 0; margin: 0 0 2em; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.article-body--rich .case__numbers li { margin: 0; padding: 14px 16px; background: var(--ink); color: var(--paper); }
.case__numbers b { display: block; font-size: 36px; font-weight: 900; letter-spacing: -0.04em; color: var(--star); line-height: 1.1; }
.case__numbers span { font-family: var(--pixel); font-size: 12px; }
.article-shot { margin: 0 0 2em; }
.article-body--rich .article-shot img { border: 0; box-shadow: none; }
.article-body--rich .case__numbers { list-style: none; padding-left: 0; }
