/* ============================================================
   Home — Night specimen hero + lot ledger (ported from home-lab A + B ledger)
   ============================================================ */
.home-page .hv canvas { display: block; width: 100%; height: 100%; }
.hs-ledger .lg-card td a { color: inherit; text-decoration: none; }
.hs-ledger .lg-card td a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hs-ledger + .hs { border-top: 0; }
/* ---------- atoms ---------- */
.ruo-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; font: 600 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ax-fg-muted); }
.ruo-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--ax-warning); }
.ruo-dark { color: rgba(255,255,255,.5); } .ruo-dark i { background: #E8B04A; }
.btn-l, .btn-g, .btn-d, .btn-o { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; font: 600 14px var(--font-body); text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.btn-l { background: #F2F2EE; color: var(--ax-night); } .btn-l:hover { background: #fff; }
.btn-g { border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85); } .btn-g:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-d { background: var(--ax-fg); color: var(--ax-bg); } .btn-d:hover { background: var(--n-800); }
.btn-o { border: 1px solid var(--ax-line-strong); color: var(--ax-fg); background: var(--ax-bg-raised); } .btn-o:hover { border-color: var(--ax-fg); }
.pass { font: 700 10px var(--font-mono); letter-spacing: .08em; color: var(--ax-success); background: var(--ax-success-bg); padding: 3px 7px; border-radius: 5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ha-plate > i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--tick, rgba(255,255,255,.3)); z-index: 1; pointer-events: none; }
.ha-plate .c1 { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.ha-plate .c2 { top: 16px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.ha-plate .c3 { bottom: 16px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.ha-plate .c4 { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- shared sections ---------- */
.hs { padding: 96px 0; }
.hs + .hs { border-top: 1px solid var(--ax-line); }
.hs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.hs-head h2 { font-size: var(--text-2xl); margin-top: 8px; }
.hs-lede { margin: 10px 0 0; color: var(--ax-fg-muted); max-width: 58ch; font-size: var(--text-sm); }
.hs-more { flex: none; font: 600 13.5px var(--font-body); color: var(--ax-fg); text-decoration: none; border-bottom: 1px solid var(--ax-line-strong); padding-bottom: 2px; }
.hs-more:hover { border-color: var(--ax-fg); }

.pr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ax-fg); }
.pr-steps li { position: relative; padding: 22px 24px 0 0; display: grid; align-content: start; gap: 8px; }
.pr-steps li + li { padding-left: 24px; border-left: 1px solid var(--ax-line); }
.pr-steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ax-bg); border: 1px solid var(--ax-fg); }
.pr-steps li + li::before { left: -5px; }
.pr-n { font-size: 11px; color: var(--ax-fg-faint); }
.pr-steps h3 { font-size: var(--text-md); }
.pr-steps p { margin: 0; font-size: 13.5px; color: var(--ax-fg-muted); line-height: 1.55; }
.pr-m { margin-top: 6px; font-size: 11px; color: var(--ax-fg-body); padding: 5px 8px; border-radius: 6px; background: var(--ax-bg-sunken); justify-self: start; }

.se-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.se-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--ax-line); border-radius: 14px; background: var(--ax-bg-raised); text-decoration: none; color: inherit; overflow: hidden; transition: border-color .25s, transform .25s var(--ease-out), box-shadow .25s; }
.se-card:hover { border-color: var(--ax-line-strong); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(13,15,14,.3); }
.se-stage { position: relative; height: 190px; background: radial-gradient(55% 55% at 50% 50%, color-mix(in srgb, var(--cat) 16%, transparent), transparent 75%), var(--ax-bg-sunken); border-bottom: 2px solid var(--cat); }
.se-stage .hv { position: absolute; left: 50%; top: 52%; width: 120%; height: 120%; transform: translate(-50%,-50%) scale(.84); transition: transform .5s cubic-bezier(.2,1.25,.35,1); }
.se-card:hover .se-stage .hv { transform: translate(-50%,-50%) scale(.94); }
.se-body { display: grid; align-content: start; gap: 6px; padding: 14px 16px 16px; }
.se-top { display: flex; justify-content: space-between; align-items: baseline; }
.se-top b { font: 600 var(--text-md) var(--font-display); color: var(--ax-fg); }
.se-top .t-data { font-size: 11px; color: var(--ax-fg-faint); }
.se-list { font-size: 12.5px; color: var(--ax-fg-muted); line-height: 1.45; min-height: 2.9em; }
.se-go { margin-top: 6px; font: 600 12.5px var(--font-body); color: var(--ax-fg); }

