:root {
  --bg: #111313;
  --ink: #f2f0e8;
  --muted: #a6a39a;
  --line: rgba(242, 240, 232, 0.16);
  --soft: rgba(242, 240, 232, 0.06);
  --green: #5bdf4f;
  --amber: #d8a642;
  --blue: #87aacf;
  --red: #ee3b3b;
  --max: 68rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 18% 28%, rgba(242, 240, 232, 0.04) 0 1px, transparent 1px 0.82rem);
  opacity: 0.64;
  mask-image: radial-gradient(circle at 18% 28%, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2) 70%, transparent 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: rgba(17, 19, 19, 0.94);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(17rem, 1fr) auto auto;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: start;
  width: min(var(--max), calc(100vw - clamp(2rem, 8vw, 9rem)));
  margin: 0 auto;
  padding: clamp(0.9rem, 1.8vw, 1.45rem) 0;
}

.brand {
  display: inline-block;
  width: max-content;
}

.brand-first,
.brand-last {
  display: block;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.86;
  font-size: clamp(1.45rem, 2.35vw, 2.65rem);
}

.brand-first {
  color: var(--green);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1vw, 0.95rem);
}

.brand-role {
  color: var(--muted);
  font-size: clamp(0.66rem, 0.72vw, 0.78rem);
  font-weight: 700;
  line-height: 1.08;
  white-space: nowrap;
}

.main-nav,
.socials {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding-top: 0.6rem;
  color: #d8d5cc;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
}

