/* ============================================================
   jaredlemler.com — "As-Built" design system
   Blueprint blue. Every page is a drawing sheet.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --paper: #0e2a47;
  --surface: #14395e;
  --surface-2: #0b2340;
  --line: rgba(219, 236, 255, 0.24);
  --line-strong: rgba(219, 236, 255, 0.5);
  --grid-minor: rgba(219, 236, 255, 0.04);
  --grid-major: rgba(219, 236, 255, 0.075);
  --text: #e9f2fa;
  --muted: #a9c3d9;
  --faint: #7e9db9;
  --live: #ffb454;
  --live-bright: #ffc46e;
  --live-ink: #0e2a47;
  --live-soft: rgba(255, 180, 84, 0.12);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--live); color: var(--live-ink); }
:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; }
img { max-width: 100%; display: block; }
section[id] { scroll-margin-top: 72px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--live); color: var(--live-ink);
  font-family: var(--font-mono); font-size: 12px; padding: 8px 14px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Sheet frame ---------- */
.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 28px);
  margin: 14px;
  border: 1px solid var(--line-strong);
}
.reg { position: absolute; width: 13px; height: 13px; pointer-events: none; z-index: 30; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--line-strong); }
.reg::before { left: 0; right: 0; top: 6px; height: 1px; }
.reg::after { top: 0; bottom: 0; left: 6px; width: 1px; }
.reg-tl { top: -7px; left: -7px; }
.reg-tr { top: -7px; right: -7px; }
.reg-bl { bottom: -7px; left: -7px; }
.reg-br { bottom: -7px; right: -7px; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 26px;
  background: rgba(14, 42, 71, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em; color: var(--text); text-decoration: none;
}
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px rgba(255, 180, 84, 0.55); flex: none; }
.brand-sheetno { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--faint); margin-left: 6px; }
.nav { display: flex; gap: 22px; }
.nav a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--live); border-bottom-color: var(--live); }
.nav a[aria-current="page"] { color: var(--live); border-bottom-color: var(--live); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong); color: var(--muted);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; padding: 6px 10px; cursor: pointer;
}
.nav-toggle:hover { color: var(--live); border-color: var(--live); }
.nav-drawer { border-top: 1px solid var(--line); background: var(--surface-2); }
.nav-drawer nav { display: flex; flex-direction: column; padding: 12px 26px 16px; gap: 10px; }
.nav-drawer a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.nav-drawer a:hover { color: var(--live); }
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Sections & drawing headers ---------- */
.section { padding: 56px 26px; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap-narrow { max-width: 780px; margin: 0 auto; }
.wrap-mid { max-width: 920px; margin: 0 auto; }

.dwg { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.dwg-no {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
  color: var(--live); border: 1px solid rgba(255, 180, 84, 0.4); padding: 3px 8px; flex: none;
}
.dwg-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem); letter-spacing: -0.01em; color: var(--text);
}
.dwg-ext { flex: 1; border-top: 1px dashed var(--line); position: relative; top: -5px; min-width: 40px; }
.dwg-ext::after {
  content: ""; position: absolute; right: -1px; top: -4.5px;
  border: 4px solid transparent; border-left: 6px solid var(--line-strong);
}
.dwg-sub { color: var(--muted); font-size: 0.95rem; max-width: 62ch; margin-bottom: 30px; }
.dwg-sub .link { font-size: inherit; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; padding: 10px 18px; cursor: pointer;
  border: 1px solid var(--line-strong); color: var(--text); background: transparent;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn:hover { border-color: var(--live); color: var(--live); }
.btn-primary { background: var(--live); border-color: var(--live); color: var(--live-ink); font-weight: 700; }
.btn-primary:hover { background: var(--live-bright); color: var(--live-ink); }
.btn-sm { padding: 7px 13px; font-size: 11px; }
.link {
  color: var(--live); text-decoration: underline;
  text-decoration-color: rgba(255, 180, 84, 0.45); text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.link:hover { text-decoration-color: var(--live); }

/* ---------- Hero ---------- */
.hero { padding: 68px 26px 52px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; max-width: 1080px; margin: 0 auto; }
.hero-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--live); margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.018em;
  margin-bottom: 20px; max-width: 20ch;
}
.hero-lede { color: var(--muted); font-size: 1.05rem; max-width: 56ch; margin-bottom: 14px; }
.hero-lede strong { color: var(--text); font-weight: 500; }
.hero-lede .hl { color: var(--live); font-weight: 500; }
.hero-note { color: var(--faint); font-size: 0.9rem; max-width: 56ch; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Figure (photo) */
.figure { border: 1px solid var(--line-strong); padding: 8px; background: rgba(11, 35, 64, 0.45); }
.figure img { width: 100%; height: auto; filter: saturate(0.85) contrast(1.02); }
.figure-cap {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint); padding: 8px 2px 2px; display: flex; justify-content: space-between; gap: 8px;
}

