@font-face { font-family: 'Geist'; src: url('/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ground: #0e0f11; --panel: #15171a;
  --rule: rgba(242, 241, 236, 0.14); --rule-strong: rgba(242, 241, 236, 0.3);
  --bone: #f2f1ec; --bone-2: #c4c2bb; --bone-3: #8f8e88;
  --accent: #ff6a13; --accent-ink: #0e0f11;
  --font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --max: 1200px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--bone); font-family: var(--font); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-style: normal; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; position: relative; }

/* Visible column grid, like a layout sheet */
.grid-lines { position: fixed; inset: 0; width: min(var(--max), 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; z-index: 0; }
.grid-lines i { border-left: 1px dashed rgba(242, 241, 236, 0.06); }
.grid-lines i:last-child { border-right: 1px dashed rgba(242, 241, 236, 0.06); }
main, header, footer { position: relative; z-index: 1; }

.meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bone-3); }

.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; font-size: 1.05rem; }
.mark { width: 14px; height: 14px; background: var(--accent); }
.top-nav { display: flex; gap: 28px; }
.top-nav a { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; color: var(--bone-2); }
.top-nav a:hover { color: var(--bone); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border: 1px solid var(--rule-strong); text-decoration: none; font-weight: 580; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--bone); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { background: #ff7f33; border-color: #ff7f33; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; padding: 72px 0 48px; border-bottom: 1px solid var(--rule); }
.hero-copy { grid-column: 1 / span 8; }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 9.6rem); line-height: 0.9; letter-spacing: -0.055em; font-weight: 600; margin: 0 0 32px; }
.lead { font-size: 1.2rem; color: var(--bone-2); max-width: 44ch; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.spec { grid-column: 10 / span 3; margin: 6px 0 0; align-self: start; border-top: 1px solid var(--rule-strong); }
.spec div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bone-3); }
.spec dd { margin: 0; font-size: 0.95rem; }
.hero-fig { grid-column: 1 / -1; margin: 56px 0 0; border-top: 1px solid var(--rule); padding-top: 24px; }
.hero-fig { position: relative; aspect-ratio: 16 / 9; max-height: 680px; width: 100%; }
.hero-fig canvas, .hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.webgl .hero-still { display: none; }

/* Figures */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
.fig { padding: 36px 28px 32px 0; border-right: 1px solid var(--rule); }
.fig + .fig { padding-left: 28px; }
.fig:last-child { border-right: 0; }
.fig-num { margin: 0 0 12px; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.fig:first-child .fig-num { color: var(--accent); }
.fig-label { margin: 0 0 18px; color: var(--bone-2); max-width: 30ch; }
.fig .meta { margin: 0; padding-top: 10px; border-top: 1px solid var(--rule); }

/* Apps */
.apps { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.app { padding: 40px 32px 40px 0; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--rule); }
.app + .app { padding-left: 32px; padding-right: 0; border-right: 0; }
.app-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.app h2 { margin: 8px 0 0; font-size: clamp(2.4rem, 4.6vw, 3.8rem); letter-spacing: -0.045em; line-height: 1; font-weight: 600; }
.app p { margin: 0; color: var(--bone-2); max-width: 50ch; }
.shot { display: block; border: 1px solid var(--rule-strong); margin: 12px 0 8px; background: var(--panel); aspect-ratio: 16 / 10; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.app .btn { align-self: flex-start; }

/* Skeleton */
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px 24px; padding: 56px 0 32px; }
.section-head .meta { grid-column: 1 / -1; }
.section-head h2 { grid-column: 1 / span 7; margin: 0; font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -0.045em; line-height: 0.98; font-weight: 600; }
.section-head p { grid-column: 8 / span 5; margin: 0; color: var(--bone-2); align-self: end; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); }
.flow li { padding: 22px 24px 28px 0; position: relative; display: grid; gap: 8px; align-content: start; }
.flow li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.flow li:not(:last-child)::after { content: ''; position: absolute; right: -6px; top: 26px; width: 11px; height: 11px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); transform: rotate(45deg); background: var(--ground); z-index: 2; }
.flow h3, .kiro-grid h3 { margin: 6px 0 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.flow p, .kiro-grid p { margin: 0; color: var(--bone-2); font-size: 0.98rem; }
.flow code { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); margin-top: 6px; }
.skeleton { border-bottom: 1px solid var(--rule); padding-bottom: 48px; }

.kiro { padding-bottom: 64px; border-bottom: 1px solid var(--rule); }
.kiro-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); }
.kiro-grid > div { padding: 22px 24px 28px 0; display: grid; gap: 8px; align-content: start; }
.kiro-grid > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.kiro-grid > div:first-child { background: var(--accent); color: var(--accent-ink); padding-left: 20px; }
.kiro-grid > div:first-child .meta, .kiro-grid > div:first-child p { color: var(--accent-ink); }

.foot { padding: 32px 0 56px; display: grid; gap: 14px; color: var(--bone-3); font-size: 0.88rem; }
.foot p { margin: 0; max-width: 80ch; }

@media (max-width: 900px) {
  .hero-copy, .spec { grid-column: 1 / -1; }
  .spec { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .figures, .apps, .flow, .kiro-grid { grid-template-columns: 1fr; }
  .fig, .fig + .fig { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .app, .app + .app { padding: 32px 0; border-right: 0; }
  .app + .app { border-top: 1px solid var(--rule); }
  .section-head h2, .section-head p { grid-column: 1 / -1; }
  .flow li, .flow li + li, .kiro-grid > div + div { padding: 20px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .flow li::after { display: none; }
  .kiro-grid > div:first-child { padding: 20px; }
  .top-nav { gap: 16px; }
  .top-nav a:last-child { display: none; }
  .grid-lines { grid-template-columns: repeat(2, 1fr); }
  .grid-lines i:nth-child(n + 3) { display: none; }
}
