/* ────────────────────────────────────────────────────────────────
   AUHMS Studio — Studio OS
   A dashboard-chrome marketing site. Reads like a tool, not a magazine.
   Geist + Geist Mono · void canvas · moss accent · panel surfaces.
   ──────────────────────────────────────────────────────────────── */

/* Hide page content until the JS-injected shell is mounted (no FOUC) */
body:not(.shell-ready) > main#pageMain { visibility: hidden; }

:root {
  /* ── Canvas (the OS) ─────────────────────────────────────── */
  --void:        #0A0B0D;
  --void-lift:   #0E1014;
  --panel:       #14161A;
  --panel-soft:  #1B1E23;
  --panel-lit:   #22262E;
  --rule:        #262A32;
  --rule-soft:   #1B1F26;
  --rule-bright: #353A44;

  /* ── Text ────────────────────────────────────────────────── */
  --text:        #E7E7E5;
  --text-soft:   #B6B8BD;
  --text-mute:   #7A7F88;
  --text-dim:    #50555E;
  --text-dimmer: #353941;

  /* ── Brand accent (translates "marsh" to system-OK green) ── */
  --moss:        #8AC07A;
  --moss-bright: #A6D49A;
  --moss-deep:   #5C9B4F;
  --moss-glow:   rgba(138,192,122,0.22);
  --moss-faint:  rgba(138,192,122,0.08);

  /* ── Status ──────────────────────────────────────────────── */
  --amber:       #E6A65A;
  --rose:        #E58C8C;

  /* ── Type ────────────────────────────────────────────────── */
  --f-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* ── Sizing / motion ─────────────────────────────────────── */
  --titlebar-h: 36px;
  --statusbar-h: 28px;
  --sidebar-w: 248px;
  --inspector-w: 296px;
  --gutter: clamp(1.25rem, 3vw, 2.4rem);
  --maxw-text: 720px;
  --rad: 6px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,.84,.32,1);
}

/* ────────────────────────────────────────────────────────────
   Reset & base
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: #000;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--rule-bright) transparent;
  scrollbar-width: thin;
}
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 14.5px;
  line-height: 1.55;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'ss01' 1, 'ss02' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* faint static — like noise on a tube */
  background-image:
    radial-gradient(1px 1px at 20% 10%, rgba(138,192,122,0.025), transparent 60%),
    radial-gradient(1px 1px at 80% 80%, rgba(231,231,229,0.015), transparent 50%),
    radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: auto, auto, 3px 3px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

::selection { background: var(--moss-glow); color: var(--text); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 8px; border: 2px solid var(--void); }
::-webkit-scrollbar-thumb:hover { background: var(--rule-bright); }
::-webkit-scrollbar-track { background: transparent; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.mono { font-family: var(--f-mono); }

/* ────────────────────────────────────────────────────────────
   Crosshair cursor (desktop, fine pointer)
   ──────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  body.has-crosshair { cursor: none; }
  body.has-crosshair * { cursor: none; }
  body.has-crosshair input,
  body.has-crosshair textarea { cursor: text; }
  body.has-crosshair a,
  body.has-crosshair button,
  body.has-crosshair [role="button"],
  body.has-crosshair label,
  body.has-crosshair select { cursor: none; }

  .crosshair {
    position: fixed; top: 0; left: 0;
    width: 1px; height: 1px;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
  }
  .crosshair__h, .crosshair__v {
    position: absolute;
    background: rgba(138,192,122,0.45);
    pointer-events: none;
  }
  .crosshair__h { left: -50vw; right: -50vw; top: 0; height: 1px; }
  .crosshair__v { top: -50vh; bottom: -50vh; left: 0; width: 1px; }
  .crosshair__dot {
    position: absolute;
    width: 9px; height: 9px;
    border: 1px solid var(--moss);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10,11,13,0.5);
  }
  .crosshair__dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--moss);
    border-radius: 50%;
  }
  .crosshair__readout {
    position: absolute;
    top: 14px; left: 14px;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--moss-bright);
    background: rgba(10,11,13,0.78);
    border: 1px solid var(--rule);
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
    backdrop-filter: blur(6px);
  }
  .crosshair.is-link .crosshair__dot {
    width: 16px; height: 16px;
    border-color: var(--moss-bright);
    background: rgba(138,192,122,0.18);
  }
  .crosshair.is-link .crosshair__dot::after { display: none; }
}

/* ────────────────────────────────────────────────────────────
   Layout: window chrome
   ──────────────────────────────────────────────────────────── */
.os {
  display: grid;
  grid-template-rows: var(--titlebar-h) 1fr var(--statusbar-h);
  min-height: 100vh;
  width: 100%;
}

/* ── Title bar ─────────────────────────────────────────────── */
.titlebar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0 14px;
  background: linear-gradient(180deg, #14161A 0%, #0F1115 100%);
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
  user-select: none;
}
.titlebar__lights {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}
.titlebar__light {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--rule-bright);
  border: 1px solid var(--rule);
}
.titlebar__light--r { background: #E26B6B; border-color: #c25555; }
.titlebar__light--y { background: #E0B23B; border-color: #b88c2a; }
.titlebar__light--g { background: var(--moss); border-color: var(--moss-deep); }

.titlebar__crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.titlebar__crumbs span { color: var(--text-dim); }
.titlebar__crumbs strong { color: var(--text); font-weight: 500; }
.titlebar__crumbs .sep { color: var(--text-dimmer); }
.titlebar__crumbs .accent { color: var(--moss); }

.titlebar__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}
.titlebar__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.titlebar__meta b { color: var(--text); font-weight: 500; letter-spacing: 0.04em; }

.tb-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 0 var(--moss-glow);
  animation: tbPulse 2.4s var(--ease) infinite;
}
@keyframes tbPulse {
  0%   { box-shadow: 0 0 0 0 var(--moss-glow); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.kbd {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  padding: 1px 5px;
  border: 1px solid var(--rule-bright);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--panel);
  color: var(--text-soft);
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.kbd--inline { padding: 0 4px; font-size: 10px; }

/* ── Workspace (sidebar + viewport + inspector) ──────────────── */
.workspace {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--inspector-w);
  min-height: 0;
}
@media (max-width: 1180px) {
  .workspace { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .inspector { display: none; }
}
@media (max-width: 760px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed;
    top: var(--titlebar-h); bottom: var(--statusbar-h);
    left: 0; width: 80%;
    max-width: 320px;
    z-index: 70;
    transform: translateX(-100%);
    transition: transform 320ms var(--ease);
  }
  .sidebar.is-open { transform: translateX(0); }
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  background: var(--void-lift);
  border-right: 1px solid var(--rule);
  padding: 18px 0 14px;
  display: flex; flex-direction: column;
  gap: 18px;
  font-size: 13px;
  position: sticky; top: var(--titlebar-h);
  align-self: start;
  height: calc(100vh - var(--titlebar-h) - var(--statusbar-h));
  overflow-y: auto;
}
.sidebar__brand {
  display: grid; gap: 6px;
  padding: 0 16px 18px;
  border-bottom: 1px solid var(--rule-soft);
}
.brand-mark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-sans);
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark__glyph {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--moss-deep), var(--moss));
  border-radius: 5px;
  font-family: var(--f-mono);
  font-weight: 600; font-size: 13px;
  color: var(--void);
  letter-spacing: -0.04em;
}
.brand-mark__glyph svg { width: 16px; height: 16px; color: var(--void); }
.brand-meta {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.brand-meta b { color: var(--text-mute); font-weight: 500; }

.sidebar__group {
  display: grid; gap: 2px;
  padding: 0 8px;
}
.sidebar__group-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 8px 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar__group-label::before { content: '/* '; opacity: 0.45; }
.sidebar__group-label::after  { content: ' */'; opacity: 0.45; }

.sidebar__item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 450;
  letter-spacing: -0.005em;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.sidebar__item:hover { background: var(--panel); color: var(--text); }
.sidebar__item.is-active { background: var(--panel-soft); color: var(--text); }
.sidebar__item.is-active::before {
  content: '';
  width: 2px; height: 14px;
  background: var(--moss);
  position: absolute;
  margin-left: -10px;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--moss-glow);
}
.sidebar__item { position: relative; }
.sidebar__icon {
  width: 14px; height: 14px;
  color: var(--text-dim);
  display: grid; place-items: center;
}
.sidebar__item:hover .sidebar__icon,
.sidebar__item.is-active .sidebar__icon { color: var(--moss); }
.sidebar__item .badge {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-dim);
  background: var(--panel);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.sidebar__item.is-active .badge { color: var(--moss); background: var(--moss-faint); }

