/* ==========================================================================
   7 — WORKING COPY
   The direction we hone from here. Everything below is meant to be edited.

   Composition:
     structure  — two-tone band from direction 6 (graphite above, light below,
                  with a strip straddling the seam)
     layout     — direction 4 (statement left + photo right, node divider,
                  four equal fact cards, About, three equal project cards)
     palette    — set B, Graphite: a neutral charcoal with no hue at all, so
                  the forest green is the only colour on the page
     evidence   — specification table, verification log, load table, and
                  resource readouts on the project page

   STANDING RULES (keep these true as we iterate)
   1. No photograph or image sits on a dark ground without BOTH a border and
      a corner radius. See .headshot and .plate.
   2. Green means live / pass / verified / earned. Amber means in progress.
      Nothing else gets colour. Red is never used, so it stays available for
      a real failure state.
   3. A bar is only drawn where a real ceiling exists in the source material.
   4. No JavaScript. Sub-menus are :hover / :focus-within; the nav wraps
      rather than collapsing behind a toggle.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* ---- Dark side (header, hero band, footer) ---------------------------- */
  --dark:       #17191B;
  --dark-panel: #212427;
  --dark-line:  #31363A;
  --on-dark:    #ECEEF0;   /* 15.2:1 on --dark */
  --on-dark-2:  #A8AEB4;   /*  7.9:1 on --dark */
  --green-lift: #4FA97A;   /*  6.1:1 on --dark */
  --amber-lift: #D9A44A;   /*  8.6:1 on --dark */

  /* ---- Light side ------------------------------------------------------- */
  --bg:      #F5F6F7;
  --surface: #FFFFFF;
  --ink:     #111315;
  --ink-2:   #3B4045;   /* 10.3:1 on --surface */
  --ink-3:   #61676D;   /*  5.4:1 on --bg      */
  --line:    #E0E3E6;
  --line-2:  #C9CED3;

  /* ---- The only chroma on the page -------------------------------------- */
  --green:      #0F5A38;   /* 8.3:1 on white — deep forest */
  --green-deep: #0B4429;
  --green-tint: #E7F1EC;
  --amber:      #8A5714;   /* 6.1:1 on white — in progress only */
  --amber-tint: #F7EFE1;

  /* ---- Type ------------------------------------------------------------- */
  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* One 1.25 scale, clamped so h1 > h2 > h3 holds at every viewport width. */
  --fs-nano:  0.6875rem;
  --fs-micro: 0.75rem;
  --fs-small: 0.8125rem;
  --fs-ui:    0.9375rem;
  --fs-body:  1.0625rem;
  --fs-lede:  1.1875rem;
  --fs-h3:    1.25rem;
  --fs-h2:    clamp(1.5rem, 1.2rem + 1.1vw, 1.875rem);
  --fs-h1:    clamp(2rem, 1.45rem + 2.4vw, 2.875rem);

  /* ---- Space: one 4px scale used for every gap on the page -------------- */
  --s1: 0.25rem; --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;    --s7: 3rem;    --s8: 4rem;  --s9: 5.5rem;

  --page: 1140px;
  --radius: 8px;
  --radius-sm: 6px;
  --overlap: 4.5rem;   /* how far the straddling strip rides up into the dark */
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--body); font-size: var(--fs-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display); color: var(--ink); margin: 0;
  line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { margin: 0; }
p + p { margin-top: var(--s4); }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }
img { max-width: 100%; display: block; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px;
}
.band a:focus-visible,
.site-header a:focus-visible,
.site-footer a:focus-visible { outline-color: var(--green-lift); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.container { max-width: var(--page); margin: 0 auto; padding: 0 var(--s5); }
@media (min-width: 760px) { .container { padding: 0 var(--s6); } }

.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;
}
.skip-link {
  position: absolute; left: var(--s4); top: -3rem; z-index: 300;
  background: var(--surface); color: var(--green); border: 1px solid var(--green);
  border-radius: var(--radius-sm); padding: var(--s2) var(--s4);
  font-family: var(--mono); font-size: var(--fs-small);
}
.skip-link:focus { top: var(--s3); }

