/* FutureKind site chassis. gallery-style: custom (keynote, light mode: ported from videos/motion/2026-09-25-what-is-left; jfk 2026-09-25) */
:root {
  --ground: #fbfbfd;
  --panel: #ffffff;
  --panel-2: #f5f5f7;
  --rule: #e3e3e8;
  --rule-hi: #d2d2d7;
  --ink: #1d1d1f;
  --dim: #515154;   /* 7.9:1 on --ground */
  --faint: #6e6e73; /* 4.9:1 on --ground; smallest text allowed */
  --accent: #0071e3; /* 4.6:1 on white; Keynote BLUE, light-mode depth */
  --live: #1a7f37;
  --finding: #b25000;
  --killed: #d70015;
  --shipped: #0066cc;
  --focus: #0071e3;
  /* the Keynote SPECTRUM, deepened so gradient text holds 3:1 at display sizes on a light ground */
  --spectrum: linear-gradient(90deg, #d9480f 0%, #e0115f 35%, #9b30d9 70%, #3a5bff 100%);
  --spectrum-conic: conic-gradient(from var(--spin, 0deg), #ff9f0a, #ff375f, #bf5af2, #5e8bff, #40c8e0, #ff9f0a);
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* display role; the keynote look is one family */
  --mono: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;  /* readings role; tabular figures below */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --bar-h: 56px;
  --r: 20px;
}
@property --spin { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  letter-spacing: -.011em;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
[id] { scroll-margin-top: calc(var(--bar-h) + env(safe-area-inset-top) + 16px); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.ic { width: 1em; height: 1em; vertical-align: -.14em; flex: none; display: inline-block; }
.btn .ic { margin-left: .35em; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 980px; font: 600 14px var(--sans);
}
.skip:focus { top: calc(8px + env(safe-area-inset-top)); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid color-mix(in srgb, var(--rule-hi) 70%, transparent);
}
.bar .wrap { height: var(--bar-h); display: flex; align-items: center; gap: 24px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--sans); letter-spacing: -.03em; }
.mark .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--spectrum-conic); animation: spin 6s linear infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  text-decoration: none; font: 500 14px/1 var(--sans); color: var(--dim);
  padding: 10px 12px; border-radius: 980px; letter-spacing: -.01em;
}
.nav a:hover { color: var(--ink); background: var(--panel-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.labtime { font: 500 12px/1 var(--sans); color: var(--faint); white-space: nowrap; }
.labtime b { color: var(--dim); font-weight: 500; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 500 15px/1 var(--sans); letter-spacing: -.01em; text-decoration: none;
  padding: 12px 20px; border-radius: 980px; border: 1px solid var(--rule-hi);
  background: var(--panel); color: var(--ink); min-height: 44px;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.solid:hover { background: #0077ed; border-color: #0077ed; }
.btn[disabled] { opacity: .55; cursor: progress; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .labtime { display: none; }
  .nav {
    position: fixed; inset: calc(var(--bar-h) + env(safe-area-inset-top)) 0 auto 0;
    flex-direction: column; gap: 0; padding: 8px max(var(--gutter), env(safe-area-inset-left)) calc(16px + env(safe-area-inset-bottom));
    background: var(--ground); border-bottom: 1px solid var(--rule);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 20px; font-weight: 600; letter-spacing: -.02em; padding: 16px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .bar .follow-top { display: none; }
}

/* ---------- type ---------- */
.eyebrow { font: 600 14px/1.4 var(--sans); letter-spacing: -.01em; color: var(--dim); margin: 0; }
.eyebrow .tick { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--spectrum-conic); color: transparent; vertical-align: .05em; margin-right: .3em; overflow: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -.045em; }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.04em; }
h3 { font-size: 24px; line-height: 1.18; letter-spacing: -.025em; font-weight: 600; }
/* the claim word: Keynote gradient fill */
h1 em, h2 em {
  font-style: normal; color: var(--ink);
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .04em; /* keeps the last glyph inside the clip */
}
.lede { font-size: clamp(19px, 1.7vw, 22px); color: var(--dim); max-width: 34em; line-height: 1.45; letter-spacing: -.015em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* word-by-word blur-in (site.js splits [data-words]) */
.w { display: inline-block; }
.words-go .w { opacity: 0; filter: blur(16px); transform: translateY(.18em); animation: wordin .8s cubic-bezier(.22,.8,.3,1) forwards; animation-delay: calc(var(--i) * 90ms + 120ms); }
@keyframes wordin { to { opacity: 1; filter: blur(0); transform: none; } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: 180px 1fr; gap: 24px; margin-bottom: 56px; align-items: start; }
.sec-head .num { font: 600 14px/1.4 var(--sans); color: var(--faint); padding-top: 12px; margin: 0; }
.sec-head .num b { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .sec-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 36px; } }

/* ---------- kind chips ---------- */
.kind { font: 600 12px/1 var(--sans); letter-spacing: 0; padding: 5px 10px; border-radius: 980px; white-space: nowrap; background: color-mix(in srgb, currentColor 9%, white); }
.k-exploring, .k-running { color: var(--live); }
.k-experiment { color: var(--ink); }
.k-shipped { color: var(--shipped); }
.k-finding { color: var(--finding); }
.k-killed { color: var(--killed); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--panel); padding: 30px; display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; min-height: 100%; border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--rule), 0 2px 6px rgba(0,0,0,.03);
  transition: box-shadow .3s, transform .3s cubic-bezier(.2,.7,.2,1);
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--rule-hi), 0 18px 40px rgba(0,0,0,.08); }
a.card:hover .arrow { transform: translate(3px, -3px); color: var(--accent); }
.card .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 13px/1 var(--sans); color: var(--faint); }
.card h3 { font-size: 26px; }
.card p { margin: 0; color: var(--dim); }
.card .reading { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); font: 600 15px/1.45 var(--sans); color: var(--ink); letter-spacing: -.015em; }
.card .reading.none { color: var(--faint); font-weight: 500; }
.arrow { position: absolute; top: 28px; right: 28px; font: 500 18px/1 var(--sans); color: var(--faint); transition: transform .25s, color .25s; }