.sidebar__cta {
  margin: 6px 14px 0;
  padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--rule-bright);
  border-radius: var(--rad);
  background: var(--panel);
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.sidebar__cta:hover { border-color: var(--moss); background: var(--panel-soft); }
.sidebar__cta:hover .kbd { border-color: var(--moss); }

.sidebar__pings {
  margin-top: auto;
  padding: 14px 16px 0;
  border-top: 1px solid var(--rule-soft);
  display: grid; gap: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.sidebar__pings .row { display: flex; justify-content: space-between; }
.sidebar__pings .row b { color: var(--text-mute); font-weight: 500; }
.sidebar__pings .ok { color: var(--moss); }

/* Sidebar drawer toggle (mobile) */
.sidebar-toggle {
  display: none;
  align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--text-soft);
  border: 1px solid var(--rule-bright);
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--panel);
}
@media (max-width: 760px) {
  .sidebar-toggle { display: inline-flex; }
}

/* ── Inspector (right context panel) ─────────────────────── */
.inspector {
  background: var(--void-lift);
  border-left: 1px solid var(--rule);
  padding: 18px 16px 14px;
  font-size: 12.5px;
  position: sticky; top: var(--titlebar-h);
  align-self: start;
  height: calc(100vh - var(--titlebar-h) - var(--statusbar-h));
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 18px;
}
.inspector h4 {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.inspector h4::before { content: '// '; opacity: 0.5; }
.inspector .insp-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-mute);
}
.inspector .insp-row b { color: var(--text); font-weight: 500; letter-spacing: -0.005em; }
.inspector .insp-row.ok b   { color: var(--moss); }
.inspector .insp-row.warn b { color: var(--amber); }
.inspector__section {
  display: grid; gap: 8px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: var(--rad);
}
.inspector__plot {
  height: 64px;
  background: var(--void);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.inspector__plot svg { width: 100%; height: 100%; }
.inspector__plot path.line { fill: none; stroke: var(--moss); stroke-width: 1.4; }
.inspector__plot path.fill { fill: var(--moss-faint); stroke: none; }
.inspector__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 5px;
  font-family: var(--f-mono);
  font-size: 11.5px;
}
.inspector__list a {
  display: flex; justify-content: space-between;
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--text-soft);
  transition: background 140ms var(--ease);
}
.inspector__list a:hover { background: var(--panel-soft); color: var(--text); }
.inspector__list a span { color: var(--text-dim); }

/* ────────────────────────────────────────────────────────────
   Viewport — main scrollable column
   ──────────────────────────────────────────────────────────── */
.viewport {
  min-width: 0;
  position: relative;
}

/* Subtle line-number gutter — IDE-like */
.viewport::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 44px;
  background:
    linear-gradient(180deg, transparent, var(--rule-soft) 20%, var(--rule-soft) 80%, transparent),
    var(--void);
  background-size: 1px 100%, auto;
  background-position: 43px 0, 0 0;
  background-repeat: no-repeat, repeat;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}
@media (max-width: 760px) {
  .viewport::before { display: none; }
}

.panel {
  position: relative;
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1.4rem, 3vw, 3rem) clamp(2.4rem, 5vw, 4rem) clamp(2.4rem, 4vw, 4.4rem);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: var(--titlebar-h);
}
@media (max-width: 760px) {
  .panel { padding: clamp(2rem, 6vw, 3rem) var(--gutter); }
}
.panel:last-child { border-bottom: 0; }

/* Panel header rows — “file path” / line nums */
.panel__path {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.panel__path .ln {
  display: inline-flex;
  width: 30px; justify-content: flex-end;
  color: var(--text-dimmer);
  user-select: none;
}
.panel__path .seg-mute { color: var(--text-dim); }
.panel__path .seg-em  { color: var(--text); font-weight: 500; }
.panel__path .seg-acc { color: var(--moss); }
.panel__path .pill {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--rule-bright);
  color: var(--text-mute);
  background: var(--panel);
}
.panel__path .pill.ok { color: var(--moss); border-color: var(--moss-deep); background: var(--moss-faint); }

/* ────────────────────────────────────────────────────────────
   HERO panel — terminal output as headline
   ──────────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.hero__term {
  display: grid;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 13.5px;
  color: var(--text-mute);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero__term .prompt { color: var(--moss); }
.hero__term .com    { color: var(--text); }
.hero__term .arg    { color: var(--text-soft); }
.hero__term .out    { color: var(--text-dim); }
.hero__term .ok     { color: var(--moss); }

.term-cursor {
  display: inline-block;
  width: 8px; height: 1.05em;
  background: var(--moss);
  vertical-align: -0.18em;
  margin-left: 2px;
  animation: termBlink 1.05s steps(2, start) infinite;
}
@keyframes termBlink {
  to { opacity: 0; }
}

.hero__display {
  font-family: var(--f-sans);
  font-size: clamp(2.8rem, 7.4vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.038em;
  font-weight: 600;
  margin: 0 0 22px;
  color: var(--text);
  max-width: 18ch;
}
.hero__display .em { color: var(--moss); font-weight: 500; }
.hero__display .strike {
  color: var(--text-dim);
  position: relative;
  display: inline-block;
}
.hero__display .strike::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; top: 53%;
  height: 4px;
  background: var(--moss);
  transform: skewY(-1.5deg);
  box-shadow: 0 0 12px var(--moss-glow);
}

.hero__lede {
  max-width: 64ch;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 28px;
}
.hero__lede em { color: var(--text); font-style: normal; font-weight: 500; }

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  border-radius: var(--rad);
  border: 1px solid var(--rule-bright);
  color: var(--text);
  background: var(--panel);
  transition: border-color 180ms var(--ease), background 180ms var(--ease),
              transform 220ms var(--ease), color 180ms var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn:hover { border-color: var(--moss); background: var(--panel-soft); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform 200ms var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--moss {
  background: var(--moss);
  color: var(--void);
  border-color: var(--moss);
  font-weight: 600;
}
.btn--moss:hover {
  background: var(--moss-bright);
  border-color: var(--moss-bright);
  color: var(--void);
  box-shadow: 0 0 0 1px var(--moss-bright), 0 8px 26px -12px var(--moss-glow);
}
.btn--ghost {
  background: transparent;
}
.btn--lg { padding: 12px 16px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn .kbd { background: rgba(0,0,0,0.18); border-color: rgba(255,255,255,0.18); color: inherit; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  background: var(--panel);
  overflow: hidden;
  font-family: var(--f-mono);
  max-width: 880px;
}
.hero__stat {
  padding: 14px 16px;
  border-right: 1px solid var(--rule-soft);
}
.hero__stat:last-child { border-right: 0; }
.hero__stat dt {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.hero__stat dd {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero__stat dd .moss { color: var(--moss); }

@media (max-width: 640px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat:nth-child(2) { border-right: 0; }
  .hero__stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule-soft); }
}

/* ────────────────────────────────────────────────────────────
   PANEL TITLES — large, IDE-like with line-number gutter
   ──────────────────────────────────────────────────────────── */