/* The original's monospace eyebrow, including the // comment marker. */
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: var(--fs-micro);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
  margin-bottom: var(--s2);
}
.band .eyebrow { color: var(--green-lift); }

/* --------------------------------------------------------------------------
   Header — a sibling of the band, not a child, so it stays sticky while
   still reading as the top edge of one continuous graphite block.
   -------------------------------------------------------------------------- */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 100; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); padding-top: var(--s4); padding-bottom: var(--s4);
}
.site-logo {
  font-family: var(--display); font-weight: 700; font-size: 1.125rem;
  letter-spacing: -0.03em; color: #fff; text-decoration: none; white-space: nowrap;
}
.site-logo span { color: var(--green-lift); }

.site-nav { display: flex; align-items: center; gap: var(--s5); }
.site-nav > ul { list-style: none; display: flex; align-items: center; gap: var(--s5); margin: 0; padding: 0; }
.site-nav a {
  color: var(--on-dark-2); font-family: var(--mono); font-size: var(--fs-small);
  letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { color: #fff; }
.site-nav > ul > li > a[aria-current="page"] {
  color: #fff; padding-bottom: 4px; border-bottom: 2px solid var(--green-lift);
}

.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: calc(-1 * var(--s4));
  min-width: 306px; list-style: none; margin: 0; padding: var(--s2) 0;
  background: var(--dark-panel); border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { display: block; }
.dropdown a { display: block; padding: var(--s2) var(--s4); }
.dropdown a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.dropdown a[aria-current="page"] { color: #fff; box-shadow: inset 2px 0 0 var(--green-lift); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--mono); font-size: var(--fs-small);
  letter-spacing: 0.02em; line-height: 1.2; padding: 0.62rem 1rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  text-decoration: none; text-align: center; cursor: pointer;
}
/* On the dark band the accent has to be the lifted green, not the forest —
   a deep green button on a graphite ground is unreadable. */
.btn-primary { background: var(--green-lift); color: #0B2E1E; }
.btn-primary:hover { background: #6BBF92; color: #0B2E1E; }
.btn-ghost { border-color: rgba(168, 174, 180, 0.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
/* Light-side variants. */
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-deep); color: #fff; }
.btn-line { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* --------------------------------------------------------------------------
   The graphite band
   -------------------------------------------------------------------------- */
.band {
  background: var(--dark); color: var(--on-dark-2);
  /* The extra bottom padding is the room the straddling strip rides up into. */
  padding: var(--s8) 0 calc(var(--s8) + var(--overlap));
}
.band h1, .band h2, .band h3 { color: var(--on-dark); }
.band a { color: var(--green-lift); }
.band a:hover { color: #6BBF92; }
/* .band a otherwise wins the specificity fight against .btn-primary/.btn-ghost
   and repaints the button text the same green as its own background. */
.band .btn-primary, .band .btn-primary:hover { color: #0B2E1E; }
.band .btn-ghost, .band .btn-ghost:hover { color: #fff; }

.band-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s8); align-items: stretch;
}
.band-hero h1 { max-width: 19ch; }
.band-hero .lede { font-size: var(--fs-lede); line-height: 1.55; max-width: 58ch; margin-top: var(--s5); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* RULE 1: a photograph on a dark ground gets a border AND a radius. */
.headshot {
  width: 100%; height: 100%; object-fit: cover;
  /* Stretched to the text column's height (top = eyebrow, bottom = CTAs)
     rather than a fixed aspect-ratio, per explicit alignment request. */
  object-position: center 20%;
  border-radius: 10px;
  border: 1px solid rgba(236, 238, 240, 0.22);
}
@media (max-width: 900px) {
  .band-hero { grid-template-columns: 1fr; gap: var(--s6); }
  .headshot { max-width: 250px; height: auto; aspect-ratio: 1 / 1; }
}

/* The strip that crosses the seam. */
.straddle { margin-top: calc(-1 * var(--overlap)); position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   Fact cards — four equal cards, each closing on a monospace count so the
   strip scans as a readout rather than four lists.
   -------------------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(234px, 1fr)); gap: var(--s4); }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5); display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(17, 19, 21, 0.10);
}
.fact-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.fact .count { font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-3); }
.fact ul {
  list-style: none; margin: var(--s3) 0 0; padding: 0;
  font-family: var(--display); font-weight: 600; font-size: 1.0625rem;
  color: var(--ink); line-height: 1.3;
}
.fact li { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.fact li:last-child { border-bottom: 0; padding-bottom: 0; }
.fact .caption { margin-top: auto; padding-top: var(--s4); font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-3); }
.fact .caption a { font-family: var(--mono); }

/* --------------------------------------------------------------------------
   Node divider — the original's traceroute rule, marking the hand-off from
   the credibility strip into the body of the page.
   -------------------------------------------------------------------------- */
.node-divider { margin: 0; height: 24px; }
.node-divider svg { width: 100%; height: 24px; display: block; }
.node-divider line { stroke: var(--line-2); stroke-width: 1; }
.node-divider circle { fill: var(--green); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--s7) 0; }
.section-heading { margin-bottom: var(--s5); max-width: 64ch; }
.section-heading .note {
  display: block; margin-top: var(--s3);
  font-family: var(--mono); font-size: var(--fs-small); color: var(--amber);
}
.prose { max-width: 68ch; }

/* --------------------------------------------------------------------------
   Project cards — three equal cards. Each ends in a monospace meta bar so
   the card closes on data rather than trailing off.
   -------------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: var(--s4); }
.project-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 6px solid var(--green);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 19, 21, 0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.project-card.is-progress { border-top-color: var(--amber); }
.project-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--line-2); border-right-color: var(--line-2); border-bottom-color: var(--line-2);
  box-shadow: 0 18px 40px rgba(17, 19, 21, 0.16);
}
.project-card:has(.card-media.is-empty):hover { transform: none; box-shadow: 0 10px 30px rgba(17, 19, 21, 0.10); border-left-color: var(--line); border-right-color: var(--line); border-bottom-color: var(--line); }
.card-media {
  aspect-ratio: 16 / 9; background: var(--bg); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .logo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4);
  align-items: center; justify-items: center; width: 100%; padding: var(--s5);
}
.card-media .logo-grid img { width: 100%; max-width: 76px; height: auto; object-fit: contain; }
.card-media.is-empty {
  border-bottom-style: dashed; border-bottom-color: var(--line-2);
  font-family: var(--mono); font-size: var(--fs-small); color: var(--ink-3);
}
.card-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.card-body p { font-size: 1rem; }
.card-body p.pending { color: var(--ink-3); font-family: var(--mono); font-size: var(--fs-small); }
.card-body .more { margin-top: auto; padding-top: var(--s2); font-family: var(--mono); font-size: var(--fs-small); font-weight: 500; }
.card-body .more a { display: inline-block; transition: transform 0.15s ease; }
.card-body .more a:hover { transform: translateX(2px); }
.card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3);
  padding: var(--s3) var(--s5); border-top: 1px solid var(--line); background: var(--bg);
}

/* --------------------------------------------------------------------------
   Status pills, dates, tags
   -------------------------------------------------------------------------- */
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); }
.status-pill {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--mono); font-size: var(--fs-micro);
  padding: 0.2rem 0.5rem; border-radius: 999px;
  background: var(--green-tint); color: var(--green); white-space: nowrap;
}
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status-pill.in-progress { background: var(--amber-tint); color: var(--amber); }
.band .status-pill { background: rgba(79, 169, 122, 0.16); color: var(--green-lift); }
.band .status-pill.in-progress { background: rgba(217, 164, 74, 0.16); color: var(--amber-lift); }