.hs-paths { background: var(--ax-bg-raised); }
.pa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pa-door { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; padding: 26px; border: 1px solid var(--ax-line-strong); border-radius: 16px; text-decoration: none; color: inherit; background: var(--ax-bg); transition: border-color .2s, background .2s; }
.pa-door:hover { border-color: var(--ax-fg); background: var(--ax-bg-raised); }
.pa-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--ax-fg); color: var(--ax-bg); }
.pa-t b { display: block; font: 600 var(--text-lg) var(--font-display); color: var(--ax-fg); }
.pa-t small { font-size: 13px; color: var(--ax-fg-muted); }
.pa-door ul { grid-column: 1 / -1; list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--ax-line-strong); display: grid; gap: 8px; }
.pa-door li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--ax-fg-body); }
.pa-door li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 4px; border-left: 1.5px solid var(--ax-success); border-bottom: 1.5px solid var(--ax-success); transform: rotate(-45deg); }
.pa-go { grid-column: 1 / -1; font: 600 13.5px var(--font-body); color: var(--ax-fg); }

.re-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.re-card { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: 14px; border: 1px solid var(--ax-line); background: var(--ax-bg-raised); text-decoration: none; color: inherit; transition: border-color .2s; }
.re-card:hover { border-color: var(--ax-fg); }
.re-n { font-size: 11px; color: var(--ax-fg-faint); }
.re-tag { font: 600 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ax-fg-muted); }
.re-card b { font: 600 var(--text-md) var(--font-display); color: var(--ax-fg); line-height: 1.3; }
.re-d { font-size: 13.5px; color: var(--ax-fg-muted); line-height: 1.55; }
.re-go { margin-top: 8px; font: 600 13px var(--font-body); color: var(--ax-fg); }