.main-nav a,
.socials a,
.site-footer a,
.meta-grid a,
.contact-note a {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(var(--green), var(--green));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color 180ms ease, background-size 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.socials a:hover,
.site-footer a:hover,
.meta-grid a:hover,
.contact-note a:hover {
  color: var(--green);
  background-size: 100% 1px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  transform: translateY(-0.16rem);
}

.socials {
  gap: 1rem;
  font-weight: 750;
}

main {
  width: min(var(--max), calc(100vw - clamp(2rem, 8vw, 9rem)));
  margin: 0 auto;
}

.panel {
  display: grid;
  grid-template-columns: minmax(10rem, 0.6fr) minmax(0, 1.8fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  min-height: 48vh;
  padding: clamp(3.25rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.hero {
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
  min-height: auto;
  border-top: 0;
  padding-top: clamp(2.25rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-statement {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  width: min(100%, var(--max));
  padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.kicker,
.section-label p,
.work-index,
.work-kind,
.meta-grid dt,
.contact-form small {
  color: var(--muted);
  font-size: clamp(0.78rem, 0.85vw, 0.92rem);
  line-height: 1.2;
}

.hero h1 {
  position: relative;
  --glitch-x: 50%;
  --glitch-y: 50%;
  --glitch-size: 0%;
  max-width: 15.5ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.7rem, 5.8vw, 6.5rem);
  font-weight: 850;
  line-height: 0.94;
  letter-spacing: 0;
}

.quote-title span {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(1.5deg);
  animation: quoteReveal 720ms cubic-bezier(0.2, 0.8, 0.18, 1) forwards;
  animation-delay: calc(var(--i) * 55ms);
}

.quote-title .quote-line {
  display: block;
  width: max-content;
  max-width: 100%;
}

.quote-title .quote-line::before,
.quote-title .quote-line::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  opacity: 0;
  clip-path: inset(0 0 0 0);
  pointer-events: none;
  will-change: clip-path, transform, opacity;
}

.quote-title .quote-line::before {
  color: var(--green);
  text-shadow:
    0.04em 0 rgba(91, 223, 79, 0.72),
    -0.03em 0 rgba(242, 240, 232, 0.4);
  transform: translate3d(-0.035em, 0, 0);
}

.quote-title .quote-line::after {
  color: var(--ink);
  text-shadow:
    -0.035em 0 var(--green),
    0.045em 0 rgba(242, 240, 232, 0.5);
  transform: translate3d(0.03em, 0, 0);
}

.quote-title .quote-line:hover {
  text-shadow:
    0 0 0 var(--ink),
    0 0.015em 0 rgba(91, 223, 79, 0.16),
    0 -0.015em 0 rgba(242, 240, 232, 0.12);
}

.quote-title:hover .quote-line::before,
.quote-title:hover .quote-line::after {
  opacity: 0.88;
  animation: horizontalGlitch 620ms steps(2, end) infinite;
}

.quote-title:hover .quote-line::after {
  opacity: 0.68;
  animation-delay: 42ms;
}

@keyframes quoteReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes horizontalGlitch {
  0%,
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
    filter: none;
  }
  8% {
    clip-path: inset(0 0 84% 0);
    transform: translate3d(-0.07em, -0.01em, 0);
    filter: drop-shadow(0.035em 0 var(--green));
  }
  19% {
    clip-path: inset(17% 0 66% 0);
    transform: translate3d(0.055em, 0.006em, 0);
  }
  34% {
    clip-path: inset(34% 0 48% 0);
    transform: translate3d(-0.082em, 0.003em, 0);
    filter: drop-shadow(-0.03em 0 rgba(242, 240, 232, 0.6));
  }
  52% {
    clip-path: inset(54% 0 31% 0);
    transform: translate3d(0.074em, -0.004em, 0);
  }
  71% {
    clip-path: inset(72% 0 12% 0);
    transform: translate3d(-0.06em, 0.008em, 0);
    filter: drop-shadow(0.04em 0 var(--green));
  }
  86% {
    clip-path: inset(42% 0 42% 0);
    transform: translate3d(0.045em, -0.006em, 0);
  }
}

.hero h1::selection,
.brand-first::selection,
.work-title::selection {
  background: var(--green);
  color: #081008;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(100%, var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-grid div {
  padding: 0.95rem 1rem;
  background: transparent;
  border-right: 1px solid rgba(242, 240, 232, 0.08);
}

.meta-grid div:last-child {
  border-right: 0;
}

.meta-grid dt {
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  font-weight: 800;
}

.meta-grid dd {
  margin: 0;
  color: #ece9df;
  font-weight: 650;
  font-size: clamp(0.94rem, 1.1vw, 1.05rem);
}

.section-label {
  position: sticky;
  top: 9rem;
  align-self: start;
}

.section-label h2 {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 3.8vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.section-label h2::before,
.section-label h2::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  opacity: 0;
  pointer-events: none;
  will-change: clip-path, transform, opacity;
}

.section-label h2::before {
  color: var(--green);
  text-shadow:
    0.04em 0 rgba(91, 223, 79, 0.72),
    -0.03em 0 rgba(242, 240, 232, 0.38);
  transform: translate3d(-0.035em, 0, 0);
}

.section-label h2::after {
  color: var(--ink);
  text-shadow:
    -0.035em 0 var(--green),
    0.045em 0 rgba(242, 240, 232, 0.5);
  transform: translate3d(0.03em, 0, 0);
}

.section-label h2:hover::before,
.section-label h2:hover::after {
  opacity: 0.86;
  animation: horizontalGlitch 620ms steps(2, end) infinite;
}

.section-label h2:hover::after {
  opacity: 0.64;
  animation-delay: 42ms;
}

.section-label h2:hover {
  text-shadow:
    0 0 0 var(--ink),
    0 0.015em 0 rgba(91, 223, 79, 0.16),
    0 -0.015em 0 rgba(242, 240, 232, 0.12);
}

.work-list {
  --row-height: clamp(4.35rem, 6.1vw, 6rem);
  border-top: 1px solid var(--line);
  max-height: calc(var(--row-height) * 3 + 1px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-color: rgba(242, 240, 232, 0.26) transparent;
  scrollbar-width: thin;
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 1rem), transparent 100%);
}

.work-list::-webkit-scrollbar {
  width: 0.22rem;
}

.work-list::-webkit-scrollbar-track {
  background: transparent;
}

.work-list::-webkit-scrollbar-thumb {
  background: rgba(242, 240, 232, 0.26);
  border-radius: 999px;
}

.work-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1.4fr) minmax(10rem, 0.7fr);
  gap: clamp(1rem, 2vw, 2.5rem);
  align-items: center;
  min-height: var(--row-height);
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  scroll-snap-align: start;
  transition: color 180ms ease, padding-left 180ms ease, background 180ms ease;
  cursor: pointer;
}

.work-row:hover {
  padding-left: clamp(0.8rem, 1.4vw, 1.4rem);
  background: linear-gradient(90deg, rgba(91, 223, 79, 0.08), transparent 48%);
  color: var(--green);
}

.work-title {
  display: inline-block;
  overflow-wrap: anywhere;
  font-size: clamp(1.65rem, 3.8vw, 4.6rem);
  font-weight: 830;
  line-height: 0.95;
  letter-spacing: 0;
}

.work-kind {
  justify-self: end;
  color: #c4c0b5;
  text-align: right;
}

.project-detail[hidden] {
  display: none;
}

body.project-mode main > section:not(#project-detail) {
  display: none;
}

body.project-mode .site-footer,
body.project-mode .back-to-top {
  display: none;
}

body.project-mode .project-detail.panel {
  border-top: 0;
  min-height: calc(100vh - 6rem);
}

.project-detail.panel {
  grid-template-columns: minmax(12rem, 0.55fr) minmax(0, 1.85fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.project-detail .section-label {
  position: sticky;
  top: 9rem;
  width: auto;
  margin: 0;
}

.project-detail .section-label h2 {
  max-width: 9ch;
}

.project-detail.is-spartel .section-label h2 {
  margin-bottom: 1rem;
}

.project-detail.is-spartel #project-description {
  max-width: 24rem;
}

.project-content {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.75rem);
  justify-items: stretch;
  width: 100%;
  margin: 0;
}

#project-description {
  max-width: 24rem;
  margin: clamp(1rem, 2vw, 1.4rem) 0 0;
  color: #d7d3c8;
  font-size: clamp(0.88rem, 0.98vw, 1rem);
  line-height: 1.5;
  white-space: pre-line;
}

