:root {
  --night: #0d0f0e;
  --night-soft: #151816;
  --charcoal: #202421;
  --paper: #e9e3d7;
  --paper-soft: #d8d1c4;
  --ink: #171916;
  --copper: #704d34;
  --copper-dark: #4e3829;
  --smoked-blue: #35464d;
  --cyan: #37bfd2;
  --orange: #dc6a34;
  --line-dark: rgba(233, 227, 215, 0.2);
  --line-light: rgba(23, 25, 22, 0.22);
  --font-sans: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-condensed: "Arial Narrow", "Bahnschrift Condensed", "HelveticaNeue-CondensedBold", sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --ease-material: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-theme="paper"] {
  background: #c9c2b6;
  color: var(--ink);
}

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

a,
button {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  background: var(--cyan);
  color: var(--ink);
  font: 700 0.75rem/1 var(--font-mono);
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-130%);
}

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.portfolio {
  min-height: 100svh;
}

.foldout-view {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100svh;
  padding: clamp(0.75rem, 2vw, 1.6rem);
}

.foldout {
  display: flex;
  width: min(100%, 1680px);
  min-height: 680px;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(233, 227, 215, 0.26);
  background: var(--night-soft);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

body[data-theme="paper"] .foldout {
  border-color: var(--line-light);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(23, 25, 22, 0.18);
}

.identity-panel {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 0 0 clamp(230px, 19vw, 310px);
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(1.5rem, 3.3vw, 3.8rem) clamp(1.25rem, 2.3vw, 2.8rem);
  border-right: 1px solid var(--line-dark);
  background-color: #171a18;
  background-image: url("/assets/grain.svg");
  background-size: 360px 360px;
}

body[data-theme="paper"] .identity-panel {
  border-right-color: var(--line-light);
  background-color: #242724;
  color: var(--paper);
}

.identity-mark {
  color: var(--cyan);
  font: 700 0.68rem/1 var(--font-mono);
  letter-spacing: 0.15em;
}

.identity-copy h1 {
  max-width: 6ch;
  margin: 0;
  font-family: var(--font-condensed);
  font-size: clamp(2.9rem, 3.6vw, 4.8rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-transform: uppercase;
}

.identity-role,
.section-label,
.page-index,
.fold-number {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-role {
  margin: 2.2rem 0 0;
  color: var(--cyan);
  font-size: 0.72rem;
}

.identity-role::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 2px;
  margin-top: 1rem;
  background: var(--cyan);
}

.identity-summary {
  max-width: 19rem;
  margin: 1.6rem 0 0;
  color: rgba(233, 227, 215, 0.76);
  font-size: 0.94rem;
  line-height: 1.55;
}

.identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
}

.identity-actions a,
.theme-toggle,
.reader-identity-links a {
  padding: 0;
  background: none;
  color: rgba(233, 227, 215, 0.76);
  font: 600 0.66rem/1.2 var(--font-mono);
  letter-spacing: 0.07em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.35rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.identity-actions a:hover,
.identity-actions a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.reader-identity-links a:hover,
.reader-identity-links a:focus-visible {
  color: var(--cyan);
  text-decoration-color: currentColor;
}

.fold-panel {
  position: relative;
  display: flex;
  flex: 0 0 clamp(68px, 5.5vw, 92px);
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line-light);
  color: var(--ink);
  transition: flex-basis 620ms var(--ease-material), filter 260ms ease;
}

.fold-panel:last-child {
  border-right: 0;
}

.fold-panel.is-open {
  flex: 1 1 auto;
}

.fold-paper {
  background-color: var(--paper);
  background-image: url("/assets/grain.svg");
  background-size: 420px 420px;
}

.fold-copper {
  background-color: var(--copper);
  background-image: url("/assets/grain.svg");
  background-size: 420px 420px;
  color: var(--paper);
}

.fold-blue {
  background-color: var(--smoked-blue);
  background-image: url("/assets/grain.svg");
  background-size: 420px 420px;
  color: var(--paper);
}

.fold-charcoal {
  background-color: #242824;
  background-image: url("/assets/grain.svg");
  background-size: 420px 420px;
  color: var(--paper);
}

body[data-theme="paper"] .fold-charcoal {
  background-color: #313530;
}

.fold-trigger {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  padding: 1.35rem 1.1rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.fold-panel.is-open .fold-trigger {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: auto;
}

.fold-panel:not(.is-open) .fold-trigger {
  align-items: center;
  writing-mode: vertical-rl;
}

.fold-panel:not(.is-open) .fold-trigger::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 1.5rem;
  width: 2px;
  height: 1.6rem;
  background: var(--cyan);
}

.fold-number {
  color: var(--cyan);
  font-size: 0.66rem;
}

.fold-title {
  font-family: var(--font-condensed);
  font-size: clamp(1.5rem, 2.1vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.fold-panel:not(.is-open) .fold-title {
  font-size: clamp(1.1rem, 1.4vw, 1.55rem);
  letter-spacing: 0.02em;
}

.fold-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  min-width: min(44vw, 680px);
  padding: clamp(5.5rem, 11vh, 9rem) clamp(2rem, 5vw, 6rem) clamp(2rem, 5vw, 5rem);
  animation: material-in 440ms var(--ease-material) both;
}

.fold-heading {
  max-width: 650px;
}

.section-label {
  margin: 0 0 1.4rem;
  color: var(--cyan);
  font-size: 0.67rem;
}

.fold-heading h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-condensed);
  font-size: clamp(3.4rem, 6.4vw, 7.5rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-transform: uppercase;
}

.fold-heading > p:last-child {
  max-width: 42rem;
  margin: 2rem 0 0;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.6;
}

.fold-heading a {
  font-weight: 700;
  text-underline-offset: 0.24rem;
}

.home-projects {
  display: grid;
  margin: clamp(3rem, 8vh, 7rem) 0 2.5rem;
  border-top: 1px solid currentColor;
}

.home-project-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 70px;
  padding: 0.9rem 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  text-decoration: none;
}