.project-date { font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-3); }
.band .project-date { color: var(--on-dark-2); }

.tag-row { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   Skills page — grouped skill lists, arrow-linked to demonstrating projects,
   and a certification grid.
   -------------------------------------------------------------------------- */
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s6); }
.skill-group h3 {
  font-size: 1.125rem; font-weight: 700; color: var(--ink);
  padding-bottom: var(--s2); margin-bottom: var(--s3); border-bottom: 2px solid var(--line-2);
}
.skill-group ul { list-style: none; margin: 0; padding: 0; }
.skill-group li { padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2); }
.skill-group li:last-child { border-bottom: 0; }
.skill-group li a { color: var(--green); }
.skill-group li a::before { content: "→ "; }
.skill-note {
  margin-top: var(--s5); font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-3);
}

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); }
.cert {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5); box-shadow: 0 10px 30px rgba(17, 19, 21, 0.10);
}
.cert h3 { font-size: 1rem; margin-bottom: var(--s4); }
.cert-body { display: flex; align-items: center; gap: var(--s4); }
.cert-badge { width: 72px; height: 72px; object-fit: contain; flex: none; }
.cert-meta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.cert-meta a { font-family: var(--mono); font-size: var(--fs-small); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Experience page — role timeline and award cards.
   -------------------------------------------------------------------------- */
.timeline { display: flex; flex-direction: column; gap: var(--s8); }
.role {
  padding-left: var(--s5); border-left: 3px solid var(--green);
  position: relative;
}
.role::before {
  content: ''; position: absolute; left: -7px; top: 0.4em;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--green);
}
.role-title { font-size: 1.1875rem; margin-bottom: var(--s2); }
.role-meta {
  font-family: var(--mono); font-size: var(--fs-small); color: var(--ink-3);
  margin-bottom: var(--s4);
}
.role ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.role li { position: relative; padding-left: 1.2em; color: var(--ink-2); }
.role li::before { content: '·'; position: absolute; left: 0.25em; color: var(--green); font-weight: 700; }

