/* =========================================================
   Fairooz Raheem — Portfolio
   Editorial layout. Two full themes: paper (light) and ink (dark).
   Plain CSS, no build step.
   ========================================================= */

/* ---------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------- */

:root {
  /* Paper — light theme */
  --bg: #f5f1e8;
  --bg-alt: #efe9dd;
  --surface: #fbf8f2;
  --ink: #17130f;
  --ink-2: #4c463d;
  --ink-3: #6f6859;
  --rule: rgba(23, 19, 15, 0.14);
  --rule-2: rgba(23, 19, 15, 0.3);
  --accent: #b4451f;
  --accent-strong: #973714;
  --accent-soft: rgba(180, 69, 31, 0.08);
  --accent-ink: #fff6ef;
  --panel: #17130f;
  --panel-text: #f4efe5;
  --panel-muted: #b6ada0;
  --panel-rule: rgba(244, 239, 229, 0.18);
  --panel-accent: #ff8b5e;
  --panel-accent-ink: #191310;
  --shadow: 0 30px 60px -40px rgba(46, 34, 22, 0.55);
  --grain-opacity: 0.035;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 52px);
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;

  color-scheme: light;
}

/* Ink — dark theme */
:root[data-theme="dark"] {
  --bg: #12100e;
  --bg-alt: #171411;
  --surface: #1b1815;
  --ink: #f4efe5;
  --ink-2: #c3baab;
  --ink-3: #948b7c;
  --rule: rgba(244, 239, 229, 0.14);
  --rule-2: rgba(244, 239, 229, 0.3);
  --accent: #ff8b5e;
  --accent-strong: #ffa37d;
  --accent-soft: rgba(255, 139, 94, 0.1);
  --accent-ink: #191310;
  --panel: #1b1714;
  --panel-text: #f4efe5;
  --panel-muted: #b6ada0;
  --panel-rule: rgba(244, 239, 229, 0.16);
  --panel-accent: #ff8b5e;
  --panel-accent-ink: #191310;
  --shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
  --grain-opacity: 0.05;

  color-scheme: dark;
}

/* No-JS fallback: follow the OS when no theme attribute is present. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #12100e;
    --bg-alt: #171411;
    --surface: #1b1815;
    --ink: #f4efe5;
    --ink-2: #c3baab;
    --ink-3: #948b7c;
    --rule: rgba(244, 239, 229, 0.14);
    --rule-2: rgba(244, 239, 229, 0.3);
    --accent: #ff8b5e;
    --accent-strong: #ffa37d;
    --accent-soft: rgba(255, 139, 94, 0.1);
    --accent-ink: #191310;
    --panel: #1b1714;
    --panel-text: #f4efe5;
    --panel-muted: #b6ada0;
    --panel-rule: rgba(244, 239, 229, 0.16);
    --panel-accent: #ff8b5e;
    --panel-accent-ink: #191310;
    --shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
    --grain-opacity: 0.05;
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------
   2. Base
   --------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.shell {
  width: 100%;
  max-width: calc(var(--shell) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  padding: 12px 18px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Grain + scroll progress */
.grain {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 320;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------------------------------------------------------
   3. Shared elements
   --------------------------------------------------------- */

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 3.2s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

.kicker,
.hero-folio,
.section-label,
.feature-url,
.project-type,
.project-specs dt,
.fact dt,
.toolbox-label,
.scope-label,
.contact-availability,
.contact-time,
.nav-link,
.mobile-links a,
.footer-nav a,
.footer-meta,
.link-arrow {
  font-family: var(--mono);
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.btn .icon-arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--accent-ink);
}