.panel__title {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.024em;
  margin: 0 0 10px;
  color: var(--text);
}
.panel__title .em  { color: var(--moss); font-weight: 500; }
.panel__title .com {
  font-family: var(--f-mono);
  font-size: 0.42em;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-left: 0.6em;
  vertical-align: 0.4em;
}
.panel__lede {
  margin: 0 0 36px;
  max-width: 64ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ────────────────────────────────────────────────────────────
   PRACTICE — services as 4 module rows
   ──────────────────────────────────────────────────────────── */
.modules {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  background: var(--panel);
  overflow: hidden;
}
.module {
  display: grid;
  grid-template-columns: 60px 1.3fr 1fr 0.6fr;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule-soft);
  transition: background 180ms var(--ease);
}
.module:last-child { border-bottom: 0; }
.module:hover { background: var(--panel-soft); }
.module__num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.module__name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.012em;
  color: var(--text);
}
.module__name span { display: block; font-weight: 400; color: var(--text-mute); font-size: 13.5px; margin-top: 2px; }
.module__desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.5; }
.module__sig {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-align: right;
}
.module__sig::before { content: '→ '; color: var(--moss); }

@media (max-width: 760px) {
  .module {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px;
  }
  .module__sig { text-align: left; }
}

/* ────────────────────────────────────────────────────────────
   THE THREE BRIEFS — pricing tiers as system tiers
   ──────────────────────────────────────────────────────────── */
.briefs {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 920px) {
  .briefs { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.brief {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: border-color 220ms var(--ease), transform 320ms var(--ease-out),
              background 220ms var(--ease);
  isolation: isolate;
}
.brief:hover { border-color: var(--rule-bright); }
.brief--featured {
  border-color: var(--moss-deep);
  background: linear-gradient(180deg, rgba(138,192,122,0.05) 0%, var(--panel) 60%);
  box-shadow:
    0 0 0 1px var(--moss-deep),
    0 12px 60px -28px var(--moss-glow),
    inset 0 1px 0 rgba(138,192,122,0.08);
}
.brief--featured:hover {
  box-shadow:
    0 0 0 1px var(--moss),
    0 16px 72px -28px var(--moss-glow),
    inset 0 1px 0 rgba(138,192,122,0.14);
}

.brief__header {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brief__id { color: var(--text); font-weight: 500; }
.brief__id::before { content: '#'; color: var(--text-dim); margin-right: 1px; }
.brief__tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px;
  border: 1px solid var(--rule-bright);
  border-radius: 99px;
  letter-spacing: 0.08em;
  background: var(--void);
  color: var(--text-mute);
}
.brief__tag::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim);
}
.brief--featured .brief__tag {
  border-color: var(--moss-deep);
  color: var(--moss);
  background: var(--moss-faint);
}
.brief--featured .brief__tag::before { background: var(--moss); box-shadow: 0 0 6px var(--moss-glow); }

.brief__name {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 4px 0 0;
  color: var(--text);
}
.brief__name .em { color: var(--moss); font-weight: 500; }
.brief__for {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-mute);
}

.brief__rule { height: 1px; background: var(--rule-soft); }

.brief__pages {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brief__pages b {
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.brief--featured .brief__pages b { color: var(--moss-bright); }

.brief__spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.brief__spec li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  font-size: 13.2px;
  color: var(--text-soft);
  line-height: 1.5;
}
.brief__spec li::before {
  content: '✓';
  font-family: var(--f-mono);
  color: var(--moss);
  font-size: 12px;
  align-self: flex-start;
  line-height: 1.55;
}
.brief__spec b {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Tiny "load" bar — ASCII-style usage meter per tier */
.brief__meter {
  display: grid; gap: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-top: auto;
}
.brief__meter__row { display: flex; justify-content: space-between; }
.brief__meter__bar {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 1px;
  height: 8px;
}
.brief__meter__bar i {
  display: block;
  background: var(--rule);
  border-radius: 1px;
}
.brief__meter__bar i.on { background: var(--moss); box-shadow: 0 0 4px var(--moss-glow); }
.brief--featured .brief__meter__bar i.on { background: var(--moss-bright); }

.brief__price {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.brief__price b {
  display: inline-block;
  font-family: var(--f-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.005em;
  margin-right: 6px;
}
.brief--featured .brief__price b { color: var(--moss-bright); }

.brief__cta { width: 100%; justify-content: center; }
.brief--featured .brief__cta {
  background: var(--moss); color: var(--void); border-color: var(--moss);
}
.brief--featured .brief__cta:hover { background: var(--moss-bright); border-color: var(--moss-bright); }

.briefs__note {
  margin: 26px 0 0;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.briefs__note::before { content: '// '; color: var(--text-dimmer); }
.briefs__note a { color: var(--moss); border-bottom: 1px solid var(--moss-deep); }
.briefs__note a:hover { color: var(--moss-bright); }

/* ────────────────────────────────────────────────────────────
   SELECTED WORK — case logs
   ──────────────────────────────────────────────────────────── */
.logs {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
}
.log {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.log:hover { border-color: var(--moss-deep); background: var(--panel-soft); }
.log__plate {
  background: var(--void);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  color: var(--moss);
  position: relative;
  overflow: hidden;
}
.log__plate svg { width: 100%; height: 100%; }
.log__plate-tag {
  position: absolute;
  top: 6px; left: 6px;
  font-family: var(--f-mono); font-size: 9.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mute);
  background: rgba(10,11,13,0.78);
  padding: 2px 5px;
  border-radius: 2px;
  border: 1px solid var(--rule-soft);
}

.log__body {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}
.log__head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.06em;
}
.log__head .stat-ok { color: var(--moss); }
.log__head .stat-ok::before { content: '●'; margin-right: 4px; }
.log__title {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.014em;
  color: var(--text);
}
.log__lede {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 64ch;
}
.log__chips {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.log__chips li {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--rule);
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--void);
}

@media (max-width: 640px) {
  .log { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────────
   PROCESS — build pipeline
   ──────────────────────────────────────────────────────────── */
.pipe {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 880px) {
  .pipe { grid-template-columns: repeat(4, 1fr); }
}
.pipe__stage {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 16px 16px 14px;
  display: grid; gap: 8px;
  align-content: start;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.pipe__stage:hover { border-color: var(--moss-deep); background: var(--panel-soft); }
.pipe__stage::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--text-dim);
  transform: translateY(-50%);
  z-index: 1;
}
.pipe__stage:last-child::after { content: ''; }
@media (max-width: 880px) {
  .pipe__stage::after {
    right: 50%; top: auto; bottom: -16px;
    transform: translateX(50%) rotate(90deg);
  }
}

.pipe__head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-dim);
}
.pipe__num {
  font-family: var(--f-mono);
  font-size: 22px;
  color: var(--moss);
  letter-spacing: -0.02em;
  font-weight: 500;
}
.pipe__title {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.012em;
}
.pipe__desc { margin: 0; font-size: 13px; color: var(--text-soft); line-height: 1.55; }
.pipe__weeks {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--text-dim); text-transform: uppercase;
}

.pipe__bar {
  margin-top: 6px;
  height: 4px; border-radius: 2px;
  background: var(--rule);
  overflow: hidden;
  position: relative;
}
.pipe__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--moss-deep), var(--moss));
  border-radius: 2px;
}

