/* aaroncphelps.com
   Charcoal #2C2C2C · sand #BCB4A4 · orange #E57647 · hairline #4D4D4D
   Hard edges everywhere: no border-radius (except pips), no gradients, no rotated text. */

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

:root {
  --font-serif: "proxima-sera", Georgia, serif;
  --font-sans: "proxima-nova", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "Space Mono", monospace;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #2C2C2C;
  color: #FFFFFF;
  font-family: "proxima-nova", -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.site-shell { min-height: 100vh; overflow-x: clip; }

a { color: #FFFFFF; text-decoration: none; transition: color .2s, border-color .2s; }
a:hover { color: #E57647; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #E57647;
  outline-offset: 6px;
}
::selection { background: #E57647; color: #2C2C2C; }

h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
input, button { font: inherit; }
canvas { pointer-events: none; }
summary::-webkit-details-marker { display: none; }

.white { color: #FFFFFF; }
.accent { color: #E57647; }
.cream { color: #F2EDE3; }

/* ---------- shared components (pips, pixel arrows, block links, ambient dots) ---------- */

.domino-pips {
  display: inline-grid;
  grid-template: repeat(3, 4px) / repeat(3, 4px);
  gap: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #E57647;
  vertical-align: middle;
}
.domino-pips i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.pixel-arrow {
  display: block;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
}

.block-link .block-link-arrow {
  opacity: 1;
  transform: none;
  transition:
    opacity 240ms ease,
    transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
.block-link .domino-pips { transition: color 300ms ease; }
.block-link:is(:hover, :focus-visible) .domino-pips { color: var(--pip-hover, #B8A3C8); }
@media (hover: hover) and (pointer: fine) {
  .block-link .block-link-arrow {
    opacity: 0;
    transform: translate(-3px, 3px);
  }
  .block-link:is(:hover, :focus-visible) .block-link-arrow {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .block-link .block-link-arrow,
  .block-link .domino-pips { transition: none; }
  .block-link .block-link-arrow { transform: none; }
}

/* decorative dot patterns use faint radial gradients with soft masked fades —
   a deliberate exception to the hard-edge rule, per the latest direction */
.ambient-hero {
  position: relative;
  isolation: isolate;
}
.ambient-dots {
  position: absolute;
  inset: -16px -48px;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgb(184 141 111 / 50%) 1px, transparent 1.4px),
    radial-gradient(circle, rgb(156 133 181 / 42%) 1px, transparent 1.4px),
    radial-gradient(circle, rgb(159 151 140 / 27%) 1px, transparent 1.4px);
  background-size:
    154px 110px,
    198px 154px,
    22px 22px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, transparent 16%, #000 64%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 16%, #000 64%, transparent 100%);
}
@media (max-width: 700px) {
  .ambient-dots {
    inset: -8px -24px;
    opacity: .8;
  }
}

.w { display: inline-block; }
.word-backgrounds .w {
  background: #2C2C2C;
  padding: 0 .12em;
  margin: 0 -.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: #E57647;
  color: #171717;
  padding: 12px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.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;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 64px;
  max-width: 1360px;
  margin: 0 auto;
}
.nav-brand {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-links a { color: #BCB4A4; }
.nav-links a:hover { color: #FFFFFF; }
.nav-links a[aria-current="page"], .footer-nav a[aria-current="page"] { color: #E57647; }

/* ---------- mobile menu ---------- */

.menu-button {
  display: none;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid #4D4D4D;
  color: #FFFFFF;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 18px;
  cursor: pointer;
}
.menu-button:hover { border-color: #BCB4A4; }
.menu-icon { position: relative; display: block; width: 18px; height: 10px; }
.menu-icon::before, .menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}
.menu-icon::before { top: 0; }
.menu-icon::after { bottom: 0; }

html.menu-open, html.menu-open body { overflow: hidden; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #E57647;
  color: #2C2C2C;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu :focus-visible { outline-color: #171717; }

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}
.mobile-menu-label {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2C2C2C;
  opacity: .55;
}
.menu-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2C2C2C;
  padding: 10px 0 10px 12px;
}
.menu-close:hover { color: #171717; }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.mobile-menu-links a {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: clamp(24px, 7vw, 32px);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #2C2C2C;
  padding: 10px 0 8px;
  border-bottom: 2px solid transparent;
}
.mobile-menu-links a:hover { color: #171717; }
.mobile-menu-links a[aria-current="page"] {
  color: #171717;
  border-bottom-color: #171717;
}

.mobile-menu-contact { margin-top: auto; padding-top: 56px; }
.mobile-menu-contact a {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: "Space Mono", monospace;
  font-size: 15px;
  color: #2C2C2C;
  border-bottom: 1px solid #2C2C2C;
  padding-bottom: 10px;
}
.mobile-menu-contact a:hover { color: #171717; border-bottom-color: #171717; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; }

/* static dot pattern stands in until the canvas signals ready */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #4D4D4D 1.3px, transparent 1.3px);
  background-size: 22px 22px;
}
.hero:has(canvas[data-ready])::before { display: none; }

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

.hero-inner {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-kicker {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #BCB4A4;
  background: #2C2C2C;
  padding: 10px 12px;
  width: fit-content;
  margin-left: -12px;
}

.hero-title {
  font-family: "proxima-sera", Georgia, serif;
  font-weight: 400;
  font-size: clamp(48px, 5.2vw, 78px);
  line-height: .94;
  letter-spacing: -.02em;
}
/* the verb stays with its pronoun when the line has to break */
.hero-title .nb { white-space: nowrap; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 600px);
  gap: 96px;
  align-items: end;
}

/* the lede sits under the headline, beside the stack; each line carries its
   own patch so the copy reads over the dot field like the headline does */
.hero-lede {
  align-self: start;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.55;
  color: #EAEAEA;
  max-width: 40ch;
  text-wrap: balance;
}
.hero-lede span {
  background: #2C2C2C;
  padding: .2em .3em;
  margin: 0 -.3em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.stack-col { display: flex; flex-direction: column; gap: 14px; }

#dominoes {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 280px;
  border-bottom: 1px solid #BCB4A4;
  width: min(600px, 100%);
  margin-left: auto;
}
#dominoes .tile {
  width: 46px;
  height: 240px;
  border: 1px solid #BCB4A4;
  transform-origin: bottom right;
}
#dominoes .tile-solid { border: 0; background: #E57647; }

.stack-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(600px, 100%);
  margin-left: auto;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8F919C;
}
.stack-labels span:nth-child(n+2) { text-align: center; }
.stack-labels .label-growth { text-align: right; color: #E57647; }

/* ---------- 01 argument ---------- */

.argument {
  border-top: 1px solid #4D4D4D;
  max-width: 1360px;
  margin: 0 auto;
  padding: 120px 64px;
}
.argument-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 96px;
  align-items: start;
}
.argument-main { display: flex; flex-direction: column; gap: 48px; }

.section-title {
  font-family: "proxima-sera", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: .95;
  letter-spacing: -.03em;
  color: #BCB4A4;
  max-width: 16ch;
}

.body-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.7;
  max-width: 56ch;
  color: #EAEAEA;
}

#method { scroll-margin-top: 32px; }
#proof, #guide, #contact { scroll-margin-top: 24px; }

.read-more-summary {
  cursor: pointer;
  list-style: none;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #E57647;
  padding: 8px 0;
}
.read-more-body { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.rules {
  font-family: "Space Mono", monospace;
  font-size: 15px;
  line-height: 1.8;
  color: #F1D4D4;
}

.links-row { display: flex; gap: 40px; font-size: 17px; font-weight: 700; }
.ulink { border-bottom: 1px solid #FFFFFF; padding-bottom: 4px; }
.ulink:hover { color: #FFFFFF; border-bottom-color: #E57647; }

.argument-aside { display: flex; flex-direction: column; gap: 16px; }
.headshot {
  width: 360px;
  height: 360px;
  object-fit: cover;
  filter: grayscale(1);
}
.aside-bio {
  font-weight: 300;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.35;
  letter-spacing: -.01em;
  color: #EAEAEA;
  max-width: 360px;
}

/* ---------- domino scene ---------- */

#field {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: #2C2C2C;
  overflow: hidden;
}
.field-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 64px;
}

/* when the scene can't pin (short or crowded viewports) it flows in-page */
#field.scene-unpinned { min-height: auto; }
#field.scene-unpinned > div { position: relative; padding-block: 64px; }
@media (min-width: 901px) and (max-height: 640px) {
  #field { min-height: auto; }
  .field-grid { position: relative; padding-block: 64px; }
}

#stage { position: relative; height: 560px; width: 100%; min-width: 0; }
#rig {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 640px;
  height: 560px;
  perspective: 1400px;
  transform-style: preserve-3d;
  transform-origin: 0 100%;
}

.dom {
  position: absolute;
  bottom: 0;
  width: 240px;
  height: 480px;
  transform-style: preserve-3d;
  will-change: transform;
}
#domA { left: 60px; }
#domB { left: 336px; }

.dom-inner {
  position: relative;
  width: 240px;
  height: 480px;
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(3deg);
}

.face { position: absolute; }
.face-front { inset: 0; transform: translateZ(20px); }
.face-back  { inset: 0; transform: rotateY(180deg) translateZ(20px); }
.face-left  { top: 0; left: -20px; width: 40px; height: 480px; transform: rotateY(-90deg); }
.face-right { top: 0; right: -20px; width: 40px; height: 480px; transform: rotateY(90deg); }
.face-top    { left: 0; top: -20px; width: 240px; height: 40px; transform: rotateX(90deg); }
.face-bottom { left: 0; bottom: -20px; width: 240px; height: 40px; transform: rotateX(-90deg); }

#domA .face-front  { background: #E57647; }
#domA .face-back   { background: #B85A36; }
#domA .face-left   { background: #B85A36; }
#domA .face-right  { background: #CC6540; }
#domA .face-top    { background: #CC6540; }
#domA .face-bottom { background: #B85A36; }

#domB .face-front  { background: #2C2C2C; }
#domB .face-back   { background: #232323; }
#domB .face-left   { background: #232323; }
#domB .face-right  { background: #3B3B3B; }
#domB .face-top    { background: #3B3B3B; }
#domB .face-bottom { background: #232323; }

#domB .face-front svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pip { position: absolute; width: 28px; height: 28px; border-radius: 50%; }
#domA .pip { background: #2C2C2C; }
#domB .pip { background: #E57647; }

.mid { position: absolute; left: 24px; right: 24px; top: 238px; }
#domA .mid { height: 4px; background: #2C2C2C; }
#domB .mid { height: 2px; background: #E57647; }

#floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #BCB4A4;
  transform-origin: left;
  transform: scaleX(1);
}

.field-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 48px;
  position: relative;
  z-index: 2;
}
.field-kicker {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8F919C;
}
.scene-line {
  font-family: "proxima-sera", Georgia, serif;
  font-weight: 300;
  font-size: clamp(36px, 3.8vw, 60px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #FFFFFF;
  max-width: 20ch;
}
.scene-line-2 { margin-top: -8px; }
.scene-caption {
  font-family: "proxima-sera", Georgia, serif;
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.4;
  color: #BCB4A4;
  max-width: 40ch;
}

/* ---------- 02 proof ---------- */

.proof {
  border-top: 1px solid #4D4D4D;
  max-width: 1360px;
  margin: 0 auto;
  padding: 120px 64px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.proof-title { max-width: 18ch; }
.kicker-block {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8F919C;
  display: block;
  margin-bottom: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #BCB4A4;
}
.stat { padding: 32px 24px; border-bottom: 1px solid #BCB4A4; border-left: 1px solid #4D4D4D; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat:last-child { padding-right: 0; }
.stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 52px);
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
}
.stat-num .arrow { color: #E57647; }
.stat-num .unit { font-size: .45em; color: #8F919C; }
.stat-cap { margin-top: 12px; font-size: 15px; color: #BCB4A4; }

/* ---------- statement ---------- */

.statement {
  border-top: 1px solid #4D4D4D;
  max-width: 1360px;
  margin: 0 auto;
  padding: 160px 64px;
}
.statement-text {
  font-family: "proxima-sera", Georgia, serif;
  font-weight: 300;
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.25;
  letter-spacing: -.02em;
  max-width: 24ch;
  color: #FFFFFF;
}
.mauve-underline { border-bottom: 2px solid #AC8DAF; }

.read-link {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 40px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #E57647;
  width: fit-content;
}
.read-link:hover { color: #FFFFFF; }
.read-link .hint {
  display: block;
  max-width: 30ch;
  font-weight: 400;
  text-transform: none;
  letter-spacing: .02em;
  font-size: 13px;
  line-height: 1.9;
  opacity: 0;
  transition: opacity .25s;
}
.read-link:hover .hint, .read-link:focus-visible .hint { opacity: 1; }
.read-link .hint > span {
  background: #F2B79E;
  color: #2C2C2C;
  padding: 2px 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- 03 field guide ---------- */

.guide { background: #DAD5CF; color: #444240; }
.guide-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 120px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 72px;
  align-items: center;
}
.guide-main { display: flex; flex-direction: column; gap: 32px; }
.guide-kicker {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8F919C;
}
.guide-title {
  font-family: "proxima-sera", Georgia, serif;
  font-weight: 400;
  font-size: clamp(46px, 4.8vw, 76px);
  line-height: 1;
  letter-spacing: -.03em;
  color: #171717;
  max-width: 17ch;
}
.guide-title .book-heading-follow { display: block; }
.guide-bio {
  font-weight: 300;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.4;
  letter-spacing: -.01em;
  max-width: 56ch;
  color: #171717;
}

.chapter-request { width: 100%; max-width: 460px; }
.chapter-form {
  display: flex;
  align-items: baseline;
  width: 100%;
  border-bottom: 1px solid #171717;
}
.chapter-form input {
  min-width: 0;
  flex: 1;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 17px;
  color: #171717;
}
.chapter-form input::placeholder { color: #55514D; opacity: 1; }
.chapter-form button {
  cursor: pointer;
  background: transparent;
  color: #A44826;
  padding: 14px 0 14px 16px;
  border: none;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chapter-form button:hover { color: #171717; }
.chapter-help {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 12px;
  color: #55514D;
}

/* the published cover concept provides the material, spine and page detail */
.book-figure {
  margin: 0;
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 2 / 3;
  justify-self: center;
}
.book-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  background: #2C2C2C;
  min-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.contact-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 88px 64px;
  max-width: 1360px;
  width: 100%;
}
.patch { background: #2C2C2C; }
.patch-title { padding: 40px 56px; text-align: center; }
.patch-title h2 {
  font-family: "proxima-sera", Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 1;
  letter-spacing: -.03em;
  color: #E57647;
  max-width: 16ch;
  margin: 0 auto;
}
.patch-cta { padding: 20px 40px; }
.contact-link {
  font-family: "proxima-sera", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 48px);
  letter-spacing: -.02em;
  line-height: 1.1;
  color: #E57647;
  text-decoration: underline;
  text-decoration-color: #E57647;
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}
.contact-link:hover { color: #F2EDE3; text-decoration-color: #F2EDE3; }

/* ---------- footer ---------- */

footer { background: #2C2C2C; color: #FFFFFF; }
.footer-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 72px 64px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: start;
}
.footer-id { display: flex; flex-direction: column; gap: 14px; }
.footer-name { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.footer-id p {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  color: #BCB4A4;
  max-width: 34ch;
}
.footer-bio {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: #BCB4A4;
  font-size: .875rem;
  text-decoration: underline;
  text-decoration-color: #777065;
  text-underline-offset: 4px;
  width: fit-content;
}
.footer-bio:is(:hover, :focus-visible, [aria-current="page"]) {
  color: #E57647;
  text-decoration-color: #E57647;
}

/* a small, interruptible lean keeps the mark grounded on pointer entry and exit */
.footer-dominoes {
  display: inline-flex;
  align-items: flex-end;
  width: max-content;
  min-width: 86px;
  min-height: 48px;
  gap: 10px;
  padding: 10px 20px 10px 12px;
  margin-left: -12px;
}
.footer-dominoes > span {
  --rest-angle: 0deg;
  --lean: 6deg;
  --rest-fill: transparent;
  --rest-stroke: #BCB4A4;
  --hover-fill: transparent;
  width: 6px;
  height: 28px;
  border: 1px solid var(--rest-stroke);
  background: var(--rest-fill);
  transform-origin: bottom right;
  transform: rotate(var(--rest-angle));
  transition:
    transform 700ms cubic-bezier(0.25, 0.1, 0.25, 1),
    border-color 400ms ease,
    background-color 400ms ease;
  transition-delay: 0ms;
}
.footer-dominoes > span:nth-child(-n + 2) { --rest-angle: 38deg; }
.footer-dominoes > span:nth-child(2) { --delay: 45ms; }
.footer-dominoes > span:nth-child(3) { --delay: 90ms; --lean: 8deg; }
.footer-dominoes > span:nth-child(4) {
  --delay: 135ms;
  --lean: 4deg;
  --rest-fill: #E57647;
  --rest-stroke: #E57647;
  --hover-fill: #F2B79E;
}
.footer-dominoes:focus-visible > span {
  border-color: #E57647;
  background-color: var(--hover-fill);
}
@media (hover: hover) {
  .footer-dominoes:hover > span {
    border-color: #E57647;
    background-color: var(--hover-fill);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .footer-dominoes:focus-visible > span {
    transform: rotate(calc(var(--rest-angle) + var(--lean)));
    transition-delay: var(--delay, 0ms);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .footer-dominoes:hover > span {
    transform: rotate(calc(var(--rest-angle) + var(--lean)));
    transition-delay: var(--delay, 0ms);
  }
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  font-family: "Space Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: #BCB4A4;
}
.footer-nav a { color: #BCB4A4; }
.footer-nav a:hover { color: #FFFFFF; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .argument-grid { grid-template-columns: 1fr; gap: 56px; }
  .headshot { width: 100%; max-width: 360px; height: auto; aspect-ratio: 1; }
  .guide-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 28px 24px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { padding-right: 0; }
}

@media (max-width: 900px) {
  .nav { padding-inline: 32px; }
  .nav-links { gap: 24px; }
  .hero-inner { padding: 80px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-lede { max-width: 44ch; }
  .argument { padding: 80px 32px; }
  .field-grid {
    position: relative;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px;
  }
  #stage { width: min(100%, 520px); justify-self: center; height: 300px; }
  #rig { transform: scale(.6); }
  .field-copy { padding-left: 0; gap: 22px; }
  .scene-line { font-size: clamp(30px, 4.2vw, 44px); max-width: 26ch; }
  .scene-caption { font-size: 20px; }
  .proof, .statement { padding: 80px 32px; }
  .guide-grid { padding: 80px 32px; }
  .contact-inner { padding: 72px 32px; }
  .footer-grid { padding: 64px 32px 56px; grid-template-columns: 1fr; gap: 48px; }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 18px 28px;
  }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .menu-button { display: inline-flex; }
}

@media (max-width: 600px) {
  .nav { padding: 20px 24px; }
  .hero-inner { padding: 64px 24px; gap: 56px; }
  .hero-title { font-size: clamp(48px, 11.7vw, 70px); }
  .hero-kicker { max-width: 34ch; font-size: 11px; }
  .hero-lede { font-size: 18px; }
  #dominoes { height: 265px; }
  #dominoes .tile, #dominoes .tile-solid { width: 32px; height: 210px; }
  .stack-labels { font-size: 9px; letter-spacing: 0; }
  .argument { padding: 64px 24px; }
  .field-grid { padding: 32px 24px; gap: 24px; }
  .field-copy { gap: 20px; }
  .scene-line { font-size: 32px; }
  .scene-caption { font-size: 18px; }
  .proof, .statement { padding: 64px 24px; }
  .stat { padding: 24px 14px; }
  .stat-num { font-size: clamp(24px, 6.5vw, 36px); }
  .stat-cap { font-size: 14px; }
  .guide-grid { padding: 64px 24px; gap: 56px; }
  .book-figure { max-width: 340px; }
  .chapter-form { align-items: stretch; }
  .chapter-form button { padding-left: 12px; font-size: 10px; letter-spacing: .03em; }
  .contact { min-height: 60svh; }
  .contact-inner { padding: 64px 24px; gap: 28px; }
  .patch-title { padding: 24px 12px; }
  .patch-cta { padding: 20px 24px; }
  .patch-title h2 { font-size: clamp(40px, 10vw, 60px); }
  .footer-grid { padding: 56px 24px 48px; gap: 40px 24px; }
  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 16px 32px;
    font-size: 14px;
  }
  .read-link { flex-direction: column; gap: 16px; align-items: flex-start; }
  .read-link .hint { opacity: 1; }
}

/* ---------- reduced motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  #dominoes .tile { transform: rotate(38deg); }
  #dominoes .tile-solid { transform: rotate(14deg); }
}

@media print {
  canvas, .skip-link { display: none; }
  .field-grid { position: relative; }
  .w { opacity: 1 !important; transform: none !important; }
}
