/* KRYONOM public preview v0.3.1
   Palette per Visual Direction Record v0.1: plum #35132F, lime #C8F542, ivory #F4F0E4 */
:root {
  --plum: #35132f;
  --plum-2: #4a2143;
  --lime: #c8f542;
  --ivory: #f4f0e4;
  --ivory-2: #ebe5d3;
  --line: rgba(53, 19, 47, 0.2);
  --line-strong: rgba(53, 19, 47, 0.45);
  --muted: #6a4a64;
  --on-plum-muted: #dccfd8;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: max(20px, 5vw, calc((100vw - 1360px) / 2));
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--plum);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 500; margin: 0; }
em { font-family: var(--serif); font-weight: 400; }
p { margin: 0; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
section[id], [id="field"] { scroll-margin-top: calc(var(--header-h) + 8px); }

:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.observatory :focus-visible, .site-footer :focus-visible, .detail :focus-visible { outline-color: var(--lime); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--plum); color: var(--ivory); padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- shared type ---------- */
.eyebrow, .section-index, .detail-id, .group-label, .field-note, .obs-caption, .doc-code, .boundary {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow { display: flex; gap: 9px; align-items: center; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.eyebrow-center { justify-content: center; }

.button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 13px 20px; font-size: 14px; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--plum); transition: background-color .2s, color .2s;
}
.button-plum { background: var(--plum); color: var(--ivory); }
.button-plum:hover { background: var(--plum-2); }
.button-line { background: transparent; color: var(--plum); border-color: var(--line-strong); }
.button-line:hover { background: var(--plum); color: var(--ivory); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.04em; max-width: 820px; }
.section-head .section-index { white-space: nowrap; padding-bottom: 8px; }
.section-lead { font-size: 16px; line-height: 1.7; max-width: 640px; margin-top: 22px; }

/* ---------- preview bar & header ---------- */
.preview-bar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px;
  margin: 0; padding: 7px var(--gutter);
  background: var(--plum); color: var(--ivory);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; text-align: center;
}
.preview-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h); padding: 10px var(--gutter);
  background: rgba(244, 240, 228, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: .15em; text-decoration: none; }
.site-nav { display: flex; gap: 6px 26px; flex-wrap: wrap; font-size: 13px; }
.site-nav a { display: inline-block; padding: 10px 0; text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-color: currentColor; }

.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px;
  background: var(--ivory); color: var(--plum); border: 1px solid var(--line-strong); cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none;
}
.menu-toggle[aria-expanded="true"] { background: var(--plum); color: var(--ivory); }
.menu-toggle[aria-expanded="true"] .menu-lines span { background: var(--ivory); }
.menu-lines { display: grid; gap: 5px; width: 18px; }
.menu-lines span { display: block; height: 2px; background: var(--plum); transition: transform .2s; }
.site-header.is-open .menu-lines span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.is-open .menu-lines span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- opening ---------- */
.opening { padding: clamp(28px, 3.6vw, 56px) var(--gutter) 0; }
.opening h1 {
  font-size: clamp(42px, 6.6vw, 100px); line-height: .98; letter-spacing: -.065em;
  margin-top: 16px; max-width: 13.5em;
}
.opening h1 em { letter-spacing: -.055em; }
.intro-line { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-top: 24px; }
.intro-line p { max-width: 560px; font-size: 16px; line-height: 1.65; }
.intro-text { display: grid; gap: 14px; }
.intro-sub { color: var(--muted); }
.intro-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hero-note { margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }

/* ---------- living field ---------- */
.field-section { position: relative; }
.field {
  position: relative;
  height: clamp(340px, 34vw, 600px);
  margin: 8px 0 0;
  background: radial-gradient(ellipse at 50% 58%, rgba(217, 228, 174, .47), transparent 59%);
  overflow: hidden;
}
.contour { position: absolute; inset: 7% 13% 4%; border: 1px solid rgba(53, 19, 47, .13); border-radius: 50%; transform: rotate(-12deg); pointer-events: none; }
.contour.two { inset: 20% 4% 17%; transform: rotate(8deg); }
.contour.three { inset: 1% 29% 0%; transform: rotate(22deg); }

.specimen {
  position: absolute; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--size, 100px) * .16 + 6px);
  padding: 6px; border: 0; background: transparent; color: var(--plum);
  cursor: pointer; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 12px; line-height: 1.4;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  border-radius: 12px;
}
.specimen[data-kind="seed"] { left: 17%; top: 58%; --size: clamp(72px, 7.2vw, 128px); }
.specimen[data-kind="sandbox"] { left: 51%; top: 50%; --size: clamp(170px, 17vw, 300px); }
.specimen[data-kind="shadow"] { left: 83%; top: 56%; --size: clamp(96px, 9.6vw, 170px); }

