/* ============================================================================
   Haziel Nablo — "Ruled" theme (vanilla HTML/CSS/JS)

   Near-monochrome, type-led system re-themed to the extracted reference values.
   Light is the DEFAULT; [data-theme="dark"] is a disciplined neutral inversion.

   Ramp convention is inverted: base-100 = lightest … base-700 = darkest.
   accent-400 (#0c84ed) is the ONLY accent and is used well under 1% of the UI.
   The signature is the ruled 1280px column: 1px vertical rules down both edges
   of a centered max-width:1280px column, repeated once per section band.
   ============================================================================ */

/* ---------------------------------------------------------------- tokens --- */
:root {
  /* Raw ramp — inverted convention (100 lightest, 700 darkest) */
  --base-100: #fcfcfc;
  --base-200: #f8f8f8;
  --base-300: #ebebeb;
  --base-400: #737373;
  --base-500: #565656;
  --base-600: #333333;
  --base-700: #141414;
  --accent-400: #0c84ed;
  --danger: #ef4444;

  /* Semantic surfaces & text */
  --page-bg: var(--base-100);
  --surface: var(--base-100);
  --surface-2: var(--base-200);
  --border: var(--base-300);
  --text: var(--base-600);
  --text-strong: var(--base-700);
  --muted: var(--base-400);
  --muted-2: var(--base-500);
  --ring: var(--base-600);
  --hairline: rgba(20, 20, 20, 0.1);
  --hover-pill: rgba(235, 235, 235, 0.8);
  --accent: var(--accent-400);

  /* Buttons */
  --btn-primary-bg: var(--base-600);
  --btn-primary-fg: var(--base-100);
  --btn-primary-hover: var(--base-700);
  --btn-secondary-bg: var(--base-100);
  --btn-secondary-fg: var(--base-600);
  --btn-secondary-border: var(--hairline);

  /* Announce strip (inverted band) */
  --invert-bg: #141414;
  --invert-fg: rgba(252, 252, 252, 0.9);

  /* Radius scale */
  --radius-2: 2px;
  --radius-3: 3px;
  --radius-4: 4px;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-pill: 9999px;

  /* Shadows — minimal, low alpha */
  --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.05);
  --shadow-2: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-3: 0 8px 16px 0 rgba(51, 51, 51, 0.04);

  /* Motion — transform / opacity / filter only, never anything that triggers
     layout. Entrances are always ease-out; --ease-follow adds a little
     overshoot so a small move reads as "responding" rather than "snapping". */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-follow: cubic-bezier(0.34, 1.56, 0.64, 1); /* slight overshoot */
  --dur: 150ms; /* UI / panel enter */
  --dur-press: 120ms; /* press feedback (100–160ms) */
  --dur-brand: 200ms; /* brand hover scale + rule (UI layer, <250ms) */
  --dur-reveal: 520ms; /* entrance reveals (400–600ms) */
  --dur-exit: 100ms; /* outgoing panels leave faster than they arrive (~70%) */

  /* Rhythm (4px base unit) */
  --py-band: 128px;
  --px-band: 24px;
  --header-space: 90px;

  /* Type */
  --measure-hero: 820px;
  --measure-cta: 672px;
  --measure-card: 448px;

  --font-display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Custom 4-point registration sparkle (original mark), used via mask */
  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 2C34.2 21.4 42.6 29.8 62 32C42.6 34.2 34.2 42.6 32 62C29.8 42.6 21.4 34.2 2 32C21.4 29.8 29.8 21.4 32 2Z'/%3E%3C/svg%3E");

  color-scheme: light;
}

