/* =============================================================
   de. Wxël‡ — website styles (multi-page)
   ============================================================= */
@import url("./colors_and_type.css?v=3");

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bone); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- TOP BAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 80;
  height: 52px;
  background: var(--ink); color: var(--bone);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid var(--hairline-inv);
  font-family: var(--font-mono);
}
.topbar .brand {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none; color: var(--bone);
}
.brand .dot, .brand .dag { color: var(--annabi); }
.topbar nav {
  display: flex; gap: 32px; justify-self: center;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.topbar nav a {
  color: var(--fg-inv-2); text-decoration: none;
  padding: 19px 2px; position: relative;
  transition: color 80ms linear;
}
.topbar nav a:hover { color: var(--edison); }
.topbar nav a.active::after { border-bottom-color: var(--edison); }
.topbar nav a.active { color: var(--bone); }
.topbar nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  border-bottom: 2px solid var(--copper);
}
.topbar .status {
  justify-self: end; display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-inv-2);
}
.led { width: 6px; height: 6px; background: var(--edison); box-shadow: 0 0 8px var(--edison); display: inline-block; }
.led.idle { background: var(--copper); box-shadow: none; }
.led.off  { background: #3a3a38; box-shadow: none; }

/* ---------- SLIM TOPBAR (new standard: wordmark + 'home' return link) ---------- */
.topbar-slim {
  grid-template-columns: 1fr auto;
}
.topbar-slim nav { display: none; }
.topbar-slim .status { display: none; }
.topbar-slim .return {
  color: var(--fg-inv-2);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  justify-self: end;
  transition: color 80ms linear;
}
.topbar-slim .return:hover { color: var(--edison); }
.topbar-slim .return[hidden] { display: none; }

/* ---------- MENU OVERLAY (site-wide) ---------- */
.topbar-slim .menu-btn {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-inv-2);
  padding: 4px 0;
  display: inline-flex; gap: 10px; align-items: center;
  transition: color 80ms linear;
  justify-self: end;
}
.topbar-slim .menu-btn:hover { color: var(--edison); }
.topbar-slim .menu-btn .bars {
  display: inline-grid; gap: 3px;
}
.topbar-slim .menu-btn .bars::before,
.topbar-slim .menu-btn .bars::after {
  content: ""; display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform 160ms ease;
}
.topbar-slim[data-menu-open="true"] .menu-btn .bars::before { transform: translateY(2.25px) rotate(45deg); }
.topbar-slim[data-menu-open="true"] .menu-btn .bars::after  { transform: translateY(-2.25px) rotate(-45deg); }
.topbar-slim[data-menu-open="true"] .menu-btn .word-open { display: none; }
.topbar-slim[data-menu-open="false"] .menu-btn .word-close { display: none; }
.topbar-slim:not([data-menu-open]) .menu-btn .word-close { display: none; }

/* when a page renders both .return and .menu-btn, sit them side-by-side on the right */
.topbar-slim { grid-template-columns: 1fr auto auto; column-gap: 24px; }
.topbar-slim .brand { grid-column: 1; }
.topbar-slim .return { grid-column: 2; justify-self: end; margin: 0; }
.topbar-slim .menu-btn { grid-column: 3; justify-self: end; }

/* ---------- DESKTOP INLINE NAV (≥820px) ---------- */
/* On desktop, hide the hamburger + overlay; show a horizontal nav strip instead. */
.topbar-slim .site-nav,
.home-top .site-nav {
  display: none;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  align-items: center;
}
.topbar-slim .site-nav a,
.home-top .site-nav a {
  color: var(--fg-inv-2);
  text-decoration: none;
  padding: 4px 0;
  transition: color 80ms linear;
  position: relative;
}
.topbar-slim .site-nav a:hover,
.home-top .site-nav a:hover { color: var(--edison); }
.topbar-slim .site-nav a.here,
.home-top .site-nav a.here { color: var(--bone); }
.topbar-slim .site-nav a.here::after,
.home-top .site-nav a.here::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  border-bottom: 1.5px solid var(--edison);
}