/* ────────────────────────────────────────────────────────────
   TERRITORY — node topology
   ──────────────────────────────────────────────────────────── */
.topo {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 22px 18px;
  display: grid; gap: 14px;
}
.topo__svg {
  width: 100%; aspect-ratio: 16 / 7;
  background:
    linear-gradient(to right, var(--rule-soft) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px) 0 0/40px 40px,
    var(--void);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.topo__svg svg { width: 100%; height: 100%; display: block; }
.topo__svg .edge { stroke: var(--rule-bright); stroke-width: 1; fill: none; }
.topo__svg .edge.live { stroke: var(--moss); stroke-dasharray: 4 4; animation: edgeFlow 2.4s linear infinite; }
@keyframes edgeFlow { to { stroke-dashoffset: -32; } }
.topo__svg .node {
  fill: var(--panel-soft);
  stroke: var(--rule-bright);
  stroke-width: 1;
}
.topo__svg .node.hub { fill: var(--moss); stroke: var(--moss-bright); }
.topo__svg .label {
  font-family: var(--f-mono); font-size: 9.5px;
  fill: var(--text-mute); letter-spacing: 0.06em;
}
.topo__svg .label.em { fill: var(--text); }

.topo__legend {
  display: flex; flex-wrap: wrap; gap: 12px 22px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}
.topo__legend span { display: inline-flex; align-items: center; gap: 8px; }
.topo__legend .key {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-dim);
}
.topo__legend .key.hub { background: var(--moss); box-shadow: 0 0 8px var(--moss-glow); }
.topo__legend .key.edge {
  background: linear-gradient(90deg, var(--moss) 50%, transparent 50%) 0 0/6px 2px;
  height: 2px; border-radius: 0;
}

/* ────────────────────────────────────────────────────────────
   STUDIO — team manifest
   ──────────────────────────────────────────────────────────── */
.manifest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 980px) {
  .manifest { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.manifest__essay { display: grid; gap: 14px; max-width: 60ch; }
.manifest__essay p { margin: 0; font-size: 14.8px; line-height: 1.6; color: var(--text-soft); }
.manifest__essay p .em { color: var(--text); font-weight: 500; }
.manifest__essay .sig {
  font-family: var(--f-mono); font-size: 11.5px; color: var(--text-mute); letter-spacing: 0.06em;
  margin-top: 4px;
}
.manifest__essay .sig::before { content: '— '; color: var(--moss); }

.manifest__yaml {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 16px 18px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.7;
  letter-spacing: 0.01em;
  display: grid;
  gap: 4px;
}
.manifest__yaml .yk { color: var(--moss); }
.manifest__yaml .yv { color: var(--text); }
.manifest__yaml .ys { color: var(--amber); font-style: normal; }
.manifest__yaml .yc { color: var(--text-dim); }
.manifest__yaml .yc::before { content: '# '; }

/* ────────────────────────────────────────────────────────────
   BEGIN — submit a brief (form)
   ──────────────────────────────────────────────────────────── */
.dialog {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  overflow: hidden;
  max-width: 940px;
}
.dialog__header {
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--void-lift);
  font-family: var(--f-mono); font-size: 12px;
  color: var(--text-mute);
}
.dialog__lights { display: inline-flex; gap: 6px; }
.dialog__light { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-bright); }
.dialog__light.r { background: #E26B6B; }
.dialog__light.y { background: #E0B23B; }
.dialog__light.g { background: var(--moss); }
.dialog__path { color: var(--text-soft); }
.dialog__path b { color: var(--text); font-weight: 500; }
.dialog__pid { margin-left: auto; color: var(--text-dim); letter-spacing: 0.06em; }

.begin-form { padding: 22px 22px 24px; display: grid; gap: 18px; }
.begin-form__row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .begin-form__row { grid-template-columns: 1fr 1fr; } }

.begin-form__chip {
  align-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 8px;
  border: 1px solid var(--moss-deep);
  background: var(--moss-faint);
  border-radius: 4px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--moss);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
.begin-form__chip.is-on { opacity: 1; }
.begin-form__chip b { color: var(--moss-bright); font-weight: 500; }

.field { display: grid; gap: 6px; }
.field--block { display: grid; }
.field__label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field__opt { color: var(--text-dimmer); text-transform: none; letter-spacing: 0.02em; }

.field__input {
  width: 100%;
  background: var(--void);
  color: var(--text);
  border: 1px solid var(--rule);
  font-family: var(--f-sans);
  font-size: 14.5px;
  padding: 10px 12px;
  border-radius: 5px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}
.field__input::placeholder { color: var(--text-dim); }
.field__input:focus {
  outline: 0;
  border-color: var(--moss);
  background: var(--void-lift);
  box-shadow: 0 0 0 3px var(--moss-faint);
}

.field__input--select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-mute) 50%), linear-gradient(135deg, var(--text-mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-color: var(--void);
  padding-right: 30px;
}
.field__input--select option { background: var(--panel); color: var(--text); }
.field__input--area { resize: vertical; min-height: 130px; line-height: 1.55; }
.field__hint { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.04em; margin-top: 4px; }
.field__hint::before { content: '// '; color: var(--text-dimmer); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.begin-form__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}
.begin-form__assurance {
  font-family: var(--f-mono); font-size: 10.5px; color: var(--text-dim);
  letter-spacing: 0.06em;
}
.begin-form__assurance::before { content: '// '; color: var(--text-dimmer); }
.begin-form__status {
  margin: 6px 0 0;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--moss);
  min-height: 1.4em;
}
.begin-form__status[data-state="error"] { color: var(--rose); }
.begin-form__status[data-state="success"] { color: var(--moss-bright); }
.begin-form__status::before { content: '$ '; opacity: 0.7; }

/* ────────────────────────────────────────────────────────────
   STATUS BAR (bottom)
   ──────────────────────────────────────────────────────────── */
.statusbar {
  position: sticky;
  bottom: 0;
  z-index: 60;
  display: flex; align-items: center; gap: 14px;
  padding: 0 14px;
  background: linear-gradient(0deg, #0F1115 0%, #14161A 100%);
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  user-select: none;
}
.statusbar__group { display: inline-flex; align-items: center; gap: 4px; }
.statusbar__group b { color: var(--text-mute); font-weight: 500; }
.statusbar__group .ok { color: var(--moss); }
.statusbar__group .warn { color: var(--amber); }
.statusbar__sep { color: var(--text-dimmer); }
.statusbar__spacer { flex: 1; }
.statusbar .kbd { font-size: 9.5px; padding: 0 4px; border-bottom-width: 1px; }

@media (max-width: 760px) {
  .statusbar > .hide-sm { display: none; }
}

/* ────────────────────────────────────────────────────────────
   COMMAND PALETTE (⌘K overlay)
   ──────────────────────────────────────────────────────────── */
.palette {
  position: fixed;
  inset: 0;
  background: rgba(5,6,8,0.7);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 100;
  animation: paletteFade 160ms var(--ease) forwards;
}
.palette.is-open { display: grid; place-items: start center; padding-top: 12vh; }
@keyframes paletteFade { from { opacity: 0; } to { opacity: 1; } }

.palette__box {
  width: min(640px, 92vw);
  background: var(--panel);
  border: 1px solid var(--rule-bright);
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px var(--moss-faint);
  overflow: hidden;
  animation: paletteRise 220ms var(--ease-out);
}
@keyframes paletteRise {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.palette__input {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  border-bottom: 1px solid var(--rule);
}
.palette__input::placeholder { color: var(--text-dim); }
.palette__input:focus { outline: 0; }
.palette__list {
  list-style: none; margin: 0; padding: 6px;
  max-height: 50vh;
  overflow-y: auto;
}
.palette__item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 120ms var(--ease);
}
.palette__item.is-on,
.palette__item:hover { background: var(--panel-soft); color: var(--text); }
.palette__item .icon { color: var(--text-dim); }
.palette__item.is-on .icon,
.palette__item:hover .icon { color: var(--moss); }
.palette__item kbd { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-dim); }
.palette__hint {
  display: flex; gap: 12px; padding: 8px 14px;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--rule-soft);
  background: var(--void-lift);
}

