/* === Noah Cieutat — Resume Site ===========================================
   Defense-tech / editorial industrial. Serif display + monospace body.
   Palette is variable — driven by [data-palette] on <html>.
   ========================================================================== */

:root {
  --font-display: "Newsreader", "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --grid-gap: 24px;

  /* defaults — overridden by [data-palette] below */
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --fg: #f1ece4;
  --fg-2: #b9b1a3;
  --fg-3: #6f685d;
  --rule: #2a2620;
  --accent: #ff8a14;     /* signal amber */
  --accent-ink: #0a0a0a;
}

/* ── palettes ───────────────────────────────────────────────────────────── */
html[data-palette="warm"] {
  --bg: #0b0a08; --bg-2: #14110d; --bg-3: #1d1812;
  --fg: #f3ede1; --fg-2: #b8ac96; --fg-3: #6c6353;
  --rule: #2a2419;
  --accent: #ff8a14; --accent-ink: #0a0a0a;
}
html[data-palette="cold"] {
  --bg: #050709; --bg-2: #0c1014; --bg-3: #131820;
  --fg: #e8eef3; --fg-2: #9aa6b1; --fg-3: #586472;
  --rule: #1a232c;
  --accent: #5fd7ff; --accent-ink: #04080b;
}
html[data-palette="light"] {
  --bg: #f1ede5; --bg-2: #e9e3d6; --bg-3: #ddd5c4;
  --fg: #15110b; --fg-2: #4a4439; --fg-3: #877e6b;
  --rule: #c3bba8;
  --accent: #d24a16; --accent-ink: #f1ede5;
}
html[data-palette="military"] {
  --bg: #16170f; --bg-2: #1c1e15; --bg-3: #25281d;
  --fg: #e6e1cf; --fg-2: #aea888; --fg-3: #6a6750;
  --rule: #2c2f22;
  --accent: #8aa66b; --accent-ink: #0e0f08;
}

/* ── reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--fg);
  /* Sticky topbar is ~52px tall — keep section headings clear of it when
     anchor-jumping (#about, #work, etc.). */
  scroll-padding-top: 64px;
}
body {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }

/* ── grid plate (subtle background lines) ───────────────────────────────── */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--rule) 50%, transparent) 1px, transparent 1px);
  background-size: calc(100vw / 12) 100%;
  opacity: .35;
  z-index: 0;
  mix-blend-mode: normal;
}
html[data-density="dense"] body::before { background-size: calc(100vw / 16) 100%; }
html[data-density="airy"] body::before  { background-size: calc(100vw / 8) 100%; }

/* ── shell ──────────────────────────────────────────────────────────────── */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
html[data-density="dense"] .shell { padding: 0 24px; }
html[data-density="airy"] .shell  { padding: 0 56px; }

/* ── chrome rails ───────────────────────────────────────────────────────── */
.rail {
  position: fixed;
  top: 0; bottom: 0;
  width: 32px;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--fg-3);
  border-color: var(--rule);
}
.rail.left  { left: 0;  border-right: 1px solid var(--rule); }
.rail.right { right: 0; border-left:  1px solid var(--rule); }
.rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  text-transform: uppercase;
}
.rail.right .rail-label { transform: none; }

/* ── topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg);
  font-weight: 500;
}
.topbar .brand .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  display: inline-block;
}
.topbar .nav {
  display: flex; gap: 22px;
  justify-content: center;
}
.topbar .nav a {
  position: relative;
  color: var(--fg-2);
  transition: color .2s ease;
}
.topbar .nav a:hover { color: var(--fg); }
.topbar .nav a::before {
  content: "›";
  margin-right: 6px;
  color: var(--fg-3);
}
.topbar .meta {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  color: var(--fg-3);
}
.topbar .meta .live::before {
  content: "●";
  color: var(--accent);
  margin-right: 6px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ── hamburger (mobile only — activated in the max-width:640px block) ────── */
.topbar-burger {
  display: none;
  align-items: center;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
  border: 1px solid var(--rule);
  padding: 0 12px;
  min-height: 44px;
}
.topbar-burger:hover { color: var(--fg); }
.topbar-menu {
  display: none;
  padding-top: 4px;
  padding-bottom: 10px;
  border-top: 1px solid var(--rule);
}
.topbar-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
  border-bottom: 1px solid var(--rule);
}
.topbar-menu a:last-child { border-bottom: 0; }
.topbar-menu a::before { content: "› "; color: var(--fg-3); margin-right: 6px; }
.topbar-menu a:active { color: var(--fg); }

