:root {
  color-scheme: dark;
  --background: #050b07;
  --background-deep: #020503;
  --surface: rgba(12, 22, 15, 0.72);
  --surface-solid: #0b140e;
  --surface-soft: rgba(168, 222, 109, 0.045);
  --text: #eef4ed;
  --text-soft: #c2cdc1;
  --muted: #839085;
  --green: #a8de6d;
  --green-bright: #c7ff91;
  --green-deep: #466f32;
  --line: rgba(168, 222, 109, 0.22);
  --line-neutral: rgba(238, 244, 237, 0.12);
  --rail-width: 276px;
  --page-width: 1440px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background-deep);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(110deg, rgba(4, 10, 6, 0.97), rgba(7, 16, 10, 0.92) 52%, rgba(2, 6, 3, 0.99)),
    radial-gradient(circle at 72% 8%, rgba(91, 142, 59, 0.12), transparent 40%);
}

::selection {
  background: rgba(168, 222, 109, 0.28);
  color: #fff;
}

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

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

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border: 1px solid var(--green);
  background: var(--background);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 0.78rem;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.ambient-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
}

.ambient-glow-one {
  top: -20%;
  right: -8%;
  width: 58vw;
  height: 58vw;
  background: rgba(114, 171, 73, 0.22);
  animation: ambient-drift 26s ease-in-out infinite alternate;
}

.ambient-glow-two {
  bottom: -28%;
  left: 16%;
  width: 50vw;
  height: 50vw;
  background: rgba(74, 120, 48, 0.16);
  animation: ambient-drift 34s ease-in-out infinite alternate-reverse;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(168, 222, 109, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 222, 109, 0.22) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
}

.site-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--rail-width);
  flex-direction: column;
  padding: 42px 34px 34px;
  border-right: 1px solid var(--line-neutral);
  background:
    linear-gradient(180deg, rgba(12, 23, 15, 0.89), rgba(4, 9, 6, 0.94)),
    radial-gradient(circle at 40% 2%, rgba(168, 222, 109, 0.1), transparent 36%);
  backdrop-filter: blur(26px);
}

.site-rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 22%;
  background: linear-gradient(to bottom, var(--green), transparent);
  opacity: 0.58;
}

