:root {
  --bone: #e9e0d2;
  --ink: #1d1a16;
  --body: rgba(29,26,22,.78);
  --muted: rgba(29,26,22,.52);
  --faint: rgba(29,26,22,.34);
  --line: rgba(29,26,22,.15);
  --line-strong: rgba(29,26,22,.27);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bone); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 16%, rgba(255,255,255,.24), transparent 32%),
    radial-gradient(circle at 18% 88%, rgba(29,26,22,.025), transparent 40%),
    var(--bone);
  color: var(--body);
  font-family: 'Courier New', Courier, ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(29,26,22,.14); color: var(--ink); }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }

.wireframe-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .98;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .11;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}
.site-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(233,224,210,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mobile-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 58px;
  padding: 6px 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.mobile-nav-inner::-webkit-scrollbar { display: none; }
.mobile-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
}
.mobile-nav a.active,
.mobile-nav a:hover,
.mobile-nav a:focus-visible { color: var(--ink); }
.mobile-nav a:focus-visible {
  outline: 1px solid var(--line-strong);
  outline-offset: -2px;
}

.focus-hint {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}
.keycaps { display: flex; gap: 4px; }
.keycap {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--body);
  font-size: 10px;
  line-height: 1;
  background: rgba(255,255,255,.12);
}

.main-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 3vh 16vw 0;
}
.main-row {
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: 100px 1px minmax(300px, 29vw) minmax(340px, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: 14vh 0;
}
.page-stage .main-row {
  grid-template-columns: 100px 1px minmax(360px, 47vw);
  justify-content: start;
  padding: 14vh 0;
}

.side-nav {
  width: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.side-nav p { width: 100%; margin: 0; }
.side-nav .name-link { margin-bottom: 2px; }
.side-nav a {
  display: flex;
  align-items: center;
  width: calc(100% + 20px);
  min-height: 34px;
  margin-left: -10px;
  padding: 7px 10px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.15;
  color: var(--muted);
  transition: color .16s ease, background-color .16s ease;
}
.side-nav a.active { color: var(--ink); }
.side-nav a:hover,
.side-nav a:focus-visible {
  color: var(--ink);
  background: rgba(29,26,22,.055);
  outline: none;
}
.divider {
  width: 1px;
  min-height: 100%;
  background: rgba(29,26,22,.16);
}

.content-column {
  width: 100%;
  max-width: 29vw;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  align-self: start;
}
.page-stage .content-column { max-width: 47vw; }
.content-column p,
.content-column h1,
.content-column h2,
.content-column h3,
.content-column h4,
.content-column figure { margin: 0; }
.content-column h1,
.content-column h2,
.content-column h3,
.content-column h4 {
  color: var(--ink);
  font-family: 'Courier New', Courier, ui-monospace, monospace;
  font-weight: 400;
}
.content-column h1,
.content-column h2,
.content-column h3,
.content-column h4 { font-size: 15px; line-height: 1.35; }
.content-column .eyebrow {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .025em;
}
.page-intro { color: var(--muted); max-width: 58ch; }
.content-column .link,
.page-list a,
.project-links a,
.footer a {
  color: var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--faint);
  transition: color .16s ease, text-decoration-color .16s ease;
}
.content-column .link:hover,
.page-list a:hover,
.project-links a:hover,
.footer a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.blink {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,48% { opacity: 1; } 50%,100% { opacity: 0; } }

.toggle-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; }
.toggle-row button,
.filter-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}
.toggle-row button.active,
.filter-btn.active,
.toggle-row button:hover,
.filter-btn:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.toggle-copy[hidden] { display: none !important; }
.elsewhere { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.elsewhere-links { display: flex; gap: 16px; flex-wrap: wrap; }

.ascii-wrap {
  min-width: 340px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ascii-art {
  margin: 0;
  white-space: pre;
  color: rgba(29,26,22,.82);
  opacity: .86;
  font-family: 'Courier New', Courier, ui-monospace, monospace;
  user-select: none;
}
.ascii-neutron {
  width: 104ch;
  max-width: none;
  min-height: 52em;
  display: block;
  font-size: clamp(4.5px, .34vw, 6.4px);
  line-height: .86;
  letter-spacing: 0;
  transform: translateY(-.5vh);
  text-shadow: 0 0 10px rgba(29,26,22,.06);
}

.footer {
  position: relative;
  z-index: 20;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  margin-top: auto;
  background: rgba(233,224,210,.22);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}
.footer-left { display: flex; flex-wrap: wrap; gap: 0; }
.footer-right { text-align: right; }

.filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  color: var(--muted);
}
.filter-btn { min-height: 30px; }
.project-list { display: flex; flex-direction: column; gap: 18px; }
.project-card {
  display: grid;
  gap: 12px;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
}
.project-card:last-child { border-bottom: 1px solid var(--line); }
.project-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  align-items: baseline;
}
.project-title { color: var(--ink); font-size: 16px; }
.project-meta { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.project-card-body {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(260px, 1fr);
  gap: 18px;
  align-items: start;
}
.project-visual {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.wireframe-placeholder::before,
.wireframe-placeholder::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(29,26,22,.25);
  pointer-events: none;
}
.wireframe-placeholder::before {
  inset: 22% 18% 20% 18%;
}
.wireframe-placeholder::after {
  inset: 30% 27% 28% 28%;
  transform: translate(17%, -17%);
}
.wireframe-placeholder {
  background:
    linear-gradient(27deg, transparent 49.6%, rgba(29,26,22,.16) 49.8%, rgba(29,26,22,.16) 50.2%, transparent 50.4%) 15% 23% / 26% 30% no-repeat,
    linear-gradient(153deg, transparent 49.6%, rgba(29,26,22,.16) 49.8%, rgba(29,26,22,.16) 50.2%, transparent 50.4%) 85% 23% / 26% 30% no-repeat,
    linear-gradient(153deg, transparent 49.6%, rgba(29,26,22,.16) 49.8%, rgba(29,26,22,.16) 50.2%, transparent 50.4%) 15% 82% / 26% 30% no-repeat,
    linear-gradient(27deg, transparent 49.6%, rgba(29,26,22,.16) 49.8%, rgba(29,26,22,.16) 50.2%, transparent 50.4%) 85% 82% / 26% 30% no-repeat,
    rgba(255,255,255,.08);
}
.project-copy { display: grid; gap: 8px; }
.project-links { display: flex; gap: 14px; flex-wrap: wrap; }
.pending-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--faint);
  cursor: default;
}

