:root {
  --paper: #f2ede2;
  --paper-soft: #fbf8f1;
  --ink: #111510;
  --muted: #5b6259;
  --line: rgba(17, 21, 16, 0.18);
  --line-strong: rgba(17, 21, 16, 0.42);
  --lime: #d8ff63;
  --blue: #3157ff;
  --coral: #ff7154;
  --green: #0b664c;
  --night: #101811;
  --shell: min(1240px, calc(100% - 48px));
  --mx: 76%;
  --my: 18%;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% -10%, rgba(216, 255, 99, 0.32), transparent 27rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-daypart="night"] {
  --paper: #eae9df;
  --lime: #c9ef64;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 21, 16, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 21, 16, 0.032) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(30rem 30rem at var(--mx) var(--my), rgba(49, 87, 255, 0.12), transparent 70%),
    radial-gradient(22rem 22rem at calc(var(--mx) - 10%) calc(var(--my) + 10%), rgba(255, 113, 84, 0.09), transparent 72%);
  transition: opacity 500ms ease;
}

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

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(17, 21, 16, 0.1);
  background: rgba(242, 237, 226, 0.86);
  backdrop-filter: blur(18px) saturate(130%);
}

.nav-shell {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.wordmark-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(11, 102, 76, 0.12);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

nav a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: #3f463e;
  font-size: 0.88rem;
  font-weight: 720;
}

nav a:hover,
nav a[aria-current="true"] {
  color: var(--ink);
}

.nav-resume {
  padding-inline: 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.hero {
  position: relative;
  padding: clamp(46px, 6vw, 82px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(30px, 6vw, 82px);
}

.presence {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #323930;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.presence-pulse,
.activity-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00a66c;
  box-shadow: 0 0 0 5px rgba(0, 166, 108, 0.12);
  animation: breathe 2.7s ease-in-out infinite;
}

.presence-separator {
  color: #8c9189;
}

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 880;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 980px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(5rem, 11vw, 10rem);
  font-weight: 500;
}

h1 em {
  position: relative;
  display: inline-block;
  color: var(--blue);
  font-weight: 500;
}

h1 em::after {
  position: absolute;
  right: 0.04em;
  bottom: -0.04em;
  left: 0.03em;
  height: 0.08em;
  border-radius: 999px;
  background: var(--lime);
  content: "";
  transform: rotate(-1.5deg);
}

.hero-lede {
  max-width: 710px;
  margin: 30px 0 0;
  color: #30362e;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 820;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 21, 16, 0.17);
}

.button-dark:hover {
  box-shadow: 0 14px 28px rgba(17, 21, 16, 0.23);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.35);
}

.portrait-wrap {
  position: relative;
  max-width: 440px;
  justify-self: end;
}

.portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 21, 16, 0.2);
  border-radius: 24px;
  background: #d9d2c4;
  box-shadow: 0 24px 54px rgba(41, 40, 31, 0.18);
}

.portrait::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(9, 15, 10, 0.62));
  content: "";
}

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