@media (min-width: 820px) {
  .topbar-slim .menu-btn,
  .home-top .menu-btn { display: none !important; }
  .site-overlay { display: none !important; }
  /* re-flow: brand | nav | return */
  .topbar-slim { grid-template-columns: auto 1fr auto !important; column-gap: 32px; }
  .topbar-slim .brand  { grid-column: 1; }
  .topbar-slim .site-nav { grid-column: 2; justify-self: start; display: inline-flex; }
  .topbar-slim .return { grid-column: 3; }
  .home-top .site-nav  { display: inline-flex; }
  /* home-top is flex, not grid — put nav between brand and the led-dot */
  .home-top { justify-content: flex-start; gap: 40px; }
  .home-top .led-dot { margin-left: auto; }
}

/* overlay itself */
.site-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  z-index: 999;
  display: grid; grid-template-rows: auto 1fr auto;
  color: var(--bone);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease;
}
.site-overlay[data-open="true"] { opacity: 1; pointer-events: auto; }

.site-overlay .overlay-top {
  padding: 28px 48px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(232,226,211,0.14);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-inv-3);
}
.site-overlay .overlay-top .brand {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em; color: var(--bone);
  text-decoration: none; text-transform: none;
}
.site-overlay .overlay-top .brand .dot { color: var(--annabi); }
.site-overlay .overlay-top .close-btn {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-inv-2);
  display: inline-flex; gap: 10px; align-items: center;
}
.site-overlay .overlay-top .close-btn:hover { color: var(--edison); }
.site-overlay .overlay-top .close-btn .x {
  display: inline-block; width: 18px; height: 18px;
  position: relative;
}
.site-overlay .overlay-top .close-btn .x::before,
.site-overlay .overlay-top .close-btn .x::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
}
.site-overlay .overlay-top .close-btn .x::before { transform: rotate(45deg); }
.site-overlay .overlay-top .close-btn .x::after  { transform: rotate(-45deg); }

.site-overlay .overlay-body {
  padding: 72px 48px 24px;
  max-width: 1440px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  overflow-y: auto;
}
.site-overlay .overlay-body .nav-col .kicker,
.site-overlay .overlay-body .aside-col .kicker {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-inv-3);
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232,226,211,0.14);
}

.site-overlay ol.nav-list {
  list-style: none; counter-reset: navi;
  padding: 0; margin: 0;
}
.site-overlay ol.nav-list li {
  counter-increment: navi;
  border-bottom: 1px solid rgba(232,226,211,0.14);
}
.site-overlay ol.nav-list li:first-child { border-top: 1px solid rgba(232,226,211,0.14); }
.site-overlay ol.nav-list a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  grid-template-areas: "num title arrow" "num meta arrow";
  column-gap: 24px;
  row-gap: 6px;
  align-items: baseline;
  padding: 22px 8px;
  color: var(--bone);
  text-decoration: none;
  transition: background 100ms linear, color 100ms linear, padding 160ms ease;
}
.site-overlay ol.nav-list .num { grid-area: num; align-self: start; padding-top: 8px; }
.site-overlay ol.nav-list .t   { grid-area: title; }
.site-overlay ol.nav-list .m   { grid-area: meta; }
.site-overlay ol.nav-list .arrow { grid-area: arrow; align-self: center; }
/* keyboard focus styling — always active, for a11y */
.site-overlay ol.nav-list a:focus-visible {
  background: rgba(232,226,211,0.05);
  padding-left: 20px;
  color: var(--bone);
  outline: none;
}
.site-overlay ol.nav-list a:focus-visible .t { color: var(--edison); }
/* hover styling — desktop (pointer-with-hover) only. On iOS/Android the
   first tap would otherwise trigger the hover state + padding shift,
   swallowing the navigation and making links feel dead. */