/* Status panel */
.status { border: 1px solid var(--line); margin-top: 16px; background: rgba(20, 57, 94, 0.35); }
.status-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--line); background: rgba(11, 35, 64, 0.55);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--live);
}
.status-head time { font-size: 9.5px; color: var(--faint); letter-spacing: 0.1em; }
.status ul { list-style: none; padding: 6px 14px 10px; }
.status li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.status li:last-child { border-bottom: 0; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 6px rgba(255, 180, 84, 0.6); flex: none; margin-top: 7px; }
.status p strong { display: block; font-weight: 600; font-size: 0.92rem; color: var(--text); }
.status p { font-size: 0.85rem; color: var(--muted); }

/* Study block (hero, learning in public) */
.study { border: 1px solid var(--line); margin-top: 26px; background: rgba(20, 57, 94, 0.35); max-width: 560px; }
.study-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--line); background: rgba(11, 35, 64, 0.55);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--live);
}
.study-head .dim { font-size: 9.5px; color: var(--faint); letter-spacing: 0.1em; }
.study ul { list-style: none; padding: 6px 14px 10px; }
.study li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.85rem; color: var(--muted); }
.study li:last-child { border-bottom: 0; }
.study-dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--live); flex: none; margin-top: 7px; }
.study strong { color: var(--text); font-weight: 600; }

/* ---------- Schematic ---------- */
.schematic { margin-top: 46px; border: 1px solid var(--line); background: rgba(11, 35, 64, 0.5); }
.schem-cap {
  display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}
.schem-cap .lit { color: var(--live); }
.schematic svg { display: block; width: 100%; height: auto; }
.schem-wire { stroke: rgba(233, 242, 250, 0.85); stroke-width: 1.5; fill: none; }
html.js .schem-wire-main { stroke-dasharray: 780; stroke-dashoffset: 780; animation: wire-draw 1.4s cubic-bezier(0.3, 0, 0.2, 1) 0.25s forwards; }
@keyframes wire-draw { to { stroke-dashoffset: 0; } }
html.js .schem-fade { opacity: 0; animation: schem-fade 0.6s ease 1.1s forwards; }
@keyframes schem-fade { to { opacity: 1; } }
.schem-node { fill: var(--surface); stroke: rgba(233, 242, 250, 0.9); stroke-width: 1.5; transition: fill 0.15s ease; }
a .schem-node:hover, .schem-node:hover { fill: var(--live); }
.schem-junction { fill: rgba(233, 242, 250, 0.9); }
.schem-box { fill: var(--surface-2); stroke: rgba(233, 242, 250, 0.7); stroke-width: 1; transition: stroke 0.15s ease, fill 0.15s ease; }
a:hover .schem-box { stroke: var(--live); fill: var(--live-soft); }
a:hover .schem-label-sm { fill: var(--live); }
.schem-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--muted); }
.schem-label-sm { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; fill: var(--muted); }
.schem-label-amber { fill: var(--live); }
.current-dot { fill: var(--live); filter: drop-shadow(0 0 4px rgba(255, 180, 84, 0.8)); }