.portrait figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.loop-strip {
  display: grid;
  margin-top: clamp(72px, 10vw, 132px);
  padding: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.loop-strip > li {
  min-height: 142px;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
}

.loop-strip > li:last-child {
  border-right: 0;
}

.loop-strip span {
  display: block;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.loop-strip strong {
  display: block;
  margin-top: 16px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.loop-strip small {
  display: block;
  max-width: 190px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.77rem;
}

.section {
  padding: clamp(84px, 11vw, 150px) 0;
}

.section-intro {
  max-width: 780px;
  margin-bottom: 46px;
}

.section-intro h2,
.contact-grid h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 500;
}

.section-intro > p:last-child {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.split-intro {
  display: grid;
  max-width: none;
  align-items: end;
  gap: 48px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.6fr);
}

.split-intro > p:last-child {
  margin: 0 0 4px;
}

.section-now {
  padding-top: clamp(42px, 6vw, 72px);
  background: var(--paper-soft);
}

.projects-heading {
  display: flex;
  margin-bottom: clamp(28px, 4vw, 48px);
  align-items: baseline;
  justify-content: space-between;
}

.projects-heading h2 {
  font-size: clamp(3.4rem, 7vw, 6.8rem);
}

.now-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.system-card {
  position: relative;
  display: flex;
  min-height: 470px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid rgba(17, 21, 16, 0.15);
  border-radius: 26px;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.system-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(17, 21, 16, 0.13);
}

.system-card-coframe {
  grid-column: span 7;
  background: var(--night);
  color: #f8f5ed;
}

.system-card-brain {
  grid-column: span 5;
  background: var(--blue);
  color: #fff;
}

.system-card-bountiful {
  min-height: 540px;
  grid-column: span 5;
  background: #203727;
  color: #fff;
}

.system-card-racket {
  min-height: 540px;
  grid-column: span 7;
  background: var(--lime);
}

.system-card-pong {
  min-height: 500px;
  grid-column: span 12;
  background: var(--coral);
  color: var(--ink);
}

.system-card-pong .system-card-body {
  max-width: 48%;
}

.card-topline {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.system-card-body {
  position: relative;
  z-index: 3;
  max-width: 590px;
}

.card-index {
  margin: 0 0 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.72;
}

.system-card h3 {
  max-width: 650px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(2.45rem, 4.6vw, 4.5rem);
  font-weight: 500;
}

.system-card p:not(.card-index) {
  max-width: 590px;
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.83;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  border-bottom: 1px solid currentColor;
  font-size: 0.88rem;
  font-weight: 840;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.text-link-light {
  color: #fff;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.coframe-reel {
  position: absolute;
  top: 70px;
  left: 28px;
  z-index: 1;
  width: min(58%, 430px);
  height: 190px;
}

.reel-window {
  position: absolute;
  inset: 0 42px 18px 0;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.reel-window > i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.reel-headline,
.reel-copy {
  display: block;
  height: 9px;
  margin-top: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  transform-origin: left;
  animation: reel-copy 3.2s ease-in-out infinite;
}

.reel-headline {
  width: 70%;
  height: 15px;
}

.reel-copy {
  width: 82%;
  margin-top: 13px;
  opacity: 0.45;
  animation-delay: -0.28s;
}

.reel-copy-short {
  width: 54%;
  margin-top: 8px;
  animation-delay: -0.56s;
}

.reel-window b {
  position: absolute;
  bottom: 18px;
  left: 22px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.58rem;
  text-transform: uppercase;
  animation: reel-button 3.2s steps(1, end) infinite;
}

.reel-score {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  min-width: 118px;
  padding: 12px 14px;
  flex-direction: column;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  animation: reel-score 3.2s ease-in-out infinite;
}

.reel-score span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.52rem;
  text-transform: uppercase;
}

.reel-score strong {
  margin-top: 2px;
  color: var(--green);
  font-size: 1.1rem;
}

.decision-trace {
  position: absolute;
  top: 30%;
  right: -6%;
  z-index: 1;
  display: flex;
  width: 72%;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transform: rotate(-9deg);
  animation: trace-run 4.8s ease-in-out infinite;
}

.decision-trace span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
}

.decision-trace i {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.5);
}

.brain-mark {
  position: absolute;
  top: 72px;
  right: 32px;
  width: 180px;
  height: 180px;
  opacity: 0.5;
  animation: brain-pulse 3.4s ease-in-out infinite;
}

.brain-mark::before,
.brain-mark::after,
.brain-mark span {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  content: "";
}

.brain-mark::before { top: 10px; left: 78px; }
.brain-mark::after { right: 8px; bottom: 18px; }
.brain-mark span:nth-child(1) { top: 50px; left: 14px; }
.brain-mark span:nth-child(2) { top: 79px; right: 36px; }
.brain-mark span:nth-child(3) { bottom: 18px; left: 52px; }
.brain-mark span:nth-child(4) { top: 42px; right: 7px; }
.brain-mark span:nth-child(5) { bottom: 68px; left: 3px; }

.brain-mark span::after,
.brain-mark::before {
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.62);
}

.brain-mark {
  background:
    linear-gradient(23deg, transparent 48%, rgba(255,255,255,.55) 49%, rgba(255,255,255,.55) 50%, transparent 51%),
    linear-gradient(117deg, transparent 48%, rgba(255,255,255,.4) 49%, rgba(255,255,255,.4) 50%, transparent 51%);
}

.system-image,
.image-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.system-image {
  z-index: 1;
  display: block;
  object-fit: cover;
}

.image-shade {
  z-index: 2;
  background: linear-gradient(180deg, rgba(7, 18, 10, 0.08) 0%, rgba(7, 18, 10, 0.12) 38%, rgba(7, 16, 8, 0.9) 88%);
}

.system-card-bountiful .system-image {
  object-position: 50% 66%;
  animation: harvest-pan 8s ease-in-out infinite alternate;
}

.brain-feed,
.harvest-feed,
.match-feed {
  position: absolute;
  z-index: 3;
  display: flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brain-feed {
  top: 78px;
  left: 28px;
  flex-direction: column;
  gap: 7px;
}

.brain-feed span {
  display: flex;
  width: max-content;
  padding: 8px 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(16, 28, 255, 0.3);
  opacity: 0.38;
  transform: translateX(-8px);
  animation: feed-signal 3.6s ease-in-out infinite;
}

.brain-feed span:nth-child(2) { animation-delay: -2.4s; }
.brain-feed span:nth-child(3) { animation-delay: -1.2s; }

.brain-feed i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.harvest-feed {
  top: 76px;
  right: 22px;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
}

.harvest-feed span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(12, 28, 16, 0.66);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  animation: harvest-chip 4.8s ease-in-out infinite;
}

.harvest-feed span:nth-child(2) { animation-delay: -3.2s; }
.harvest-feed span:nth-child(3) { animation-delay: -1.6s; }

.match-feed {
  top: 78px;
  left: 28px;
  align-items: center;
  gap: 7px;
}

.match-feed span {
  padding: 8px 10px;
  border: 1px solid rgba(17, 21, 16, 0.42);
  border-radius: 999px;
  background: rgba(242, 237, 226, 0.82);
  backdrop-filter: blur(7px);
  animation: match-pop 4.2s ease-in-out infinite;
}

.match-feed span:last-child {
  background: var(--coral);
  animation-delay: -2.1s;
}

.pong-reel {
  position: absolute;
  top: 72px;
  right: 28px;
  z-index: 1;
  width: min(54%, 650px);
}

.pong-score {
  display: flex;
  margin-bottom: 10px;
  justify-content: center;
  gap: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.pong-score i {
  font-style: normal;
  opacity: 0.42;
}

.pong-score span:last-child {
  animation: pong-score 3.5s steps(1, end) infinite;
}

.pong-stage {
  position: relative;
  height: 232px;
  overflow: hidden;
  border: 2px solid rgba(17, 21, 16, 0.76);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(17, 21, 16, 0.28) calc(50% - 1px), rgba(17, 21, 16, 0.28) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(transparent calc(50% - 1px), rgba(17, 21, 16, 0.2) calc(50% - 1px), rgba(17, 21, 16, 0.2) calc(50% + 1px), transparent calc(50% + 1px)),
    rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 44px rgba(118, 39, 25, 0.18);
}

.pong-paddle,
.pong-ball {
  position: absolute;
  display: block;
  background: var(--ink);
}

.pong-paddle-left,
.pong-paddle-right {
  top: 38%;
  width: 7px;
  height: 58px;
  border-radius: 999px;
  animation: pong-paddle-y 3.5s ease-in-out infinite;
}

.pong-paddle-left { left: 13px; }
.pong-paddle-right { right: 13px; animation-delay: -1.75s; }

.pong-paddle-top,
.pong-paddle-bottom {
  left: 42%;
  width: 62px;
  height: 7px;
  border-radius: 999px;
  animation: pong-paddle-x 3.5s ease-in-out infinite;
}

.pong-paddle-top { top: 13px; animation-delay: -0.85s; }
.pong-paddle-bottom { bottom: 13px; animation-delay: -2.55s; }

.pong-ball {
  top: 52%;
  left: 9%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 8px rgba(216, 255, 99, 0.22);
  animation: pong-rally 3.5s linear infinite;
}

.racket-court {
  position: absolute;
  top: 50%;
  right: -40px;
  width: min(61%, 500px);
  aspect-ratio: 1.55;
  border: 3px solid rgba(17, 21, 16, 0.78);
  border-radius: 18px;
  transform: translateY(-58%) rotate(-6deg);
}

.racket-court::before,
.racket-court::after,
.court-line {
  position: absolute;
  background: rgba(17, 21, 16, 0.72);
  content: "";
}

.racket-court::before { top: 50%; right: 0; left: 0; height: 2px; }
.racket-court::after { top: 0; bottom: 0; left: 50%; width: 2px; }
.court-line-a { top: 22%; right: 0; left: 0; height: 1px; }
.court-line-b { right: 0; bottom: 22%; left: 0; height: 1px; }
.court-ball {
  position: absolute;
  top: 21%;
  right: 13%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 9px rgba(255, 113, 84, 0.18);
  animation: court-ball 4.2s ease-in-out infinite;
}

.activity {
  display: grid;
  margin-top: 16px;
  padding: 28px 30px;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  grid-template-columns: minmax(200px, 0.75fr) minmax(0, 1.8fr) auto;
}

.activity > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
}

.activity > div .kicker {
  margin: 0;
}

.activity h3 {
  margin-top: 5px;
  grid-column: 2;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.activity ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.activity li a {
  display: flex;
  min-height: 64px;
  padding: 10px 13px;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
}

.activity li strong {
  font-size: 0.84rem;
}

.activity li span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.activity-source {
  margin: 0;
  color: var(--muted);
  font-size: 0.65rem;
  white-space: nowrap;
}

.section-proof {
  background: var(--paper);
}

.proof-list {
  border-top: 1px solid var(--line-strong);
}

.proof-row {
  display: grid;
  min-height: 190px;
  padding: 28px 0;
  align-items: start;
  gap: 26px;
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: 54px minmax(220px, 0.85fr) minmax(280px, 1.2fr) minmax(180px, 0.65fr);
}

.proof-number {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.proof-title h3 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 500;
}

.proof-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.proof-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.proof-links a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 780;
}

.section-lab {
  background: var(--night);
  color: #f7f4ec;
}

.section-lab .kicker {
  color: var(--lime);
}

.section-lab .section-intro > p:last-child {
  color: rgba(247, 244, 236, 0.64);
}

.lab-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-card {
  position: relative;
  display: flex;
  min-height: 410px;
  padding: 24px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.lab-card:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 255, 99, 0.68);
  background: rgba(255, 255, 255, 0.08);
}