.brand {
  display: grid;
  gap: 8px;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.brand-role {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-transform: uppercase;
}

.rail-nav {
  display: grid;
  gap: 2px;
  margin-top: 76px;
}

.rail-nav a {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 0 8px;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.rail-nav a span {
  color: rgba(168, 222, 109, 0.54);
  font-size: 0.62rem;
}

.rail-nav a:hover,
.rail-nav a[aria-current="page"] {
  border-left-color: var(--green);
  background: rgba(168, 222, 109, 0.055);
  color: var(--green-bright);
}

.rail-status {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 16px 0;
  border-top: 1px solid var(--line-neutral);
  border-bottom: 1px solid var(--line-neutral);
  font-family: var(--mono);
}

.rail-status span {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rail-status strong {
  color: var(--green-bright);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rail-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 22px;
}

.rail-links a {
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.rail-links a:hover {
  color: var(--green-bright);
}

.dossier {
  width: min(calc(100% - var(--rail-width)), var(--page-width));
  margin-left: var(--rail-width);
  padding: 0 clamp(28px, 5vw, 82px);
}

.dossier-section {
  position: relative;
  min-height: 82vh;
  padding: clamp(88px, 10vw, 142px) 0;
  border-bottom: 1px solid var(--line-neutral);
  scroll-margin-top: 0;
}

.section-heading {
  position: relative;
  z-index: 2;
  max-width: 830px;
}

.section-kicker {
  display: flex;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-kicker span {
  color: var(--green-bright);
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -0.064em;
  line-height: 0.9;
}

.section-introduction {
  max-width: 620px;
  margin: 32px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.project-section {
  padding-top: clamp(68px, 8vw, 112px);
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(36px, 6vw, 110px);
  min-height: 580px;
}

.project-heading h1 {
  max-width: 760px;
}

.lens-figure {
  position: relative;
  display: grid;
  width: min(100%, 440px);
  justify-self: center;
  margin: 0;
}

.lens-aura {
  position: absolute;
  inset: 9% -16% -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 222, 109, 0.22), transparent 66%);
  filter: blur(54px);
  opacity: 0.62;
}

.refractive-lens {
  --focus-x: 29%;
  --focus-y: 22%;
  --focus-glow: 0.34;
  --drift-x: -3%;
  --drift-y: 2%;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(236, 248, 232, 0.46);
  border-radius: 50%;
  background:
    radial-gradient(circle at var(--focus-x) var(--focus-y), rgba(255, 255, 255, 0.72) 0 0.8%, rgba(255, 255, 255, 0.16) 3.8%, transparent 14%),
    radial-gradient(ellipse at 31% 26%, rgba(255, 255, 255, 0.14), transparent 30%),
    radial-gradient(circle at 66% 67%, rgba(168, 222, 109, var(--focus-glow)), transparent 35%),
    radial-gradient(circle at 44% 42%, rgba(35, 52, 39, 0.76), rgba(8, 15, 10, 0.93) 61%, rgba(1, 4, 2, 0.99) 100%);
  box-shadow:
    inset -86px -96px 132px rgba(0, 0, 0, 0.8),
    inset 44px 32px 86px rgba(255, 255, 255, 0.1),
    inset 9px 10px 18px rgba(255, 255, 255, 0.14),
    inset -13px -16px 30px rgba(0, 0, 0, 0.72),
    0 0 0 8px rgba(255, 255, 255, 0.012),
    0 48px 112px rgba(90, 151, 54, 0.2);
  transition: background 420ms var(--ease), box-shadow 420ms var(--ease);
}

.refractive-lens::before,
.refractive-lens::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.refractive-lens::before {
  inset: 2.5%;
  z-index: 8;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.54) 0 0.8%, transparent 2.5%),
    linear-gradient(119deg, transparent 17%, rgba(255, 255, 255, 0.16) 28%, transparent 39%),
    radial-gradient(circle at 72% 72%, rgba(255, 255, 255, 0.09) 0 0.7%, transparent 2.2%);
  mix-blend-mode: screen;
}

.refractive-lens::after {
  inset: 1.2%;
  z-index: 9;
  box-shadow:
    inset 13px 15px 19px rgba(255, 255, 255, 0.13),
    inset -24px -28px 46px rgba(0, 0, 0, 0.68);
}

.lens-logo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .82;
  transform: translate(var(--drift-x), var(--drift-y)) scale(1.08);
  transition: transform 700ms var(--ease);
}

.lens-depth,
.lens-caustic,
.lens-glint,
.lens-inclusion {
  position: absolute;
  display: block;
  pointer-events: none;
}

.lens-depth {
  z-index: 2;
  border-radius: 48% 52% 59% 41% / 52% 40% 60% 48%;
  filter: blur(5px);
  mix-blend-mode: screen;
  transition: transform 520ms var(--ease), opacity 520ms var(--ease);
}

.lens-depth-one {
  top: 10%;
  right: 4%;
  width: 52%;
  height: 72%;
  opacity: 0.22;
  background: linear-gradient(151deg, rgba(255, 255, 255, 0.32), transparent 36%, rgba(168, 222, 109, 0.42));
  transform: translate(var(--drift-x), var(--drift-y)) skewY(7deg);
}

.lens-depth-two {
  bottom: 4%;
  left: 10%;
  width: 74%;
  height: 32%;
  opacity: 0.28;
  background: radial-gradient(ellipse, rgba(176, 232, 119, 0.48), transparent 70%);
  transform: translate(calc(0% - var(--drift-x)), calc(0% - var(--drift-y)));
}

.lens-caustic {
  inset: -10%;
  z-index: 3;
  opacity: 0.33;
  background:
    radial-gradient(ellipse at 20% 34%, transparent 0 17%, rgba(181, 238, 121, 0.6) 22%, transparent 31%),
    radial-gradient(ellipse at 72% 63%, transparent 0 12%, rgba(109, 169, 70, 0.68) 18%, transparent 30%),
    radial-gradient(ellipse at 42% 84%, rgba(196, 255, 143, 0.34), transparent 24%);
  filter: blur(10px);
  mix-blend-mode: screen;
  animation: caustic-drift 20s ease-in-out infinite alternate;
}

.lens-glint {
  top: 17%;
  left: 19%;
  z-index: 7;
  width: 26%;
  height: 10%;
  border-top: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  filter: blur(0.2px);
  transform: rotate(-39deg);
}

.lens-inclusion {
  z-index: 6;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 27%, rgba(255, 255, 255, 0.23), transparent 45%);
  box-shadow: inset -4px -5px 10px rgba(0, 0, 0, 0.42);
}