/* ────────────────────────────────────────────────────────────
   Reveal animation — subtle fade
   ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .term-cursor { animation: none; }
}

/* ────────────────────────────────────────────────────────────
   Sidebar backdrop (mobile drawer dismissal)
   ──────────────────────────────────────────────────────────── */
.sidebar-backdrop {
  position: fixed;
  top: var(--titlebar-h); bottom: var(--statusbar-h);
  left: 0; right: 0;
  background: rgba(5,6,8,0.55);
  backdrop-filter: blur(2px);
  z-index: 65;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease);
}
.sidebar-backdrop.is-on {
  opacity: 1;
  pointer-events: auto;
}

/* ────────────────────────────────────────────────────────────
   MOBILE FIXES — applied at the end so they win against earlier rules
   ──────────────────────────────────────────────────────────── */

/* Generic small-screen utility — was previously only scoped to statusbar */
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
}

/* Title bar: collapse the long breadcrumb path on mobile;
   keep [lights] [menu] [brand] [⌘K] only. */
@media (max-width: 760px) {
  .titlebar {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 0 10px;
  }
  .titlebar__crumbs {
    gap: 8px;
    overflow: hidden;
    min-width: 0;
  }
  .titlebar__crumbs > .sep,
  .titlebar__crumbs > .accent,
  .titlebar__crumbs > #crumbSection {
    display: none;
  }
  .titlebar__crumbs strong {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .titlebar__meta { gap: 8px; }
}

/* Smaller still: drop the brand text — keep only the menu glyph + ⌘K */
@media (max-width: 420px) {
  .titlebar__crumbs strong { display: none; }
  .titlebar { padding: 0 8px; }
}

/* Sidebar toggle: tappable target on mobile */
@media (max-width: 760px) {
  .sidebar-toggle {
    padding: 6px 10px;
    min-height: 28px;
    line-height: 1;
  }
}

/* Sidebar drawer: real shadow + smooth slide */
@media (max-width: 760px) {
  .sidebar {
    box-shadow: 8px 0 32px -8px rgba(0,0,0,0.6);
    border-right: 1px solid var(--rule-bright);
  }
}

/* Hero on mobile: drop chrome (file path + terminal pre) so the headline
   shows up immediately under the title bar. Pull padding way in. */