.sculpture {
  display: block; position: relative; width: var(--size); height: var(--size);
  transition: transform 700ms cubic-bezier(.2, .6, .2, 1);
  filter: drop-shadow(0 22px 13px rgba(53, 19, 47, .1));
}
.sway { position: absolute; inset: 0; display: block; }
.petal {
  position: absolute; inset: 16% 32%;
  border-radius: 55% 55% 42% 42%;
  background: linear-gradient(100deg, #6b9131 0%, var(--lime) 35%, #e0ff8b 60%, #95bc2b 100%);
  border: 1px solid rgba(69, 97, 19, .33);
  transform-origin: 50% 50%;
  transform: rotate(var(--angle, 0deg)) translateY(-32%);
  transition: transform 850ms cubic-bezier(.2, .6, .2, 1);
}
.specimen[data-kind="seed"] .petal { background: linear-gradient(95deg, #59234e, #a17798, #35132f); border-color: rgba(53, 19, 47, .27); }
.specimen[data-kind="shadow"] .petal { background: linear-gradient(95deg, #5b7143, #e6ecd4, #8b9e71); }
.core {
  position: absolute; inset: 36%; border-radius: 50%;
  background: var(--plum); border: 4px solid rgba(225, 251, 151, .33);
  box-shadow: inset 3px 4px 8px rgba(255, 255, 255, .13);
}
.specimen[aria-pressed="true"] .sculpture { transform: scale(1.09); }
.specimen[aria-pressed="true"] .petal { transform: rotate(var(--angle, 0deg)) translateY(-43%); }
@media (hover: hover) {
  .specimen[aria-pressed="false"]:hover .petal { transform: rotate(var(--angle, 0deg)) translateY(-37%); }
  .specimen:hover .label { border-color: var(--line-strong); }
}
.specimen .label { position: relative; z-index: 1; padding: 5px 9px; border-bottom: 2px solid transparent; background: rgba(244, 240, 228, .75); white-space: nowrap; }
.specimen[aria-pressed="true"] .label { border-color: var(--plum); font-weight: 700; }
.specimen:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }

.field-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  padding: 12px var(--gutter) 14px;
}
.field-note { letter-spacing: .1em; font-size: 10.5px; }
.motion-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.control {
  min-height: 44px; padding: 9px 14px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--ivory); color: var(--plum);
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
}
.control:hover { background: var(--ivory-2); }
.control[aria-pressed="true"] { background: var(--plum); color: var(--ivory); }
.control:disabled { cursor: not-allowed; opacity: .7; }

.detail {
  display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 28px 40px; align-items: start;
  padding: 34px var(--gutter) 38px;
  background: var(--plum); color: var(--ivory);
}
.detail .detail-id { color: var(--lime); }
.detail-title { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.035em; margin-top: 8px; }
.phases { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--on-plum-muted); }
.phases .is-active { color: var(--lime); text-decoration: underline; text-underline-offset: 5px; font-weight: 700; }
.detail-copy { font-size: 15px; line-height: 1.65; max-width: 440px; padding-top: 4px; }
.record { border: 1px solid rgba(244, 240, 228, .25); padding: 16px 18px 14px; }
.record-title { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.record-title span { background: var(--lime); color: var(--plum); padding: 0 7px; letter-spacing: .06em; }
.record dl { margin-top: 10px; }
.record dl div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-top: 1px solid rgba(244, 240, 228, .14); font-size: 13px; }
.record dt { color: var(--on-plum-muted); }
.record dd { text-align: right; }
.record dd.no-data { font-family: var(--mono); font-size: 11px; color: var(--on-plum-muted); font-style: italic; }
.record-note { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--on-plum-muted); }

/* ---------- thesis ---------- */
.thesis {
  display: grid; grid-template-columns: 1fr 3fr; gap: 30px; align-items: start;
  padding: clamp(56px, 7vw, 110px) var(--gutter);
  background: var(--lime); color: var(--plum);
}
.thesis h2 { font-size: clamp(38px, 5.8vw, 84px); line-height: 1.02; letter-spacing: -.05em; max-width: 13em; }
.thesis p { font-size: 16px; line-height: 1.7; max-width: 580px; margin-top: 26px; }

/* ---------- farm layers ---------- */
.farm { padding: clamp(56px, 7vw, 100px) var(--gutter) clamp(48px, 6vw, 80px); }
.layers {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); position: relative;
}
.layers::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 44px; height: 1px;
  background: var(--line-strong);
}
.layer {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 100%; padding: 0 8px 10px; background: transparent; border: 0; cursor: pointer; text-align: center;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.ring {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  border: 1px solid var(--plum); background: var(--ivory);
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em;
  transition: background-color .25s, transform .35s cubic-bezier(.2,.6,.2,1), box-shadow .25s;
  margin-bottom: 10px;
}
.layer:hover .ring { box-shadow: 0 0 0 6px rgba(200, 245, 66, .45); }
.layer.is-active .ring { background: var(--lime); transform: scale(1.1); box-shadow: 0 0 0 8px rgba(53, 19, 47, .08); font-weight: 700; }
.layer-name { font-size: 17px; line-height: 1.25; letter-spacing: -.02em; }
.layer.is-active .layer-name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.layer small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .03em; }

