/* HORIZON v2 — one thing at a time.
   The sky scrolls with the page and becomes warm ground below the horizon. The top item that needs
   Harry sits on the horizon as the hero; everything else is quieter, and motion happens only when
   something real happens. */
.h2 {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --horizon: min(64vh, 640px);
  --serif: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* all Inter now; name kept so the rules below still read */
  position: relative; min-height: 100vh; color: var(--a-ink); overflow-x: clip;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5;
  background: var(--a-ground);
  padding-bottom: 140px;
}
.h2 :focus-visible { outline: 2px solid var(--a-accent); outline-offset: 3px; }
.h2-serif { font-family: var(--serif); font-weight: 400; }

/* ---------- sky: part of the page, so nothing slices through content ---------- */
.h2-sky { position: absolute; inset: 0 0 auto 0; height: calc(var(--horizon) + 46vh); overflow: hidden; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, var(--a-top) 0%, var(--a-mid) 46%, var(--a-low) calc(var(--horizon) - 2px), var(--a-ground) 100%);
  background: linear-gradient(in oklab 180deg, var(--a-top) 0%, var(--a-mid) 46%, var(--a-low) calc(var(--horizon) - 2px), var(--a-ground) 100%); }
.h2-stars { position: absolute; inset: 0 0 auto 0; width: 100%; height: var(--horizon); opacity: var(--a-stars); }
.h2-light { position: absolute; width: 80vw; height: 60vh; left: -18vw; top: 4vh; border-radius: 50%;
  background: radial-gradient(closest-side, var(--a-glow2-soft), transparent); opacity: 0.55;
  animation: h2-drift 120s ease-in-out infinite alternate; }
@keyframes h2-drift { to { transform: translate3d(10vw, 2vh, 0); } }
/* Light from where the sun really is. Never drawn as a disc. */
.h2-sun { position: absolute; left: var(--a-sun-x); top: var(--horizon); width: 120vw; height: 80vh;
  transform: translate(-50%, calc(-50% - var(--a-sun-elev) * 24vh));
  background: radial-gradient(closest-side, var(--a-glow) 0%, var(--a-glow-soft) 22%, transparent 72%);
  opacity: calc(0.42 + (1 - var(--a-dark)) * 0.2); mix-blend-mode: screen; }
.h2-line { position: absolute; left: 0; right: 0; top: var(--horizon); height: 1px;
  background: linear-gradient(90deg, transparent, var(--a-line-strong) 18%, var(--a-line-strong) 82%, transparent); }
/* A signal runs along the horizon when something real happens. Brighter when it reaches Harry. */
.h2-signal { position: absolute; top: calc(var(--horizon) - 1px); left: 0; width: 34vw; height: 3px; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--a-glow), transparent); filter: drop-shadow(0 0 6px var(--a-glow)); }
.h2-signal[data-sev="attention"] { background: linear-gradient(90deg, transparent, var(--a-accent), transparent); filter: drop-shadow(0 0 10px var(--a-accent)); }

/* ---------- top bar ---------- */
.h2-top { position: relative; z-index: 2; height: 64px; display: flex; align-items: flex-end; gap: 16px; padding: 0 var(--gutter); }
.h2-top .label { font-size: 12px; letter-spacing: 0.04em; color: var(--a-ink-3); padding-left: 14px; border-left: 1px solid var(--a-line-strong); }
.h2-badge { margin-left: auto; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--a-line-strong); color: var(--a-ink-2); white-space: nowrap; }

/* ---------- hero: greeting, one sentence, one thing ---------- */
.h2-hero { --hang: 96px; position: relative; z-index: 2; min-height: calc(var(--horizon) - 64px); padding: 0 var(--gutter); display: grid; align-content: end; gap: 0; max-width: 1360px; }
.h2-date { margin: 0 0 16px; font-size: 13px; letter-spacing: 0.03em; color: var(--a-ink-2); }
.h2-greet { margin: 0; font-size: clamp(54px, 8vw, 128px); line-height: 0.94; letter-spacing: -0.02em; text-wrap: balance; }
.h2-greet em { font-style: italic; color: var(--a-accent); }
.h2-brief { margin: 22px 0 calc(var(--hang) + 32px); max-width: 38ch; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; text-wrap: pretty; }
.h2-brief b { font-weight: 500; }
.h2-brief .cc-down { font-weight: 500; }
/* Legibility halo for text drawn straight on the sky (twilight). */
.h2-top, .h2-date, .h2-greet, .h2-brief { text-shadow: 0 0 22px var(--a-halo), 0 0 2px var(--a-halo); }