@media (max-width: 760px) {
  .hero {
    padding-top: clamp(0.8rem, 2vw, 1.2rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
  }
  .hero .panel__path { display: none; }
  .hero__term { display: none; }
  #paletteHero { display: none; }

  .hero__display {
    font-size: clamp(2.1rem, 9vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    max-width: 100%;
    margin-bottom: 14px;
  }
  .hero__display .strike::after { height: 3px; top: 56%; }
  .hero__lede { font-size: 1rem; margin-bottom: 18px; }
  .hero__actions { margin-bottom: 24px; gap: 8px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Other panels on mobile: hide the decorative file-path row entirely.
   The section title + the title-bar breadcrumb already say where we are. */
@media (max-width: 760px) {
  .panel:not(.hero) .panel__path { display: none; }
  .panel { padding-top: clamp(1.6rem, 5vw, 2.4rem); padding-bottom: clamp(2rem, 5vw, 3rem); }
}

/* Hero stats: stack to 2 cols at 600, single col at really tiny */
@media (max-width: 460px) {
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stat:nth-child(2) { border-right: 0; }
  .hero__stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule-soft); }
  .hero__stat dd { font-size: 16px; }
}

/* Panel headers / file paths: wrap + smaller pill on small */
@media (max-width: 760px) {
  .panel__path {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 10.5px;
  }
  .panel__path .ln { width: auto; }
  .panel__path .pill { font-size: 9.5px; padding: 2px 6px; letter-spacing: 0.06em; }
  .panel__title { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .panel__title .com {
    display: block;
    font-size: 11px;
    margin-left: 0;
    margin-top: 4px;
    vertical-align: baseline;
  }
  .panel__lede { font-size: 0.96rem; margin-bottom: 24px; }
}

/* Brief header: ensure id + tag wrap cleanly on small */
@media (max-width: 760px) {
  .brief__header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .brief__pages b { font-size: 32px; }
  .brief__name { font-size: 19px; }
}

/* Modules: tidy stacked padding, sig left-aligned */
@media (max-width: 760px) {
  .module { padding: 14px 14px; gap: 6px; }
  .module__num { font-size: 11px; }
  .module__name { font-size: 15px; }
  .module__name span { font-size: 12.5px; }
  .module__desc { font-size: 13px; }
}

/* Selected work logs: comfortable mobile spacing + keep plate aspect */
@media (max-width: 640px) {
  .log { padding: 12px; }
  .log__plate { aspect-ratio: 16 / 9; }
}

/* Process pipeline: tidy + room for the rotated arrow connector */
@media (max-width: 880px) {
  .pipe { gap: 26px; }
}
@media (max-width: 760px) {
  .pipe__stage { padding: 14px 14px 12px; }
  .pipe__num { font-size: 18px; }
  .pipe__title { font-size: 15.5px; }
  .pipe__desc { font-size: 12.5px; }
}

/* Topology: shorten viewbox + bigger labels for legibility */
@media (max-width: 760px) {
  .topo { padding: 16px 14px; }
  .topo__svg { aspect-ratio: 4 / 3; }
  .topo__svg .label { font-size: 11px; }
}

/* Manifest / studio split: stack with YAML below the essay */
@media (max-width: 760px) {
  .manifest__yaml {
    font-size: 11px;
    line-height: 1.55;
    overflow-x: auto;
    white-space: pre;
    padding: 14px;
  }
}

/* Submit dialog: comfortable padding, full-width CTA, less crowded foot */
@media (max-width: 640px) {
  .dialog__header { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .dialog__pid { display: none; }
  .begin-form { padding: 18px 16px 20px; gap: 14px; }
  .begin-form__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .begin-form__foot .btn { justify-content: center; width: 100%; }
}

/* Status bar: small + show only the essentials */
@media (max-width: 760px) {
  .statusbar {
    padding: 0 10px;
    gap: 10px;
    font-size: 10px;
  }
  .statusbar__sep { display: none; }
}

/* Command palette: respect viewport edges on phones */
@media (max-width: 760px) {
  .palette.is-open { padding-top: 8vh; }
  .palette__box { width: 94vw; }
  .palette__input { font-size: 15px; padding: 12px 14px; }
  .palette__list { max-height: 60vh; }
  .palette__hint { display: none; }
}

/* Buttons: bigger taps on touch devices */
@media (max-width: 760px) {
  .btn { padding: 11px 14px; }
  .btn--lg { padding: 13px 16px; font-size: 13px; }
}

/* Sidebar pings: hide on really tiny drawers to keep nav prominent */
@media (max-width: 380px) {
  .sidebar__pings { display: none; }
}

/* ────────────────────────────────────────────────────────────
   AGGRESSIVE MOBILE/TABLET LAYOUT — drop the OS grid, kill chrome
   that pushes content below the fold. Below 980px the page becomes
   a straightforward scrolling document with a slim title bar.
   Bumped from 760 to 980 to also cover tablets / large phones /
   foldables / desktop-in-mobile-emulator.
   ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  /* Drop the OS grid — let body flow naturally so there's no
     sticky 100vh row arithmetic interfering. */
  .os {
    display: block;
    min-height: 0;
  }

  /* Title bar: thinner, NOT sticky so it doesn't eat screen real
     estate forever. It scrolls away with the page. */
  .titlebar {
    position: relative;
    height: 30px;
    padding: 0 10px;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  /* Hide the bottom status bar entirely — pure chrome, no value,
     eats 28px of vertical space. */
  .statusbar { display: none; }

  /* Workspace becomes a simple block; sidebar stays fixed-positioned
     (off-screen until toggled). */
  .workspace { display: block; }
  .sidebar {
    position: fixed;
    top: 30px; bottom: 0;
    left: 0; width: 80%;
    max-width: 320px;
    z-index: 70;
    transform: translateX(-100%);
    transition: transform 320ms var(--ease);
  }
  .sidebar.is-open { transform: translateX(0); }
  .inspector { display: none; }
  .sidebar-toggle { display: inline-flex; }

  /* Viewport: zero its line-number gutter and any padding */
  .viewport { padding: 0; }
  .viewport::before { display: none; }

  /* Hero: tiny top padding so the headline lands right under the
     title bar — and DESTROY any inherited chrome above it. */
  .hero {
    padding: 14px var(--gutter) 28px !important;
  }
  .hero .panel__path { display: none !important; }
  .hero__term { display: none !important; }
  #paletteHero { display: none; }

  /* Other panels: also tight at the top */
  .panel:not(.hero) { padding-top: 28px; padding-bottom: 28px; }
  .panel:not(.hero) .panel__path { display: none; }

  /* Sidebar backdrop covers full vertical space (no statusbar) */
  .sidebar-backdrop { bottom: 0; }

  /* Hero display tightens too */
  .hero__display {
    font-size: clamp(2.1rem, 7vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    max-width: 100%;
    margin-bottom: 14px;
  }
  .hero__lede { font-size: 1rem; margin-bottom: 18px; }
  .hero__actions { margin-bottom: 24px; gap: 8px; flex-wrap: wrap; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ────────────────────────────────────────────────────────────
   SECTION RULES — small caps file-path-style label
   ──────────────────────────────────────────────────────────── */
.section-rule {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
}
.section-rule::after {
  content: ''; flex: 1; height: 1px; background: var(--rule-soft);
}
.section-rule b { color: var(--moss); font-weight: 500; }

/* ────────────────────────────────────────────────────────────
   HOME — compact preview panels (modules / process / briefs / work)
   ──────────────────────────────────────────────────────────── */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px)  { .preview-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px)  { .preview-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .preview-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.preview {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 18px 18px 16px;
  display: grid;
  gap: 8px;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.preview:hover { border-color: var(--moss-deep); background: var(--panel-soft); }
.preview__num {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text-dim); letter-spacing: 0.06em;
}
.preview__num b { color: var(--moss); font-weight: 500; }
.preview__title {
  margin: 0; font-size: 16px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--text);
}
.preview__title span { display: block; color: var(--text-mute); font-weight: 400; font-size: 13px; margin-top: 2px; }
.preview__desc { margin: 0; font-size: 13.5px; color: var(--text-soft); line-height: 1.55; }
.preview__foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 6px;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text-dim); letter-spacing: 0.06em;
}
.preview__foot a { color: var(--moss); }
.preview__foot a:hover { color: var(--moss-bright); }

.section-cta {
  margin-top: 18px;
  font-family: var(--f-mono); font-size: 11.5px; color: var(--text-mute);
  letter-spacing: 0.04em;
}
.section-cta::before { content: '// '; color: var(--text-dimmer); }
.section-cta a { color: var(--moss); border-bottom: 1px solid var(--moss-deep); }
.section-cta a:hover { color: var(--moss-bright); }

/* ────────────────────────────────────────────────────────────
   CURRENTLY BUILDING — live in-progress log (home)
   ──────────────────────────────────────────────────────────── */
.building {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  overflow: hidden;
}
.building__row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--f-mono); font-size: 12px;
  color: var(--text-soft); letter-spacing: 0.02em;
}
.building__row:last-child { border-bottom: 0; }
.building__row .when { color: var(--text-dim); letter-spacing: 0.06em; }
.building__row .what b { color: var(--text); font-weight: 500; letter-spacing: -0.005em; font-family: var(--f-sans); font-size: 14px; }
.building__row .what span { display: block; color: var(--text-mute); font-size: 11.5px; letter-spacing: 0.06em; margin-top: 2px; }
.building__row .bar {
  position: relative; width: 88px; height: 4px; border-radius: 2px;
  background: var(--rule); overflow: hidden;
}
.building__row .bar i {
  position: absolute; inset: 0; right: auto;
  background: var(--moss); box-shadow: 0 0 6px var(--moss-glow);
  border-radius: 2px;
}
.building__row .bar + .pct {
  display: block; margin-top: 4px;
  font-size: 10px; color: var(--text-dim); text-align: right;
}
.building__head {
  padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--void-lift);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--f-mono); font-size: 11px; color: var(--text-mute);
  letter-spacing: 0.06em;
}
.building__head .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--moss);
}
.building__head .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--moss); box-shadow: 0 0 8px var(--moss-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
@media (max-width: 600px) {
  .building__row { grid-template-columns: 1fr; gap: 4px; padding: 14px 14px; }
  .building__row .bar { width: 100%; }
}

/* ────────────────────────────────────────────────────────────
   ENDORSEMENTS — pull-quotes from anonymized clients
   ──────────────────────────────────────────────────────────── */
.endorsements {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .endorsements { grid-template-columns: repeat(2, 1fr); } }

.endorsement {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--moss-deep);
  border-radius: var(--rad);
  padding: 18px 20px 16px;
  display: grid; gap: 12px;
}
.endorsement blockquote {
  margin: 0; font-size: 15.5px; line-height: 1.55;
  color: var(--text); font-weight: 400;
  letter-spacing: -0.005em;
}
.endorsement blockquote::before {
  content: '“'; color: var(--moss);
  font-family: 'Geist', serif; font-size: 22px;
  margin-right: 2px; line-height: 0;
}
.endorsement__sig {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text-dim); letter-spacing: 0.08em;
  border-top: 1px solid var(--rule-soft);
  padding-top: 10px;
}
.endorsement__sig b { color: var(--text-mute); font-weight: 500; }
.endorsement__sig .verify {
  color: var(--moss);
}
.endorsement__sig .verify::before { content: '● '; }

/* ────────────────────────────────────────────────────────────
   FINAL CTA — closing panel (home/contact tails)
   ──────────────────────────────────────────────────────────── */
.final-cta {
  background:
    radial-gradient(ellipse at top left, var(--moss-faint), transparent 60%),
    var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 32px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}
@media (min-width: 760px) { .final-cta { grid-template-columns: 1.4fr 1fr; gap: 28px; } }
.final-cta h3 {
  margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.02em;
}
.final-cta h3 .em { color: var(--moss); font-weight: 500; }
.final-cta p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.final-cta__actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: flex-start;
}
@media (min-width: 760px) { .final-cta__actions { justify-content: flex-end; } }

/* ────────────────────────────────────────────────────────────
   DELIVERABLES — sub-list under modules / stages
   ──────────────────────────────────────────────────────────── */
.deliverables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 820px) { .deliverables { grid-template-columns: repeat(2, 1fr); } }