.card-grid .award {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5); box-shadow: 0 10px 30px rgba(17, 19, 21, 0.10);
}
.award .year {
  display: block; font-family: var(--mono); font-size: var(--fs-micro);
  color: var(--green); margin-bottom: var(--s2);
}
.award h3 { font-size: 1.0625rem; margin-bottom: var(--s3); }
.award p { color: var(--ink-2); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Honors Portfolio pages — tab subnav, reflection entries, figures.
   -------------------------------------------------------------------------- */
.subnav {
  display: flex; gap: var(--s5); flex-wrap: wrap;
  padding-bottom: var(--s4); margin-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: var(--fs-ui);
}
.subnav a {
  color: var(--ink-3); text-decoration: none;
  padding-bottom: var(--s3); margin-bottom: calc(-1 * var(--s4) - 1px);
  border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); font-weight: 500; }
.plate:has(> .subnav) { display: inline-flex; }

.reflection {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s6); box-shadow: 0 10px 30px rgba(17, 19, 21, 0.10);
  margin-bottom: var(--s6);
}
.reflection:last-child { margin-bottom: 0; }
.reflection > .eyebrow { color: var(--green); }
.reflection h2 { margin-bottom: var(--s4); }
.reflection .prose p + p { margin-top: var(--s4); }
.caption-note {
  margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: var(--fs-small); color: var(--ink-3); font-style: italic;
}

.figure { margin-top: var(--s6); }
.figure img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block;
}
.figure figcaption {
  margin-top: var(--s3); font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-3);
}

.badge-row { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s5); }
.badge-row img { height: 88px; width: auto; object-fit: contain; }
.tag-row li {
  font-family: var(--mono); font-size: var(--fs-nano); letter-spacing: 0.03em;
  color: var(--ink-3); background: var(--surface); border: 1px solid var(--line);
  padding: 0.2rem 0.5rem; border-radius: 999px;
}
.band .tag-row li { color: var(--on-dark-2); background: transparent; border-color: var(--dark-line); }

/* --------------------------------------------------------------------------
   Project page
   -------------------------------------------------------------------------- */
.back-link { display: inline-block; font-family: var(--mono); font-size: var(--fs-small); margin-bottom: var(--s5); }
.band-page h1 { max-width: 20ch; }
.band-page .lede { font-size: var(--fs-lede); line-height: 1.55; max-width: 62ch; margin-top: var(--s5); }
.band-page .meta-row { margin-top: var(--s5); }
.band-page .tag-row { margin-top: var(--s4); }

/* RULE 1 again: the diagram straddles the seam, so part of it sits on the
   graphite. It gets a white plate with a border and a radius. Inverting the
   artwork is not an option — it would destroy its colour key. */
.plate {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s5);
  box-shadow: 0 10px 30px rgba(17, 19, 21, 0.10);
}
.plate img { width: 100%; }
.legend {
  display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s4);
  font-family: var(--mono); font-size: var(--fs-small); color: var(--ink-3);
}
.legend span { display: inline-flex; align-items: center; gap: var(--s2); }
.legend i { width: 30px; height: 4px; border-radius: 2px; flex: none; }