/* The hero item sits on the horizon line, the one glass surface on the page. */
/* The card's top edge sits --hang above the horizon line, so it rests across it. */
.h2-focus { position: relative; z-index: 3; margin: calc(-1 * 96px) var(--gutter) 0; max-width: 920px; }
.h2-card {
  position: relative; border-radius: 28px; padding: 28px 32px 26px; border: 1px solid var(--a-line);
  background: var(--a-ground-glass); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.14) inset, 0 30px 80px -30px rgb(0 0 0 / 0.35);
  display: grid; gap: 6px; transition: filter 200ms ease, opacity 200ms ease;
}
.h2-card.is-swapping { filter: blur(4px); opacity: 0; }
.h2-kicker { display: flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a-ink-2); }
.h2-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--a-accent); }
.h2-kicker .sim { letter-spacing: 0.04em; text-transform: none; color: var(--a-ink-3); }
.h2-card-title { margin: 4px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.h2-card-detail { margin: 4px 0 0; color: var(--a-ink-2); max-width: 62ch; }
.h2-card-why { margin: 2px 0 0; color: var(--a-accent); font-size: 14px; }
.h2-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.h2-btn { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--a-line-strong); background: transparent; color: var(--a-ink); cursor: pointer; font: inherit; font-size: 14px;
  transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.h2-btn.is-primary { background: var(--a-ink); color: var(--a-ink-inv); border-color: transparent; font-weight: 500; }
.h2-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .h2-btn:not(.is-primary):hover { background: var(--a-surface-hover); } }
.h2-outcome { margin-top: 16px; display: flex; gap: 10px; align-items: center; color: var(--a-ink-2); }
.h2-outcome::before { content: "✓"; color: var(--a-accent); }
.h2-clear { padding: 30px 32px; }
.h2-clear .h2-card-title { color: var(--a-ink); }

/* ---------- below the horizon: the ground ---------- */
.h2-ground { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: calc(860px + 2 * var(--gutter)); display: grid; gap: 56px; }
.h2-ground > :first-child { margin-top: 64px; } /* room for the half of the hero that hangs below the line */

.h2-h { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--a-ink-2); }
.h2-cols { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 64px; align-items: start; }

/* then: one line each */
.h2-then { list-style: none; margin: 0; padding: 0; }
.h2-row { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 320ms var(--ease-drawer), opacity 220ms ease; }
.h2-row.is-leaving { grid-template-rows: 0fr; opacity: 0; }
.h2-row-in { overflow: hidden; min-height: 0; }
.h2-row button.h2-row-main {
  width: 100%; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: baseline; text-align: left;
  padding: 16px 0; border: 0; border-top: 1px solid var(--a-line); background: transparent; color: var(--a-ink); cursor: pointer; font: inherit;
}
.h2-row .dept { font-size: 12px; color: var(--a-ink-3); }
.h2-row .t { font-family: var(--serif); font-size: 25px; line-height: 1.2; }
.h2-row .why { display: block; margin-top: 3px; font-size: 13px; color: var(--a-ink-3); }
.h2-new { display: inline-block; vertical-align: 4px; margin-left: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: var(--a-accent); color: var(--a-ink-inv); }
@media (hover: hover) and (pointer: fine) { .h2-row button.h2-row-main:hover .t { color: var(--a-accent); } }
.h2-row.is-new .h2-row-in { animation: h2-arrive 320ms var(--ease-out) both; }
@keyframes h2-arrive { from { opacity: 0; transform: translateY(-6px); } }
.h2-more { margin-top: 12px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--a-line); background: transparent; color: var(--a-ink-2); cursor: pointer; font: inherit; font-size: 13px; }
.h2-more:active { transform: scale(0.97); }
.h2-none { padding: 16px 0; border-top: 1px solid var(--a-line); color: var(--a-ink-3); }