.hs-close { padding: 0 0 96px; border-top: 0 !important; }
.cl-box { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 36px 40px; border-radius: 18px; background: var(--ax-bg-sunken); border: 1px solid var(--ax-line); }
.cl-box h2 { font-size: var(--text-xl); } .cl-box p { margin: 6px 0 0; color: var(--ax-fg-muted); font-size: var(--text-sm); max-width: 56ch; }
.cl-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- A · Night specimen ---------- */
.ha { background: var(--ax-night); color: #fff; padding: calc(64px + 72px) 0 88px; background-image: radial-gradient(45% 60% at 78% 40%, color-mix(in srgb, var(--cat) 20%, transparent), transparent 70%), linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px); background-size: auto, 100% 28px; transition: background-image .6s; }
.ha-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; }
.ha h1 { color: #fff; font-size: clamp(2.5rem, 1.5rem + 3.2vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; }
.ha h1 span { color: rgba(255,255,255,.45); }
.ha-lede { margin: 24px 0 0; max-width: 50ch; color: rgba(255,255,255,.65); font-size: var(--text-md); }
.ha-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.ha-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 44px 0 0; }
.ha-stats div { padding: 0 24px; border-left: 1px solid rgba(255,255,255,.12); } .ha-stats div:first-child { padding-left: 0; border-left: 0; }
.ha-stats dt { font: 600 10px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.ha-stats dd { margin: 4px 0 0; font-size: var(--text-xl); color: #fff; }
.ha-plate { --tick: var(--cat-bright); position: relative; height: 520px; border: 1px solid rgba(255,255,255,.08); background: radial-gradient(55% 45% at 50% 44%, color-mix(in srgb, var(--cat) 26%, transparent), transparent 75%), rgba(255,255,255,.015); }
.ha-tag { position: absolute; top: 24px; left: 40px; z-index: 1; font-size: 10.5px; letter-spacing: .14em; color: var(--cat-bright); }
.ha-vial { position: absolute; inset: 30px 30px 110px; cursor: grab; }
.ha-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; padding: 16px 24px 18px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(6,10,16,.35); }
.ha-cap b { display: block; font: 600 var(--text-lg) var(--font-display); }
.ha-cap span { font-size: 12.5px; color: rgba(255,255,255,.55); }
.ha-cap dl { display: flex; gap: 18px; margin: 0; }
.ha-cap dt { font: 600 9.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.ha-cap dd { margin: 2px 0 0; font-size: 12px; color: #fff; white-space: nowrap; }
.ha-cap a { grid-column: 1 / -1; font: 600 12.5px var(--font-body); color: var(--cat-bright); text-decoration: none; }
.ha-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ha-switch button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: none; color: rgba(255,255,255,.65); font: 600 12px var(--font-body); cursor: pointer; }
.ha-switch button i { width: 7px; height: 7px; border-radius: 50%; background: var(--cat); }
.ha-switch button:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.ha-switch button[aria-selected="true"] { background: #F2F2EE; color: var(--ax-night); border-color: #F2F2EE; }

.hs-ledger { background: var(--ax-night); color: #fff; border-top: 0 !important; }
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 56px; align-items: center; }
.lg-copy .t-eyebrow { color: rgba(255,255,255,.45); }
.lg-copy h2 { color: #fff; font-size: var(--text-3xl); margin: 8px 0 14px; line-height: 1.1; }
.lg-copy > p { margin: 0; color: rgba(255,255,255,.6); font-size: var(--text-sm); max-width: 46ch; }
.lg-steps { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.1); }
.lg-steps li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; color: rgba(255,255,255,.85); }
.lg-steps .t-data { font-size: 11px; color: rgba(255,255,255,.4); padding-top: 2px; }
.lg-card { border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.02); overflow: hidden; }
.lg-card header { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font: 600 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.lg-card table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lg-card th { text-align: left; font: 600 9.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); padding: 10px 18px; }
.lg-card td { padding: 9px 18px; border-top: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.85); white-space: nowrap; }
.lg-card td i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cat); margin-right: 10px; vertical-align: middle; }
.lg-card td.t-data { font-size: 11.5px; color: rgba(255,255,255,.6); }
.lg-card td:nth-child(3) { color: var(--ax-success-bright); }
.lg-t { font: 600 10px var(--font-mono); color: var(--ax-success-bright); border: 1px solid color-mix(in srgb, var(--ax-success-bright) 40%, transparent); border-radius: 5px; padding: 2px 6px; }
.lg-card tr:hover td { background: rgba(255,255,255,.02); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .se-grid { grid-template-columns: repeat(3, 1fr); }
  .ha-grid, .lg-grid { grid-template-columns: minmax(0, 1fr); }
  .ha-spec { max-width: 560px; }
  .pr-steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .pr-steps li:nth-child(3) { padding-left: 0; border-left: 0; } .pr-steps li:nth-child(3)::before { left: 0; }
}
@media (max-width: 860px) {
  .hs { padding: 72px 0; } .hs-close { padding: 0 0 72px; }
  .cl-box { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 640px) {
  .hs-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .ha { padding: calc(64px + 44px) 0 56px; } .ha h1 { font-size: 36px; } .ha h1 br { display: none; }
  .ruo-chip { font-size: 9.5px; letter-spacing: .08em; }
  .ha-stats { grid-template-columns: repeat(2, auto); row-gap: 16px; }
  .ha-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ha-plate { height: 420px; } .ha-tag { left: 32px; }
  .ha-cap { grid-template-columns: 1fr; } .ha-cap dl { gap: 14px; }
  .ha-switch { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .ha-switch button { flex: none; }
  .se-grid { grid-template-columns: 1fr 1fr; } .se-stage { height: 160px; }
  .se-card:last-child { grid-column: 1 / -1; }
  .lg-card td:nth-child(2), .lg-card th:nth-child(2) { display: none; }
  .pr-steps { grid-template-columns: 1fr; } .pr-steps li, .pr-steps li + li { padding: 20px 0 0 0; border-left: 0; } .pr-steps li::before, .pr-steps li + li::before { left: 0; }
  .pr-steps li + li { border-top: 1px solid var(--ax-line); margin-top: 4px; } .pr-steps li + li::before { display: none; }
  .pa-grid, .re-grid { grid-template-columns: 1fr; }
  .pa-door { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .se-card, .hv, .ha { transition: none !important; animation: none !important; } }
@media (max-width: 640px) {
  .lg-card td:nth-child(2), .lg-card th:nth-child(2) { display: none; }
}
.lg-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 28px 0 32px; }
.lg-facts div { padding: 0 22px; border-left: 1px solid rgba(255,255,255,.12); } .lg-facts div:first-child { padding-left: 0; border-left: 0; }
.lg-facts dt { font: 600 10px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.lg-facts dd { margin: 4px 0 0; font-size: var(--text-lg); color: #fff; }
.home-page h1, .home-page h2, .home-page h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
.home-page .ha h1 { letter-spacing: -0.035em; }
.home-page .t-eyebrow { font: 600 10.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.hs-ledger .t-eyebrow { color: rgba(255,255,255,.45); }