.layer-detail, .stage-detail {
  display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 24px 44px; align-items: start;
  margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--plum);
}
.layer-detail h3, .stage-detail h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.03em; margin-top: 8px; }
.layer-detail > p, .stage-main > p:last-child { font-size: 15px; line-height: 1.7; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-align: right; font-weight: 700; }

/* ---------- lifecycle ---------- */
.lifecycle { padding: clamp(56px, 7vw, 100px) var(--gutter); background: var(--ivory-2); }
.stage-groups { display: grid; grid-template-columns: 5fr 2fr 3fr; gap: 18px; margin-top: 44px; }
.group-label { margin-bottom: 10px; color: var(--muted); }
.stage-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.stage {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 84px; padding: 12px 12px 10px; cursor: pointer; text-align: left;
  border: 1px solid var(--line-strong); background: var(--ivory);
  font-size: 15px; line-height: 1.2; letter-spacing: -.01em;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .2s, color .2s;
}
.stage span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.stage em { font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-top: auto; }
.stage.is-locked { border-style: dashed; background: transparent; }
.stage.is-locked em::before { content: "× "; }
.stage:hover { background: #fff; }
.stage.is-active { background: var(--plum); color: var(--ivory); border-color: var(--plum); border-style: solid; }
.stage.is-active span { color: var(--lime); }
.stage-detail { border-top-color: var(--plum); }
.stage-detail .stage-main { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.3fr; gap: 0 44px; }
.stage-detail .stage-main .detail-id { grid-column: 1; }
.stage-detail .stage-main h3 { grid-column: 1; }
.stage-detail .stage-main > p:last-child { grid-column: 2; grid-row: 1 / span 2; }

.designation {
  display: flex; align-items: center; gap: 22px; margin-top: 44px; padding: 20px 24px;
  background: var(--lime); color: var(--plum);
}
.designation-mark {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--plum); color: var(--lime); font-family: var(--serif); font-size: 28px;
}
.designation-text { font-size: clamp(19px, 2vw, 26px); line-height: 1.25; letter-spacing: -.02em; margin-top: 4px; }
.boundary { margin-top: 18px; color: var(--muted); }

/* ---------- observatory ---------- */
.observatory {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px 64px; align-items: start;
  padding: clamp(56px, 7vw, 110px) var(--gutter);
  background: var(--plum); color: var(--ivory);
}
.observatory .section-index { color: var(--lime); }
.observatory h2 { font-size: clamp(34px, 4.8vw, 66px); line-height: 1.04; letter-spacing: -.04em; margin: 20px 0 26px; }
.observatory h2 em { color: var(--lime); }
.obs-intro > p:last-child { font-size: 16px; line-height: 1.7; max-width: 520px; color: var(--on-plum-muted); }
.obs-caption { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; color: var(--on-plum-muted); }
.obs-caption strong { color: var(--lime); font-weight: 700; }
.state-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(244, 240, 228, .2); font-size: 15px; }
.state-row dd { color: var(--lime); text-align: right; }
.state-row dd small { display: block; color: var(--on-plum-muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em; margin-top: 2px; }
.obs-foot { margin-top: 20px; font-size: 13px; line-height: 1.7; color: var(--on-plum-muted); border-top: 1px solid rgba(244, 240, 228, .2); padding-top: 18px; }

/* ---------- genesis ---------- */
.genesis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 64px;
  padding: clamp(56px, 7vw, 110px) var(--gutter);
}
.genesis .section-index { grid-column: 1 / -1; }
.genesis h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.045em; }
.genesis-copy { align-self: end; }
.genesis-copy p { font-size: 16px; line-height: 1.7; max-width: 560px; }
.lock-line { margin-top: 18px; font-family: var(--mono); font-size: 13px !important; }
.lock-line span { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--plum); border-radius: 50%; margin-right: 8px; font-size: 13px; }
.proof-chain {
  grid-column: 1 / -1; list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(9, 1fr); counter-reset: none;
}
.proof-chain li { position: relative; padding: 26px 14px 0 0; border-top: 1px solid var(--line-strong); }
.proof-chain li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--lime); border: 1px solid var(--plum); }
.proof-chain span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.proof-chain strong { display: block; font-weight: 500; font-size: 18px; letter-spacing: -.02em; margin-top: 6px; }
.proof-chain small { display: block; font-size: 12.5px; line-height: 1.5; margin-top: 4px; color: var(--muted); }