/* the business, in one quiet strip */
.h2-pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--a-line); }
.h2-stat { padding: 18px 20px 4px 0; display: grid; gap: 4px; }
.h2-stat + .h2-stat { padding-left: 20px; border-left: 1px solid var(--a-line); }
.h2-stat b { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3vw, 44px); line-height: 1; font-variant-numeric: tabular-nums; }
.h2-stat b small { font-size: 0.5em; color: var(--a-ink-3); margin-left: 3px; }
.h2-stat span { font-size: 13px; color: var(--a-ink-2); }
.h2-stat em { font-style: normal; font-size: 12px; color: var(--a-ink-3); }
.h2-cap { position: relative; height: 3px; border-radius: 3px; background: var(--a-line-strong); margin: 6px 0 2px; overflow: hidden; max-width: 220px; }
.h2-cap i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--a-ink-2); }
.h2-cap i.amb { background: var(--a-accent); }
.h2-cap i.over { background: var(--a-alarm); }

/* handled quietly: closed by default, because it's noise */
.h2-quiet-toggle { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 0; border: 0; border-top: 1px solid var(--a-line); background: transparent; color: var(--a-ink); cursor: pointer; font: inherit; text-align: left; }
.h2-quiet-toggle .chev { margin-left: auto; color: var(--a-ink-3); transition: transform 200ms var(--ease-out); }
.h2-quiet-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.h2-quiet-toggle .tag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--a-line); color: var(--a-ink-3); }
.h2-quiet { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease-drawer); }
.h2-quiet.is-open { grid-template-rows: 1fr; }
.h2-quiet > div { overflow: hidden; min-height: 0; }
.h2-feed { list-style: none; margin: 0; padding: 0 0 8px; }
.h2-feed li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--a-line); font-size: 13px; }
.h2-feed time { color: var(--a-ink-3); font-variant-numeric: tabular-nums; }
.h2-feed .s { color: var(--a-ink-3); }
.h2-feed .s b { font-weight: 400; color: var(--a-ink-2); }
.h2-flows { padding: 8px 0 4px; display: grid; gap: 6px; font-size: 13px; color: var(--a-ink-2); }
.h2-flows div { display: flex; justify-content: space-between; gap: 12px; }
.h2-flows span:last-child { color: var(--a-ink-3); text-align: right; }