/* ---------- Energize on scroll ---------- */
html.js .energize .dwg-ext { transform: scaleX(0); transform-origin: left center; }
html.js .energize.energized .dwg-ext { transform: scaleX(1); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s; }
html.js .energize .energize-body { opacity: 0; transform: translateY(10px); }
html.js .energize.energized .energize-body { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.about-copy p { color: var(--muted); font-size: 0.97rem; margin-bottom: 16px; max-width: 66ch; }
.about-copy p strong { color: var(--text); font-weight: 500; }
.callout { border: 1px solid rgba(255, 180, 84, 0.45); background: var(--live-soft); padding: 16px 18px; margin-bottom: 16px; }
.callout-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--live); margin-bottom: 8px; }
.callout p { color: var(--text); font-size: 0.95rem; margin: 0; max-width: none; }
.callout p strong { color: var(--live); font-weight: 500; }
.side-card { border: 1px solid var(--line); background: rgba(20, 57, 94, 0.35); padding: 16px 18px; margin-bottom: 16px; }
.side-card-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--live); margin-bottom: 10px; }
.side-card ul { list-style: none; }
.side-card li { color: var(--muted); font-size: 0.9rem; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.side-card li:last-child { border-bottom: 0; }
.side-card li strong { color: var(--text); font-weight: 500; }
.side-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Panel schedule (skills) ---------- */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.panel { border: 1px solid var(--line); background: rgba(20, 57, 94, 0.35); }
.panel-head {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid var(--line); background: rgba(11, 35, 64, 0.55);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--live);
}
.panel-head .dim { color: var(--faint); }
.breakers { list-style: none; padding: 8px 14px 12px; }
.breakers li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; color: var(--muted); }
.breakers li:last-child { border-bottom: 0; }
.brk { flex: none; width: 11px; height: 19px; border: 1px solid var(--line-strong); border-radius: 2px; margin-top: 4px; position: relative; }
.brk::after { content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 6px; background: var(--live); }
.brk-idx { font-family: var(--font-mono); font-size: 9.5px; color: var(--faint); padding-top: 4px; flex: none; }
.breakers li strong { color: var(--text); font-weight: 500; }

/* ---------- As-builts (projects) ---------- */
.drawings { display: grid; gap: 22px; }
.drawing { position: relative; border: 1px dashed var(--line-strong); background: rgba(20, 57, 94, 0.3); padding: 24px 26px 20px; }
.drawing-tag {
  position: absolute; top: -1px; left: -1px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--faint);
  background: var(--surface-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 4px 10px;
}
.drawing-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; padding-left: 52px; }
.drawing-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.drawing-head h3 .link { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; margin-left: 10px; text-transform: uppercase; }
.drawing-stack { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--live); }
.drawing-desc { color: var(--muted); font-size: 0.95rem; max-width: 78ch; margin-bottom: 14px; }
.callouts { list-style: none; margin-bottom: 14px; }
.callouts li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 0.93rem; color: var(--muted); max-width: 80ch; }
.callouts li strong { color: var(--text); font-weight: 500; }
.callouts code { font-family: var(--font-mono); font-size: 0.85em; color: var(--live); }
.callout-n {
  position: absolute; left: 0; top: 1px; width: 18px; height: 18px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--font-mono); font-size: 10px; color: var(--live);
  display: flex; align-items: center; justify-content: center;
}
.drawing-why { font-size: 0.82rem; color: var(--faint); border-top: 1px dashed var(--line); padding-top: 10px; margin-bottom: 14px; max-width: 80ch; }
.drawing-why .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--live); margin-right: 6px; }
.drawing-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; border: 1px solid var(--line); padding: 3px 9px; color: var(--muted); }
.stamp { position: absolute; top: 14px; right: 18px; width: 104px; height: 104px; color: var(--live); opacity: 0.9; transform: rotate(-11deg); pointer-events: none; }
.stamp text { font-family: var(--font-mono); fill: currentColor; }
@media (max-width: 640px) { .stamp { width: 84px; height: 84px; top: 10px; right: 10px; } .drawing-head { padding-left: 0; padding-top: 26px; } }