/* ---------- architecture ---------- */
.architecture { padding: clamp(56px, 7vw, 100px) var(--gutter); border-top: 1px solid var(--line); }
.register { list-style: none; margin: 40px 0 0; padding: 0; border-bottom: 1px solid var(--line-strong); }
.doc { padding: 0; border-top: 1px solid var(--line-strong); }
.doc-details { border: 0; }
.doc-details > summary { display: grid; grid-template-columns: 130px 1fr auto 28px; gap: 8px 28px; align-items: baseline; padding: 20px 0; min-height: 0; font-size: inherit; letter-spacing: 0; }
.doc-details > summary::after { content: "+"; font-family: var(--mono); font-size: 20px; line-height: 1; text-align: right; transition: transform .25s; }
.doc-details[open] > summary::after { transform: rotate(45deg); }
.doc-details > summary:hover .doc-title { text-decoration: underline; text-underline-offset: 4px; }
.doc-title { display: block; font-size: 19px; line-height: 1.3; letter-spacing: -.015em; }
.doc-sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.doc-open { padding: 0 0 24px 158px; max-width: 900px; display: grid; gap: 10px; }
.doc-open p { font-size: 15px; line-height: 1.7; }
.doc-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.doc-state { display: flex; gap: 12px; align-items: baseline; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.doc-state span { padding: 2px 8px; border: 1px solid var(--line-strong); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.register-divider { margin: 0; padding: 26px 0 10px; border-top: 1px solid var(--line-strong); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.control-instrument { border-top: 1px dashed var(--plum); padding: 0; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(53, 19, 47, .03) 10px 11px); }
.control-instrument .doc-state span { background: var(--plum); color: var(--ivory); border-color: var(--plum); }

.notes { margin-top: 56px; max-width: 900px; margin-left: auto; }
.notes-title { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
details { border-top: 1px solid var(--line-strong); }
details:last-child { border-bottom: 1px solid var(--line-strong); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 0; font-size: 18px; letter-spacing: -.01em; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-size: 20px; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { max-width: 680px; font-size: 15px; line-height: 1.7; padding: 0 0 22px; }

/* ---------- build log ---------- */
.log { padding: clamp(48px, 6vw, 90px) var(--gutter); background: var(--ivory-2); }
.build-log { list-style: none; margin: 36px 0 0; padding: 0; }
.build-log li { display: grid; grid-template-columns: 150px 1fr auto; gap: 6px 24px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-strong); }
.build-log time { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.build-log span { font-size: 16px; }
.build-log .is-planned { color: var(--muted); }
.build-log .is-planned time { border: 1px dashed var(--line-strong); padding: 1px 6px; justify-self: start; }
.build-log strong { font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- close & footer ---------- */
.close { padding: clamp(64px, 8vw, 120px) var(--gutter); text-align: center; }
.close h2 { font-family: var(--serif); font-style: italic; font-size: clamp(40px, 5.6vw, 80px); line-height: 1.05; letter-spacing: -.03em; margin: 18px 0 20px; }
.close p:not(.eyebrow) { max-width: 560px; margin: 0 auto 28px; font-size: 16px; line-height: 1.7; }
.close-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.site-footer {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 28px; align-items: center;
  padding: 26px var(--gutter); background: var(--plum); color: var(--ivory);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
}
.site-footer .wordmark { font-family: var(--sans); font-size: 17px; }
.footer-status { color: var(--lime); text-transform: uppercase; grid-column: 1 / -1; order: 4; }
.site-footer p:last-child { grid-column: 1 / -1; order: 5; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { text-decoration: none; border-bottom: 1px solid rgba(244,240,228,.4); padding-bottom: 2px; }
.footer-links a:hover { border-color: var(--lime); color: var(--lime); }


/* ---------- development status ---------- */
.status {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 40px 64px; align-items: start;
  padding: clamp(56px, 7vw, 100px) var(--gutter);
  border-top: 1px solid var(--line);
}
.status h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -.045em; margin: 18px 0 22px; }
.status-intro > p:not(.section-index):not(.status-updated) { font-size: 16px; line-height: 1.7; max-width: 520px; }
.status-updated { margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.status-updated span { color: var(--plum); margin-right: 8px; font-size: 9px; vertical-align: 2px; }
.status-board { background: var(--plum); color: var(--ivory); padding: 8px 30px 26px; }
.status-rows { display: grid; }
.status-row { display: grid; grid-template-columns: 150px 1fr; gap: 6px 24px; padding: 18px 0; border-top: 1px solid rgba(244, 240, 228, .18); }
.status-row:first-child { border-top: 0; }
.status-row dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-plum-muted); padding-top: 4px; }
.status-row dd strong { display: block; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 500; color: var(--lime); }
.status-row dd small { display: block; font-size: 13.5px; line-height: 1.6; color: var(--on-plum-muted); margin-top: 5px; max-width: 560px; }
.status-row dd small a { color: var(--ivory); }
.status-tests { margin-top: 22px; padding-top: 20px; border-top: 2px solid var(--lime); }
.status-tests h3 { font-size: 17px; letter-spacing: -.01em; }
.status-tests ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.status-tests li { font-size: 14px; line-height: 1.6; color: var(--on-plum-muted); padding-left: 18px; position: relative; }
.status-tests li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--lime); }
.status-tests li strong { color: var(--ivory); font-weight: 500; }
.status-next { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--on-plum-muted); border-top: 1px solid rgba(244, 240, 228, .18); padding-top: 14px; }

/* ---------- what the software does today ---------- */
.today { margin-top: 40px; padding: 26px 28px 22px; border: 1px solid var(--plum); background: var(--ivory-2); display: grid; grid-template-columns: 1fr 2.2fr; gap: 16px 40px; }
.today-title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.03em; }
.today-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.today-list li { font-size: 15px; line-height: 1.6; padding-left: 22px; position: relative; }
.today-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); border: 1px solid var(--plum); }
.today-list strong { font-weight: 700; }
.today-note { grid-column: 2; font-size: 13.5px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.today-note a { color: var(--plum); }

.build-state { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.chip { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--plum); margin-right: 6px; vertical-align: 1px; color: var(--plum); }
.chip-built { background: var(--lime); }
.chip-partial { background: transparent; }
.chip-planned { border-style: dashed; }

/* ---------- follow a decision ---------- */
.decision { margin-top: 56px; padding: 30px 0 0; border-top: 2px solid var(--plum); }
.decision-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.decision-head h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.03em; margin-top: 8px; }
.decision-branch { min-height: 44px; }
.decision-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.dstep {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; min-height: 76px; padding: 12px 12px 10px;
  border: 1px solid var(--line-strong); background: var(--ivory); cursor: pointer; text-align: left;
  font-size: 14.5px; line-height: 1.2; letter-spacing: -.01em; transition: background-color .2s, color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.dstep span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.dstep:hover { background: #fff; }
.dstep.is-active { background: var(--plum); color: var(--ivory); border-color: var(--plum); }
.dstep.is-active span { color: var(--lime); }
.dstep.is-ended { border-style: dashed; opacity: .6; }
.dstep.is-ended.is-active { opacity: 1; }
.decision-panel { margin-top: 18px; padding: 24px 26px; border: 1px solid var(--plum); background: var(--ivory-2); display: grid; grid-template-columns: 1fr 2.4fr; gap: 10px 40px; }
.decision-panel.is-refused { background: #fff3f0; border-color: #8a2d2d; }
.decision-mode { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.decision-panel.is-refused .decision-mode { color: #8a2d2d; font-weight: 700; }
.decision-panel h4 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; margin: 0; }
.decision-facts { display: grid; gap: 0; }
.decision-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; }
.decision-facts div:first-child { border-top: 0; padding-top: 0; }
.decision-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.decision-nojs { margin-top: 16px; font-size: 14.5px; line-height: 1.6; max-width: 700px; }

/* ---------- founding client programme ---------- */
.programme { padding: clamp(56px, 7vw, 100px) var(--gutter); background: var(--lime); color: var(--plum); border-top: 1px solid var(--plum); }
.programme .section-lead { max-width: 700px; }
.programme-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; margin-top: 40px; align-items: start; }
.offer-card { background: var(--plum); color: var(--ivory); padding: 28px 30px 26px; }
.offer-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.offer-amount { font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; color: var(--lime); }
.offer-term { font-size: 15px; color: var(--on-plum-muted); }
.offer-scope { margin-top: 10px; font-size: 13.5px; color: var(--on-plum-muted); }
.offer-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.offer-list li { font-size: 14.5px; line-height: 1.55; padding-left: 20px; position: relative; }
.offer-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; background: var(--lime); }
.offer-excluded { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(244, 240, 228, .25); font-size: 13.5px; line-height: 1.6; color: var(--on-plum-muted); }
.offer-excluded strong { color: var(--ivory); font-weight: 500; }
.programme-path { background: var(--ivory); padding: 28px 30px 26px; border: 1px solid var(--plum); }
.path-title { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.025em; line-height: 1.2; }
.stages { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: stage; display: grid; gap: 14px; }
.stages li { counter-increment: stage; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.stages li::before { content: counter(stage); grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--plum); color: var(--lime); font-family: var(--mono); font-size: 14px; }
.stages strong { font-size: 17px; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; align-self: center; }
.stages p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.path-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-strong); font-size: 13.5px; line-height: 1.6; }
.programme-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.programme .button-line { border-color: var(--plum); }
.programme-contact { margin-top: 18px; font-size: 15px; }
.programme-contact a { color: var(--plum); text-underline-offset: 3px; }
.programme-foot { margin-top: 14px; max-width: 820px; font-size: 13.5px; line-height: 1.7; }