.page-list { display: flex; flex-direction: column; }
.page-list-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.page-list-row:first-child { border-top: 1px solid var(--line); }
.page-list-row .date { color: var(--muted); white-space: nowrap; font-size: 12px; }
.about-grid { display: grid; gap: 16px; }
.about-section { display: grid; gap: 9px; }

.timeline-shell {
  position: relative;
  width: min(100%, 760px);
  margin: 8px auto 2px;
  padding-right: 106px;
}
.timeline {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 54px 0 22px;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
  transform: translateX(-50%);
}
.timeline::after {
  content: '';
  position: absolute;
  left: calc(50% - 4px);
  top: 0;
  width: 8px;
  height: 1px;
  background: var(--line-strong);
  box-shadow: 0 calc(100% - 1px) 0 var(--line-strong);
}
.timeline-item {
  --gap-after: 48px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  min-height: 22px;
  padding-bottom: var(--gap-after);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(29,26,22,.58);
  background: var(--bone);
  transform: translateX(-50%);
  z-index: 2;
}
.timeline-item-featured .timeline-dot { background: rgba(29,26,22,.72); }
.timeline-copy {
  display: grid;
  gap: 3px;
  width: min(100%, 292px);
  align-content: start;
}
.timeline-copy .project-meta { line-height: 1.35; }
.timeline-left .timeline-copy {
  grid-column: 1;
  justify-self: end;
  text-align: right;
  justify-items: end;
}
.timeline-right .timeline-copy {
  grid-column: 3;
  justify-self: start;
  text-align: left;
  justify-items: start;
}
.timeline-photo-placeholder {
  position: relative;
  width: min(100%, 276px);
  aspect-ratio: 16 / 10;
  margin: 10px 0 2px;
  border: 1px solid var(--line-strong);
  background-color: rgba(255,255,255,.07);
  overflow: hidden;
}
.timeline-photo-placeholder figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: .07em;
  text-align: left;
}
.school-bracket {
  position: absolute;
  right: 2px;
  top: 0;
  bottom: 0;
  width: 92px;
  color: var(--muted);
  pointer-events: none;
}
.school-bracket-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 14px;
  border-right: 1px solid var(--line-strong);
}
.school-bracket-line::before,
.school-bracket-line::after {
  content: '';
  position: absolute;
  right: 0;
  width: 14px;
  height: 1px;
  background: var(--line-strong);
}
.school-bracket-line::before { top: 0; }
.school-bracket-line::after { bottom: 0; }
.school-bracket-year {
  position: absolute;
  right: 20px;
  font-size: 10px;
  letter-spacing: .06em;
}
.school-bracket-year-top { top: -5px; }
.school-bracket-year-bottom { bottom: -5px; }
.school-bracket-label {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 70px;
  transform: translateY(-50%);
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: .03em;
}
.school-bracket-label strong {
  color: var(--body);
  font-weight: 400;
  font-size: 10px;
}
.school-bracket-label span { color: var(--muted); }