@media (hover: hover) and (pointer: fine) {
  .site-overlay ol.nav-list a:hover {
    background: rgba(232,226,211,0.05);
    padding-left: 20px;
    color: var(--bone);
    outline: none;
  }
  .site-overlay ol.nav-list a:hover .t { color: var(--edison); }
  .site-overlay ol.nav-list a:hover .arrow { color: var(--edison); transform: translateX(4px); }
}
.site-overlay ol.nav-list .num::before {
  content: "0" counter(navi);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-inv-3);
}
.site-overlay ol.nav-list .t {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.75rem, 3.6vw, 2.8rem);
  line-height: 1; letter-spacing: -0.025em;
  color: var(--bone);
  transition: color 100ms linear;
  text-wrap: balance;
}
.site-overlay ol.nav-list .t em { font-family: var(--font-body); font-style: italic; font-weight: 400; color: var(--edison); }
.site-overlay ol.nav-list .m {
  font-family: var(--font-body); font-style: italic;
  font-size: 14px; line-height: 1.4;
  color: #a8a49c; max-width: 40ch;
  margin-top: -2px;
}
.site-overlay ol.nav-list .arrow {
  font-family: var(--font-mono); font-size: 18px;
  color: var(--fg-inv-3);
  transition: color 100ms linear, transform 160ms ease;
  padding-left: 24px;
}
.site-overlay ol.nav-list a.here { background: rgba(217,160,91,0.06); }
.site-overlay ol.nav-list a.here .t { color: var(--edison); }
.site-overlay ol.nav-list a.here .arrow::before { content: "‡ here"; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--edison); }
.site-overlay ol.nav-list a.here .arrow { font-size: 0; }

.site-overlay .aside-col .card {
  border: 1px solid rgba(232,226,211,0.14);
  padding: 28px;
  display: grid; gap: 14px;
  font-family: var(--font-body);
  color: var(--bone);
}
.site-overlay .aside-col .card h4 {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: 24px; line-height: 1.1; letter-spacing: -0.01em;
}
.site-overlay .aside-col .card h4 em { font-style: italic; color: var(--edison); }
.site-overlay .aside-col .card p {
  margin: 0;
  font-size: 15px; line-height: 1.55; color: #c9c4b7;
  max-width: 40ch;
}
.site-overlay .aside-col .links {
  display: grid; gap: 0; margin-top: 16px;
  border-top: 1px solid rgba(232,226,211,0.14);
}
.site-overlay .aside-col .links a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(232,226,211,0.14);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone); text-decoration: none;
  display: flex; justify-content: space-between; align-items: baseline;
}
.site-overlay .aside-col .links a:hover { color: var(--edison); }
.site-overlay .aside-col .links a .arr { color: var(--fg-inv-3); }
.site-overlay .aside-col .links a:hover .arr { color: var(--edison); }

.site-overlay .overlay-foot {
  padding: 20px 48px;
  border-top: 1px solid rgba(232,226,211,0.14);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-inv-3);
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  flex-wrap: wrap;
}
.site-overlay .overlay-foot .hint { color: var(--fg-inv-2); }
.site-overlay .overlay-foot .hint kbd {
  font-family: var(--font-mono); font-size: 10px;
  border: 1px solid rgba(232,226,211,0.22);
  padding: 2px 6px; margin: 0 2px;
  color: var(--bone);
  letter-spacing: 0.06em;
}

@media (max-width: 820px) {
  .site-overlay .overlay-top { padding: 20px; }
  .site-overlay .overlay-body { grid-template-columns: 1fr; padding: 48px 20px 24px; gap: 40px; }
  .site-overlay ol.nav-list a { grid-template-columns: 40px 1fr auto; gap: 16px; padding: 16px 4px; }
  .site-overlay .overlay-foot { padding: 16px 20px; font-size: 9px; }
}
body.overlay-locked { overflow: hidden; }
html { scrollbar-gutter: stable; }

/* home page variant: topbar is .home-top — same menu styles apply */
.home-top .menu-btn {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-inv-2);
  padding: 4px 0;
  display: inline-flex; gap: 10px; align-items: center;
  transition: color 80ms linear;
  margin-left: 20px;
}
.home-top .menu-btn:hover { color: var(--edison); }
.home-top .menu-btn .bars { display: inline-grid; gap: 3px; }
.home-top .menu-btn .bars::before,
.home-top .menu-btn .bars::after {
  content: ""; display: block;
  width: 18px; height: 1.5px; background: currentColor;
  transition: transform 160ms ease;
}
.home-top[data-menu-open="true"] .menu-btn .bars::before { transform: translateY(2.25px) rotate(45deg); }
.home-top[data-menu-open="true"] .menu-btn .bars::after  { transform: translateY(-2.25px) rotate(-45deg); }
.home-top[data-menu-open="true"] .menu-btn .word-open { display: none; }
.home-top[data-menu-open="false"] .menu-btn .word-close { display: none; }
.home-top:not([data-menu-open]) .menu-btn .word-close { display: none; }
/* group the right-side items so led-dot + menu-btn sit together */
.home-top { gap: 20px; }