/* ── section primitives ─────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
html[data-density="dense"] .section { padding: 64px 0; }
html[data-density="airy"]  .section { padding: 144px 0; }

.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: baseline;
  margin-bottom: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  letter-spacing: -.02em;
  line-height: 1;
  margin: 0;
  color: var(--fg);
}
.section-title em {
  font-style: italic;
  color: var(--fg-2);
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* corner brackets */
.brackets {
  position: relative;
}
.brackets::before, .brackets::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--accent);
}
.brackets::before { top: -1px; left: -1px;   border-right: 0; border-bottom: 0; }
.brackets::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* utility text */
.mono   { font-family: var(--font-mono); }
.serif  { font-family: var(--font-display); }
.label  { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); }
.label.acc { color: var(--accent); }

/* === BOOT SEQUENCE ======================================================= */
.boot {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  font-family: var(--font-mono);
  color: var(--fg);
  overflow: hidden;
}
.boot-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--rule) 80%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--rule) 80%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
}
.boot-frame {
  position: absolute;
  top: 32px; left: 32px; right: 32px; bottom: 32px;
  border: 1px solid var(--rule);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.boot-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.boot-bar > :nth-child(2) { text-align: center; }
.boot-bar > :nth-child(3) { text-align: right; }
.boot-bar .ok { color: var(--accent); }
.boot-body {
  padding: 24px 32px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-2);
  white-space: pre;
  overflow: hidden;
}
.boot-body .ok   { color: var(--accent); }
.boot-body .key  { color: var(--fg); }
.boot-foot {
  border-top: 1px solid var(--rule);
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.boot-foot .progress {
  height: 4px;
  background: var(--bg-3);
  position: relative;
  margin-top: 8px;
}
.boot-foot .progress > i {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  transition: width .12s linear;
}

.boot-name {
  position: absolute;
  left: 0; right: 0;
  bottom: 22%;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(48px, 12vw, 168px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--fg);
  opacity: 0;
  transition: opacity .4s ease;
}
.boot-name.show { opacity: 1; }
.boot-name .caret {
  display: inline-block;
  width: .5ch;
  background: var(--accent);
  color: transparent;
  animation: caret 1s steps(2) infinite;
  margin-left: .04em;
}
@keyframes caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.boot.gone {
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}

/* === HERO ================================================================ */
.hero {
  padding-top: 72px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 220px);
  line-height: .9;
  letter-spacing: -.045em;
  margin: 0;
  font-weight: 400;
}
.hero-name .last { display: block; color: var(--fg-2); font-style: italic; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
}
.hero-meta .cell { display: flex; flex-direction: column; gap: 6px; }
.hero-meta .cell .label { color: var(--fg-3); }
.hero-meta .cell .val { color: var(--fg); letter-spacing: .04em; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* === ABOUT =============================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}
.about-portrait-wrap {
  position: relative;
  border: 1px solid var(--rule);
  padding: 12px;
  background: var(--bg-2);
}
.about-portrait-wrap::before {
  content: "PORTRAIT // 35MM // CLASSIFIED";
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--fg-3);
  background: var(--bg-2);
  padding: 0 6px;
  z-index: 2;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 745 / 836;
  display: block;
  background: var(--bg-3);
  object-fit: contain;
}
.about-portrait-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.about-portrait-meta b { color: var(--fg); font-weight: 400; }

.about-body p {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--fg);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.about-body p .accent { color: var(--accent); font-style: italic; }
.about-body p em { color: var(--fg-2); font-style: italic; }
.about-body p strong { font-weight: 500; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}
.about-stats .stat {
  padding: 18px 0 4px;
  border-right: 1px solid var(--rule);
  padding-right: 16px;
}
.about-stats .stat:last-child { border-right: 0; }
.about-stats .num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -.02em;
}
.about-stats .num .unit { font-size: 18px; color: var(--fg-2); margin-left: 4px; }
.about-stats .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); margin-top: 6px; }

/* === WORK ================================================================ */
.work-list { display: flex; flex-direction: column; }
.work-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
  position: relative;
  cursor: default;
  transition: background .25s ease, padding .25s ease;
}
.work-item:hover {
  background: linear-gradient(to right, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%);
}
.work-item:last-child { border-bottom: 1px solid var(--rule); }
.work-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--fg-3);
  padding-top: 8px;
}
.work-item:hover .work-id { color: var(--accent); }
.work-meta {
  display: flex; flex-direction: column; gap: 16px;
}
.work-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--fg);
}
.work-title .ital { font-style: italic; color: var(--fg-2); display: block; font-size: .55em; letter-spacing: 0; margin-top: 6px;}
.work-stack {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.work-stack span {
  border: 1px solid var(--rule);
  padding: 3px 8px;
  color: var(--fg-2);
}
.work-body {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  text-wrap: pretty;
}
.work-body .lede { color: var(--fg); display: block; margin-bottom: 12px; }
.work-bullets {
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
}
.work-bullets li {
  padding: 6px 0 6px 20px;
  position: relative;
  border-top: 1px dashed var(--rule);
}
.work-bullets li:first-child { border-top: 0; }
.work-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0; top: 6px;
  color: var(--accent);
}
.work-bullets li b { color: var(--fg); font-weight: 500; }