.btn-outline {
  background: transparent;
  border-color: var(--rule-2);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-outline-invert {
  background: transparent;
  border-color: rgba(244, 239, 229, 0.34);
  color: var(--panel-text);
}

.btn-outline-invert:hover {
  border-color: var(--panel-accent);
  color: var(--panel-accent);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 13px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule-2);
  color: var(--ink-2);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.link-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------
   4. Masthead
   --------------------------------------------------------- */

.masthead {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.masthead.is-scrolled {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom-color: var(--rule);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.wordmark:hover .wordmark-mark {
  background: var(--accent);
  color: var(--accent-ink);
}

.wordmark-text {
  display: grid;
  gap: 3px;
}

.wordmark-name {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.wordmark-role {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 0;
  color: var(--ink-2);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  transition: color 0.25s var(--ease);
}

.nav-num {
  color: var(--ink-3);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.masthead-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle .icon {
  width: 18px;
  height: 18px;
}

.icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: block;
}

:root[data-theme="dark"] .icon-moon {
  display: none;
}

.menu-toggle {
  display: none;
  gap: 4px;
  align-content: center;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: absolute;
  top: var(--header-h);
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h));
  padding: 12px var(--gutter) 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.mobile-nav {
  display: grid;
  align-content: start;
  flex: 1;
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 2px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.mobile-link i {
  margin-right: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.1em;
  vertical-align: 0.5em;
}

.mobile-link span:last-child {
  color: var(--accent);
  font-size: 1.1rem;
}

.mobile-menu-foot {
  display: grid;
  gap: 16px;
  padding-top: 24px;
}

.mobile-note {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mobile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.mobile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  transition: color 0.25s var(--ease);
}

.mobile-links a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------
   5. Hero
   --------------------------------------------------------- */

.hero {
  padding-top: clamp(132px, 15vh, 196px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.hero-folio {
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.hero-title {
  margin-top: clamp(24px, 3.4vw, 44px);
  font-family: var(--display);
  font-size: clamp(3rem, 7.3vw, 7rem);
  font-weight: 300;
  font-variation-settings: "opsz" 120;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-wrap: balance;
}

.hero-line {
  display: block;
}

.hero-line:last-child {
  padding-left: clamp(0px, 6vw, 92px);
}

.hero-title em {
  color: var(--accent);
  font-weight: 300;
  font-style: italic;
}

.hero-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.62fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: end;
  margin-top: clamp(36px, 4.5vw, 62px);
}

.hero-lede {
  max-width: 54ch;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.15vw, 1.14rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 30px;
}

.hero-facts {
  display: grid;
  border-top: 1px solid var(--rule-2);
}

.hero-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}

.hero-fact dt {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-fact dd {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

.hero-fact a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding-block: 4px;
  margin-block: -4px;
  border-bottom: 1px solid var(--rule);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.hero-fact a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Featured plate */
.feature {
  margin-top: clamp(56px, 7vw, 92px);
}

.feature-frame {
  position: relative;
  aspect-ratio: 2.06 / 1;
  overflow: hidden;
  border: 1px solid var(--rule-2);
  background: var(--surface);
}

.feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.7s var(--ease),
    transform 1.2s var(--ease);
}

.feature-img.is-active {
  opacity: 1;
  transform: none;
}

.feature-frame:hover .feature-img.is-active {
  transform: scale(1.008);
}

.feature-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.feature-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.feature-tab span {
  color: var(--ink-3);
  font-size: 8.5px;
  transition: color 0.25s var(--ease);
}

.feature-tab:hover {
  color: var(--ink);
}

.feature-tab.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.feature-tab.is-active span {
  color: var(--accent);
}

.feature-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.feature-url-label {
  color: var(--ink-3);
}

.feature-url .dot {
  width: 5px;
  height: 5px;
  animation: none;
}

/* Ledger */
.ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule);
}

.ledger-item {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 20px 24px 24px;
  border-left: 1px solid var(--rule);
}

.ledger-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.ledger-item dd {
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-variation-settings: "opsz" 100;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ledger-plus {
  color: var(--accent);
  font-size: 0.7em;
  vertical-align: 0.2em;
}

.ledger-item dt {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   6. Ticker
   --------------------------------------------------------- */

.ticker {
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-alt);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: ticker 58s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker span {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------------------------------------------------------
   7. Sections
   --------------------------------------------------------- */

.section {
  padding-block: clamp(76px, 9.5vw, 132px);
}

.section-rule {
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(40px, 5.5vw, 72px);
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  height: fit-content;
  padding-top: 8px;
  border-top: 1px solid var(--rule-2);
  color: var(--ink-3);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.section-label span {
  color: var(--accent);
}

.section-label--invert {
  border-top-color: var(--panel-rule);
  color: var(--panel-muted);
}

.section-head-body {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
}

.section-head h2,
.contact h2 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.4vw, 3.9rem);
  font-variation-settings: "opsz" 90;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.99;
  text-wrap: balance;
}

.section-head h2 em,
.contact h2 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}

.section-intro {
  max-width: 44ch;
  padding-bottom: 5px;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* ---------------------------------------------------------
   8. Work
   --------------------------------------------------------- */

.projects {
  display: grid;
  gap: clamp(56px, 7vw, 104px);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: clamp(28px, 4vw, 64px);
  padding-top: clamp(28px, 3.2vw, 44px);
  border-top: 1px solid var(--rule);
}

.project:first-child {
  border-top: 0;
  padding-top: 0;
}

.project-figure {
  min-width: 0;
}

.project:nth-child(even) .project-figure {
  order: 2;
}

.plate-link {
  position: relative;
  display: block;
}

.plate {
  overflow: hidden;
  aspect-ratio: 16 / 10.4;
  border: 1px solid var(--rule-2);
  background: var(--surface);
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s var(--ease);
}

.plate-link:hover img,
.plate-link:focus-visible img {
  transform: scale(1.018);
}

.plate-link:focus-visible {
  outline-offset: 4px;
}

.plate-action {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.plate-link:hover .plate-action,
.plate-link:focus-visible .plate-action {
  opacity: 1;
  transform: none;
}

.project-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-index {
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1;
}

.project-type {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.project-type::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--rule-2);
}

.project h3 {
  margin: 14px 0 10px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 2.9vw, 2.6rem);
  font-variation-settings: "opsz" 72;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.project-lede {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.5;
}

.project-desc {
  max-width: 46ch;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.75;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 0.89rem;
  line-height: 1.6;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.project-specs {
  width: 100%;
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}

.project-specs div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.project-specs dt {
  color: var(--ink-3);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.project-specs dd {
  color: var(--ink-2);
  font-size: 12px;
  text-align: right;
}

.project .link-arrow {
  margin-top: 22px;
}

/* ---------------------------------------------------------
   8b. Also built
   --------------------------------------------------------- */

.also {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid var(--rule-2);
}

.also-head {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  margin-bottom: clamp(26px, 3.4vw, 44px);
}

.also-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  height: fit-content;
  padding-top: 8px;
  border-top: 1px solid var(--rule-2);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.also-label span {
  color: var(--accent);
}

.also-intro {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.75;
}

.also-list {
  display: grid;
  gap: clamp(32px, 4vw, 52px);
}

.build {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--rule);
}

.build:first-child {
  padding-top: 0;
  border-top: 0;
}

.build:nth-child(even) .build-figure {
  order: 2;
}

.build-figure {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule-2);
  background: var(--surface);
}

.build-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s var(--ease);
}

a.build-figure:hover img {
  transform: scale(1.015);
}

.build-body {
  padding-block: 4px;
}

.build-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.build-index {
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.3rem;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1;
}

.build-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.build-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.build-body h3 {
  margin: 12px 0 10px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-variation-settings: "opsz" 60;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.build-body p {
  max-width: 50ch;
  color: var(--ink-2);
  font-size: 0.91rem;
  line-height: 1.75;
}

.build-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 14px;
}

.build-tags li {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.build-tags li:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: var(--rule-2);
}

.build-features {
  gap: 7px;
  margin-top: 16px;
  margin-bottom: 0;
}

.build-features li {
  font-size: 0.86rem;
  line-height: 1.55;
}

.build .link-arrow {
  margin-top: 16px;
}

.build-body p.build-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
}

.build-note::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.build-note a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-block: 6px;
  margin-block: -6px;
  border-bottom: 1px solid var(--rule-2);
  color: var(--ink-2);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.build-note a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.build--phone .build-figure {
  display: grid;
  place-items: center;
  aspect-ratio: 6 / 5;
  border-color: rgba(244, 239, 229, 0.16);
  background: #0a1018;
}

.phone {
  height: 88%;
  aspect-ratio: 738 / 1600;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------------------------------------------------------
   9. Approach
   --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-2);
}

.step {
  padding: 26px 26px 6px;
  border-left: 1px solid var(--rule);
}

.step:first-child {
  padding-left: 0;
  border-left: 0;
}

.step-num {
  display: block;
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1;
}

.step h3 {
  margin: 18px 0 10px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.step p {
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.7;
}

.scope {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.scope-label {
  height: fit-content;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}

.scope-list li {
  display: grid;
  gap: 3px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}

.scope-list span {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.scope-list em {
  color: var(--ink-3);
  font-size: 0.85rem;
  font-style: normal;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   10. About
   --------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.about-aside {
  display: grid;
  gap: 22px;
}

.portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--rule-2);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.portrait:hover .portrait-img {
  transform: scale(1.015);
}

.portrait-img--dark {
  display: none;
}

:root[data-theme="dark"] .portrait-img--light {
  display: none;
}

:root[data-theme="dark"] .portrait-img--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .portrait-img--light {
    display: none;
  }

  :root:not([data-theme]) .portrait-img--dark {
    display: block;
  }
}

.facts {
  border-top: 1px solid var(--rule-2);
}

.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.fact dt {
  color: var(--ink-3);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.fact dd {
  color: var(--ink-2);
  font-size: 13px;
  text-align: right;
}

.about-body p {
  max-width: 58ch;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.8;
}

.about-body .about-lead {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.32rem, 1.8vw, 1.58rem);
  font-variation-settings: "opsz" 60;
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.experience {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.education {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.roles {
  display: grid;
}

.role {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.role:first-child {
  padding-top: 0;
}

.role .role-dates {
  margin: 0;
  padding-top: 3px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

.role h3 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.role .role-company {
  margin: 3px 0 0;
  color: var(--ink-3);
  font-size: 0.84rem;
  line-height: 1.5;
}

.experience .role-note {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-transform: uppercase;
}

.toolbox {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.toolbox-label {
  display: block;
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
}

.stack-list li {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-transform: uppercase;
}

.stack-list li:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: var(--rule-2);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 32px;
}

/* ---------------------------------------------------------
   11. Contact
   --------------------------------------------------------- */

.contact {
  padding-block: clamp(68px, 8.5vw, 112px);
  background: var(--panel);
  color: var(--panel-text);
}

.contact .dot {
  background: var(--panel-accent);
  box-shadow: 0 0 0 3px rgba(255, 139, 94, 0.16);
}

.contact :focus-visible {
  outline-color: var(--panel-accent);
}

.contact h2 em {
  color: var(--panel-accent);
}

.contact .btn-accent {
  background: var(--panel-accent);
  border-color: var(--panel-accent);
  color: var(--panel-accent-ink);
}

.contact .btn-accent:hover {
  background: #ffa37d;
  border-color: #ffa37d;
  color: var(--panel-accent-ink);
}

.contact-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--panel-rule);
}

.contact-availability {
  position: relative;
  padding-left: 17px;
  color: var(--panel-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.contact-availability .dot {
  position: absolute;
  top: 0.52em;
  left: 0;
}

.contact-body {
  margin-top: clamp(36px, 4.5vw, 56px);
}

.contact h2 {
  max-width: 22ch;
  color: var(--panel-text);
  font-size: clamp(2.5rem, 5.6vw, 5rem);
}

.contact-copy {
  max-width: 52ch;
  margin-top: 22px;
  color: var(--panel-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.contact-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 22px;
  border-top: 1px solid var(--panel-rule);
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--panel-muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.contact-socials a:hover {
  color: var(--panel-accent);
}

.contact-time {
  color: var(--panel-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.contact-time time {
  color: var(--panel-text);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------
   12. Footer
   --------------------------------------------------------- */

.footer {
  padding: 38px 0 44px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.wordmark--footer .wordmark-mark {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.wordmark--footer .wordmark-name {
  font-size: 13.5px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 10px;
  letter-spacing: 0.12em;
  transition: color 0.25s var(--ease);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-meta {
  display: grid;
  gap: 4px;
  color: var(--ink-3);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: right;
}

.footer-meta a {
  display: inline-block;
  margin-block: -8px;
  padding-block: 8px;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}

.footer-meta a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------
   13. Responsive
   --------------------------------------------------------- */

@media (max-width: 1120px) {
  .hero-lower {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr);
    gap: 40px;
  }

  .nav {
    gap: 22px;
  }

  .step {
    padding-inline: 20px;
  }
}

@media (max-width: 980px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .section-head-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .section-intro {
    padding-bottom: 0;
  }

  .project {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .project:nth-child(even) .project-figure {
    order: 0;
  }

  .plate {
    aspect-ratio: 16 / 9.6;
  }

  .project-body {
    padding-top: 0;
  }

  .also-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .build {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .build:nth-child(even) .build-figure {
    order: 0;
  }

  .build--phone .build-figure {
    aspect-ratio: 16 / 10;
  }

  .build-body {
    max-width: 62ch;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step {
    padding: 24px 24px 24px;
    border-bottom: 1px solid var(--rule);
  }

  .step:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .step:nth-child(3),
  .step:nth-child(4) {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .about-aside {
    order: 2;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 24px;
  }

  .about-body {
    order: 1;
  }

  .portrait {
    aspect-ratio: 4 / 4.7;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .masthead-cta {
    display: none;
  }

  .hero-lower {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-facts {
    max-width: 460px;
  }

  .ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger-item {
    padding: 18px 20px 20px;
  }

  .ledger-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .ledger-item:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .scope {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }

  .wordmark-role {
    display: none;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 11.6vw, 4.6rem);
    letter-spacing: -0.04em;
  }

  .feature-frame {
    aspect-ratio: 16 / 10;
  }

  .feature-caption {
    justify-content: flex-start;
    gap: 8px 20px;
  }

  .feature-tabs {
    gap: 4px 18px;
  }

  .contact-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact h2 {
    font-size: clamp(2.25rem, 9.4vw, 3.4rem);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .footer-nav {
    order: 3;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(2.45rem, 12.4vw, 3.6rem);
  }

  .hero-line:last-child {
    padding-left: 0;
  }

  .hero-actions {
    gap: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .feature-tabs {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .feature-tab {
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }

  .feature-url {
    font-size: 9.5px;
  }

  .section-head h2 {
    font-size: clamp(2rem, 9vw, 2.9rem);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .step:nth-child(3),
  .step:nth-child(4) {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--rule);
  }

  .step:last-child {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .scope-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .plate {
    aspect-ratio: 16 / 10;
  }

  .plate-action {
    display: none;
  }

  .build--phone .build-figure {
    aspect-ratio: 4 / 5;
  }

  .build-body h3 {
    font-size: clamp(1.5rem, 8vw, 1.9rem);
  }

  .about-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .role {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .role-dates {
    padding-top: 0;
  }

  .portrait {
    max-width: 420px;
    aspect-ratio: 4 / 5;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .contact-socials {
    gap: 10px 20px;
  }

  .footer-nav {
    gap: 16px;
  }
}

@media (max-width: 400px) {
  .masthead-inner {
    gap: 12px;
  }

  .wordmark {
    gap: 9px;
  }

  .masthead-tools {
    gap: 8px;
  }

  .hero-folio {
    display: none;
  }

  .ledger-item dd {
    font-size: 1.8rem;
  }

  .project-specs div {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .project-specs dd {
    text-align: left;
  }
}

/* ---------------------------------------------------------
   14. Motion & print
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .ticker-track {
    animation: none;
  }

  .scroll-progress {
    display: none;
  }
}

@media print {
  .masthead,
  .ticker,
  .grain,
  .scroll-progress,
  .theme-toggle,
  .feature,
  .plate-action,
  .contact-actions,
  .contact-availability {
    display: none !important;
  }

  body,
  .footer {
    background: #fff;
    color: #111;
  }

  .contact {
    background: #fff;
    color: #111;
    border-block: 1px solid #ccc;
  }

  .contact h2,
  .contact-time time,
  .contact .dot {
    color: #111;
  }

  .contact-copy,
  .contact-time,
  .contact-socials a {
    color: #444;
  }

  .project,
  .portrait,
  .plate {
    break-inside: avoid;
  }
}