/* departments: a quiet index, not a wall of tiles */
.h2-depts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.h2-dept { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 14px 0; border: 0; border-top: 1px solid var(--a-line); background: transparent; color: var(--a-ink); cursor: pointer; font: inherit; text-align: left; }
.h2-dept .n { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.h2-dept .s { grid-column: 1; font-size: 13px; color: var(--a-ink-3); }
.h2-dept .w { grid-column: 1; font-size: 13px; color: var(--a-accent); }
.h2-dept .arr { grid-row: 1; grid-column: 2; color: var(--a-ink-3); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .h2-dept:hover .arr { transform: translateX(3px); color: var(--a-ink); } }

/* ---------- department panel: revealed from its own row (clip-path, so text never stretches) ---------- */
.h2-scrim { position: fixed; inset: 0; z-index: 20; background: rgb(0 0 0 / 0.26); opacity: 0; transition: opacity 280ms ease; }
.h2-scrim.is-on { opacity: 1; }
.h2-panel { position: fixed; z-index: 21; inset: 5vh max(4vw, calc((100vw - 960px) / 2)); border-radius: 28px; overflow: hidden;
  background: var(--a-ground); border: 1px solid var(--a-line-strong); box-shadow: 0 40px 120px rgb(0 0 0 / 0.35); color: var(--a-ink); }
.h2-panel-body { height: 100%; overflow: auto; padding: 34px clamp(22px, 4vw, 48px) 48px; opacity: 0; transition: opacity 200ms ease; }
.h2-panel.is-open .h2-panel-body { opacity: 1; transition-delay: 140ms; }
.h2-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.h2-panel-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 58px); line-height: 1; }
.h2-panel-head p { margin: 8px 0 0; color: var(--a-ink-2); }
.h2-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--a-line-strong); background: transparent; color: var(--a-ink); cursor: pointer; font-size: 17px; }
.h2-close:active { transform: scale(0.95); }
.h2-panel .dd-sec { padding: 20px 0; border-top: 1px solid var(--a-line); }
.h2-panel .dd-h { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--a-ink-2); }
.h2-panel .dd-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; }
.h2-panel .dd-row + .dd-row { border-top: 1px solid var(--a-line); }
.h2-panel .dd-t { font-size: 16px; }
.h2-panel .dd-s { font-size: 13px; color: var(--a-ink-3); }
.h2-panel .dd-v { font-variant-numeric: tabular-nums; text-align: right; }
.h2-panel .dd-hot { font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--a-accent-soft); color: var(--a-accent); margin-left: 6px; }
.h2-panel .dd-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.h2-panel .dd-btn { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--a-line-strong); background: transparent; color: var(--a-ink); cursor: pointer; font: inherit; font-size: 13px; transition: transform 150ms var(--ease-out); }
.h2-panel .dd-btn.is-primary { background: var(--a-ink); color: var(--a-ink-inv); border-color: transparent; }
.h2-panel .dd-btn:active { transform: scale(0.97); }
.h2-panel .dd-pipe, .h2-panel .dd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 20px; }
.h2-panel .dd-stage, .h2-panel .dd-kpis > div { display: grid; gap: 4px; }
.h2-panel .dd-stage b, .h2-panel .dd-kpis b { font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1; }
.h2-panel .dd-stage span, .h2-panel .dd-kpis span { font-size: 13px; color: var(--a-ink-2); }
.h2-panel .dd-state { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--a-line-strong); color: var(--a-ink-2); text-transform: capitalize; white-space: nowrap; }
.h2-panel .dd-bars { display: flex; align-items: flex-end; gap: 14px; height: 140px; }
.h2-panel .dd-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; align-items: center; }
.h2-panel .dd-bar i { width: 100%; height: var(--h); border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, var(--a-accent), var(--a-accent-soft)); }
.h2-panel .dd-bar span { font-size: 12px; color: var(--a-ink-3); }
.h2-panel .dd-note { margin: 24px 0 0; font-size: 12px; color: var(--a-ink-3); }
.h2-panel .cc-empty { color: var(--a-ink-3); }