.stack-icons { display: flex; flex-wrap: wrap; gap: var(--s7); margin: var(--s5) 0 var(--s6); }
.stack-icons figure {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  font-family: var(--mono); font-size: var(--fs-small); color: var(--ink-3);
}
.stack-icons img { height: 48px; width: auto; }

.spec-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.spec-table th, .spec-table td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  font-family: var(--mono); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3);
  width: 32%; white-space: nowrap;
}
.spec-table td { font-family: var(--mono); font-size: var(--fs-small); color: var(--ink); }

/* Data blocks dropped into the reading flow. */
.data-block {
  margin: var(--s6) 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.data-head {
  padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); background: var(--bg);
  font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
}
.table-scroll { overflow-x: auto; }
.dtable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-small); }
.dtable th, .dtable td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable tr:last-child th, .dtable tr:last-child td { border-bottom: 0; }
.dtable thead th {
  font-family: var(--mono); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.dtable tbody th { font-family: var(--body); font-weight: 500; font-size: var(--fs-ui); color: var(--ink-2); }
.dtable td { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.dtable td.num { white-space: nowrap; }
.dtable td.is-after { color: var(--green); font-weight: 500; }
.dtable .method { font-family: var(--body); font-size: var(--fs-small); color: var(--ink-2); min-width: 21ch; }

.ceilings { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.ceiling { padding: var(--s5); border-right: 1px solid var(--line); }
.ceiling:last-child { border-right: 0; }
.metric-num {
  display: block; font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 1.5rem; font-weight: 500; line-height: 1.1; color: var(--ink); letter-spacing: -0.02em;
}
.metric-label { display: block; margin-top: var(--s3); font-size: var(--fs-ui); color: var(--ink-2); line-height: 1.35; }
.metric-sub { display: block; margin-top: var(--s1); font-family: var(--mono); font-size: var(--fs-nano); color: var(--ink-3); }
/* RULE 3: a bar only where a real ceiling exists. */
.bar { margin-top: var(--s4); height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--green); }
@media (max-width: 620px) {
  .ceiling { border-right: 0; border-bottom: 1px solid var(--line); }
  .ceiling:last-child { border-bottom: 0; }
}

.project-body h2 { margin: var(--s8) 0 var(--s4); }
.project-body h2:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   Footer — closes the page in the same graphite it opened with
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark); color: var(--on-dark-2); margin-top: var(--s8);
  padding: var(--s7) 0 var(--s5); font-size: var(--fs-ui);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: var(--s6); }
.site-footer h2 {
  color: #fff; font-family: var(--mono); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s3);
}
.site-footer .footer-name { font-family: var(--display); font-size: 1.125rem; font-weight: 700; color: #fff; letter-spacing: -0.03em; }
.site-footer p { font-size: var(--fs-small); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s2); }
.site-footer a { color: var(--on-dark-2); font-family: var(--mono); font-size: var(--fs-small); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--dark-line);
  font-family: var(--mono); font-size: var(--fs-micro); color: #868D94;
}

/* --------------------------------------------------------------------------
   Narrow screens — the nav wraps to a second row. No toggle, no script.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-header { position: static; }
  .site-header .container { flex-wrap: wrap; gap: var(--s3); }
  .site-nav { flex-basis: 100%; order: 3; gap: var(--s4); }
  .site-nav > ul { flex-wrap: wrap; gap: var(--s3) var(--s4); }
  .dropdown { display: none !important; }
  .section { padding: var(--s7) 0; }
}
@media (max-width: 560px) {
  :root { --overlap: 3rem; }
}

@media print {
  .site-header, .site-footer, .skip-link, .hero-ctas, .back-link { display: none; }
  body { background: #fff; font-size: 11pt; }
  .band { background: #fff; color: #111; padding-bottom: var(--s6); }
  .band h1, .band .lede { color: #000; }
  .straddle { margin-top: 0; }
  a { color: #000; }
  .fact, .project-card, .data-block, .spec-table, .plate { break-inside: avoid; box-shadow: none; }
}