/* ---------- packages and pricing (v0.3.1) ---------- */
[hidden] { display: none !important; }
.programme .button { white-space: normal; text-align: left; line-height: 1.3; }
.pricing-intro { scroll-margin-top: calc(var(--header-h) + 16px); }
.pricing-support { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; line-height: 1.7; max-width: 700px; }
.founding { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin-top: 36px; align-items: stretch; }
.offer-label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--lime); margin-bottom: 14px; }
.offer-desc { margin-top: 14px; font-size: 15.5px; line-height: 1.6; max-width: 560px; }
.offer-deadline { margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(200, 245, 66, .55); border-left-width: 4px; font-size: 14.5px; line-height: 1.55; }
.offer-deadline strong { color: var(--lime); font-weight: 600; }
.offer-compare { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--on-plum-muted); }
.offer-note { margin-top: 4px; font-size: 13.5px; line-height: 1.6; color: var(--on-plum-muted); }
.offer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.button-lime { background: var(--lime); color: var(--plum); border-color: var(--lime); font-weight: 600; }
.button-lime:hover { background: var(--ivory); border-color: var(--ivory); }
.button-onplum { background: transparent; color: var(--ivory); border-color: rgba(244, 240, 228, .5); }
.button-onplum:hover { background: var(--ivory); color: var(--plum); }
.founding-detail h4 { margin: 0; }
.founding-detail { background: var(--ivory); border: 1px solid var(--plum); padding: 28px 30px 26px; }
.founding-detail .offer-list li::before { background: var(--plum); }
.standard { margin-top: 56px; }
.standard-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px 40px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--plum); }
.standard-head h3 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; }
.standard-head p { font-size: 15px; line-height: 1.6; max-width: 560px; }
.package-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.package { background: var(--ivory); border: 1px solid var(--plum); padding: 24px 24px 22px; display: flex; flex-direction: column; }
.package-name { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -.03em; font-weight: 500; }
.package-from { margin-top: 8px; align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: 1px dashed var(--plum); }
.package-price { margin-top: 14px; font-size: 15px; color: var(--muted); }
.package-price strong { font-size: clamp(34px, 3.4vw, 44px); line-height: 1; letter-spacing: -.035em; color: var(--plum); font-weight: 500; margin-right: 4px; }
.package-summary { margin-top: 12px; font-size: 15px; line-height: 1.55; font-weight: 600; }
.package-list { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-strong); display: grid; gap: 9px; }
.package-list li { font-size: 14px; line-height: 1.55; padding-left: 18px; position: relative; }
.package-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; background: var(--lime); border: 1px solid var(--plum); }
.package-scope { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 13px; line-height: 1.6; color: var(--muted); flex: 1; }
.package .button { margin-top: 18px; align-self: flex-start; }
.founding-closed { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--plum); border-left-width: 4px; background: var(--ivory); max-width: 820px; }
.founding-closed p { font-size: 14.5px; line-height: 1.6; }
.founding-closed p + p { margin-top: 4px; }
.founding-closed-title { font-weight: 600; font-size: 16px !important; }
.founding-closed a { color: var(--plum); text-underline-offset: 3px; }
.pricing-notes { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--plum); }
.pricing-note h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.025em; line-height: 1.2; font-weight: 500; margin-bottom: 12px; }
.pricing-note p { font-size: 14.5px; line-height: 1.65; max-width: 620px; }
.pricing-note p + p { margin-top: 10px; }
.pricing-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; align-items: start; }
.faq { background: var(--ivory); padding: 28px 30px 18px; border: 1px solid var(--plum); }
.faq .path-title { margin-bottom: 12px; }
.faq summary { font-size: 16px; line-height: 1.4; gap: 16px; }
.faq details p { font-size: 14.5px; }
.programme[data-offer-state="date-closed"] .standard { margin-top: 36px; }