.deliv {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 16px 18px;
  display: grid; gap: 10px;
}
.deliv__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text-dim); letter-spacing: 0.08em;
}
.deliv__head b { color: var(--moss); font-weight: 500; }
.deliv__title {
  margin: 0; font-size: 15px; font-weight: 500; color: var(--text);
  letter-spacing: -0.005em;
}
.deliv__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.deliv__list li {
  padding-left: 16px; position: relative;
  font-size: 13px; color: var(--text-soft); line-height: 1.5;
}
.deliv__list li::before {
  content: '·'; position: absolute; left: 4px; top: -2px;
  color: var(--moss); font-weight: 600; font-size: 18px;
}
.deliv__list li b { color: var(--text); font-weight: 500; }

/* ────────────────────────────────────────────────────────────
   ANTI-LIST — what we don't do
   ──────────────────────────────────────────────────────────── */
.anti-list {
  margin: 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  overflow: hidden;
}
@media (min-width: 760px) { .anti-list { grid-template-columns: repeat(2, 1fr); } }
.anti-list li {
  background: var(--panel);
  padding: 14px 16px;
  display: grid; gap: 4px;
  font-size: 13.5px; color: var(--text-soft);
}
.anti-list li b {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--rose);
  display: inline-flex; align-items: center; gap: 6px;
}
.anti-list li b::before {
  content: '✗'; color: var(--rose); font-weight: 500; font-size: 12px;
}

/* ────────────────────────────────────────────────────────────
   STACK GRID — tools we use (and don't)
   ──────────────────────────────────────────────────────────── */
.stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px) { .stack { grid-template-columns: 1fr 1fr; } }

.stack__col {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 16px 18px;
  display: grid; gap: 10px;
}
.stack__col--no { border-color: var(--rule-soft); background: transparent; }
.stack__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.stack__head b { color: var(--moss); font-weight: 500; }
.stack__col--no .stack__head b { color: var(--text-mute); }
.stack__list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.stack__list li {
  font-family: var(--f-mono); font-size: 11px;
  padding: 4px 8px;
  background: var(--void);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}
.stack__col--ok .stack__list li:hover { border-color: var(--moss-deep); color: var(--moss-bright); }
.stack__col--no .stack__list li {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: var(--rule-bright);
}

/* ────────────────────────────────────────────────────────────
   PEOPLE — three bios on studio
   ──────────────────────────────────────────────────────────── */
.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 820px) { .people { grid-template-columns: repeat(3, 1fr); } }

.person {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 18px 18px 16px;
  display: grid; gap: 10px;
}
.person:hover { border-color: var(--moss-deep); background: var(--panel-soft); }
.person__glyph {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--moss-faint);
  border: 1px solid var(--moss-deep);
  border-radius: 50%;
  color: var(--moss-bright);
  font-family: var(--f-mono); font-weight: 500;
  font-size: 16px; letter-spacing: 0.02em;
}
.person__name {
  margin: 0; font-size: 15.5px; font-weight: 500; color: var(--text);
  letter-spacing: -0.005em;
}
.person__name span { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-mute); font-family: var(--f-mono); letter-spacing: 0.06em; margin-top: 2px; }
.person__bio { margin: 0; font-size: 13.5px; color: var(--text-soft); line-height: 1.55; }
.person__meta {
  display: grid; gap: 4px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 10px;
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text-dim); letter-spacing: 0.06em;
}
.person__meta b { color: var(--text-mute); font-weight: 500; }

/* ────────────────────────────────────────────────────────────
   PRINCIPLES — numbered conviction list (studio)
   ──────────────────────────────────────────────────────────── */
.principles {
  margin: 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  overflow: hidden;
}
@media (min-width: 820px) { .principles { grid-template-columns: repeat(2, 1fr); } }

.principle {
  background: var(--panel);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.principle__num {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--moss); letter-spacing: 0.06em;
  line-height: 1.4;
}
.principle b {
  display: block; font-size: 14px; font-weight: 500; color: var(--text);
  margin-bottom: 4px;
}
.principle p { margin: 0; font-size: 13px; color: var(--text-soft); line-height: 1.5; }

/* ────────────────────────────────────────────────────────────
   WEEK — studio rhythm timeline
   ──────────────────────────────────────────────────────────── */
.week {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  overflow: hidden;
}
@media (min-width: 760px) { .week { grid-template-columns: repeat(5, 1fr); } }
.week__day {
  background: var(--panel);
  padding: 14px 14px 16px;
  display: grid; gap: 8px;
}
.week__head {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--moss); letter-spacing: 0.1em;
  text-transform: uppercase;
}
.week__head span { color: var(--text-dim); font-weight: 400; }
.week__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 6px;
  font-size: 12.5px; color: var(--text-soft); line-height: 1.45;
}
.week__list li::before { content: '— '; color: var(--text-dimmer); }

/* ────────────────────────────────────────────────────────────
   DAY-BY-DAY — 14-day timeline (process)
   ──────────────────────────────────────────────────────────── */
.daybyday {
  border-left: 1px solid var(--rule);
  margin-left: 12px;
  padding-left: 18px;
  display: grid; gap: 16px;
}
.daybyday__day {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px; align-items: baseline;
}
.daybyday__day::before {
  content: ''; position: absolute;
  left: -23px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--moss-deep);
}
.daybyday__day.is-now::before { background: var(--moss); box-shadow: 0 0 8px var(--moss-glow); }
.daybyday__num {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--moss); letter-spacing: 0.08em;
}
.daybyday__num span { color: var(--text-dim); }
.daybyday__what {
  margin: 0; font-size: 13.5px; color: var(--text-soft); line-height: 1.5;
}
.daybyday__what b { color: var(--text); font-weight: 500; }
@media (max-width: 520px) {
  .daybyday__day { grid-template-columns: 1fr; gap: 4px; }
}

/* ────────────────────────────────────────────────────────────
   KV-LIST — generic key/value pair list (cadence, hours, etc.)
   ──────────────────────────────────────────────────────────── */
.kv {
  margin: 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  overflow: hidden;
}
.kv li {
  background: var(--panel);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px; align-items: baseline;
  font-size: 13.5px; color: var(--text-soft);
}
.kv li > span:first-child {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--text-mute); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kv li b { color: var(--text); font-weight: 500; }
@media (max-width: 600px) {
  .kv li { grid-template-columns: 1fr; gap: 2px; }
}

/* ────────────────────────────────────────────────────────────
   COMPARE — the briefs side-by-side
   ──────────────────────────────────────────────────────────── */
.compare {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  overflow: hidden;
  background: var(--panel);
}
.compare__head, .compare__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  align-items: center;
}
.compare__head {
  background: var(--void-lift);
  border-bottom: 1px solid var(--rule);
}
.compare__head > div {
  padding: 12px 14px;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mute);
}
.compare__head > div b { color: var(--moss); font-weight: 500; }
.compare__head > div:first-child { color: var(--text-dim); }
.compare__row {
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13.5px;
  color: var(--text-soft);
}
.compare__row:last-child { border-bottom: 0; }
.compare__row > div { padding: 12px 14px; }
.compare__row > div:first-child {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--text-mute); letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--void-lift);
}
.compare__row > div b { color: var(--text); font-weight: 500; }
.compare__row > div .yes { color: var(--moss); }
.compare__row > div .yes::before { content: '✓ '; }
.compare__row > div .no { color: var(--text-dimmer); }
.compare__row > div .no::before { content: '— '; color: var(--text-dimmer); }
@media (max-width: 700px) {
  .compare__head { display: none; }
  .compare__row {
    grid-template-columns: 1fr;
    padding: 10px 12px;
    gap: 4px;
  }
  .compare__row > div { padding: 4px 0; }
  .compare__row > div:first-child {
    background: transparent;
    border-bottom: 1px solid var(--rule-soft);
    padding-bottom: 8px; margin-bottom: 6px;
  }
  .compare__row > div:not(:first-child)::before {
    content: attr(data-label) ' · ';
    color: var(--text-dim);
    font-family: var(--f-mono); font-size: 10.5px;
    letter-spacing: 0.08em; text-transform: uppercase;
  }
}