.lens-inclusion-one {
  top: 31%;
  right: 18%;
  width: 13px;
  height: 13px;
}

.lens-inclusion-two {
  bottom: 24%;
  left: 21%;
  width: 7px;
  height: 7px;
  opacity: 0.72;
}

.refractive-lens.is-refracting {
  animation: lens-pulse 520ms var(--ease);
}

.lens-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line-neutral);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lens-caption strong {
  color: var(--text-soft);
  font-weight: 400;
  text-align: right;
}

.lens-caption b {
  color: var(--green-bright);
  font-weight: 400;
}

.project-workbench {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  margin-top: clamp(70px, 9vw, 132px);
  border: 1px solid var(--line-neutral);
  background: rgba(4, 10, 6, 0.58);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

.project-index-panel {
  min-width: 0;
  border-right: 1px solid var(--line-neutral);
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  min-height: 126px;
  padding: 28px 30px;
  border-bottom: 1px solid var(--line-neutral);
}

.panel-heading span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.panel-heading > strong {
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
}

.project-list {
  display: grid;
}

.project-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 19px 30px;
  border-bottom: 1px solid var(--line-neutral);
  color: var(--text-soft);
  transition: background 180ms ease, color 180ms ease, padding-left 240ms var(--ease);
}

.project-row:last-child {
  border-bottom: 0;
}

.project-row:hover,
.project-row[aria-current="true"] {
  padding-left: 36px;
  background: rgba(168, 222, 109, 0.06);
  color: var(--green-bright);
}

.project-row-number {
  color: rgba(168, 222, 109, 0.62);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.project-row-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.project-row-copy strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-row-copy small,
.project-row-discipline {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.project-row-discipline {
  grid-column: 2;
  color: rgba(168, 222, 109, 0.66);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-preview {
  position: sticky;
  top: 24px;
  min-width: 0;
  min-height: 720px;
  padding: clamp(32px, 5vw, 68px);
  background:
    radial-gradient(circle at 88% 7%, rgba(168, 222, 109, 0.1), transparent 28%),
    linear-gradient(150deg, rgba(12, 23, 15, 0.76), rgba(5, 10, 7, 0.82));
}

.preview-kicker {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-kicker b {
  color: var(--green-bright);
  font-weight: 400;
}

.project-preview h2 {
  max-width: 760px;
  margin: 38px 0 20px;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.preview-question {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.65;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.preview-tags span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 50px;
  border-top: 1px solid var(--line-neutral);
  border-left: 1px solid var(--line-neutral);
}

.preview-grid section {
  min-height: 176px;
  padding: 22px;
  border-right: 1px solid var(--line-neutral);
  border-bottom: 1px solid var(--line-neutral);
}

.preview-grid section > span {
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-grid p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.preview-links,
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

.preview-links a,
.about-actions a {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(168, 222, 109, 0.46);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease;
}

.preview-links a:hover,
.about-actions a:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
}

.archive-section,
.about-section {
  display: grid;
  align-content: center;
}

.archive-section .section-heading,
.about-section .section-heading {
  max-width: 970px;
}

.archive-content {
  margin-top: clamp(54px, 8vw, 100px);
}

.empty-archive {
  position: relative;
  display: grid;
  min-height: 270px;
  align-content: end;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid var(--line-neutral);
  background:
    linear-gradient(135deg, rgba(168, 222, 109, 0.055), transparent 44%),
    rgba(6, 13, 8, 0.58);
}

.empty-archive::before {
  content: "";
  position: absolute;
  top: -38%;
  right: -7%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(168, 222, 109, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(168, 222, 109, 0.055);
}

.empty-archive > * {
  position: relative;
  z-index: 1;
}

.empty-archive span {
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-archive h3 {
  margin: 12px 0 8px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.empty-archive p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-neutral);
}

.archive-item {
  padding: 20px;
  background: var(--background);
}

.archive-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.archive-item h3 {
  margin: 18px 0 6px;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
}

.archive-item p {
  margin: 0;
  color: var(--muted);
}

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

.writing-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-neutral);
}

.writing-item time,
.writing-item a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.writing-item h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
}

.writing-item p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: clamp(54px, 9vw, 140px);
  margin-top: clamp(70px, 9vw, 120px);
}

.about-copy {
  max-width: 720px;
}

.about-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.about-copy .about-lead {
  margin-top: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.about-record {
  border-top: 1px solid var(--line-neutral);
}

.about-record section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-neutral);
}

.about-record span {
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-record h3 {
  margin: 8px 0 3px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
}

.about-record p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 40px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a:hover {
  color: var(--green-bright);
}

.mobile-dock {
  display: none;
}

.noscript-message {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: 420px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--text);
  font-size: 0.82rem;
}

@keyframes ambient-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(0.95); }
  to { transform: translate3d(5%, 4%, 0) scale(1.06); }
}

