/* ==========================================================================
   The Lab — emmanuelapetsi.com concept B
   Minimal, light by default. The light switch (or the desk lamp) turns the
   whole lab, and the interface with it, to night.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --bg-soft: #F4F3EF;
  --ink: #0A0A0A;
  --ink-2: #4A4843;
  --ink-3: #706D66;
  --line: rgba(10, 10, 10, 0.08);
  --line-2: rgba(10, 10, 10, 0.16);
  --glass: rgba(255, 255, 255, 0.8);
  --chip: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 70px rgba(20, 18, 14, 0.12);
  --or: #F05A0A;
  --or-ink: #FFFFFF;
  --ok: #12A150;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(20px, 3vw, 40px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B0C0E;
  --bg-soft: #15171B;
  --ink: #EFEBE0;
  --ink-2: #B9B4A6;
  --ink-3: #8A867E;
  --line: rgba(239, 235, 224, 0.10);
  --line-2: rgba(239, 235, 224, 0.20);
  --glass: rgba(14, 15, 18, 0.74);
  --chip: rgba(14, 15, 18, 0.6);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --or: #FF6A13;
  --or-ink: #1A0A00;
  --ok: #3DDC84;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(ellipse 65% 60% at 62% 56%, var(--bg-soft), var(--bg) 72%);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  transition: color .6s var(--ease);
}
:root[data-theme="dark"] body { background: radial-gradient(ellipse 60% 50% at 60% 50%, rgba(255, 140, 60, .09), transparent 70%), radial-gradient(ellipse 90% 80% at 55% 50%, #15171B, #0B0C0E 72%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--or); color: #fff; }
.or { color: var(--or); }
.logo-d { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }
:root[data-theme="dark"] .logo-l { display: none; }

/* ---------- Stage --------------------------------------------------------- */
.stage { position: fixed; inset: 0; touch-action: none; }
.stage canvas { display: block; width: 100%; height: 100%; outline: none; }
.stage.is-hot { cursor: pointer; }
.stage.is-drag { cursor: grabbing; }