/* ---------- soft reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.6,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .founding, .pricing-lower { grid-template-columns: 1fr; }
  .standard-head { grid-template-columns: 1fr; }
  .pricing-notes { grid-template-columns: 1fr; }
  .status { grid-template-columns: 1fr; gap: 28px; }
  .programme-grid { grid-template-columns: 1fr; }
  .decision-steps { grid-template-columns: repeat(3, 1fr); }
  .today { grid-template-columns: 1fr; }
  .today-note { grid-column: 1; }
  .detail { grid-template-columns: 1fr 1fr; }
  .record { grid-column: 1 / -1; }
  .record dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .stage-groups { grid-template-columns: 1fr 1fr; }
  .stage-groups .stage-group:first-child { grid-column: 1 / -1; }
  .proof-chain { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .layer-detail, .stage-detail { grid-template-columns: 1fr 1fr; }
  .layer-detail .facts, .stage-detail .facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
  .facts div, .facts div:first-child { border-top: 1px solid var(--line); padding: 9px 0; flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
  .stage-detail .stage-main { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .package-grid { grid-template-columns: 1fr; }
  .doc-details > summary { grid-template-columns: 1fr 24px; gap: 4px 12px; }
  .doc-details > summary .doc-code { grid-column: 1; }
  .doc-details > summary .doc-state { grid-column: 1; margin-top: 6px; }
  .doc-details > summary::after { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
  .doc-open { padding-left: 0; }
  .decision-panel { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: auto 1fr; }
  .footer-links { grid-column: 1 / -1; justify-content: flex-start; order: 3; }
  .menu-toggle { display: inline-flex; }
  .has-js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 6px var(--gutter) 16px;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    font-size: 17px; display: none;
  }
  .has-js .site-header.is-open .site-nav { display: flex; }
  .has-js .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header { flex-wrap: wrap; }
  .intro-line { flex-direction: column; align-items: flex-start; gap: 22px; }
  .intro-actions { justify-content: flex-start; }
  .thesis { grid-template-columns: 1fr; gap: 18px; }
  .thesis p { margin-top: 20px; }
  .observatory { grid-template-columns: 1fr; }
  .genesis { grid-template-columns: 1fr; }
  .section-head { flex-direction: column-reverse; align-items: start; gap: 12px; }
  .section-head .section-index { padding: 0; }
  .layers { grid-template-columns: 1fr; gap: 0; margin-top: 34px; }
  .layers::before { left: 32px; right: auto; top: 30px; bottom: 30px; width: 1px; height: auto; }
  .layer { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 18px; row-gap: 0; align-items: center; text-align: left; padding: 8px 0; }
  .ring { width: 64px; height: 64px; grid-row: 1 / span 2; margin: 0; font-size: 12px; }
  .layer.is-active .ring { transform: scale(1.06); }
  .layer small { align-self: start; }
  .layer-name { align-self: end; }
  .notes { margin-left: 0; }
}

@media (max-width: 620px) {
  .founding-detail, .faq { padding: 22px 18px 16px; }
  .package { padding: 20px 18px 18px; }
  .founding-closed { padding: 14px 16px; }
  .offer-actions .button, .package .button { flex: 1 1 100%; align-self: stretch; justify-content: center; text-align: center; }
  .status-board { padding: 4px 18px 20px; }
  .status-row { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .status-row dd strong { font-size: 19px; }
  .today { padding: 20px 18px 18px; }
  .decision-steps { grid-template-columns: repeat(2, 1fr); }
  .dstep { min-height: 62px; padding: 9px 9px 8px; font-size: 13px; }
  .decision-panel { padding: 18px; }
  .decision-facts div { grid-template-columns: 1fr; gap: 2px; }
  .offer-card, .programme-path { padding: 22px 18px 20px; }
  .programme-actions .button, .close-actions .button { flex: 1 1 100%; justify-content: center; }
  .stages li { grid-template-columns: 36px 1fr; }
  .stages li::before { width: 30px; height: 30px; font-size: 12px; }
  .site-footer { grid-template-columns: 1fr; }
  :root { --header-h: 58px; }
  body { font-size: 15px; }
  .preview-bar { font-size: 9.5px; letter-spacing: .07em; gap: 2px 8px; }
  .site-header { padding-top: 7px; padding-bottom: 7px; }
  .wordmark { font-size: 18px; }
  .opening h1 { font-size: clamp(38px, 11.4vw, 56px); letter-spacing: -.06em; }
  .intro-line p { font-size: 15px; }
  .intro-actions { width: 100%; }
  .intro-actions .button { flex: 1 1 100%; justify-content: center; }
  .field { height: 330px; }
  .specimen { font-size: 11px; padding: 4px; }
  .specimen[data-kind="seed"] { --size: 62px; left: 17%; top: 70%; }
  .specimen[data-kind="sandbox"] { --size: 142px; left: 50%; top: 40%; }
  .specimen[data-kind="shadow"] { --size: 80px; left: 83%; top: 70%; }
  .specimen .label { padding: 4px 6px; }
  .field-bar { flex-direction: column; align-items: stretch; }
  .motion-controls .control { flex: 1 1 0; }
  .detail { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; }
  .record dl { display: block; }
  .stage-groups { grid-template-columns: 1fr; }
  .stage-groups { gap: 14px; margin-top: 30px; }
  .stage-row, .stage-groups .stage-group:first-child .stage-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .stage { min-height: 58px; padding: 8px 7px; font-size: 13px; }
  .stage em { font-size: 9px; letter-spacing: .04em; }
  .group-label { margin-bottom: 6px; }
  .state-row { flex-direction: column; gap: 2px; }
  .state-row dd { text-align: left; }
  .proof-chain li { padding: 0 0 18px 24px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .proof-chain li:last-child { padding-bottom: 0; }
  .proof-chain li::before { top: 2px; left: -6px; }
  .proof-chain strong { display: inline; margin: 0 8px 0 6px; }
  .proof-chain span { display: inline; }
  .ring { width: 54px; height: 54px; }
  .layer { grid-template-columns: 54px 1fr; }
  .layers::before { left: 27px; }
  .layer-detail, .stage-detail { grid-template-columns: 1fr; }
  .stage-detail .stage-main { grid-template-columns: 1fr; }
  .stage-detail .stage-main > p:last-child { grid-column: 1; grid-row: auto; margin-top: 14px; }
  .layer-detail .facts, .stage-detail .facts { grid-template-columns: 1fr; }
  .facts div, .facts div:first-child { flex-direction: row; }
  .facts dd { text-align: right; }
  .designation { align-items: flex-start; padding: 18px; gap: 16px; }
  .designation-mark { width: 44px; height: 44px; font-size: 22px; }
  .proof-chain { grid-template-columns: 1fr; row-gap: 0; margin-top: 14px; }
  .doc { grid-template-columns: 1fr; gap: 4px; }
  .doc-state { margin-top: 6px; }
  .build-log li { grid-template-columns: 1fr auto; }
  .build-log span { grid-column: 1 / -1; grid-row: 2; }
  .state-row { font-size: 14px; }
  .obs-caption { flex-direction: column; gap: 4px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-status { order: 0; }
  .close h2 { font-size: 42px; }
}

@media (max-width: 380px) {
  .specimen[data-kind="seed"] { left: 16%; }
  .specimen[data-kind="shadow"] { left: 84%; }
  .specimen .label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .petal, .sculpture, .ring, .stage, .dstep, .menu-lines span, summary::after, .reveal { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Petal angles (generated: 360/n per specimen) */