[data-theme="dark"] {
  /* Inverted ramp — near-black surfaces, light text */
  --base-100: #0c0c0c;
  --base-200: #141414;
  --base-300: #242424;
  --base-400: #8f8f8f;
  --base-500: #a8a8a8;
  --base-600: #e0e0e0;
  --base-700: #fafafa;
  --accent-400: #4aa3f0;
  --danger: #f87171;

  --page-bg: var(--base-100);
  --surface: #111111;
  --surface-2: var(--base-200);
  --border: var(--base-300);
  --text: var(--base-600);
  --text-strong: var(--base-700);
  --muted: var(--base-400);
  --muted-2: var(--base-500);
  --ring: var(--base-600);
  --hairline: rgba(255, 255, 255, 0.16);
  --hover-pill: rgba(255, 255, 255, 0.08);

  --btn-primary-bg: var(--base-700);
  --btn-primary-fg: var(--base-100);
  --btn-primary-hover: #ffffff;
  --btn-secondary-bg: #161616;
  --btn-secondary-fg: var(--base-600);
  --btn-secondary-border: var(--hairline);

  --invert-bg: #1a1a1a;
  --invert-fg: rgba(252, 252, 252, 0.9);

  --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.5);
  --shadow-2: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-3: 0 8px 16px 0 rgba(0, 0, 0, 0.4);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5; /* 120% cramped wrapped prose; body copy needs air */
  letter-spacing: 0; /* negative tracking belongs to display type, not body */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1; /* headings solid, 100%, no air */
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0;
}

img {
  max-width: 100%;
}

.mono {
  font-family: var(--font-mono);
}

/* Type-scale helpers (label-* are Geist Mono, uppercase) */
.label-xs,
.label-sm {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.label-xs {
  font-size: 12px;
}

.label-sm {
  font-size: 14px;
}

/* ---------- Global focus ring — never outline:none without replacement --- */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--base-700);
  color: var(--base-100);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-4) 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Layout — the signature: centered ruled column, repeated per band
   ========================================================================== */
.container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--py-band) var(--px-band);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.section {
  position: relative;
  width: 100%;
  background: var(--page-bg);
  scroll-margin-top: var(--header-space);
}

/* Full-width horizontal rules between stacked bands. The visible 1px is drawn by
   a pseudo-element so it can wipe in (transform: scaleX) as the band enters; the
   border itself is kept transparent so the box geometry is unchanged. */
.section + .section {
  border-top: 1px solid transparent;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  transform: scaleX(1);
  transform-origin: left center;
}

.js .section + .section::before {
  transform: scaleX(0);
  transition: transform var(--dur-reveal) var(--ease-out);
}

.js .section + .section.is-inview::before {
  transform: scaleX(1);
}

/* Corner registration sparkles pinned to ruled-column corners */
.section > .container::before,
.section > .container::after,
.hero > .container::before,
.hero > .container::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: var(--border);
  -webkit-mask: var(--sparkle) center / contain no-repeat;
  mask: var(--sparkle) center / contain no-repeat;
  pointer-events: none;
}

.section > .container::before,
.hero > .container::before {
  top: 0;
  left: 0;
}

.section > .container::after,
.hero > .container::after {
  bottom: 0;
  right: 0;
}

/* ==========================================================================
   Announcement strip + sticky ruled header
   ========================================================================== */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

.announce {
  background: var(--invert-bg);
  color: var(--invert-fg);
}

.announce .container {
  max-width: 1280px;
  border: 0;
  padding: 0;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 24px;
  min-height: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.announce-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.announce-status::after {
  content: "|";
  margin-left: 8px;
  color: rgba(252, 252, 252, 0.35);
  font-weight: 400;
}

.announce-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}