.project-gallery {
  display: grid;
  width: 100%;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  justify-items: center;
}

.project-landscape {
  position: relative;
  display: grid;
  width: min(100%, 74rem);
  aspect-ratio: 16 / 9;
  min-height: clamp(14rem, 36vw, 40rem);
  overflow: hidden;
  background: #202221;
  border: 1px solid var(--line);
}

.project-landscape::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(242, 240, 232, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(242, 240, 232, 0.08) 1px, transparent 1px);
  background-size: 3.2rem 3.2rem;
  opacity: 0.36;
}

.project-landscape.has-image {
  display: block;
  aspect-ratio: auto;
  min-height: auto;
  background: #090a0a;
}

.project-landscape.has-image::before {
  display: none;
}

.project-landscape.has-image img {
  display: block;
  width: 100%;
  height: auto;
}

.project-landscape strong {
  z-index: 1;
  align-self: center;
  justify-self: center;
  max-width: 72%;
  color: var(--green);
  font-size: clamp(2.5rem, 5.5vw, 5.8rem);
  line-height: 0.95;
  text-align: center;
}

.project-landscape.warm {
  background:
    radial-gradient(circle at 24% 22%, rgba(216, 166, 66, 0.5), transparent 18rem),
    linear-gradient(135deg, #2f211d, #171817);
}

.project-landscape.cool {
  background:
    radial-gradient(circle at 76% 24%, rgba(135, 170, 207, 0.46), transparent 17rem),
    linear-gradient(135deg, #192126, #111313);
}

.project-landscape.paper {
  background:
    linear-gradient(135deg, #e7dfcf, #a79c8b);
}

.project-landscape.paper strong {
  color: #111313;
}

.project-landscape.red {
  background: var(--red);
}

.project-landscape.red strong {
  color: var(--ink);
}

.project-landscape.photo {
  background:
    radial-gradient(circle at 30% 35%, rgba(242, 240, 232, 0.84) 0 7%, transparent 7.4%),
    radial-gradient(circle at 66% 48%, rgba(91, 223, 79, 0.72) 0 12%, transparent 12.4%),
    radial-gradient(circle at 48% 70%, rgba(238, 59, 59, 0.68) 0 10%, transparent 10.4%),
    linear-gradient(135deg, #b8d7be, #294731);
}

.project-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.previous-project,
.next-project {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.45rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.previous-project:hover,
.next-project:hover {
  color: var(--green);
  border-color: var(--green);
}

.previous-project:hover {
  transform: translateX(-0.25rem);
}

.next-project:hover {
  transform: translateX(0.25rem);
}

.about-copy p,
.contact-note p {
  color: #d7d3c8;
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  line-height: 1.65;
}

.about-copy {
  max-width: var(--max);
}

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

.button-link,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-link:hover,
.contact-form button:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  background: var(--green);
}

.contact-layout {
  display: block;
  max-width: 30rem;
}

.contact-note p {
  margin-top: 0;
  margin-bottom: 0;
  color: #d7d3c8;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
}

.contact-note a {
  color: var(--green);
}

.contact-section.panel {
  min-height: 34vh;
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 4.25rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form span {
  color: #ddd9cf;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(242, 240, 232, 0.26);
  background: rgba(242, 240, 232, 0.96);
  color: #151716;
  padding: 0.9rem 1rem;
  outline: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(91, 223, 79, 0.18);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: max-content;
  cursor: pointer;
}

.resume-modal[hidden] {
  display: none !important;
}

.resume-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: 1.25rem;
  background: rgba(17, 19, 19, 0.18);
  backdrop-filter: blur(2px);
  transform: none;
}

.resume-modal:not([hidden]) {
  display: flex !important;
}

.resume-modal-panel {
  position: relative;
  width: min(100%, 27rem);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid rgba(91, 223, 79, 0.48);
  background:
    linear-gradient(rgba(91, 223, 79, 0.16), rgba(91, 223, 79, 0.1)),
    rgba(17, 19, 19, 0.82);
  box-shadow:
    0 1.4rem 4rem rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(242, 240, 232, 0.05) inset;
  backdrop-filter: blur(18px);
  transform: none;
}

.resume-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border: 1px solid rgba(91, 223, 79, 0.42);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.resume-modal-close:hover,
.resume-modal-close:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: 0;
}

.resume-modal-kicker,
.resume-modal-copy,
.resume-form span,
.resume-error {
  color: rgba(242, 240, 232, 0.76);
}

.resume-modal-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--green);
}

.resume-modal h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.resume-modal-copy {
  margin: 0.9rem 0 1.3rem;
}

.resume-form {
  display: grid;
  gap: 0.9rem;
}

.resume-form label {
  display: grid;
  gap: 0.45rem;
}

.resume-password {
  width: 100%;
  border: 1px solid rgba(242, 240, 232, 0.26);
  background: rgba(242, 240, 232, 0.96);
  color: #151716;
  padding: 0.9rem 1rem;
  outline: 0;
}

.resume-password:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(91, 223, 79, 0.18);
}