/* ────────────────────────────────────────────────────────────
   COMMON FLOOR — what every brief includes
   ──────────────────────────────────────────────────────────── */
.common {
  display: grid; gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 760px)  { .common { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .common { grid-template-columns: repeat(3, 1fr); } }
.common li {
  background: var(--panel);
  padding: 14px 16px;
  display: grid; gap: 4px;
  font-size: 13px; color: var(--text-soft); line-height: 1.5;
  list-style: none;
}
.common li b {
  font-size: 13.5px; color: var(--text); font-weight: 500;
}
.common li::before {
  content: attr(data-num);
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--moss); letter-spacing: 0.08em;
}

/* ────────────────────────────────────────────────────────────
   INDUSTRIES — sectors served (work tail)
   ──────────────────────────────────────────────────────────── */
.industries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  overflow: hidden;
}
@media (min-width: 600px)  { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .industries { grid-template-columns: repeat(3, 1fr); } }
.industries li {
  background: var(--panel);
  padding: 14px 16px;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline; gap: 12px;
}
.industries li b {
  font-size: 13.5px; color: var(--text); font-weight: 500;
  letter-spacing: -0.005em;
}
.industries li span {
  display: block;
  font-size: 12px; color: var(--text-mute); line-height: 1.4;
  margin-top: 2px;
  grid-column: 1 / -1;
}
.industries li .n {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--moss); letter-spacing: 0.08em;
  align-self: start;
  grid-column: auto;
  margin-top: 0;
}

/* ────────────────────────────────────────────────────────────
   METRICS — anonymized result tiles
   ──────────────────────────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px)  { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 16px 18px 14px;
  display: grid; gap: 4px;
}
.metric__big {
  font-family: var(--f-mono); font-size: 28px; font-weight: 500;
  color: var(--moss-bright); letter-spacing: -0.01em; line-height: 1;
}
.metric__lbl {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text-mute); letter-spacing: 0.1em; text-transform: uppercase;
}
.metric__note {
  font-size: 12px; color: var(--text-dim); line-height: 1.4;
  margin-top: 6px; border-top: 1px solid var(--rule-soft); padding-top: 6px;
}

/* ────────────────────────────────────────────────────────────
   POST-SUBMIT — what happens after you send (contact tail)
   ──────────────────────────────────────────────────────────── */
.post-submit {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  overflow: hidden;
}
.post-submit li {
  background: var(--panel);
  display: grid;
  grid-template-columns: 64px 130px 1fr;
  gap: 14px; align-items: baseline;
  padding: 14px 16px;
}
.post-submit__step {
  font-family: var(--f-mono); font-size: 22px;
  color: var(--moss); font-weight: 500; line-height: 1;
}
.post-submit__when {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase;
}
.post-submit__what {
  font-size: 13.5px; color: var(--text-soft); line-height: 1.5;
}
.post-submit__what b { color: var(--text); font-weight: 500; }
@media (max-width: 600px) {
  .post-submit li { grid-template-columns: auto 1fr; gap: 12px; }
  .post-submit__when { grid-column: 2; }
  .post-submit__what { grid-column: 1 / -1; padding-left: 6px; }
}

/* ────────────────────────────────────────────────────────────
   OTHER DOORS — alt contact methods
   ──────────────────────────────────────────────────────────── */
.doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) { .doors { grid-template-columns: repeat(3, 1fr); } }
.door {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 16px 18px;
  display: grid; gap: 6px;
}
.door:hover { border-color: var(--moss-deep); }
.door__lbl {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text-mute); letter-spacing: 0.1em; text-transform: uppercase;
}
.door__addr {
  font-size: 15px; color: var(--text); font-weight: 500;
  letter-spacing: -0.005em;
  word-break: break-word;
}
.door__addr a { color: var(--moss-bright); border-bottom: 1px solid var(--moss-deep); }
.door__addr a:hover { color: var(--moss); }
.door__note { font-size: 12px; color: var(--text-mute); line-height: 1.4; }

/* ────────────────────────────────────────────────────────────
   NEXT-PANEL — cross-page tail (end of each page)
   ──────────────────────────────────────────────────────────── */
.next-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: var(--void-lift);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 22px 24px;
}
@media (min-width: 760px) { .next-panel { grid-template-columns: 1fr auto; align-items: center; gap: 24px; } }
.next-panel__lede {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase;
}
.next-panel__lede b { color: var(--moss); font-weight: 500; }
.next-panel__title {
  margin: 4px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.next-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ────────────────────────────────────────────────────────────
   PANEL spacing tweak: when multiple panels stack on a page,
   reduce the heavy gap a little for a tighter reading rhythm.
   ──────────────────────────────────────────────────────────── */
.panel + .panel { padding-top: clamp(2rem, 4vw, 3rem); }

/* ────────────────────────────────────────────────────────────
   AUHMS brand mark — visible across chrome (sidebar, statusbar,
   inspector). Subtle moss accent, hover lift. The site is a
   funnel for AUHMS the hosting platform — name it everywhere.
   ──────────────────────────────────────────────────────────── */
.brand-meta__auhms {
  color: var(--moss);
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.brand-meta__auhms b {
  color: var(--moss-bright);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.brand-meta__auhms:hover {
  color: var(--moss-bright);
  border-color: var(--moss-deep);
}

.sidebar__pings a,
.inspector .insp-row a {
  color: var(--moss-bright);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}
.sidebar__pings a:hover,
.inspector .insp-row a:hover { border-color: var(--moss-deep); }

.statusbar__group a {
  color: var(--moss-bright);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
  letter-spacing: 0.06em;
}
.statusbar__group a:hover { border-color: var(--moss-deep); }

/* In-copy AUHMS mark — used when "AUHMS" appears in body content
   on practice / briefs / process pages. */
.auhms-mark {
  color: var(--moss);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--moss-deep);
  transition: color 160ms var(--ease);
}
.auhms-mark:hover { color: var(--moss-bright); }

/* ────────────────────────────────────────────────────────────
   ENDORSEMENT avatar treatment — temporary initials profiles.
   Sits at the head of each .endorsement card. Swap the initials
   span for an <img> when real photos arrive.
   ──────────────────────────────────────────────────────────── */
.endorsement__head {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 12px;
  margin-bottom: 2px;
}
.endorsement__avatar {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--moss-faint);
  border: 1px solid var(--moss-deep);
  border-radius: 50%;
  color: var(--moss-bright);
  font-family: var(--f-mono);
  font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.04em;
}
.endorsement__avatar img {
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
}
.endorsement__who {
  display: grid; gap: 2px; line-height: 1.2;
  min-width: 0;
}
.endorsement__who b {
  font-size: 14.5px; color: var(--text);
  font-weight: 500; letter-spacing: -0.005em;
}
.endorsement__who span {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--text-mute); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.endorsement__who span b { color: var(--moss); font-weight: 500; }

/* Direct-email line — sits at the foot of each principal card.
   Functions as a per-card CTA: write to the person directly. */
.endorsement__email {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--moss-bright);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--moss-deep);
  padding-top: 10px;
  margin-top: 2px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
  align-self: start;
  word-break: break-all;
}
.endorsement__email::before {
  content: '✉';
  color: var(--moss);
  font-size: 13px;
}
.endorsement__email:hover {
  color: var(--moss);
  border-color: var(--moss-bright);
}