.announce-link {
  display: inline-flex;
  align-items: center;
  color: var(--invert-fg);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  font-weight: 400;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

/* ---------- Header bar: opaque, 56px, hairline bottom ---------- */
.nav-bar {
  position: relative;
  background: var(--page-bg);
  border-bottom: 1px solid var(--border);
}

/* Reading progress — a 1px line that rides the header rule itself. Monochrome,
   transform-driven (never width), and created by JS only when motion is allowed. */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--text-strong);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.nav-island {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: 56px;
  padding: 0 20px;
  background: transparent;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex-shrink: 0;
  color: var(--text-strong);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

/* Brand mark — the plain teardrop in a fixed 26px box. Because the box never
   changes size, the hover scale can't shift anything around it. */
.brand-mark {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transform: scale(1);
  transform-origin: center;
  transition: transform var(--dur-brand) var(--ease-follow);
}

.nav-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* The supplied mark is light (#F8F8F8); flip it so it reads on the paper theme. */
html:not([data-theme="dark"]) .nav-logo {
  filter: invert(1);
}

/* Wordmark — sits at --text and steps to the strongest ink on hover, with a 1px
   rule that scales in from the left. Same device the nav links use, so the brand
   joins the existing interaction family instead of inventing a new one. */
.brand-word {
  position: relative;
  display: inline-block;
  color: var(--text);
  transition: color var(--dur-brand) var(--ease-out);
}

.brand-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--text-strong);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-brand) var(--ease-out);
}

/* Tap and keyboard carry the effect independently of hover. :focus-visible
   keeps the global focus ring, so these rules only add the state. */
.nav-brand:active .brand-mark,
.nav-brand:focus-visible .brand-mark {
  transform: scale(1.05);
}

.nav-brand:active .brand-word,
.nav-brand:focus-visible .brand-word {
  color: var(--text-strong);
}

.nav-brand:active .brand-word::after,
.nav-brand:focus-visible .brand-word::after {
  transform: scaleX(1);
}

/* Real pointers only: touch fires :hover on tap and would leave it stuck. */
@media (hover: hover) and (pointer: fine) {
  .nav-brand:hover .brand-mark {
    transform: scale(1.05);
  }

  .nav-brand:hover .brand-word {
    color: var(--text-strong);
  }

  .nav-brand:hover .brand-word::after {
    transform: scaleX(1);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--muted-2);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-link.active {
  color: var(--text-strong);
  font-weight: 500;
}

/* Active state carries a shape cue, not only colour */
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 4px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--text-strong);
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--btn-secondary-bg);
  color: var(--text-strong);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur-press) var(--ease-out);
}

.theme-toggle:active {
  transform: scale(0.98);
}

/* Default (light) shows the moon (switch to dark); dark shows the sun. */
.theme-toggle .icon-sun {
  display: none;
}

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

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

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  color: var(--text-strong);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur-press) var(--ease-out);
}

.menu-btn:active {
  transform: scale(0.98);
}

/* Mobile drawer — overlays below the header, transform + opacity only */
.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--page-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.mobile-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: var(--radius-6);
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.mobile-drawer-inner .btn {
  margin-top: 12px;
}

/* ==========================================================================
   Buttons — primary fill, secondary bordered, ghost
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur-press) var(--ease-out);
}

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

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-fg);
  border-color: var(--btn-secondary-border);
  box-shadow: var(--shadow-1);
}

.btn:active {
  transform: scale(0.98);
}

.btn.nav-cta {
  font-size: 13px;
  padding: 9px 16px;
  min-height: 44px;
}

.copy-label {
  display: inline-block;
}

/* The label swaps to "Copied to clipboard" on click; reserve the button's width
   so the swap can never reflow the action row (same rule as the step panels:
   a box must not resize when its content changes). */
.btn[data-copy-email] {
  min-width: 214px;
  white-space: nowrap;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Faint base-300 grid texture, fading out toward the bottom */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 96px 20px 64px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-strong);
  margin: 0 0 24px;
  max-width: var(--measure-hero);
  text-wrap: balance;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--muted);
  max-width: var(--measure-hero);
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-portrait {
  justify-self: end;
  width: 100%;
  max-width: 248px;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  background: var(--surface);
  box-shadow: var(--shadow-3);
}

.portrait-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.portrait-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--muted-2);
  flex-shrink: 0;
  animation: pulse-dot 2.6s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ==========================================================================
   Stats rail — full-width band, cells separated by borders (no gaps)
   ========================================================================== */