.lab-status {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-glyph {
  display: flex;
  width: 76px;
  height: 76px;
  margin: 58px 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: var(--lime);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 2.7rem;
}

.lab-card h3 {
  margin-top: auto;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 500;
}

.lab-card p {
  min-height: 84px;
  margin: 14px 0 0;
  color: rgba(247, 244, 236, 0.67);
  font-size: 0.86rem;
}

.lab-open {
  display: flex;
  min-height: 44px;
  margin-top: 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.74rem;
  font-weight: 780;
}

.lab-open b {
  font-size: 1rem;
}

.lab-card-pong {
  background: var(--coral);
  color: var(--ink);
}

.lab-card-pong .lab-status,
.lab-card-pong p {
  color: var(--ink);
}

.lab-card-pong .lab-open {
  border-color: rgba(17, 21, 16, 0.3);
}

.pong-mark {
  position: relative;
  height: 92px;
  margin: 50px 0 20px;
  border-top: 1px solid rgba(17,21,16,.4);
  border-bottom: 1px solid rgba(17,21,16,.4);
}

.pong-mark::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(17,21,16,.4);
  content: "";
}

.pong-mark i {
  position: absolute;
  top: 27px;
  width: 5px;
  height: 38px;
  border-radius: 999px;
  background: var(--ink);
}