.specimen[data-kind="seed"] .petal:nth-child(1){--angle:0.0deg}
.specimen[data-kind="seed"] .petal:nth-child(2){--angle:60.0deg}
.specimen[data-kind="seed"] .petal:nth-child(3){--angle:120.0deg}
.specimen[data-kind="seed"] .petal:nth-child(4){--angle:180.0deg}
.specimen[data-kind="seed"] .petal:nth-child(5){--angle:240.0deg}
.specimen[data-kind="seed"] .petal:nth-child(6){--angle:300.0deg}
.specimen[data-kind="sandbox"] .petal:nth-child(1){--angle:0.0deg}
.specimen[data-kind="sandbox"] .petal:nth-child(2){--angle:27.692deg}
.specimen[data-kind="sandbox"] .petal:nth-child(3){--angle:55.385deg}
.specimen[data-kind="sandbox"] .petal:nth-child(4){--angle:83.077deg}
.specimen[data-kind="sandbox"] .petal:nth-child(5){--angle:110.769deg}
.specimen[data-kind="sandbox"] .petal:nth-child(6){--angle:138.462deg}
.specimen[data-kind="sandbox"] .petal:nth-child(7){--angle:166.154deg}
.specimen[data-kind="sandbox"] .petal:nth-child(8){--angle:193.846deg}
.specimen[data-kind="sandbox"] .petal:nth-child(9){--angle:221.538deg}
.specimen[data-kind="sandbox"] .petal:nth-child(10){--angle:249.231deg}
.specimen[data-kind="sandbox"] .petal:nth-child(11){--angle:276.923deg}
.specimen[data-kind="sandbox"] .petal:nth-child(12){--angle:304.615deg}
.specimen[data-kind="sandbox"] .petal:nth-child(13){--angle:332.308deg}
.specimen[data-kind="shadow"] .petal:nth-child(1){--angle:0.0deg}
.specimen[data-kind="shadow"] .petal:nth-child(2){--angle:40.0deg}
.specimen[data-kind="shadow"] .petal:nth-child(3){--angle:80.0deg}
.specimen[data-kind="shadow"] .petal:nth-child(4){--angle:120.0deg}
.specimen[data-kind="shadow"] .petal:nth-child(5){--angle:160.0deg}
.specimen[data-kind="shadow"] .petal:nth-child(6){--angle:200.0deg}
.specimen[data-kind="shadow"] .petal:nth-child(7){--angle:240.0deg}
.specimen[data-kind="shadow"] .petal:nth-child(8){--angle:280.0deg}
.specimen[data-kind="shadow"] .petal:nth-child(9){--angle:320.0deg}