.stats-rail {
  position: relative;
  width: 100%;
  background: var(--page-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-rail .container {
  padding: 0 24px;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 24px;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text-strong);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Section header block — centered mono eyebrow + two-tone heading
   ========================================================================== */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.h-section {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-strong);
  max-width: 22ch;
  margin: 0;
  text-wrap: balance;
}

/* Two-tone heading idiom — one inner phrase de-emphasised to base-400 */
.em-muted,
.display-em,
.display-em.accent,
.display-em.mod {
  color: var(--muted);
}

.lede {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--muted);
  max-width: var(--measure-cta);
  margin: 0;
}

/* ==========================================================================
   About — numbered point spine
   ========================================================================== */
.points {
  display: flex;
  flex-direction: column;
}

.point {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.point:last-child {
  border-bottom: 1px solid var(--border);
}

.point-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding-top: 3px;
}

.point-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 8px;
}

.point-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  max-width: var(--measure-card);
  margin: 0;
}

/* ==========================================================================
   Experience — sticky left column with a 1px right rule, stacked rows
   ========================================================================== */
.exp-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0;
  align-items: start;
  padding: 52px 0;
  border-top: 1px solid var(--border);
}

.exp-row:last-of-type {
  border-bottom: 1px solid var(--border);
}

.exp-meta {
  position: sticky;
  top: calc(var(--header-space) + 24px);
  padding-right: 48px;
  border-right: 1px solid var(--border);
}

.exp-row > .check-list {
  padding-left: 48px;
}

.exp-dates {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.exp-role {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.exp-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 18px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  max-width: 620px;
}

.check-list li strong {
  color: var(--text-strong);
  font-weight: 500;
}

.check-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--muted-2);
}

/* Progress rail */
.progress-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.progress-step {
  padding: 28px 24px;
}

.progress-step + .progress-step {
  border-left: 1px solid var(--border);
}

.progress-year {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-strong);
  margin: 0 0 4px;
}

.progress-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0;
}

/* Support scope — chips */
.scope-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.scope-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Skills — asymmetric 5/7 split with chip rows
   ========================================================================== */
.skill-groups {
  display: flex;
  flex-direction: column;
}

.skill-group {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px 48px;
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.skill-group:last-child {
  border-bottom: 1px solid var(--border);
}

.skill-group-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-group-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.skill-group-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}

.mod-dot {
  display: none;
}

.skill-group-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-item {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Career — endpoint-style row list
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--border);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: transparent;
}

.timeline-role {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 6px;
}

.timeline-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.timeline-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}

/* ==========================================================================
   Why hire — statement + numbered points
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}

.why-statement {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-strong);
  margin: 0;
  text-wrap: balance;
}

.why-statement em {
  font-style: normal;
  color: var(--muted);
}

.why-points {
  display: flex;
  flex-direction: column;
}

.why-point {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.why-point:last-child {
  border-bottom: 1px solid var(--border);
}

.why-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding-top: 3px;
}

.why-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 6px;
}

.why-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Recognition — bordered columns
   ========================================================================== */
.creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cred {
  padding: 36px 32px;
}

.cred + .cred {
  border-left: 1px solid var(--border);
}

.cred-year {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.cred-org {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.cred-list li {
  display: flex;
  gap: 10px;
}

.cred-list li::before {
  content: "\2192";
  color: var(--muted-2);
  font-weight: 400;
}

.cred-list strong {
  color: var(--text-strong);
  font-weight: 500;
}

/* ==========================================================================
   Workflow — tabbed steps
   ========================================================================== */
.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 32px;
  align-items: start;
}

.step-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  overflow: hidden;
}

.step-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.step-list .step-btn:first-child {
  border-top: 0;
}

.step-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: transparent;
}

.step-btn.active {
  background: var(--surface-2);
}

.step-btn.active::before {
  background: var(--text-strong);
}

/* .step-list has overflow:hidden, which clips the outer focus ring down to two
   horizontal lines. Pull the ring inside the button so the full rectangle shows. */
.step-btn:focus-visible {
  outline-offset: -2px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--muted);
  min-width: 28px;
}

.step-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.step-btn.active .step-num,
.step-btn.active .step-name {
  color: var(--text-strong);
}