/* ---------- Loader --------------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg); transition: opacity .9s var(--ease), visibility .9s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(280px, 72vw); }
.loader__mark { height: 22px; width: auto; margin-bottom: 28px; }
.loader__label { display: flex; justify-content: space-between; font: 400 12px var(--mono); color: var(--ink-3); margin-bottom: 10px; }
.loader__label span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.loader__bar { height: 1px; background: var(--line-2); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s var(--ease); }

/* ---------- HUD ------------------------------------------------------------ */
.hud { position: fixed; z-index: 10; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud--top { top: 0; left: 0; right: 0; padding: var(--pad); display: flex; justify-content: space-between; align-items: center; }
.brand img { height: 20px; width: auto; }
.hud__right { display: flex; gap: clamp(14px, 2vw, 26px); align-items: center; }
.clock { font: 400 12px var(--mono); color: var(--ink-3); white-space: nowrap; }
.clock b { color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; }
.dot.is-off { background: #E0A11B; }
.tlink { font: 500 13px var(--sans); color: var(--ink-2); position: relative; padding: 4px 0; transition: color .2s; }
.tlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.tlink:hover { color: var(--ink); }
.tlink:hover::after { transform: scaleX(1); }
.switch { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--sans); color: var(--ink-2); }
.switch__track { width: 34px; height: 20px; border-radius: 999px; background: var(--ink); position: relative; transition: background .4s; }
.switch__knob { position: absolute; top: 3px; left: 17px; width: 14px; height: 14px; border-radius: 50%; background: #FFD9A8; box-shadow: 0 0 10px #FFB46A; transition: left .4s var(--ease), background .4s, box-shadow .4s; }
:root[data-theme="dark"] .switch__track { background: #2A2D33; }
:root[data-theme="dark"] .switch__knob { left: 3px; background: #6E6A60; box-shadow: none; }
.switch__lbl .off { display: none; }
:root[data-theme="dark"] .switch__lbl .on { display: none; }
:root[data-theme="dark"] .switch__lbl .off { display: inline; }
.switch:hover { color: var(--ink); }

/* ---------- Intro + index (left) ------------------------------------------ */
.intro { position: fixed; left: var(--pad); top: calc(var(--pad) + 72px); z-index: 5; pointer-events: none; width: min(360px, 80vw); display: flex; flex-direction: column; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.intro.is-away { opacity: 0; transform: translateX(-14px); }
.intro__name { margin: 0; font: 600 clamp(1.7rem, 2.3vw, 2.2rem)/1 var(--sans); letter-spacing: -.04em; }
.intro__kick { margin: 10px 0 0; font: 400 12px var(--mono); color: var(--ink-3); }
.intro__line { margin: 22px 0 0; max-width: 26ch; font: 400 clamp(1.25rem, 1.7vw, 1.55rem)/1.2 var(--serif); color: var(--ink); }
.intro__line em { color: var(--ink-3); }
.bigidx { margin-top: clamp(22px, 4vh, 40px); pointer-events: auto; }
.bigidx__head { display: flex; justify-content: space-between; align-items: center; font: 400 11px var(--mono); color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 10px; }
.bigidx__head button { font: 500 12px var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; }
.bigidx__head button:hover { color: var(--or); }
.bigidx__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bigidx__list button {
  width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: baseline; gap: 8px;
  padding: clamp(5px, .85vh, 10px) 0; border-bottom: 1px solid var(--line); text-align: left;
  transition: padding .4s var(--ease);
}
.bigidx__list b { font: 400 11px var(--mono); color: var(--ink-3); transition: color .2s; }
.bigidx__list span { font: 500 clamp(.98rem, 2vh, 1.15rem)/1.15 var(--sans); letter-spacing: -.02em; color: var(--ink); transition: color .2s; }
.bigidx__list i { font: 400 11px var(--mono); font-style: normal; color: var(--ink-3); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.bigidx__list i::after { content: " →"; }
.bigidx__list button:hover, .bigidx__list button:focus-visible { padding-left: 8px; }
.bigidx__list button:hover b { color: var(--or); }
.bigidx__list button:hover i, .bigidx__list button:focus-visible i { opacity: 1; transform: none; }
@media (max-width: 900px), (max-height: 640px) { .bigidx { display: none; } }

/* ---------- Dock (small screens only) -------------------------------------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 0 var(--pad) var(--pad); display: flex; flex-direction: column; gap: 10px; transition: opacity .5s, transform .5s var(--ease); }
.dock.is-away { opacity: 0; transform: translateY(20px); pointer-events: none; }
.dock__track { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dock__track::-webkit-scrollbar { display: none; }
.dock__btn { flex: none; display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--sans); color: var(--ink-2); border: 1px solid var(--line-2); background: var(--chip); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 12px; border-radius: 999px; white-space: nowrap; }
.dock__btn b { font: 400 11px var(--mono); color: var(--or); }
.dock__btn span { display: none; }
.dock__hint { margin: 0; font: 400 11px var(--mono); color: var(--ink-3); }
@media (min-width: 901px) and (min-height: 641px) { .dock__track { display: none; } }
@media (hover: none) { .hide-touch { display: none; } }

/* ---------- Tooltip -------------------------------------------------------- */
.tip { position: fixed; z-index: 12; left: 0; top: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--sans); background: var(--ink); color: var(--bg); padding: 8px 11px; border-radius: 999px; opacity: 0; transform: translate(-50%, -150%) scale(.94); transition: opacity .18s, transform .18s var(--ease); white-space: nowrap; box-shadow: var(--shadow); }
.tip.is-on { opacity: 1; transform: translate(-50%, -165%) scale(1); }
.tip b { font: 400 11px var(--mono); color: var(--or); }
.tip i { font-style: normal; opacity: .6; }

/* ---------- Panel ---------------------------------------------------------- */
.panel {
  position: fixed; z-index: 20; top: calc(var(--pad) + 56px); right: var(--pad); bottom: var(--pad);
  width: min(440px, calc(100vw - 2 * var(--pad)));
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex; flex-direction: column;
  transform: translateX(calc(100% + 60px));
  transition: transform .7s var(--ease);
  box-shadow: var(--shadow);
}
.panel.is-open { transform: none; }
.panel__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); font: 400 12px var(--mono); color: var(--ink-3); }
.panel__nav { display: flex; gap: 4px; }
.panel__nav button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); font: 400 13px/1 var(--sans); transition: background .2s, color .2s; }
.panel__nav button:hover { background: var(--line); color: var(--ink); }
.panel__nav [data-close] { width: auto; padding: 0 12px; border-radius: 999px; font: 400 12px var(--mono); }
.panel__body { flex: 1; overflow-y: auto; padding: 26px 24px 30px; outline: none; overscroll-behavior: contain; }
.panel__body .sec { animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .panel { top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; height: min(64vh, 580px); transform: translateY(calc(100% + 30px)); }
  .intro { top: calc(var(--pad) + 52px); }
  .intro__line { display: none; }
}

/* ---------- Section content (panel + index) ------------------------------- */
.sec__k { margin: 0 0 14px; font: 400 11px var(--mono); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.sec h2 { margin: 0 0 18px; font: 600 clamp(1.8rem, 2.6vw, 2.3rem)/1.02 var(--sans); letter-spacing: -.045em; }
.sec h2 em { font: italic 400 1.08em var(--serif); color: var(--ink-2); letter-spacing: -.02em; }
.sec p { margin: 0 0 16px; color: var(--ink-2); }
.sec blockquote { margin: 22px 0 0; padding: 0 0 0 16px; border-left: 1px solid var(--or); font: italic 400 1.35rem/1.25 var(--serif); color: var(--ink); }
.facts { margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { font: 400 11px/1.9 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; }
.facts a { border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.facts a:hover { border-color: var(--ink); }
.facts .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tags { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 500 12px var(--sans); background: var(--line); padding: 6px 11px; border-radius: 999px; color: var(--ink-2); }
.chans { display: grid; gap: 10px; margin-top: 20px; }
.chan { padding: 14px 0 14px 16px; border-left: 2px solid var(--c); }
.chan b { display: block; font: 500 11px var(--mono); color: var(--c); margin-bottom: 4px; letter-spacing: .04em; text-transform: uppercase; }
.chan span { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.chan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.quotes { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: q; }
.quotes li { counter-increment: q; position: relative; padding: 14px 0 14px 38px; border-bottom: 1px solid var(--line); font: 400 1.16rem/1.3 var(--serif); }
.quotes li::before { content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 19px; font: 400 11px var(--mono); color: var(--ink-3); }
.more { display: inline-block; margin-top: 16px; font: 500 13px var(--sans); border-bottom: 1px solid var(--ink); }
.more:hover { color: var(--or); border-color: var(--or); }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 8px 0 4px; }
.contact .big { font: 500 clamp(1.15rem, 2vw, 1.4rem) var(--sans); letter-spacing: -.02em; border-bottom: 1px solid var(--ink); }
.contact .big:hover { color: var(--or); border-color: var(--or); }
.hbtn { font: 500 12px/1 var(--sans); color: var(--ink-2); background: var(--line); padding: 9px 13px; border-radius: 999px; transition: background .2s, color .2s; }
.hbtn:hover { background: var(--ink); color: var(--bg); }

/* ---------- Index view ----------------------------------------------------- */
.index { position: fixed; inset: 0; z-index: 30; overflow-y: auto; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.index__inner { max-width: 720px; margin: 0 auto; padding: calc(var(--pad) + 48px) var(--pad) 100px; }
.index__head { display: flex; justify-content: space-between; align-items: center; font: 400 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 36px; }
.index__head .hbtn { text-transform: none; letter-spacing: 0; }
.index .sec { padding: 56px 0; border-top: 1px solid var(--line); }
.index .sec h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.index.is-fallback .index__head button { display: none; }

/* ---------- Floating terminal ---------------------------------------------- */
.termpill {
  position: fixed; z-index: 11; right: var(--pad); bottom: var(--pad);
  display: flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--sans); color: #F4F1E8;
  background: #0E0F11; border: 1px solid rgba(255, 255, 255, .08);
  padding: 13px 14px 13px 16px; border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  transition: transform .35s var(--ease), opacity .35s, box-shadow .3s;
}
.termpill:hover { transform: translateY(-2px); box-shadow: 0 22px 60px rgba(0, 0, 0, .3); }
.termpill.is-away, .dock.is-away ~ .termpill { opacity: 0; transform: translateY(10px); pointer-events: none; }
.termpill__p { color: #3DDC84; font-family: var(--mono); }
.termpill__c { width: 7px; height: 14px; background: #FF6A13; animation: blink 1s steps(1) infinite; }
.termpill kbd { font: 400 11px var(--mono); color: #8A877C; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; padding: 3px 6px; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px), (max-height: 640px) { .termpill { bottom: calc(var(--pad) + 78px); } .termpill kbd { display: none; } }
.term {
  position: fixed; z-index: 40; left: 50%; bottom: var(--pad);
  width: min(720px, calc(100vw - 2 * var(--pad))); height: min(440px, 62vh);
  display: flex; flex-direction: column;
  background: rgba(10, 11, 12, .96); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font: 400 14px/1.65 var(--mono); color: #D9D5C8;
  transform: translate(-50%, 24px); opacity: 0;
  transition: transform .45s var(--ease), opacity .3s;
}
.term.is-open { transform: translate(-50%, 0); opacity: 1; }
.term__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #1C1F1C; font-size: 12px; color: #6E6A60; }
.term__top span { display: flex; align-items: center; gap: 6px; }
.term__top i { width: 10px; height: 10px; border-radius: 50%; background: #2A2E2A; }
.term__top span i:last-of-type { margin-right: 8px; }
.term__top b { color: #FF6A13; font-weight: 400; }
.term__top button { color: #B4AF9F; border: 1px solid #2E332E; padding: 4px 10px; border-radius: 999px; font-size: 11px; }
.term__top button:hover { border-color: #FF6A13; color: #FF6A13; }
.term__out { flex: 1; overflow-y: auto; padding: 14px 18px 4px; white-space: pre-wrap; word-break: break-word; }
.term__out .p { color: #3DDC84; }
.term__out .o { color: #FF6A13; }
.term__out .e { color: #F04438; }
.term__out .d { color: #7A766B; }
.term__out a { color: #fff; border-bottom: 1px solid #3A3F3A; }
.term__in { display: flex; gap: 10px; padding: 12px 18px 16px; align-items: center; border-top: 1px solid #161916; }
.term__in label { color: #3DDC84; white-space: nowrap; }
.term__in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; caret-color: #FF6A13; }

/* ---------- CAM0 sensor (portrait) ----------------------------------------- */
.sensor { margin: 6px 0 18px; position: relative; border-radius: 14px; background: var(--bg-soft); padding: 34px 14px 44px; }
.sensor__top, .sensor__bot { position: absolute; left: 16px; right: 16px; display: flex; justify-content: space-between; font: 400 11px/1 var(--mono); color: var(--ink-3); }
.sensor__top { top: 13px; }
.sensor__bot { bottom: 15px; }
.sensor__top .rec::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #F04438; margin-right: 6px; vertical-align: 1px; animation: blink 1.2s steps(1) infinite; }
.sensor__frame { position: relative; aspect-ratio: 114 / 125; }
.sensor canvas { width: 100%; height: 100%; display: block; }
.sensor__box { position: absolute; left: 27%; top: 5%; width: 47%; height: 52%; border: 1px solid var(--or); opacity: 0; transform: scale(1.15); transition: opacity .6s var(--ease) .2s, transform .9s var(--ease) .2s; }
.sensor.is-locked .sensor__box { opacity: 1; transform: none; }
.sensor__box::before { content: attr(data-label); position: absolute; left: -1px; top: -21px; background: var(--or); color: #fff; font: 500 11px/1 var(--mono); padding: 5px 6px; white-space: nowrap; }
.sensor__box i { position: absolute; width: 10px; height: 10px; border-color: var(--or); border-style: solid; }
.sensor__box i:nth-child(1) { left: -4px; top: -4px; border-width: 2px 0 0 2px; }
.sensor__box i:nth-child(2) { right: -4px; top: -4px; border-width: 2px 2px 0 0; }
.sensor__box i:nth-child(3) { left: -4px; bottom: -4px; border-width: 0 0 2px 2px; }
.sensor__box i:nth-child(4) { right: -4px; bottom: -4px; border-width: 0 2px 2px 0; }
.sensor__scan { position: absolute; left: 0; right: 0; height: 22%; top: -22%; background: linear-gradient(180deg, transparent, rgba(255, 106, 19, .14), transparent); animation: scan 4.5s linear infinite; pointer-events: none; }
@keyframes scan { to { top: 100%; } }
.sensor__corners i { position: absolute; width: 14px; height: 14px; border-color: var(--ink-3); border-style: solid; }
.sensor__corners i:nth-child(1) { left: 8px; top: 8px; border-width: 1px 0 0 1px; }
.sensor__corners i:nth-child(2) { right: 8px; top: 8px; border-width: 1px 1px 0 0; }
.sensor__corners i:nth-child(3) { left: 8px; bottom: 8px; border-width: 0 0 1px 1px; }
.sensor__corners i:nth-child(4) { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }

/* Toast */
.toast { position: fixed; left: 50%; top: 22px; z-index: 60; transform: translate(-50%, -80px); background: var(--ink); color: var(--bg); font: 500 13px var(--sans); padding: 10px 16px; border-radius: 999px; transition: transform .45s var(--ease); visibility: hidden; box-shadow: var(--shadow); }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

@media (max-width: 600px) {
  .clock { display: none; }
  .switch__lbl { display: none; }
  .hud__right { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Inference receipt (shared) ----------------------------------- */
.rc { position: relative; max-width: 380px; }
.rc-printer { height: 22px; border-radius: 6px 6px 2px 2px; background: #1A1C1F; border: 1px solid #2C3035; position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font: 400 11px "JetBrains Mono", ui-monospace, monospace; color: #8A877C; }
.rc-printer i { width: 6px; height: 6px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 8px #3DDC84; }
.rc-clip { overflow: hidden; margin: 0 10px; }
.rc-paper {
  background: #F4F1E8; color: #1A1A18;
  font: 400 12px/1.6 "JetBrains Mono", ui-monospace, monospace;
  padding: 18px 18px 26px;
  transform: translateY(-101%);
  transition: transform 2.2s steps(22);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}
.rc.is-printed .rc-paper { transform: none; }
.rc-paper h3 { margin: 0; text-align: center; font: 700 13px "JetBrains Mono", monospace; letter-spacing: .14em; color: #1A1A18; }
.rc-paper hr { border: 0; border-top: 1px dashed #A29D90; margin: 10px 0; }
.rc-c { text-align: center; color: #6B675D; font-size: 11px; }
.rc-s { text-align: center; font-weight: 600; letter-spacing: .12em; font-size: 11px; margin-bottom: 4px; }
.rc-r { display: flex; align-items: baseline; gap: 6px; }
.rc-r span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-r i { flex: 1; border-bottom: 1px dotted #B8B3A6; transform: translateY(-3px); min-width: 10px; }
.rc-t { font-weight: 700; font-size: 13px; }
.rc-bar { height: 44px; margin: 12px 0 6px; display: flex; gap: 2px; justify-content: center; }
.rc-bar i { background: #1A1A18; }
.rc-stamp { text-align: center; margin-top: 8px; letter-spacing: .2em; font-weight: 700; }
.rc-act { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.rc-act button { font: 400 12px/1 "JetBrains Mono", monospace; border: 1px solid currentColor; opacity: .8; padding: 8px 11px; border-radius: 999px; transition: opacity .2s, color .2s; }
.rc-act button:hover { opacity: 1; color: #FF6A13; }

.rc { margin: 8px auto 0; }
.rc-act button { color: var(--ink); }
:root[data-theme="dark"] .termpill { background: #17191D; border-color: rgba(255, 255, 255, .14); }

/* ==========================================================================
   v3 — sun/moon toggle, refined sidebar, Face ID, smooth index
   ========================================================================== */
.themebtn { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line-2); transition: border-color .25s, background .25s; }
.themebtn:hover { border-color: var(--ink); }
.themebtn svg { position: absolute; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease), opacity .35s; }
.themebtn .i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .themebtn .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .themebtn .i-moon { opacity: 1; transform: none; }

/* Sidebar */
.intro { width: min(340px, 80vw); }
.bigidx {
  margin-top: clamp(20px, 3.4vh, 34px);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 8px 8px;
  box-shadow: 0 18px 50px rgba(20, 18, 14, .07);
}
:root[data-theme="dark"] .bigidx { box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.bigidx__head { padding: 0 10px 6px; }
.bigidx__head button { background: var(--ink); color: var(--bg); padding: 7px 12px; border-radius: 999px; font: 500 12px/1 var(--sans); transition: transform .3s var(--ease), background .2s; }
.bigidx__head button:hover { color: var(--bg); transform: translateX(2px); }
.bigidx__list { border-top: 0; }
.bigidx__group > span { display: block; padding: 12px 10px 4px; font: 400 10px var(--mono); color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.bigidx__group:first-child > span { padding-top: 4px; }
.bigidx__group ol { list-style: none; margin: 0; padding: 0; }
.bigidx__list button {
  grid-template-columns: 26px minmax(0, 1fr) auto 14px; gap: 8px; align-items: center;
  padding: clamp(6px, .9vh, 9px) 10px; border: 0; border-radius: 12px;
  transition: background .25s, padding .35s var(--ease);
}
.bigidx__list button:hover, .bigidx__list button:focus-visible { padding-left: 10px; background: var(--line); }
.bigidx__list b { font-size: 10px; }
.bigidx__list span { font: 500 clamp(.95rem, 1.85vh, 1.06rem)/1.15 var(--sans); }
.bigidx__list i { opacity: .55; transform: none; font-size: 10px; }
.bigidx__list i::after { content: none; }
.bigidx__list svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .35s var(--ease); }
.bigidx__list button:hover svg, .bigidx__list button:focus-visible svg { opacity: 1; transform: none; }
.bigidx__list button:hover i { opacity: 1; }
.bigidx__list button:hover b { color: var(--or); }
@media (max-height: 820px) { .intro__line { display: none; } }

/* Index view: solid, no blur over the 3D canvas, so scrolling is instant */
.index { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; overscroll-behavior: contain; outline: none; }

/* Face ID */
.faceid { margin: 6px 0 18px; border-radius: 18px; background: var(--bg-soft); padding: 12px; position: relative; }
.faceid__top { display: flex; justify-content: space-between; padding: 2px 4px 10px; font: 400 11px var(--mono); color: var(--ink-3); }
.faceid__top .rec::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #F04438; margin-right: 6px; vertical-align: 1px; animation: blink 1.2s steps(1) infinite; }
.faceid__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: #FFFFFF; }
.faceid__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.faceid canvas { display: none; }
.faceid[data-view="ascii"] .faceid__frame { background: var(--bg); }
.faceid[data-view="ascii"] img { display: none; }
.faceid[data-view="ascii"] canvas { display: block; position: absolute; left: 0; width: 100%; top: 6.2%; height: 87.7%; }
.faceid .sensor__box { left: 25%; top: 8%; width: 50%; height: 55%; }
.faceid[data-view="ascii"] .sensor__box { left: 27%; top: 10.6%; width: 47%; height: 45.6%; }
.faceid.is-locked .sensor__box { opacity: 1; transform: none; }
.faceid__modes { display: inline-flex; gap: 2px; margin: 12px auto 2px; padding: 3px; border-radius: 999px; background: var(--line); position: relative; left: 50%; transform: translateX(-50%); }
.faceid__modes button { font: 500 12px/1 var(--sans); color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: background .25s, color .25s, box-shadow .25s; }
.faceid__modes button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
/* Ask an AI about me: five quiet doors to the AIs, each pre-asked to read llms.txt first */
.askai { margin: 22px 0 0; padding: 18px 0 30px; border-top: 1px solid var(--line); }
.sec .askai__k { margin: 0 0 12px; font: 400 11px var(--mono); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.askai__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.askai__row a { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); background: var(--line); transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.askai__row svg { width: 19px; height: 19px; fill: currentColor; }
.askai__row a::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); padding: 5px 9px; border-radius: 7px; font: 500 11px/1 var(--sans); white-space: nowrap; color: var(--bg); background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
@media (hover: hover) {
  .askai__row a:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
  .askai__row a:hover::after { opacity: 1; transform: translate(-50%, 0); }
}
.askai__row a:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .askai__row a, .askai__row a::after { transition: none; } .askai__row a:hover { transform: none; } }
.bigidx__list .bigidx__group > span { display: block; padding: 12px 10px 4px; font: 400 10px/1.4 var(--mono); color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.bigidx__list .bigidx__group:first-child > span { padding-top: 4px; }
@media (max-height: 920px) { .intro__line { display: none; } }
@media (min-width: 901px) and (min-height: 641px) { .dock__hint { display: none; } }
.faceid .sensor__box { left: 26%; top: 6%; width: 48%; height: 49%; }
:root[data-theme="dark"] .faceid__frame { background: #F4F2EC; }

/* The hidden attribute must win over component display rules (the closed terminal was blocking the wheel) */
[hidden] { display: none !important; }

/* Mini analog clock (GMT) before the time */
.aclock { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; margin-right: 7px; overflow: visible; }
.aclock__face { fill: none; stroke: currentColor; stroke-width: 1.1; opacity: .55; }
.aclock line { stroke: currentColor; stroke-linecap: round; transform-box: view-box; transform-origin: 8px 8px; }
.aclock__h { stroke-width: 1.5; }
.aclock__m { stroke-width: 1.1; }
.aclock__s { stroke: #F05A0A !important; stroke-width: .7; transition: transform .25s cubic-bezier(.4, 2.2, .5, 1); }
.aclock__c { fill: currentColor; }

/* ---------- Terminal: quick commands + phone sheet ------------------------- */
.term__chips { display: flex; gap: 6px; padding: 8px 16px 2px; overflow-x: auto; scrollbar-width: none; }
.term__chips::-webkit-scrollbar { display: none; }
.term__chips button { flex: none; font: 400 12px/1 var(--mono); color: #B4AF9F; border: 1px solid #2A2E2A; padding: 8px 11px; border-radius: 999px; transition: border-color .2s, color .2s; }
.term__chips button:hover, .term__chips button:active { border-color: #FF6A13; color: #FF6A13; }
@media (max-width: 720px) {
  .term {
    left: 0; right: 0; top: 0; bottom: auto; width: 100%; height: 100dvh;
    border-radius: 0; border: 0;
    transform: translateY(30px);
    font-size: 14px;
    padding-top: env(safe-area-inset-top);
  }
  .term.is-open { transform: none; }
  .term__top { padding: 14px 16px; }
  .term__top button { padding: 8px 14px; font-size: 12px; }
  .term__out { padding: 14px 16px 6px; }
  .term__chips { padding: 8px 12px 4px; }
  .term__chips button { padding: 10px 13px; font-size: 13px; }
  .term__in { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .term__in label { font-size: 13px; }
  .term__in input { font-size: 16px; }
  .termpill { padding: 12px 14px 12px 16px; }
}

/* ---------- Phones: steady header, no page zoom ----------------------------
   The 3D canvas handles pinch itself; everywhere else we stop the browser
   zooming the whole page (which pushed the header off-screen). Scroll areas
   keep panning. */
html, body { touch-action: none; overscroll-behavior: none; }
.index, .panel__body, .term__out, .dock__track, .term__chips, .bigidx { touch-action: pan-x pan-y; }
button, a { touch-action: manipulation; }
.hud--top { padding-top: calc(var(--pad) + env(safe-area-inset-top)); padding-left: calc(var(--pad) + env(safe-area-inset-left)); padding-right: calc(var(--pad) + env(safe-area-inset-right)); }
.hud__right { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 720px) {
  .hud--top {
    z-index: 25;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--line);
  }
  .brand img { height: 18px; }
  .hud__right { gap: 14px; }
  .tlink { font-size: 13px; }
  .themebtn { width: 34px; height: 34px; }
  .intro { top: calc(64px + env(safe-area-inset-top)); left: 16px; }
  .intro__name { font-size: 1.55rem; }
  .intro__kick { font-size: 11px; }
  .panel { bottom: calc(10px + env(safe-area-inset-bottom)); height: min(60vh, 560px); }
  .dock { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* Legal links */
.legal { display: flex; gap: 14px; align-items: center; margin: 10px 10px 2px; padding-top: 10px; border-top: 1px solid var(--line); font: 400 11px var(--mono); color: var(--ink-3); }
.legal a { color: var(--ink-2); text-decoration: none; }
.legal a:hover { color: var(--or); }
.legal span { margin-left: auto; }
.dock__hint a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
@media (min-width: 901px) and (min-height: 641px) { .dock__hint { display: none; } }
.index__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 32px 0 0; border-top: 1px solid var(--line); font: 400 12px var(--mono); color: var(--ink-3); }
.index__foot span:last-child { display: flex; gap: 18px; }
.index__foot a { color: var(--ink-2); text-decoration: none; }
.index__foot a:hover { color: var(--or); }

/* ---------- Phone header, final ------------------------------------------
   Real-device fixes: no backdrop blur over the WebGL canvas (iOS can skip
   drawing it), its own compositing layer on top, no text inflation, and the
   clock stays visible in a compact form. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.hud--top { z-index: 100; transform: translateZ(0); will-change: transform; }
.stage { z-index: 0; }
@media (max-width: 720px) {
  .hud--top {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
    min-height: calc(56px + env(safe-area-inset-top));
    background: var(--bg);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 1px 0 var(--line);
    border-bottom: 0;
  }
  .hud__right { justify-content: flex-end; gap: 12px; min-width: 0; }
  .clock { display: inline-flex !important; align-items: center; font-size: 11px; }
  .clock .aclock { margin-right: 5px; }
  .tlink { font-size: 13px; }
  .themebtn { flex: none; }
}
@media (max-width: 360px) {
  .hud__right { gap: 9px; }
  .clock b + * , .clock { letter-spacing: -.02em; }
  .tlink { font-size: 12px; }
}
@media (max-width: 720px) { .clock b { margin-right: 4px; } }

/* Roles channels: deep ink colours (lifted slightly for dark mode) */
:root { --ch-think: #9A6418; --ch-build: #1E6A47; --ch-lead: #1E4A86; --ch-give: #A8391A; }
:root[data-theme="dark"] { --ch-think: #D6A04A; --ch-build: #5DAE83; --ch-lead: #7099D6; --ch-give: #E0703F; }

/* Roles channels: one ink, told apart by line style like a technical drawing.
   The brand orange appears only on the channel you point at. */
.chan { --c: var(--ink); border-left: 0; padding: 14px 0 14px 20px; position: relative; transition: background .3s; border-radius: 0 10px 10px 0; }
.chan::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 0; border-left: 2px solid var(--c); transition: border-color .3s; }
.chan[data-ch="2"]::before { border-left-style: dashed; }
.chan[data-ch="3"]::before { border-left-style: dotted; border-left-width: 3px; }
.chan[data-ch="4"]::before { border-left-style: double; border-left-width: 5px; }
.chan b { color: var(--ink-2); }
.chan:hover { background: var(--line); }
.chan:hover::before { border-left-color: var(--or); }
.chan:hover b { color: var(--or); }
.loader { z-index: 300; }

/* Legal line — bottom centre, quiet; steps aside while a panel is open */
.legalbar { position: fixed; z-index: 9; left: 50%; bottom: calc(var(--pad) + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 14px; font: 400 11px/1 var(--mono); color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; transition: opacity .4s; }
.legalbar a { color: var(--ink-3); text-decoration: none; transition: color .2s; }
.legalbar a:hover { color: var(--or); }
.legalbar span::after, .legalbar a:first-of-type::after { content: "·"; margin-left: 14px; color: var(--line-2); }
.panel.is-open ~ .legalbar { opacity: 0; pointer-events: none; }
@media (max-width: 900px), (max-height: 640px) { .legalbar { display: none; } }

/* ---------- Phones: the header never overlaps the 3D canvas ---------------
   iOS Safari can stop drawing fixed elements that float over a live WebGL
   canvas. On phones the canvas therefore starts below the header bar, so the
   two never overlap and the header is always drawn. */
@media (max-width: 720px) {
  .hud--top { height: calc(56px + env(safe-area-inset-top)); min-height: 0; padding-top: env(safe-area-inset-top); padding-bottom: 0; transform: none; will-change: auto; }
  .stage { top: calc(56px + env(safe-area-inset-top)); }
}

/* Pin the page: nothing (not even the on-screen keyboard) can scroll it and
   push the fixed header off-screen. Index, panels and terminal scroll inside. */
html, body { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; }

.vvdebug { position: fixed; z-index: 9999; left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; border-radius: 8px; background: #111; color: #3DDC84; font: 400 11px/1.4 var(--mono); pointer-events: none; }

/* ---------- Index, editorial ----------------------------------------------
   A table of contents, not a widget: no card, no pill, hairline group rules,
   quiet type. Object names appear on hover. */
.intro { width: min(280px, 80vw); }
.bigidx { margin-top: clamp(26px, 4.2vh, 44px); background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-theme="dark"] .bigidx { box-shadow: none; }
.bigidx__head { display: none; }
.bigidx__list .bigidx__group > span { display: flex; align-items: center; gap: 12px; padding: 20px 0 8px; font: 400 10px/1 var(--mono); color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.bigidx__list .bigidx__group:first-child > span { padding-top: 0; }
.bigidx__list .bigidx__group > span::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bigidx__list button { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 6px; padding: clamp(4px, .6vh, 6px) 0; border-radius: 0; background: none !important; }
.bigidx__list button:hover, .bigidx__list button:focus-visible { padding-left: 0; }
.bigidx__list b { font: 400 10px var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bigidx__list span { font: 450 15px/1.3 var(--sans); letter-spacing: -.012em; color: var(--ink-2); text-shadow: 0 0 14px var(--bg), 0 0 2px var(--bg); transition: color .25s, transform .35s var(--ease); }
.bigidx__list button:hover span, .bigidx__list button:focus-visible span { color: var(--ink); transform: translateX(3px); }
.bigidx__list button:hover b { color: var(--or); }
.bigidx__list i { font-size: 10px; opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .35s var(--ease); }
.bigidx__list button:hover i, .bigidx__list button:focus-visible i { opacity: .9; transform: none; }
.bigidx__list svg { display: none; }
.bigidx__all { display: inline-flex; gap: 6px; align-items: baseline; margin-top: 22px; font: 500 13px var(--sans); color: var(--ink); padding-bottom: 3px; border-bottom: 1px solid var(--line-2); transition: border-color .25s; }
.bigidx__all span { transition: transform .35s var(--ease); }
.bigidx__all:hover { border-color: var(--ink); }
.bigidx__all:hover span { transform: translateX(3px); }

/* ---------- Terminal on phones: below the header, easy to leave ------------ */
.term__x { display: inline-flex; align-items: center; gap: 6px; }
.term__xk { color: #6E6A60; }
.term__chips .is-exit { color: #F4F1E8; border-color: #3A3F3A; background: #1C1F1C; }
@media (max-width: 720px) {
  .term { top: calc(56px + env(safe-area-inset-top)); height: calc(100dvh - 56px - env(safe-area-inset-top)); padding-top: 0; z-index: 40; }
  .term__xk { display: none; }
  .term__x { font-size: 13px !important; padding: 9px 14px !important; color: #F4F1E8 !important; border-color: #3A3F3A !important; }
}
@media (max-width: 720px) { .term__top .term__xk { display: none; } }

/* ---------- Phones: header docked inside the open terminal ----------------- */
@media (max-width: 720px) {
  .term { top: 0; height: 100dvh; }
  .hud--top.is-docked { position: relative; inset: auto; z-index: 1; flex: none; width: 100%; transform: none; translate: none; height: calc(56px + env(safe-area-inset-top)); background: var(--bg); box-shadow: 0 1px 0 var(--line); pointer-events: auto; }
}

/* Snappier panel */
.panel { transition: transform .45s var(--ease); }

/* Office-hours status: deep, readable ink on light; brighter on dark */
[data-hours] { font-weight: 500; }
[data-hours][data-state="open"] { color: #12784A; }
[data-hours][data-state="closed"] { color: #8A4B00; }
:root[data-theme="dark"] [data-hours][data-state="open"] { color: #5FD99A; }
:root[data-theme="dark"] [data-hours][data-state="closed"] { color: #F2C066; }

/* Terminal close: just a quiet ✕, no box, no label (the "exit" chip is there too) */
.term__top .term__x, .term__top .term__x:hover { width: 30px; height: 30px; padding: 0 !important; border: 0 !important; border-radius: 0; background: none; display: grid; place-items: center; color: #9C988C !important; font-size: 0 !important; }
.term__top .term__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; transition: transform .3s var(--ease); }
.term__top .term__x:hover { color: #FFFFFF !important; }
.term__top .term__x:hover svg { transform: rotate(90deg); }
/* No hairline under the header on phones */
@media (max-width: 720px) {
  .hud--top, .hud--top.is-docked { box-shadow: none; border-bottom: 0; }
}


/* Blog card (panel + index) */
.post-card { display: grid; gap: 8px; margin: 18px 0 14px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .25s, transform .35s var(--ease); }
.post-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-card__k { font: 400 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.post-card__t { font: 600 1.45rem/1.1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.post-card__d { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.post-card__go { font: 500 13px var(--sans); color: var(--ink); }
.post-card:hover .post-card__go { color: var(--or); }
@media (max-width: 380px) { .hud__right { gap: 10px; } .tlink { font-size: 12px; } }

/* Skip link: hidden until a keyboard or screen-reader user reaches it */
.skip { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 500 14px var(--sans); text-decoration: none; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }

/* When the room is moved up against them, the intro and legal line step aside (and stop
   taking clicks or being read out), and a soft strip sits just behind the header menu. */
.intro.is-away, .over-intro .intro { visibility: hidden; transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s; }
.over-intro .intro { opacity: 0; transform: translateX(-14px); }
.intro.is-away .bigidx, .over-intro .intro .bigidx { pointer-events: none; }
.legalbar { transition: opacity .4s var(--ease); }
.over-legal .legalbar { opacity: 0; pointer-events: none; }
.hud__right { position: relative; isolation: isolate; }
.hud__right::before { content: ""; position: absolute; z-index: -1; inset: -12px -30px; pointer-events: none; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 30px, #000 calc(100% - 30px), transparent), linear-gradient(to bottom, transparent, #000 12px, #000 calc(100% - 12px), transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 30px, #000 calc(100% - 30px), transparent), linear-gradient(to bottom, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-composite: intersect; opacity: 0; transition: opacity .45s var(--ease); } /* a soft-edged strip, a little taller than the light switch */
.over-menu .hud__right::before { opacity: 1; }
@media (max-width: 720px) { .hud__right::before { display: none; } } /* phones: the header is already solid */