/* ---------- SHELL ---------- */
.shell { max-width: 1440px; margin: 0 auto; padding: 0 56px; }
.shell-wide { max-width: 1600px; margin: 0 auto; padding: 0 48px; }
.rule { border: 0; border-top: 1px solid var(--ink); margin: 0; }
.dag {
  /* wordmark/heading dagger — always superscript.
     !important on geometry so per-component colour rules
     (.brand .dag, .colophon h3 .dag, etc.) can still win on colour
     without breaking the raised treatment. */
  display: inline-block !important;
  font-family: var(--font-display) !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 0.55em !important;
  line-height: 1 !important;
  position: relative !important;
  top: -0.55em !important;
  margin-left: 0.08em;
  margin-right: 0.04em;
  color: var(--copper);
  transition: color 120ms linear;
}
a:hover > .dag, button:hover > .dag, .cta:hover .dag, h1:hover .dag, h2:hover .dag, h3:hover .dag { color: var(--verdigris); }

/* ---------- PAGE META STRIP ---------- */
.metastrip {
  background: var(--ink); color: var(--fg-inv-2);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 32px;
  display: flex; gap: 32px; align-items: center;
  border-bottom: 1px solid var(--hairline-inv);
}
.metastrip .path { color: var(--edison); }
.metastrip .sep { color: var(--fg-inv-3); }
.metastrip .right { margin-left: auto; }

/* ---------- SECTION SCAFFOLD ---------- */
.section-head {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 32px;
  padding: 64px 56px 32px;
  border-bottom: 1px solid var(--ink);
  align-items: baseline;
  max-width: 1440px; margin: 0 auto;
}
.section-head .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--fg-3); text-transform: uppercase; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; letter-spacing: -0.02em;
}
.section-head .count { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- FOOTER ---------- */
.colophon {
  background: var(--ink); color: var(--bone);
  padding: 96px 56px 48px;
  border-top: 4px solid var(--copper);
  margin-top: 0;
}
.colophon .wrap { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.colophon h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 0 0 14px; letter-spacing: -0.02em; color: var(--bone); }
.colophon h3 .dag { color: var(--edison); transition: color 120ms linear; }
.colophon h3:hover .dag { color: var(--verdigris); }
.colophon p { color: #a8a49c; max-width: 34ch; margin: 0; font-family: var(--font-body); }
.colophon .col h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-inv-3); margin: 0 0 14px; font-weight: 500; }
.colophon .col ul { list-style: none; padding: 0; margin: 0; font-family: var(--font-mono); font-size: 13px; }
.colophon .col li { padding: 4px 0; }
.colophon .col a { color: var(--bone); text-decoration: none; }
.colophon .col a:hover { color: var(--edison); }
.colophon .col a.here { color: var(--edison); }
.colophon .col a.here::before { content: "‡ "; color: var(--edison); }
.colophon .stamp {
  grid-column: 1 / -1; margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--hairline-inv);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-inv-3); display: flex; justify-content: space-between;
}

/* ---------- LOGO MARK ---------- */
/* The PNG mark ("de Wxel Logo Big Final White Background.png") has black
   outlines + coloured monstera + blue orb on a transparent bg. On dark
   backgrounds we invert to flip black→bone; the coloured centre reads as
   negative space (warm ghost). On light bgs we use it as-is. */
.mark {
  display: block;
  width: 120px; height: auto;
  user-select: none; -webkit-user-drag: none;
}
.mark.mark-sm { width: 88px; }
.mark.mark-lg { width: 220px; }
/* .mark images now use a dedicated dark-bg asset (wordmark-logo-dark.jpg) — no CSS filter hack needed */
.mark.mono    { filter: grayscale(1) brightness(0.1); }