/* The container is a grid in which all five panels occupy ONE cell. That cell is
   therefore always as tall as the tallest panel — from first paint — so moving
   between steps can never change the box height. */
.step-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 460px;
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-3);
}

/* Every panel shares grid cell 1 / 1. visibility:hidden (never display:none and
   never the hidden attribute) keeps the box's space reserved while taking the
   inactive panels out of the accessibility tree. */
.step-panel-body {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out); /* enter ~150ms */
}

.step-panel-body.is-active {
  visibility: visible;
  opacity: 1;
}

/* Exit is deliberately quicker than the enter — the panel is already leaving. */
.step-panel-body.is-swapping {
  opacity: 0;
  transition-duration: var(--dur-exit); /* exit ~100ms */
}

.step-panel-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.step-panel-name {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 12px;
}

.step-panel-desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 520px;
}

.step-panel .check-list {
  gap: 12px;
}

.step-goal {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 22px 0 0;
  max-width: 520px;
}

.step-goal strong {
  color: var(--text-strong);
  font-weight: 500;
}

.sim-label {
  grid-area: 2 / 1;
  display: inline-block;
  justify-self: start;
  align-self: end;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Contact — global CTA stage
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  justify-items: center;
  text-align: center;
}

.contact-title {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 20px;
  max-width: 20ch;
  text-wrap: balance;
}

.contact-grid .lede {
  margin-inline: auto;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 900px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
}

.contact-line + .contact-line {
  border-left: 1px solid var(--border);
}

.contact-line-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-line a,
.contact-line span {
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  word-break: break-word;
}

.contact-line a {
  transition: color var(--dur) var(--ease);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  width: 100%;
  background: var(--page-bg);
  border-top: 1px solid var(--border);
}

.footer .container {
  padding: 64px 24px;
}

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