/* ---------- entrance: once, quick, no blur (opened several times a day) ---------- */
.h2-in { animation: h2-in 420ms var(--ease-out) both; }
.h2-in--2 { animation-delay: 70ms; }
.h2-in--3 { animation-delay: 120ms; }
@keyframes h2-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- reduced motion: keep fades, drop movement ---------- */
html[data-motion="reduced"] .h2-light { animation: none; }
html[data-motion="reduced"] .h2-in { animation-name: h2-fade; }
html[data-motion="reduced"] .h2-row.is-new .h2-row-in { animation-name: h2-fade; }
@keyframes h2-fade { from { opacity: 0; } }
html[data-motion="reduced"] .h2-row, html[data-motion="reduced"] .h2-quiet { transition: opacity 200ms ease; }
html[data-motion="reduced"] .h2-card.is-swapping { filter: none; }
html[data-motion="reduced"] .h2-dept .arr, html[data-motion="reduced"] .h2-quiet-toggle .chev { transition: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .h2-cols { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .h2-depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .h2 { --horizon: 56vh; font-size: 14px; padding-bottom: 170px; }
  .h2-top { height: 52px; }
  .h2-top .label { display: none; }
  .h2-hero { --hang: 72px; min-height: calc(var(--horizon) - 52px); }
  .h2-focus { margin-top: -72px; }
  .h2-card { padding: 22px 20px 20px; border-radius: 22px; }
  .h2-ground > :first-child { margin-top: 72px; }
  .h2-row button.h2-row-main { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .h2-row .why { white-space: normal; }
  .h2-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .h2-stat:nth-child(n+3) { border-top: 1px solid var(--a-line); }
  .h2-depts { grid-template-columns: minmax(0, 1fr); }
  .h2-panel { inset: 10px; border-radius: 22px; }
}

/* ---------- v2.1 additions ---------- */
/* The business, said as a sentence rather than a row of KPI tiles. */
.h2-biz { margin: 0 0 14px; max-width: 46ch; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.35; color: var(--a-ink-2); text-wrap: pretty; }
.h2-biz b { font-weight: 400; color: var(--a-ink); }
section > .h2-cap { max-width: 320px; }

/* Undo: nothing is final for 5 seconds. The line drains to show the time left. */
.h2-outcome { position: relative; flex-wrap: wrap; padding-bottom: 8px; }
.h2-undo { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--a-line-strong); background: transparent; color: var(--a-ink); cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; transition: transform 150ms var(--ease-out); }
.h2-undo:active { transform: scale(0.97); }
.h2-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--a-line-strong); transform-origin: left; animation: h2-drain var(--ms) linear forwards; }
@keyframes h2-drain { to { transform: scaleX(0); } }
html[data-motion="reduced"] .h2-timer { animation: h2-fade-out var(--ms) linear forwards; }
@keyframes h2-fade-out { to { opacity: 0; } }

.h2-panel:focus { outline: none; }
.h2-panel .dd-bar em { font-style: normal; font-size: 11px; color: var(--a-ink-2); font-variant-numeric: tabular-nums; }

/* People who turn transparency off get a solid card. */
@media (prefers-reduced-transparency: reduce) { .h2-card { background: var(--a-ground); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 720px) {
  .h2-row button.h2-row-main { grid-template-columns: minmax(0, 1fr); }
  .h2-depts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Inter throughout: display sizes need tighter tracking and lighter weights than body text ---------- */
.h2 { font-feature-settings: "cv11", "ss01"; } /* Inter's single-storey a and open digits read softer */
.h2-greet { font-weight: 300; letter-spacing: -0.045em; line-height: 0.98; }
.h2-greet em { font-style: italic; font-weight: 300; }
.h2-card-title { font-weight: 500; letter-spacing: -0.025em; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; }
.h2-row .t { font-weight: 500; font-size: 20px; letter-spacing: -0.015em; }
.h2-dept .n { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.h2-biz { font-weight: 400; font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -0.015em; }
.h2-biz b { font-weight: 600; }
.h2-panel-head h2 { font-weight: 300; letter-spacing: -0.04em; }
.h2-panel .dd-stage b, .h2-panel .dd-kpis b, .h2-stat b { font-weight: 300; letter-spacing: -0.03em; }

/* ---------- living layer ---------- */
.h2-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.h2-sky.has-gl .h2-stars, .h2-sky.has-gl .h2-light, .h2-sky.has-gl .h2-sun, .h2-sky.has-gl .h2-signal { display: none; }
.h2-sky.has-gl .h2-line { visibility: hidden; } /* kept in layout: the shader reads the horizon position from it */
.h2-sky.has-gl { background: none; }
/* the sky canvas ends exactly where the ground begins, so the hand-off is seamless */
.h2-sky.has-gl::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18vh; background: linear-gradient(transparent, var(--a-ground)); }

/* Greeting: the words rise into place once, as you arrive. */
.h2-greet .h2-w { display: inline-block; }
.h2-greet.is-revealing .h2-w { animation: h2-word 720ms var(--ease-out) both; animation-delay: calc(var(--k) * 70ms + 60ms); }
@keyframes h2-word { from { opacity: 0; transform: translateY(0.28em); filter: blur(6px); } }
html[data-motion="reduced"] .h2-greet.is-revealing .h2-w { animation: h2-fade 400ms ease both; animation-delay: 0ms; }

/* Numbers that change roll into place. */
.h2-num { display: inline-block; font-variant-numeric: tabular-nums; }
.h2-num.is-rolling { animation: h2-roll 420ms var(--ease-out); }
@keyframes h2-roll { from { opacity: 0; transform: translateY(0.45em); } }
html[data-motion="reduced"] .h2-num.is-rolling { animation: h2-fade 300ms ease; }

/* H.A.R.I. is working: a small light breathes beside what it's doing. */
.h2-live { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--a-accent); vertical-align: 1px;
  box-shadow: 0 0 0 0 var(--a-accent-soft); animation: h2-breathe 2.4s ease-in-out infinite; }
@keyframes h2-breathe { 50% { box-shadow: 0 0 0 6px transparent; opacity: 0.55; } }
html[data-motion="reduced"] .h2-live { animation: none; }
.h2-dim { color: var(--a-ink-3); }

/* The hero card catches the light of your pointer, like glass. */
.h2-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 0.16), transparent 60%); }
@media (hover: hover) and (pointer: fine) { .h2-card:hover::after { opacity: 1; } }
html[data-motion="reduced"] .h2-card::after { display: none; }