/* ---------- Field log (writing) ---------- */
.log { border-top: 1px solid var(--line); }
.log-row { display: block; text-decoration: none; padding: 15px 6px; border-bottom: 1px solid var(--line); transition: background 0.15s ease; }
.log-row:hover { background: rgba(255, 180, 84, 0.05); }
.log-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; }
.log-title { color: var(--text); font-weight: 500; font-size: 0.98rem; transition: color 0.15s ease; }
.log-row:hover .log-title { color: var(--live); }
.log-date { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); flex: none; }
.log-desc { color: var(--muted); font-size: 0.87rem; margin-top: 3px; }
.log-earlier { list-style: none; margin-top: 10px; }
.log-earlier li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; padding: 9px 6px; border-bottom: 1px dashed var(--line); }
.log-earlier a { color: var(--muted); font-size: 0.93rem; text-decoration: underline; text-decoration-color: rgba(219, 236, 255, 0.25); text-underline-offset: 3px; }
.log-earlier a:hover { color: var(--live); text-decoration-color: var(--live); }
.log-earlier time { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); flex: none; }
.log-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin: 34px 0 4px; }

/* ---------- Junction box (contact) ---------- */
.jbox { border: 1px solid var(--line-strong); max-width: 640px; }
.jbox-head {
  padding: 9px 16px; border-bottom: 1px solid var(--line); background: rgba(11, 35, 64, 0.55);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--live);
}
.jrow { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px dashed var(--line); }
.jrow:last-child { border-bottom: 0; }
.jterm { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--faint); width: 88px; flex: none; text-transform: uppercase; }
.jrow a { color: var(--text); text-decoration: none; font-size: 0.93rem; overflow-wrap: anywhere; }
.jrow a:hover { color: var(--live); text-decoration: underline; text-underline-offset: 3px; }
.copy-btn {
  margin-left: auto; flex: none; background: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  border: 1px solid var(--line); color: var(--faint); padding: 4px 9px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover { color: var(--live); border-color: var(--live); }
.contact-lede { color: var(--muted); font-size: 0.97rem; max-width: 62ch; margin-bottom: 26px; }

/* ---------- Title block (footer) ---------- */
.titleblock { border-top: 1px solid var(--line-strong); background: rgba(11, 35, 64, 0.55); margin-top: auto; }
.tb-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); }
.tb-cell { padding: 10px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-cell:last-child { border-right: 0; }
.tb-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase; }
.tb-val { font-family: var(--font-mono); font-size: 11.5px; color: var(--text); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 10px 14px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase;
}
.tb-foot a { color: var(--faint); text-decoration: none; }
.tb-foot a:hover { color: var(--live); }
@media (max-width: 760px) { .tb-grid { grid-template-columns: repeat(3, 1fr); } .tb-cell { border-bottom: 1px solid var(--line); } }

/* ---------- 404 ---------- */
.tripped-wrap { min-height: calc(100vh - 28px); display: flex; flex-direction: column; }
.tripped { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 26px; }
.tripped svg { width: 120px; height: auto; margin-bottom: 28px; }
.tripped-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; color: var(--live); margin-bottom: 14px; text-transform: uppercase; }
.tripped h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.015em; margin-bottom: 12px; }
.tripped p { color: var(--muted); max-width: 46ch; margin-bottom: 28px; }