.footer-meta {
  max-width: 46ch;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

/* ==========================================================================
   Sub pages — page hero, back link, resume sheet
   ========================================================================== */
.page-hero {
  position: relative;
  width: 100%;
}

.page-hero .container {
  padding: 96px 24px 56px;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

/* ==========================================================================
   Hover affordances — real pointers only

   A touch device fires :hover on tap and the styling then sticks after the
   finger lifts. Every hover state lives behind this one guard; touch keeps its
   feedback from :active, keyboard from :focus-visible.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .announce-link:hover {
    color: #fcfcfc;
  }

  .nav-link:hover {
    color: var(--text-strong);
    background: var(--hover-pill);
  }

  .theme-toggle:hover {
    background: var(--surface-2);
    border-color: var(--border);
  }

  .menu-btn:hover {
    background: var(--surface-2);
    border-color: var(--border);
  }

  .mobile-link:hover {
    background: var(--hover-pill);
    color: var(--text-strong);
  }

  .btn-primary:hover {
    background: var(--btn-primary-hover);
  }

  .btn-secondary:hover {
    background: var(--base-200);
    border-color: var(--border);
  }

  .step-btn:hover {
    background: var(--surface-2);
  }

  .contact-line a:hover {
    text-decoration: underline dotted;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
  }

  .footer-links a:hover {
    color: var(--text-strong);
    text-decoration: underline dotted;
    text-underline-offset: 3px;
  }

  .back-link:hover {
    color: var(--text-strong);
    text-decoration: underline dotted;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
  }
}

.resume-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.resume-sheet {
  max-width: 820px;
  padding: clamp(32px, 5vw, 64px);
  margin-bottom: 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-3);
}

.resume-sheet h2 {
  padding-bottom: 10px;
  margin: 40px 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--border);
}

.resume-sheet h2:first-of-type {
  margin-top: 0;
}

.resume-sheet ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.resume-sheet ul strong {
  color: var(--text-strong);
  font-weight: 500;
}

.resume-lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

/* ==========================================================================
   Decorative type specimen — 1px outline, pure typography, no brand content
   ========================================================================== */
.section--specimen > .container {
  padding: 64px 24px;
}

.specimen {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
}

.specimen-text {
  font-family: var(--font-display);
  font-size: 224px;
  font-weight: 700;
  letter-spacing: -0.05em;
  fill: none;
  stroke: var(--base-700);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

/* ==========================================================================
   Scroll reveal — transform + opacity only. Entrances ease-out; a group
   staggers through --reveal-delay and per-section --head-step. Nothing here
   can trigger layout.
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal {
  transition: opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* --- Headings rise out of a clipped mask ------------------------------------
   JS wraps each section / hero / gallery heading in a .rise clip. The heading
   starts translated below the clip and rises into place, so it reads as a mask
   wipe rather than a plain fade. The clip's padding + negative margin give the
   mask a little bleed (so ascenders/descenders are never trimmed) with no net
   change to the box the heading occupies. */
.rise {
  overflow: hidden;
  padding: 8px 0 14px;
  margin: -8px 0 -14px;
}

.rise > .h-section,
.rise > .hero-title,
.rise > .contact-title {
  transition: transform var(--dur-reveal) var(--ease-out),
    opacity var(--dur-reveal) var(--ease-out);
}

.js .rise > .h-section,
.js .rise > .hero-title,
.js .rise > .contact-title {
  opacity: 0;
  transform: translateY(115%);
}

.js .reveal.is-visible .rise > .h-section,
.js .reveal.is-visible .rise > .hero-title,
.js .reveal.is-visible .rise > .contact-title {
  opacity: 1;
  transform: none;
}

/* --- Section-header choreography: eyebrow → heading → lede ------------------
   The header block itself holds still; its parts arrive in sequence, spaced by
   --head-step (varied per section below) so the rhythm never feels metronomic. */
.js .section-head.reveal {
  opacity: 1;
  transform: none;
}

.js .section-head.reveal > .eyebrow,
.js .section-head.reveal > .lede {
  opacity: 0;
  transform: translateY(12px);
}

.section-head.reveal > .eyebrow,
.section-head.reveal > .lede {
  transition: opacity 440ms var(--ease-out), transform 440ms var(--ease-out);
}

.section-head.reveal > .eyebrow {
  transition-delay: var(--reveal-delay, 0ms);
}

.section-head.reveal > .rise > .h-section {
  transition-delay: calc(var(--reveal-delay, 0ms) + var(--head-step, 55ms));
}

.section-head.reveal > .lede {
  transition-delay: calc(var(--reveal-delay, 0ms) + var(--head-step, 55ms) * 2);
}

.js .section-head.reveal.is-visible > .eyebrow,
.js .section-head.reveal.is-visible > .lede {
  opacity: 1;
  transform: none;
}

/* Per-section cadence — the step varies so the rhythm isn't uniform. */
#about .section-head { --head-step: 45ms; }
#experience .section-head { --head-step: 60ms; }
#skills .section-head { --head-step: 50ms; }
#career .section-head { --head-step: 65ms; }
#why-hire .section-head { --head-step: 55ms; }
#recognition .section-head { --head-step: 70ms; }
#how-i-work .section-head { --head-step: 60ms; }

/* --- Skill chips cascade in sequence --------------------------------------- */
.js .skill-group.reveal .skill-item {
  opacity: 0;
  transform: translateY(10px);
}

.skill-group.reveal .skill-item {
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.skill-group.reveal.is-visible .skill-item {
  opacity: 1;
  transform: none;
}

.skill-group.reveal .skill-item:nth-child(1) { transition-delay: calc(var(--reveal-delay, 0ms) + 0ms); }
.skill-group.reveal .skill-item:nth-child(2) { transition-delay: calc(var(--reveal-delay, 0ms) + 45ms); }
.skill-group.reveal .skill-item:nth-child(3) { transition-delay: calc(var(--reveal-delay, 0ms) + 90ms); }
.skill-group.reveal .skill-item:nth-child(4) { transition-delay: calc(var(--reveal-delay, 0ms) + 135ms); }
.skill-group.reveal .skill-item:nth-child(5) { transition-delay: calc(var(--reveal-delay, 0ms) + 180ms); }
.skill-group.reveal .skill-item:nth-child(6) { transition-delay: calc(var(--reveal-delay, 0ms) + 225ms); }

/* --- Portrait parallax — subtle, desktop pointers only, motion allowed ------ */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .portrait-photo {
    transform: translate3d(0, 0, 0) scale(1.04);
    transition: transform 180ms var(--ease-out);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1079px) {
  /* Vertical rules are a desktop signature only */
  .container,
  .nav-island {
    border-left: 0;
    border-right: 0;
  }

  .section > .container::before,
  .section > .container::after,
  .hero > .container::before,
  .hero > .container::after {
    display: none;
  }

  /* Tablet keeps the hero's two-column composition. Collapsing it to a single
     track here (the previous behaviour) dropped the portrait out of the right
     column and left the copy stranded against a full-width empty gutter for
     every width from 761px to 1079px. Only the gap tightens. */
  .hero-grid {
    gap: 40px;
  }

  .exp-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .exp-meta {
    position: static;
    padding-right: 0;
    border-right: 0;
  }

  .exp-row > .check-list {
    padding-left: 0;
  }

  .why-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --py-band: 80px;
    --px-band: 20px;
  }

  /* Phone: the hero finally stacks — copy first, then the portrait. The copy
     stays on the left type spine, but the portrait centres, so it sits under
     the stacked buttons rather than hugging the left rule. */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 20px 56px;
  }

  .hero-portrait {
    justify-self: center;
    max-width: 220px;
  }

  .announce-inner {
    gap: 10px;
    padding: 8px 20px;
    font-size: 12px;
  }

  .announce-status::after {
    display: none;
  }

  .announce-link {
    display: none;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat + .stat {
    border-left: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--border);
  }

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

  .point {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .skill-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .creds {
    grid-template-columns: 1fr;
  }

  .cred + .cred {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .progress-rail {
    grid-template-columns: 1fr;
  }

  .progress-step + .progress-step {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-line {
    padding: 0;
  }

  .contact-line + .contact-line {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }

  .hero-cta .btn,
  .contact-actions .btn,
  .resume-actions .btn {
    width: 100%;
  }

  .step-panel {
    min-height: 0;
    padding: 28px 24px;
  }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Reveals land immediately in their final state — no translate, no mask. */
  .js .reveal,
  .js .section-head.reveal > .eyebrow,
  .js .section-head.reveal > .lede,
  .js .skill-group.reveal .skill-item,
  .js .rise > .h-section,
  .js .rise > .hero-title,
  .js .rise > .contact-title {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Section rules are simply present — no wipe. */
  .js .section + .section::before {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  .mobile-drawer,
  .step-panel-body,
  .btn,
  .nav-link,
  .step-btn,
  .theme-toggle,
  .menu-btn,
  .nav-brand,
  .brand-mark,
  .brand-word,
  .brand-word::after {
    transition: none !important;
  }

  .mobile-drawer {
    transform: none;
  }

  /* Brand: no scale; the rule and the colour swap land instantly. */
  .brand-mark {
    transform: none !important;
  }

  /* Portrait parallax is never set up and no fallback transform is applied. */
  .portrait-photo {
    transform: none !important;
  }

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

  .status-dot {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   Print — resume
   ========================================================================== */
@media print {
  .site-top,
  .footer,
  .no-print,
  .skip-link {
    display: none !important;
  }

  .page-hero {
    padding: 0 0 20px;
    border: none;
  }

  .resume-sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .section,
  .container {
    padding: 0;
    border: 0 !important;
    max-width: none;
  }

  .section > .container::before,
  .section > .container::after,
  .hero > .container::before,
  .hero > .container::after {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .resume-sheet h2 {
    color: #000;
    border-color: #999;
  }

  .resume-sheet ul,
  .resume-sheet ul strong,
  .resume-lede {
    color: #000;
  }
}