@keyframes caustic-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(0.98); }
  to { transform: translate3d(4%, 3%, 0) scale(1.04); }
}

@keyframes lens-pulse {
  0%, 100% { transform: scale(1); }
  42% { transform: scale(0.986); }
}

@media (max-width: 1180px) {
  :root {
    --rail-width: 244px;
  }

  .site-rail {
    padding-inline: 28px;
  }

  .project-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
    gap: 42px;
  }

  .project-workbench {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  }

  .project-row {
    padding-inline: 22px;
  }

  .project-row:hover,
  .project-row[aria-current="true"] {
    padding-left: 28px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 82px;
  }

  body {
    padding-bottom: 62px;
  }

  .site-rail {
    position: sticky;
    inset: 0 0 auto;
    display: grid;
    width: 100%;
    min-height: 76px;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 15px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line-neutral);
  }

  .site-rail::after,
  .rail-nav,
  .rail-status {
    display: none;
  }

  .brand {
    gap: 2px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .brand-role {
    font-size: 0.54rem;
    line-height: 1.25;
  }

  .rail-links {
    display: flex;
    margin: 0;
  }

  .rail-links a {
    font-size: 0.6rem;
  }

  .rail-links a:nth-of-type(n + 3) {
    display: none;
  }

  .dossier {
    width: 100%;
    margin-left: 0;
    padding: 0 22px;
  }

  .dossier-section {
    min-height: auto;
    padding: 90px 0;
  }

  .project-section {
    padding-top: 60px;
  }

  .project-hero {
    grid-template-columns: 1fr;
    gap: 58px;
    min-height: auto;
  }

  .lens-figure {
    width: min(72vw, 380px);
  }

  .project-workbench {
    grid-template-columns: 1fr;
    margin-top: 90px;
  }

  .project-index-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line-neutral);
  }

  .project-preview {
    position: static;
    min-height: 0;
    scroll-margin-top: 98px;
  }

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

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 58px;
    border-top: 1px solid var(--line-neutral);
    background: rgba(4, 9, 6, 0.94);
    backdrop-filter: blur(22px);
  }

  .mobile-dock a {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mobile-dock a[aria-current="page"] {
    background: rgba(168, 222, 109, 0.08);
    color: var(--green-bright);
  }
}

@media (max-width: 620px) {
  .section-heading h1,
  .section-heading h2 {
    font-size: clamp(3.1rem, 17vw, 5.3rem);
  }

  .brand-role {
    display: none;
  }

  .lens-figure {
    width: min(84vw, 340px);
  }

  .lens-caption {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .lens-caption strong {
    text-align: left;
  }

  .panel-heading {
    min-height: 104px;
    padding: 22px 18px;
  }

  .project-row {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 18px;
  }

  .project-row:hover,
  .project-row[aria-current="true"] {
    padding-left: 22px;
  }

  .project-row-discipline {
    grid-column: 2;
  }

  .project-preview {
    padding: 34px 20px;
  }

  .preview-kicker {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .project-preview h2 {
    font-size: clamp(2.7rem, 14vw, 4.7rem);
  }

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

  .preview-grid section {
    min-height: auto;
  }

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

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

  .writing-item p {
    grid-column: 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 30px;
  }
}

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