.beliefs-grid { display: grid; gap: 0; }
.beliefs-grid .intro-head { margin-bottom: 12px; }
.beliefs-grid > .page-intro { margin-bottom: 18px; }
.belief-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0 15px;
  border-top: 1px solid var(--line);
}
.belief-item:last-child { border-bottom: 1px solid var(--line); }
.belief-index { color: var(--muted); font-size: 11px; padding-top: 2px; }
.belief-item > div { display: grid; gap: 5px; }
.belief-item h2 { color: var(--ink); }
.post-title { font-size: 16px !important; }
.post-meta { color: var(--muted); font-size: 12px; }
.post-body { display: grid; gap: 12px; }



/* Destination-page typewriter phasing. The real page structure is present;
   its real text is emptied and typed back into place by script.js. */
html.typewriter-incoming .mobile-nav,
html.typewriter-incoming .focus-hint,
html.typewriter-incoming .site-shell {
  visibility: hidden;
}
html.typewriter-incoming.typewriter-ready .mobile-nav,
html.typewriter-incoming.typewriter-ready .focus-hint,
html.typewriter-incoming.typewriter-ready .site-shell {
  visibility: visible;
}
html.typewriter-incoming .fade-in,
html.typewriter-incoming.typewriter-ready .fade-in {
  opacity: 1 !important;
  filter: none !important;
  transition: none !important;
}
.typing-caret::after {
  content: '_';
  display: inline;
  margin-left: .06em;
  color: var(--ink);
  animation: blink .62s step-end infinite;
}

.fade-in {
  opacity: 0;
  filter: blur(4px);
  transition: opacity 600ms ease-out, filter 600ms ease-out;
}
body.loaded .fade-in { opacity: 1; filter: blur(0); }

@media (max-width: 1180px) and (min-width: 1024px) {
  .main-stage { padding-left: 10vw; padding-right: 10vw; }
  .main-row { grid-template-columns: 100px 1px minmax(340px, 35vw) minmax(290px, 1fr); }
  .page-stage .main-row { grid-template-columns: 100px 1px minmax(360px, 55vw); }
  .page-stage .content-column { max-width: 55vw; }
  .ascii-neutron { font-size: clamp(4.2px, .33vw, 5.8px); }
}