/* ---------- capture ---------- */
.capture { display: flex; gap: 8px; flex-wrap: wrap; max-width: 520px; }
.capture input {
  flex: 1 1 240px; min-height: 50px; padding: 0 18px; border-radius: 980px;
  background: var(--panel); border: 1px solid var(--rule-hi); color: var(--ink); font: 400 17px var(--sans);
}
.capture input::placeholder { color: var(--faint); }
.capture input:hover { border-color: var(--faint); }
.capture input[aria-invalid="true"] { border-color: var(--killed); }
.capture .btn { min-height: 50px; }
.capture-status { flex-basis: 100%; margin: 4px 0 0 18px; min-height: 1.4em; font: 500 14px/1.4 var(--sans); color: var(--dim); }
.capture-status[data-state="success"] { color: var(--live); }
.capture-status[data-state="error"] { color: var(--killed); }
.capture-status[data-state="pending"] { color: var(--finding); }

/* the follow panel carries the Keynote spectral edge glow */
.follow {
  position: relative; isolation: isolate; border-radius: 28px; background: var(--panel);
  padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end;
  box-shadow: 0 0 0 1px var(--rule);
}
.follow::before, .follow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; }
.follow::before { inset: -2px; background: var(--spectrum-conic); animation: spin 8s linear infinite; }
.follow::after { background: var(--panel); }
.follow > div::before { /* soft bloom behind the panel */
  content: ""; position: absolute; inset: 8% 6%; z-index: -2; border-radius: inherit;
  background: var(--spectrum-conic); filter: blur(60px); opacity: .28; animation: spin 8s linear infinite;
}
.follow .promise { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font: 500 16px/1.4 var(--sans); color: var(--dim); }
.follow .promise li::before { content: "✓  "; color: var(--accent); font-weight: 700; }
@media (max-width: 900px) { .follow { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font: 400 13px/1.6 var(--sans); color: var(--faint); background: var(--panel-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
/* no keyboard on a phone, so the projection-mode hint is noise there */
@media (hover: none) { .proj-hint { display: none; } }
/* phone: tighter section rhythm; the capture form stacks full width */
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .capture input, .capture .btn { flex: 1 1 100%; }
  .capture .btn { justify-content: center; }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(72px, 12vw, 160px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.page-hero canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(48px, 8vw, 112px); margin: 18px 0 22px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .mark .dot, .follow::before, .follow > div::before { animation: none; }
  .words-go .w { animation: none; opacity: 1; filter: none; transform: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* projection mode: bigger type, quieter ambient field */
body.projection { font-size: 21px; }
body.projection .hero-canvas, body.projection canvas.field { opacity: .25; }
body.projection .bar { position: static; }