/* ---------- live Command Centre additions ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--a-ground, #f7f5f1); color: var(--a-ink, #15131e); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
.cc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cc-down { color: var(--a-alarm) !important; }
.cc-logo { position: relative; display: inline-block; height: var(--logo-h, 14px); aspect-ratio: 264 / 36; flex: none; vertical-align: middle; }
.cc-logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 300ms ease; }
.cc-logo-w { opacity: 0; }
html[data-sky="dark"] .cc-logo-w { opacity: 1; }
html[data-sky="dark"] .cc-logo-b { opacity: 0; }
.h2 { padding-bottom: 80px; }
.h2-top a { color: var(--a-ink-3); font-size: 12px; text-decoration: none; margin-left: 12px; }
.h2-top a:hover { color: var(--a-ink); }
.h2-status-line { margin: 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; letter-spacing: -0.015em; color: var(--a-ink-2); max-width: 46ch; }
.h2-status-line b { color: var(--a-ink); font-weight: 600; }
.h2-report { margin-top: 10px; }
.h2-report summary { cursor: pointer; color: var(--a-ink-2); font-size: 14px; }
.h2-report pre { white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.55; color: var(--a-ink-2); margin: 12px 0 0; }
.h2-report pre b { color: var(--a-ink); }
.h2-log { list-style: none; margin: 0; padding: 0; }
.h2-log li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--a-line); font-size: 14px; }
.h2-log time { color: var(--a-ink-3); font-variant-numeric: tabular-nums; }
.h2-warn { padding: 14px 16px; border-radius: 14px; background: var(--a-alarm-soft); color: var(--a-ink); font-size: 14px; }
.h2-signin { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: 24px; }
.h2-signin h1 { margin: 0; font-weight: 300; letter-spacing: -0.04em; font-size: clamp(40px, 6vw, 72px); }
.h2-signin p { margin: 0; color: var(--a-ink-2); font-size: 17px; }
.h2-signin code { font-size: 16px; padding: 2px 8px; border-radius: 6px; background: var(--a-surface); }
.h2-fresh { font-size: 12px; color: var(--a-ink-3); margin-top: 28px; }
.h2-offline { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; padding: 10px 16px; border-radius: 999px; background: rgb(10 10 10 / 0.85); color: #fff; font-size: 13px; }

/* Everything else: one closed drawer for the parts Harry doesn't use day to day */
.h2-drawer { border-top: 1px solid var(--a-line); }
.h2-drawer > summary { list-style: none; border-top: 0; }
.h2-drawer > summary::-webkit-details-marker { display: none; }
.h2-drawer[open] > summary .chev { transform: rotate(180deg); }
.h2-drawer-in { display: grid; gap: 28px; padding: 8px 0 12px; }
.h2-drawer-in h3.h2-h { margin-bottom: 8px; }
.h2-drawer-in .h2-log li { grid-template-columns: 56px minmax(0, 1fr); }