/* === SKILLS MATRIX ======================================================= */
.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}
.skill-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.skill-row:nth-child(2n) { border-right: 0; }
.skill-row:nth-last-child(-n+2) { border-bottom: 0; }
.skill-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 2px;
}
.skill-items {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
}
.skill-items span { color: var(--fg-2); }
.skill-items span::after {
  content: "·";
  color: var(--fg-3);
  margin-left: 10px;
}
.skill-items span:last-child::after { content: ""; }

/* === EXPERIENCE TIMELINE ================================================= */
.exp { display: grid; grid-template-columns: 1fr; gap: 0; }
.exp-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}
.exp-row:last-child { border-bottom: 1px solid var(--rule); }
.exp-when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.exp-when b { color: var(--accent); font-weight: 400; display: block; margin-bottom: 4px; }
.exp-role {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  color: var(--fg);
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.exp-role em { color: var(--fg-2); font-style: italic; }
.exp-org {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 16px;
}
.exp-bullets {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 70ch;
}
.exp-bullets li {
  padding: 8px 0 8px 24px;
  position: relative;
  border-top: 1px dashed var(--rule);
}
.exp-bullets li:first-child { border-top: 0; }
.exp-bullets li::before {
  content: "—";
  position: absolute; left: 0; top: 8px;
  color: var(--accent);
}

/* === CERTS =============================================================== */
.cert {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.cert-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent);
}
.cert-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  margin: 0;
  letter-spacing: -.01em;
}
.cert-title em { color: var(--fg-2); font-style: italic; }
.cert-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-2);
  text-align: right;
}
.cert-status .pill {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 3px 8px;
  margin-bottom: 4px;
}

/* === PHOTOGRAPHY ========================================================= */
.photo-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 48px;
}
.photo-intro p {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  max-width: 56ch;
}
.photo-intro .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  text-align: right;
}
.photo-intro .meta b { color: var(--fg); font-weight: 400; display: block; margin-top: 2px; }

.contact-sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.contact-sheet .frame {
  position: relative;
  border: 1px solid var(--rule);
  padding: 8px 8px 32px;
  background: var(--bg-2);
}
.contact-sheet .frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  background: var(--bg-3);
  object-fit: cover;
  filter: saturate(.92) contrast(1.02);
  transition: filter .35s ease, transform .6s ease;
}
.contact-sheet .frame:hover img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.015);
}
.contact-sheet .frame:nth-child(3) img { aspect-ratio: 21 / 9; }
.contact-sheet .frame .cap {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex; justify-content: space-between;
}
.contact-sheet .frame .cap b { color: var(--fg-2); font-weight: 400; }