@media (max-width: 1023px) {
  body { font-size: 15px; line-height: 1.43; }
  .mobile-nav { display: block; }
  .focus-hint,
  .side-nav,
  .divider,
  .ascii-wrap { display: none !important; }
  .main-stage {
    padding: 94px 24px 24px;
  }
  .main-row,
  .page-stage .main-row {
    display: block;
    padding: 0;
  }
  .content-column,
  .page-stage .content-column,
  .post-body {
    width: 100%;
    max-width: 680px !important;
  }
  .footer-inner { padding: 14px 24px; align-items: flex-start; }
  .footer-right { display: none; }
  .project-card-body { grid-template-columns: 1fr; }
  .project-card-head { display: grid; gap: 4px; }
  .project-visual { max-width: 520px; }

  .timeline-shell {
    width: 100%;
    padding-right: 68px;
  }
  .timeline {
    padding-top: 44px;
  }
  .timeline-item {
    grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  }
  .timeline-copy {
    width: 100%;
    font-size: 12px;
  }
  .timeline-photo-placeholder { width: 100%; }
  .school-bracket { width: 58px; }
  .school-bracket-year { right: 16px; font-size: 8px; }
  .school-bracket-label {
    right: 16px;
    width: 44px;
    font-size: 7px;
    line-height: 1.25;
  }
  .school-bracket-label strong { font-size: 8px; }
  .school-bracket-line { width: 10px; }
  .school-bracket-line::before,
  .school-bracket-line::after { width: 10px; }
  .wireframe-bg { opacity: .56; }
}

@media (max-width: 640px) {
  body { font-size: 14px; line-height: 1.46; }
  .mobile-nav-inner {
    gap: 4px;
    min-height: 56px;
    padding: 5px 10px;
  }
  .mobile-nav a {
    min-height: 46px;
    padding: 0 9px;
    font-size: 13px;
  }
  .main-stage { padding: 82px 17px 18px; }
  .content-column { gap: 13px; }
  .elsewhere { align-items: flex-start; }
  .elsewhere-links { gap: 12px; }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin-left: -4px;
    margin-right: -4px;
    padding: 0 4px 4px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 4px;
  }
  .project-card { gap: 10px; padding: 14px 0 16px; }
  .project-card-body { gap: 12px; }
  .project-visual { aspect-ratio: 16 / 10; }
  .page-list-row { align-items: flex-start; }
  .footer { font-size: 12px; }
  .footer-inner { padding: 13px 17px; }
  .wireframe-bg { opacity: .42; }
}

@media (hover: hover) and (pointer: fine) {
  html,
  body,
  body *,
  body *::before,
  body *::after { cursor: none !important; }
  .custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    pointer-events: none;
    z-index: 10001;
    will-change: transform;
    opacity: 0;
    transition: opacity .1s ease;
  }
  .custom-cursor.visible { opacity: 1; }
  .custom-cursor img { display: block; width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* ==================================
   FINAL PROJECT IMAGE LAYOUT
   ================================== */

.project-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.project-visual {
  width: 100%;
  max-width: 560px;
  height: 230px;
  aspect-ratio: auto;
  margin: 0;

  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bone);
}

/* SINGLE PROJECT IMAGE */

.project-visual img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  padding: 0;
  margin: 0;

  filter: grayscale(100%) contrast(1.04);
}

/* TWO IMAGES SIDE BY SIDE */

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;

  width: 100%;
  max-width: 560px;
  height: 230px;

  padding: 0;
  overflow: hidden;
  background: var(--line);
}

.project-gallery img {
  width: 100%;
  height: 100%;
  min-width: 0;

  object-fit: cover;
  object-position: center;

  padding: 0;
  margin: 0;
}

/* PROJECT DESCRIPTION */

.project-copy {
  width: 100%;
  max-width: 62ch;
}

/* MOBILE */

@media (max-width: 640px) {
  .project-visual,
  .project-gallery {
    width: 100%;
    max-width: 100%;
    height: 200px;
    aspect-ratio: auto;
  }
}