/* ---------- Resume ---------- */
.resume-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.resume-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -0.015em; line-height: 1.05; }
.resume-role { color: var(--live); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 8px; }
.resume-contact { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 26px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; }
.resume-contact a { color: var(--muted); text-decoration: none; }
.resume-contact a:hover { color: var(--live); }
.resume-contact .sep { color: var(--faint); }
.entry { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.entry:last-child { border-bottom: 0; }
.entry-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; }
.entry-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--text); }
.entry-head h3 .link { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.08em; margin-left: 10px; text-transform: uppercase; }
.entry-date { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); flex: none; }
.entry-role { color: var(--live); font-size: 0.88rem; margin: 2px 0 2px; }
.entry-meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 10px; }
.entry ul { list-style: none; }
.entry li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 0.92rem; color: var(--muted); max-width: 86ch; }
.entry li strong { color: var(--text); font-weight: 500; }
.entry li .callout-n { top: 3px; }
.skillgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.summary-box { border: 1px solid var(--line); border-left: 3px solid var(--live); background: rgba(20, 57, 94, 0.35); padding: 16px 20px; }
.summary-box p { color: var(--muted); font-size: 0.95rem; max-width: 88ch; }
.summary-box p strong { color: var(--live); font-weight: 500; }
.plainbox { border: 1px solid var(--line); background: rgba(20, 57, 94, 0.35); padding: 16px 20px; }
.plainbox p { color: var(--muted); font-size: 0.93rem; max-width: 88ch; }
@media (max-width: 760px) { .skillgrid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .figure { max-width: 420px; }
  .panels { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .sheet { margin: 10px; min-height: calc(100vh - 20px); }
  .section { padding: 44px 18px; }
  .hero { padding: 48px 18px 40px; }
  .masthead { padding: 12px 18px; }
  .nav-drawer nav { padding: 12px 18px 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.js .schem-wire-main { stroke-dashoffset: 0; animation: none; }
  html.js .schem-fade { opacity: 1; animation: none; }
  html.js .energize .dwg-ext { transform: none; }
  html.js .energize .energize-body { opacity: 1; transform: none; }
  .current-dot { display: none; }
}

/* ---------- Print (resume) ---------- */
@media print {
  body { background: #fff !important; color: #000 !important; background-image: none !important; font-size: 10px; line-height: 1.35; }
  .sheet { margin: 0; border: 0; min-height: 0; }
  .masthead, .no-print, .titleblock, .reg, .stamp, .skip-link { display: none !important; }
  * { color: #000 !important; background: transparent !important; border-color: #d4d4d8 !important; box-shadow: none !important; text-shadow: none !important; }
  a { text-decoration: none !important; }
  .section { padding: 6px 0 !important; border-bottom: 1px solid #d4d4d8; }
  .section:last-of-type { border-bottom: 0; }
  .dwg { margin-bottom: 6px; }
  .dwg-title { font-size: 0.95rem !important; }
  .dwg-no { font-size: 7.5px !important; padding: 1px 5px !important; color: #047857 !important; border-color: #d4d4d8 !important; }
  .dwg-ext { display: none; }
  .dwg-sub { display: none; }
  .resume-name { font-size: 1.25rem !important; }
  .resume-role, .entry-role { color: #047857 !important; }
  .resume-contact { font-size: 8.5px !important; margin: 4px 0 8px !important; }
  .summary-box, .plainbox, .panel, .drawing, .jbox { border: 1px solid #d4d4d8 !important; background: #fff !important; break-inside: avoid; padding: 6px 8px !important; }
  .summary-box { border-left: 2px solid #047857 !important; }
  .entry { padding: 5px 0 !important; break-inside: avoid; }
  .entry-head h3 { font-size: 0.85rem !important; }
  .entry-head h3 .link { display: none; }
  .entry li, .drawing-desc, .callouts li, .summary-box p, .plainbox p { font-size: 0.78rem !important; margin-bottom: 3px !important; }
  .callouts li, .entry li { padding-left: 16px !important; }
  .callout-n { width: 11px !important; height: 11px !important; font-size: 6.5px !important; border-color: #9ca3af !important; color: #047857 !important; }
  .panel-head, .jbox-head, .status-head { background: #fff !important; color: #047857 !important; font-size: 7.5px !important; padding: 3px 6px !important; }
  .breakers li { font-size: 0.78rem !important; padding: 2px 0 !important; }
  .brk { width: 8px !important; height: 13px !important; margin-top: 2px !important; }
  .brk::after { height: 4px !important; background: #047857 !important; }
  .brk-idx { font-size: 7px !important; }
  .drawing-foot, .tags, .drawing-why { display: none !important; }
  .skillgrid { grid-template-columns: repeat(2, 1fr) !important; gap: 4px !important; }
  .side-card, .callout { break-inside: avoid; }
  .log-row, .log-earlier li { padding: 3px 0 !important; }
}