.pong-mark i:first-child { left: 7px; }
.pong-mark i:nth-child(2) { right: 7px; }
.pong-mark b {
  position: absolute;
  top: 37px;
  left: 58%;
  width: 17px;
  height: 17px;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.lab-card-pelican {
  background: #162d31;
}

.section-writing {
  background: var(--lime);
}

.writing-grid {
  display: grid;
  align-items: start;
  gap: 8vw;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

.writing-list {
  border-top: 1px solid var(--line-strong);
}

.writing-list a {
  display: grid;
  min-height: 96px;
  padding: 18px 2px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: minmax(110px, 0.55fr) minmax(0, 1.45fr) auto;
  transition: padding 180ms ease;
}

.writing-list a:hover {
  padding-right: 10px;
  padding-left: 10px;
}

.writing-list span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.writing-list strong {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.writing-list i {
  font-size: 1.2rem;
  font-style: normal;
}

.section-contact {
  padding-block: clamp(94px, 13vw, 180px);
  background: var(--blue);
  color: #fff;
}

.section-contact .kicker {
  color: var(--lime);
}

.contact-grid {
  display: grid;
  align-items: end;
  gap: clamp(50px, 10vw, 150px);
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.contact-copy > p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 780;
}

.contact-links a:hover {
  background: #fff;
  color: var(--blue);
}

.site-footer {
  padding: 28px 0 36px;
  background: var(--night);
  color: rgba(255, 255, 255, 0.66);
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  font-size: 0.72rem;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms cubic-bezier(.2,.8,.2,1), transform 680ms cubic-bezier(.2,.8,.2,1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 5px rgba(0, 166, 108, 0.1); }
  50% { box-shadow: 0 0 0 9px rgba(0, 166, 108, 0.03); }
}

@keyframes reel-copy {
  0%, 14%, 100% { transform: scaleX(0.58); opacity: 0.34; }
  28%, 72% { transform: scaleX(1); opacity: 0.88; }
}

@keyframes reel-button {
  0%, 49% { background: var(--lime); }
  50%, 100% { background: var(--coral); }
}

@keyframes reel-score {
  0%, 20%, 100% { transform: translateY(8px) scale(0.94); opacity: 0.52; }
  34%, 78% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes trace-run {
  0%, 100% { transform: translateX(4%) rotate(-9deg); opacity: 0.22; }
  50% { transform: translateX(-5%) rotate(-9deg); opacity: 0.52; }
}

@keyframes brain-pulse {
  0%, 100% { transform: scale(0.94) rotate(-2deg); opacity: 0.34; }
  50% { transform: scale(1.04) rotate(2deg); opacity: 0.68; }
}

@keyframes feed-signal {
  0%, 18%, 100% { transform: translateX(-8px); opacity: 0.34; }
  32%, 62% { transform: translateX(0); opacity: 1; }
}

@keyframes harvest-pan {
  from { transform: scale(1.02) translate3d(0, -1%, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, 1.5%, 0); }
}

@keyframes harvest-chip {
  0%, 16%, 100% { transform: translateX(8px); opacity: 0.45; }
  30%, 64% { transform: translateX(0); opacity: 1; }
}

@keyframes match-pop {
  0%, 18%, 100% { transform: translateY(-5px); opacity: 0.48; }
  34%, 72% { transform: translateY(0); opacity: 1; }
}

@keyframes pong-rally {
  0%, 100% { top: 52%; left: 9%; transform: scale(0.86); }
  23% { top: 14%; left: 47%; transform: scale(1); }
  51% { top: 46%; left: 88%; transform: scale(0.88); }
  76% { top: 82%; left: 52%; transform: scale(1); }
}

@keyframes pong-paddle-y {
  0%, 100% { transform: translateY(-32px); }
  50% { transform: translateY(45px); }
}

@keyframes pong-paddle-x {
  0%, 100% { transform: translateX(-56px); }
  50% { transform: translateX(68px); }
}

@keyframes pong-score {
  0%, 74% { color: var(--ink); transform: scale(1); }
  75%, 82% { color: var(--lime); transform: scale(1.28); }
  83%, 100% { color: var(--ink); transform: scale(1); }
}

@keyframes court-ball {
  0%, 100% { transform: translate(0, 0); }
  48% { transform: translate(-310px, 128px); }
  52% { transform: translate(-310px, 128px); }
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(250px, 0.7fr);
    gap: 48px;
  }

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

  .proof-row {
    grid-template-columns: 44px minmax(210px, .8fr) minmax(280px, 1.2fr);
  }

  .proof-links {
    grid-column: 3;
  }

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

  .activity-source {
    grid-column: 2;
  }
}

@media (max-width: 780px) {
  :root {
    --shell: min(100% - 32px, 680px);
  }

  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    position: relative;
  }

  .nav-shell {
    min-height: 62px;
  }

  nav {
    gap: 12px;
  }

  nav a:not(.nav-resume) {
    display: none;
  }

  .nav-resume {
    min-height: 44px;
  }

  .hero {
    padding-block: 34px;
  }

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

  h1 {
    font-size: clamp(4rem, 15vw, 7rem);
    line-height: 0.88;
  }

  .portrait-wrap {
    width: 100%;
    margin: 0;
    justify-self: end;
  }

  .portrait figcaption {
    display: none;
  }

  .portrait {
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(41, 40, 31, 0.16);
  }

  .section.section-now {
    padding-top: 38px;
  }

  .projects-heading {
    margin-bottom: 24px;
  }

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

  .loop-strip > li:nth-child(2) {
    border-right: 0;
  }

  .loop-strip > li:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding-block: 84px;
  }

  .section-intro h2,
  .contact-grid h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .split-intro,
  .writing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .now-grid {
    display: block;
  }

  .system-card {
    min-height: 500px;
    margin-bottom: 14px;
    padding: 22px;
  }

  .coframe-reel {
    top: 66px;
    left: 22px;
    width: min(72%, 390px);
    height: 168px;
  }

  .brain-feed,
  .match-feed {
    top: 70px;
    left: 22px;
  }

  .harvest-feed {
    top: 70px;
    right: 18px;
  }

  .system-card h3 {
    font-size: clamp(2.45rem, 11vw, 4rem);
  }

  .system-card-racket {
    min-height: 560px;
  }

  .system-card-pong {
    min-height: 570px;
  }

  .system-card-pong .system-card-body {
    max-width: 100%;
  }

  .pong-reel {
    top: 68px;
    right: 22px;
    left: 22px;
    width: auto;
  }

  .pong-stage {
    height: 220px;
  }

  .racket-court {
    top: 38%;
    right: -32px;
    width: 82%;
  }

  .decision-trace {
    top: 25%;
    right: -22%;
    width: 110%;
  }

  .activity {
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .activity ol {
    grid-template-columns: 1fr;
  }

  .activity li a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .activity-source {
    grid-column: auto;
  }

  .proof-row {
    padding-block: 25px 30px;
    gap: 16px;
    grid-template-columns: 40px 1fr;
  }

  .proof-row > p,
  .proof-links {
    grid-column: 2;
  }

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

  .lab-card {
    min-height: 360px;
  }

  .writing-list a {
    min-height: 104px;
    grid-template-columns: 1fr auto;
  }

  .writing-list span {
    grid-column: 1;
  }

  .writing-list strong {
    grid-column: 1;
  }

  .writing-list i {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .site-footer .shell {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 12px;
  }

  .portrait-wrap {
    width: 100%;
  }

  h1 {
    font-size: clamp(3.35rem, 14vw, 4.4rem);
  }

  .projects-heading h2 {
    font-size: 3.25rem;
  }

  .loop-strip strong {
    font-size: 1.22rem;
  }

  .loop-strip small {
    font-size: 0.7rem;
  }

  .system-card {
    min-height: 480px;
    border-radius: 20px;
  }

  .card-topline {
    font-size: 0.56rem;
  }

  .coframe-reel {
    width: calc(100% - 34px);
  }

  .pong-stage {
    height: 148px;
  }

  .harvest-feed span:nth-child(2) {
    display: none;
  }
}

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

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

  .ambient {
    display: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (pointer: coarse) {
  .system-card:hover,
  .lab-card:hover,
  .button:hover {
    transform: none;
  }

  .system-card:active,
  .lab-card:active,
  .button:active {
    transform: scale(0.99);
  }
}

@media print {
  .site-header,
  .ambient,
  .hero-actions,
  .activity,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
  }

  .section,
  .hero {
    padding-block: 24px;
  }

  .system-card,
  .lab-card {
    break-inside: avoid;
    color: #000;
    background: #fff;
  }
}