.offduty-card {
  margin-top: 56px;
  padding: 28px;
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
.offduty-card .key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.offduty-card .val {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  text-wrap: pretty;
}
.offduty-card .val b { color: var(--fg); font-weight: 500; }

/* === CONTACT / FOOTER ==================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: end;
}
.contact-prompt {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: .98;
  letter-spacing: -.03em;
  margin: 0;
  font-weight: 400;
}
.contact-prompt em { font-style: italic; color: var(--fg-2); }
.contact-prompt .acc { color: var(--accent); }

.contact-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.contact-list a {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  align-items: center;
  transition: padding .25s ease, color .2s ease, background .2s ease;
}
.contact-list a:hover {
  padding-left: 12px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.contact-list a:hover .arrow { color: var(--accent); transform: translateX(4px); }
.contact-list a .lbl { color: var(--fg-3); letter-spacing: .18em; text-transform: uppercase; }
.contact-list a .val { color: var(--fg); letter-spacing: .02em; }
.contact-list a .arrow { color: var(--fg-3); transition: transform .2s ease, color .2s ease; }

.footer-bar {
  margin-top: 96px;
  padding: 24px 0 48px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.footer-bar > :nth-child(2) { text-align: center; }
.footer-bar > :nth-child(3) { text-align: right; }
.footer-bar .acc { color: var(--accent); }

/* === MEDIA =============================================================== */
@media (max-width: 1024px) {
  .rail { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .skills { grid-template-columns: 1fr; }
  .skill-row { border-right: 0; }
  .work-item { grid-template-columns: 60px 1fr; }
  .work-item .work-meta { grid-column: 2 / 3; }
  .work-item .work-body { grid-column: 1 / -1; }
  .photo-intro { grid-template-columns: 1fr; }
  .photo-intro .meta { text-align: left; }
  .contact-sheet { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .exp-row { grid-template-columns: 1fr; gap: 12px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .topbar .nav { display: none; }
  .topbar-inner { grid-template-columns: 1fr 1fr; }
}

/* === PHONE ================================================================ */
@media (max-width: 640px) {
  /* shell — reclaim horizontal space */
  .shell,
  html[data-density="dense"] .shell,
  html[data-density="airy"]  .shell { padding: 0 24px; }

  /* background grid plate — fewer, wider columns so it isn't cramped */
  body::before,
  html[data-density="dense"] body::before,
  html[data-density="airy"]  body::before { background-size: calc(100vw / 6) 100%; }

  /* topbar → brand + hamburger; activate the menu */
  .topbar-inner { grid-template-columns: 1fr auto; }
  .topbar .meta { display: none; }
  .topbar-burger { display: inline-flex; }
  .topbar-menu { display: block; }

  /* section rhythm */
  .section { padding: 56px 0; }
  html[data-density="dense"] .section { padding: 44px 0; }
  html[data-density="airy"]  .section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .section-title { font-size: clamp(30px, 7.5vw, 64px); }

  /* hero */
  .hero { padding-top: 48px; padding-bottom: 56px; }
  .hero-name { font-size: clamp(44px, 15vw, 220px); }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }

  /* about */
  .about-grid { gap: 28px; }
  .about-stats { grid-template-columns: 1fr; }
  .about-stats .stat {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-right: 0;
  }
  .about-stats .stat:last-child { border-bottom: 0; }

  /* work */
  .work-item { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .work-item .work-meta { grid-column: 1 / -1; }

  /* skills (already single-column from the 1024 block) */
  .skill-row { grid-template-columns: 1fr; gap: 8px; padding: 16px; }

  /* experience (already single-column from the 1024 block) */
  .exp-row { padding: 28px 0; }

  /* certs */
  .cert { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; align-items: start; }
  .cert-status { text-align: left; }

  /* photography */
  .photo-intro { gap: 24px; margin-bottom: 32px; }
  .photo-intro .meta { grid-template-columns: 1fr 1fr; }
  .contact-sheet { grid-template-columns: 1fr; }
  .contact-sheet .frame:nth-child(3) img { aspect-ratio: 3 / 2; }
  .offduty-card { grid-template-columns: 1fr; gap: 16px; padding: 20px; }

  /* contact / footer */
  .contact-prompt { font-size: clamp(32px, 9vw, 88px); }
  .contact-list a { grid-template-columns: 88px 1fr; gap: 6px 12px; }
  .contact-list a .arrow { display: none; }
  .footer-bar { grid-template-columns: 1fr; gap: 8px; }
  .footer-bar > :nth-child(2),
  .footer-bar > :nth-child(3) { text-align: left; }

  /* boot intro — fit the monospace crawl to a narrow screen.
     The .boot-body font-size floor fits the longest boot line
     (~53 monospace chars) at 320px; recheck if boot.jsx content changes. */
  .boot-frame { top: 12px; left: 12px; right: 12px; bottom: 12px; }
  .boot-bar { gap: 8px; padding: 10px 12px; letter-spacing: .1em; }
  .boot-body { padding: 16px 14px; font-size: clamp(7px, 2.6vw, 11px); line-height: 1.6; }
  .boot-foot { padding: 12px 14px; }
  .boot-name { font-size: clamp(30px, 11vw, 168px); }
}

/* density: airy / dense overrides */
html[data-density="dense"] body { font-size: 12px; }
html[data-density="airy"]  body { font-size: 14px; }
html[data-density="dense"] .section-head { margin-bottom: 24px; }
html[data-density="airy"]  .section-head { margin-bottom: 72px; }

/* === REDUCED MOTION ====================================================== */
/* Respect users with vestibular / motion sensitivity (WCAG 2.3.3). Pin
   animated elements to their resting state and collapse transitions to a
   near-zero duration so layout still settles but nothing slides, pulses,
   or counts up. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .boot.gone { opacity: 0; }
  .contact-sheet .frame:hover img { transform: none; }
  .contact-list a:hover .arrow { transform: none; }
}