.resume-error {
  margin: 0;
  color: #ff8078;
  font-size: 0.9rem;
}

.resume-form button {
  justify-self: start;
  min-height: 3.25rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  font-weight: 800;
}

.resume-form button:hover,
.resume-form button:focus-visible {
  border-color: var(--green);
  background: var(--green);
  outline: 0;
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 2.8vw, 2.25rem);
  bottom: clamp(1rem, 2.8vw, 2.25rem);
  z-index: 30;
  display: grid;
  place-items: center;
  width: clamp(3.1rem, 4vw, 4rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(rgba(17, 19, 19, 0.78), rgba(17, 19, 19, 0.78)),
    radial-gradient(circle at 50% 20%, rgba(91, 223, 79, 0.22), transparent 56%);
  color: var(--ink);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.back-to-top span {
  display: block;
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  font-weight: 850;
  line-height: 1;
  transform: translateY(-0.05em);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-0.25rem);
  outline: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--max), calc(100vw - clamp(2rem, 8vw, 9rem)));
  margin: 0 auto;
  padding: 2rem 0 clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.site-footer p {
  margin: 0;
}

@media (max-width: 1050px) {
  .site-header-inner {
    position: relative;
    grid-template-columns: 1fr;
  }

  .main-nav {
    flex-wrap: wrap;
    padding-top: 0;
  }

  .socials {
    position: absolute;
    top: 1rem;
    right: 0;
  }

  .panel,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-label {
    position: static;
  }

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

@media (max-width: 720px) {
  main,
  .site-footer {
    width: min(100% - 2rem, var(--max));
  }

  .site-header {
    padding: 0;
  }

  .site-header-inner {
    width: min(100% - 2rem, var(--max));
    padding: 1rem 0;
  }

  .brand-first,
  .brand-last {
    font-size: clamp(1.65rem, 8vw, 2.7rem);
  }

  .brand-row {
    align-items: flex-end;
  }

  .brand-role {
    font-size: 0.75rem;
  }

  .socials {
    position: static;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-statement {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 10.6vw, 3.9rem);
  }

  .panel {
    min-height: auto;
    padding: 3.25rem 0;
  }

  body.project-mode .site-header {
    position: sticky;
  }

  body.project-mode .project-detail.panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    min-height: auto;
    padding-top: 1.75rem;
  }

  .project-detail .section-label {
    display: grid;
    gap: 0.65rem;
    width: 100%;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
  }

  .project-detail .section-label p {
    margin: 0;
  }

  .project-detail .section-label h2 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(2.8rem, 15vw, 4.8rem);
    line-height: 0.9;
    overflow-wrap: anywhere;
  }

  #project-description {
    max-width: 32rem;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .project-content {
    gap: 1.35rem;
    justify-items: center;
  }

  .project-gallery {
    width: 100%;
    gap: 1.25rem;
    justify-items: center;
  }

  .meta-grid,
  .field-pair {
    grid-template-columns: 1fr;
  }

  .project-landscape {
    width: 100%;
    min-height: 12rem;
    border-color: rgba(242, 240, 232, 0.18);
  }

  .project-landscape.has-image {
    width: min(100%, 42rem);
    margin-inline: auto;
  }

  .project-landscape.has-image img {
    width: 100%;
    margin-inline: auto;
  }

  .project-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: space-between;
    gap: 0.75rem;
  }

  .previous-project,
  .next-project {
    width: auto;
    max-width: 100%;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.62rem 0.72rem;
    font-size: 0.78rem;
    margin-top: 0.2rem;
  }

  .work-row {
    grid-template-columns: 2.3rem 1fr;
    min-height: 4.4rem;
  }

  .work-kind {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .work-title {
    font-size: clamp(1.8rem, 9.2vw, 3.4rem);
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 3rem;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .quote-title span {
    opacity: 1;
    transform: none;
  }

  .quote-title:hover::before,
  .quote-title:hover::after {
    animation: none;
    opacity: 0;
  }
}