.home-projects .home-project-item > span,
.home-projects small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.home-projects .home-project-item > span {
  color: var(--orange);
}

.home-projects strong {
  font-family: var(--font-condensed);
  font-size: clamp(1.05rem, 1.45vw, 1.5rem);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  transition: transform 220ms var(--ease-material);
}

.home-projects small {
  text-align: right;
}

.home-projects a.home-project-item:hover strong,
.home-projects a.home-project-item:focus-visible strong {
  transform: translateX(0.5rem);
}

.home-project-summary {
  cursor: default;
}

.panel-link,
.external-link {
  align-self: flex-start;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--cyan);
  color: inherit;
  font: 700 0.7rem/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-footer {
  display: flex;
  justify-content: space-between;
  width: min(100%, 1680px);
  margin: 0.85rem auto 0;
  color: rgba(233, 227, 215, 0.55);
  font: 500 0.58rem/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-theme="paper"] .home-footer {
  color: rgba(23, 25, 22, 0.62);
}

.home-footer p {
  margin: 0;
}

@keyframes material-in {
  from {
    opacity: 0;
    transform: translateX(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reader-view {
  display: grid;
  grid-template-columns: clamp(180px, 15vw, 230px) minmax(0, 1fr) repeat(4, clamp(46px, 3.6vw, 58px));
  min-height: 100svh;
  background: var(--night);
}

body[data-theme="paper"] .reader-view {
  background: #c8c0b4;
}

.reader-identity {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100svh;
  padding: clamp(1.5rem, 3vw, 3.4rem);
  border-right: 1px solid var(--line-dark);
  background-color: #171a18;
  background-image: url("/assets/grain.svg");
  background-size: 380px 380px;
  color: var(--paper);
}

.reader-home {
  display: flex;
  flex-direction: column;
  color: inherit;
  font-family: var(--font-condensed);
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.77;
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.reader-identity > p {
  color: var(--cyan);
  font: 600 0.67rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.reader-identity-links {
  display: grid;
  gap: 0.9rem;
}

.reader-stage {
  position: relative;
  min-width: 0;
  background-color: var(--charcoal);
  background-image: url("/assets/grain.svg");
  background-size: 430px 430px;
  color: var(--paper);
}

body[data-theme="paper"] .reader-stage {
  background-color: var(--paper);
  color: var(--ink);
}

.reader-mobile-header {
  display: none;
}

.reader-page {
  width: min(100%, 1120px);
  min-height: calc(100svh - 82px);
  margin: 0 auto;
  padding: clamp(3rem, 5.5vw, 5.5rem);
  animation: sheet-enter 480ms var(--ease-material) both;
}

@keyframes sheet-enter {
  from {
    opacity: 0;
    transform: translateX(2.4rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
  border-bottom: 1px solid currentColor;
}

.page-header .page-index {
  grid-column: 1 / -1;
}

.page-index {
  margin: 0;
  color: var(--cyan);
  font-size: 0.67rem;
}

.page-header h2 {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: clamp(3.8rem, 6.6vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.78;
  text-transform: uppercase;
}

.page-header > p:last-of-type {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.62;
}

.project-header {
  align-items: start;
}

.project-header .external-link {
  grid-column: 2;
  margin-top: -2rem;
}

.project-sheet-list {
  display: grid;
  margin-top: clamp(3rem, 7vw, 7rem);
}

.project-sheet-item {
  display: grid;
  grid-template-columns: clamp(52px, 7vw, 90px) minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  min-height: 150px;
  padding: 1.5rem 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  text-decoration: none;
}

.project-sheet-item:first-child {
  border-top: 1px solid currentColor;
}

.project-sheet-number {
  color: var(--cyan);
  font: 500 clamp(1.8rem, 3.5vw, 3.8rem)/1 var(--font-condensed);
}

.project-sheet-list strong {
  display: block;
  font-family: var(--font-condensed);
  font-size: clamp(1.7rem, 3.6vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  transition: transform 220ms var(--ease-material);
}

.project-sheet-list a.project-sheet-item:hover strong,
.project-sheet-list a.project-sheet-item:focus-visible strong {
  transform: translateX(0.6rem);
}

.project-sheet-summary {
  cursor: default;
}

.project-sheet-list small {
  display: block;
  max-width: 54rem;
  margin-top: 0.8rem;
  color: color-mix(in srgb, currentColor 70%, transparent);
  font-size: 0.88rem;
  line-height: 1.5;
}

.project-sheet-state {
  font: 600 0.62rem/1.3 var(--font-mono);
  text-align: right;
  text-transform: uppercase;
}

.project-art {
  margin: clamp(3rem, 7vw, 7rem) 0 0;
  padding: clamp(1.5rem, 4vw, 4rem);
  border: 1px solid currentColor;
  background-image: url("/assets/grain.svg");
  background-size: 360px 360px;
}

.project-art-paper {
  background-color: #d9d2c5;
  color: var(--ink);
}

.project-art-copper {
  background-color: var(--copper);
}

.project-art-blue {
  background-color: var(--smoked-blue);
}

.project-art img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.project-art figcaption {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid currentColor;
  font: 500 0.66rem/1.5 var(--font-mono);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(3rem, 7vw, 7rem);
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.content-grid section {
  min-height: 260px;
  padding: clamp(1.5rem, 3.5vw, 3.8rem);
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.content-grid h3,
.resume-layout h3 {
  margin: 0;
  color: var(--cyan);
  font: 700 0.69rem/1.2 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.content-grid p {
  margin: 2.5rem 0 0;
  font-size: 0.97rem;
  line-height: 1.72;
}

.about-layout,
.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(3rem, 7vw, 7rem);
  margin-top: clamp(3rem, 7vw, 7rem);
}

.about-lead {
  font-size: clamp(1.35rem, 2.5vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.about-lead p {
  margin: 0 0 2rem;
}

.about-facts,
.resume-tools dl {
  margin: 0;
  border-top: 1px solid currentColor;
}

.about-facts div,
.resume-tools dl div {
  padding: 1.2rem 0;
  border-bottom: 1px solid currentColor;
}

.about-facts dt,
.resume-tools dt {
  margin-bottom: 0.55rem;
  color: var(--cyan);
  font: 600 0.64rem/1.3 var(--font-mono);
  text-transform: uppercase;
}

.about-facts dd,
.resume-tools dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.resume-layout > section:first-child {
  border-top: 1px solid currentColor;
}

.resume-layout h3 {
  padding: 1.2rem 0;
  border-bottom: 1px solid currentColor;
}

.resume-entry {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid currentColor;
}

.resume-entry p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.64;
}

.resume-entry > div > p {
  margin-bottom: 0.65rem;
  color: var(--cyan);
  font: 600 0.62rem/1.3 var(--font-mono);
  text-transform: uppercase;
}

.resume-entry h4 {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 1.75rem;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}

.contact-page {
  display: flex;
  flex-direction: column;
}

.contact-links {
  display: grid;
  margin-top: clamp(4rem, 10vw, 10rem);
  border-top: 1px solid currentColor;
}

.contact-links a {
  display: grid;
  grid-template-columns: minmax(100px, 0.35fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.8rem, 4vw, 4rem) 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  text-decoration: none;
}

.contact-links span {
  color: var(--cyan);
  font: 600 0.67rem/1.3 var(--font-mono);
  text-transform: uppercase;
}

.contact-links strong {
  overflow-wrap: anywhere;
  font-family: var(--font-condensed);
  font-size: clamp(2.2rem, 5.6vw, 6.5rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.contact-note {
  margin: auto 0 0;
  padding-top: 4rem;
  color: color-mix(in srgb, currentColor 68%, transparent);
  font: 500 0.68rem/1.5 var(--font-mono);
}

.reader-footer {
  display: flex;
  justify-content: space-between;
  min-height: 82px;
  padding: 2rem clamp(2rem, 5vw, 5rem);
  border-top: 1px solid currentColor;
  font: 500 0.62rem/1.3 var(--font-mono);
  text-transform: uppercase;
}

.reader-footer a {
  text-underline-offset: 0.3rem;
}

.reader-footer p {
  margin: 0;
}

.reader-spines {
  display: contents;
}

.reader-spines a {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
  height: 100svh;
  padding: 1.6rem 0.85rem;
  border-left: 1px solid var(--line-light);
  color: var(--ink);
  text-decoration: none;
  writing-mode: vertical-rl;
}

.reader-spines a span {
  color: var(--cyan);
  font: 600 0.62rem/1 var(--font-mono);
}

.reader-spines a strong {
  font-family: var(--font-condensed);
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.reader-spines a.is-active::after {
  content: "";
  width: 2px;
  height: 2rem;
  margin-top: auto;
  background: var(--cyan);
}

.spine-paper {
  background-color: var(--paper);
  background-image: url("/assets/grain.svg");
}

.spine-copper {
  background-color: var(--copper);
  background-image: url("/assets/grain.svg");
  color: var(--paper) !important;
}

.spine-blue {
  background-color: var(--smoked-blue);
  background-image: url("/assets/grain.svg");
  color: var(--paper) !important;
}

.spine-charcoal {
  background-color: #242824;
  background-image: url("/assets/grain.svg");
  color: var(--paper) !important;
}

.route-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .foldout {
    min-height: 620px;
  }

  .identity-panel {
    flex-basis: 220px;
  }

  .fold-panel {
    flex-basis: 62px;
  }

  .fold-body {
    min-width: min(50vw, 580px);
    padding-inline: 2.5rem;
  }

  .home-project-item {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .home-projects small {
    display: none;
  }

  .home-project-summary small {
    display: block;
    grid-column: 2;
    text-align: left;
  }

  .reader-view {
    grid-template-columns: 180px minmax(0, 1fr) repeat(4, 52px);
  }

  .reader-page {
    padding-inline: 3rem;
  }

  .reader-spines a {
    padding-inline: 0.65rem;
  }
}

@media (max-width: 800px) {
  .foldout-view {
    display: block;
    padding: 0;
  }

  .foldout {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    border: 0;
    box-shadow: none;
  }

  .identity-panel {
    flex: 0 0 auto;
    min-height: 320px;
    padding: 1.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .identity-copy h1 {
    max-width: none;
    font-size: clamp(3.6rem, 18vw, 6.8rem);
  }

  .identity-role {
    margin-top: 1.5rem;
  }

  .identity-summary {
    max-width: 28rem;
    margin-top: 1.2rem;
  }

  .fold-panel,
  .fold-panel.is-open {
    display: grid;
    flex: 0 0 auto;
    grid-template-rows: 64px 0fr;
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
    transition: grid-template-rows 520ms var(--ease-material);
  }

  .fold-panel.is-open {
    grid-template-rows: 64px 1fr;
  }

  .fold-trigger,
  .fold-panel:not(.is-open) .fold-trigger {
    flex: none;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 0.9rem 1.2rem;
    writing-mode: initial;
  }

  .fold-panel:not(.is-open) .fold-trigger::after {
    right: 1.2rem;
    bottom: 50%;
    width: 1.4rem;
    height: 2px;
    transform: translateY(50%);
  }

  .fold-title,
  .fold-panel:not(.is-open) .fold-title {
    font-size: 1.45rem;
  }

  .fold-body {
    display: flex;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 2.8rem 1.3rem 3rem;
  }

  .fold-heading h2 {
    font-size: clamp(3.3rem, 14vw, 6rem);
  }

  .home-projects {
    margin: 3rem 0 2.5rem;
  }

  .home-footer {
    display: none;
  }

  .reader-view {
    display: block;
    min-height: 100svh;
  }

  .reader-identity {
    display: none;
  }

  .reader-stage {
    min-height: 100svh;
    padding-bottom: 66px;
  }

  .reader-mobile-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    min-height: 58px;
    padding: 1.25rem;
    border-bottom: 1px solid currentColor;
    background: color-mix(in srgb, var(--charcoal) 94%, transparent);
    backdrop-filter: blur(12px);
    font: 700 0.68rem/1 var(--font-mono);
    text-transform: uppercase;
  }

  body[data-theme="paper"] .reader-mobile-header {
    background: color-mix(in srgb, var(--paper) 94%, transparent);
  }

  .reader-mobile-header a {
    text-decoration: none;
  }

  .reader-page {
    min-height: calc(100svh - 124px);
    padding: 3rem 1.25rem 5rem;
  }

  .page-header {
    display: block;
  }

  .page-header h2 {
    margin-top: 2rem;
    font-size: clamp(3.7rem, 17vw, 6.4rem);
  }

  .page-header > p:last-of-type {
    margin-top: 2rem;
  }

  .project-header .external-link {
    display: inline-block;
    margin-top: 2rem;
  }

  .project-sheet-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .project-sheet-list strong {
    font-size: clamp(1.7rem, 8vw, 2.7rem);
  }

  .project-sheet-state {
    grid-column: 2;
    text-align: left;
  }

  .project-art {
    padding: 1rem;
  }

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

  .content-grid section {
    min-height: 0;
  }

  .about-layout,
  .resume-layout {
    grid-template-columns: 1fr;
  }

  .about-lead {
    font-size: 1.4rem;
  }

  .resume-entry {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .contact-links a {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-links strong {
    font-size: clamp(2rem, 11vw, 4rem);
  }

  .reader-footer {
    padding-inline: 1.25rem;
  }

  .reader-spines {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 66px;
  }

  .reader-spines a {
    position: static;
    flex-direction: row;
    gap: 0.55rem;
    justify-content: center;
    width: auto;
    height: 66px;
    padding: 0.75rem 0.4rem;
    border-top: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
    writing-mode: initial;
  }

  .reader-spines a:first-child {
    border-left: 0;
  }

  .reader-spines a strong {
    font-size: 0.72rem;
  }

  .reader-spines a.is-active::after {
    width: 1.2rem;
    height: 2px;
    margin: 0;
  }
}

@media (max-width: 460px) {
  .identity-panel {
    min-height: 300px;
  }

  .identity-actions {
    gap: 0.8rem 1rem;
  }

  .reader-spines a {
    flex-direction: column;
    gap: 0.35rem;
  }

  .reader-spines a strong {
    font-size: 0.62rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
@media (max-width: 800px) {
  .fold-panel.is-open .fold-trigger {
    position: static;
    width: 100%;
  }
}

@media (min-width: 801px) {
  .project-header h2 {
    grid-column: 1 / -1;
    max-width: 12ch;
    font-size: clamp(3.8rem, 6vw, 6.4rem);
  }

  .project-header > p:last-of-type {
    grid-column: 1;
    max-width: 48rem;
  }

  .project-header .external-link {
    grid-column: 2;
    align-self: end;
    margin-top: 0;
  }
}

@media (max-width: 800px) {
  .project-header h2 {
    font-size: clamp(2.8rem, 12vw, 5rem);
    letter-spacing: -0.05em;
  }
}