/* stacked footer wordmark lockup: mark + text */
.colophon .lockup { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.colophon .lockup .mark { margin-left: -12px; }

/* ---------- UTILITIES ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3);
}
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 1px solid currentColor;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none;
  transition: background 80ms linear, color 80ms linear, border-color 80ms linear;
}
.cta { color: var(--ink); }
.cta:hover { background: var(--ink); border-color: var(--ink); color: var(--edison); }
.cta.on-ink { color: var(--bone); border-color: var(--bone); background: transparent; }
.cta.on-ink:hover { background: var(--edison); border-color: var(--edison); color: var(--ink); }

/* ---------- PAGE ROOT PADDING ---------- */
main { display: block; }
.page-pad { padding: 64px 56px 96px; }

/* =============================================================
   MOBILE — shared rules, applied to every page that uses site.css.
   Target: 375px iPhone, robust down to 320px.
   Philosophy: collapse to single column, keep the typographic/
   editorial feel (serif display, mono meta, generous air), shrink
   only padding + display-type scale. Don't reflow into app UI.
   ============================================================= */
@media (max-width: 760px) {
  /* —— top bar —— */
  .topbar { padding: 0 16px; height: 48px; }
  .topbar .brand { font-size: 16px; }
  .topbar-slim { column-gap: 14px; }
  .topbar-slim .return { font-size: 10px; letter-spacing: 0.14em; }
  .topbar-slim .menu-btn { font-size: 10px; letter-spacing: 0.16em; }

  /* —— meta strip —— */
  .metastrip {
    padding: 8px 16px;
    gap: 10px;
    font-size: 9px;
    letter-spacing: 0.1em;
    flex-wrap: wrap;
  }
  .metastrip .right { margin-left: 0; width: 100%; }

  /* —— shell + generic padding —— */
  .shell, .shell-wide { padding: 0 20px; }
  .page-pad { padding: 40px 20px 64px; }

  /* —— section heads —— */
  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 44px 20px 20px;
  }
  .section-head h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .section-head .count { margin-top: 4px; }

  /* —— work hero (praxis/solace title blocks) —— */
  .work-hero {
    grid-template-columns: 1fr !important;
    padding: 56px 20px 32px !important;
    gap: 20px !important;
  }
  .work-hero h1 { font-size: clamp(3rem, 14vw, 4.5rem) !important; }
  .work-hero .aside { font-size: 17px !important; max-width: none !important; }

  /* —— filter chips (praxis/solace) —— */
  .filters {
    padding: 14px 20px !important;
    gap: 14px !important;
    flex-wrap: wrap;
    font-size: 10px !important;
  }
  .filters .ct { margin-left: 0 !important; width: 100%; font-size: 10px !important; }

  /* —— work cards (2-up grid → 1-up) —— */
  .works { grid-template-columns: 1fr !important; }
  .work-card {
    grid-column: span 1 !important;
    padding: 28px 20px !important;
    min-height: 0 !important;
    border-right: 0 !important;
  }
  .work-card h3 { font-size: 26px !important; }
  .work-card .desc { font-size: 16px !important; max-width: none !important; }
  .work-card .thumb { margin-bottom: 20px !important; }

  /* —— archive rows (4-col grid → stacked) —— */
  .archive {
    padding: 56px 20px !important;
  }
  .archive li {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 16px 0 !important;
  }
  .archive .t { font-size: 18px !important; }
  .archive .status { text-align: left !important; }

  /* —— footer / colophon —— */
  .colophon {
    padding: 56px 20px 32px;
  }
  .colophon .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .colophon h3 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .colophon p { max-width: none; }
  .colophon .stamp {
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .colophon .mark-sm { width: 72px; }

  /* —— CTA buttons —— */
  .cta { padding: 12px 16px; font-size: 10px; letter-spacing: 0.14em; }
}

/* —— narrower phones, belt-and-braces —— */
@media (max-width: 380px) {
  .shell, .shell-wide { padding: 0 16px; }
  .page-pad { padding: 32px 16px 56px; }
  .topbar { padding: 0 14px; }
  .topbar .brand { font-size: 15px; }
  .work-hero { padding: 48px 16px 28px !important; }
  .section-head { padding: 40px 16px 18px; }
  .colophon, .archive { padding-left: 16px !important; padding-right: 16px !important; }
  .work-card { padding: 24px 16px !important; }
}
