:root {
  --bg: #FFFFFF;
  --frame-bg: #F4F2EC;
  --text: #0A0A0A;
  --accent: #FF2D00;
  --accent-light: #FF8A75;
  --muted: #999999;
  --rule: #E2E2E2;
  --hover-bg: #F2F2F2;

  --font-display: 'Syne', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --nav-h: 72px;
  --pad-x: 48px;

  --frame-top: 45px;
  --frame-top-open: 77px;
  --frame-side: 8px;
  --frame-bottom: 8px;
  --frame-radius: 14px;

  --panel-h: calc(100vh - var(--frame-top-open));

  --shot-max-w: 1180px;
  --shot-pad-y: clamp(40px, 7vh, 84px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sharp: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--frame-bg);
  color: var(--text);
  font-family: var(--font-mono);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.sections-container {
  position: fixed;
  top: var(--frame-top);
  left: var(--frame-side);
  right: var(--frame-side);
  bottom: var(--frame-bottom);
  overflow: hidden;
  z-index: 1;
  background: var(--bg);
  border: 1px solid rgba(10, 10, 10, 0.10);
  border-radius: var(--frame-radius);
  box-shadow: 0 24px 60px -24px rgba(10, 10, 10, 0.22);
  transition: transform 1.7s var(--ease-out);
  transform: translateY(0);
}

.sections-container.project-open {
  transform: translateY(calc(var(--frame-top-open) - var(--frame-top)));
}

.sections-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 50;
  box-shadow:
    inset 0 4px 0 -1px rgba(255, 255, 255, 0.9),
    inset 4px 0 0 -1px rgba(255, 255, 255, 0.5),
    inset 0 -4px 0 -1px rgba(10, 10, 10, 0.13),
    inset -4px 0 0 -1px rgba(10, 10, 10, 0.08),
    inset 0 0 0 1px rgba(10, 10, 10, 0.10);
}

.page-section {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  visibility: hidden;
  z-index: 0;
  background: var(--bg);

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-section::-webkit-scrollbar {
  display: none;
}

.page-section.active {
  visibility: visible;
  z-index: 1;
}

.page-section.push-out {
  visibility: visible;
  z-index: 1;
}

.page-section.push-in {
  visibility: visible;
  z-index: 3;
}

.hero-enter-label {
  font-family: var(--font-mono);
  font-size: 1.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  margin-right: -0.2em;
}

#archive {
  height: 100%;
  overflow: hidden;
}

#archive .work-layout {
  height: 100%;
  align-items: stretch;
}

#archive .work-left {

  padding: calc(var(--nav-h) + 48px) var(--pad-x) calc(var(--nav-h) + 48px);
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#archive .work-left::-webkit-scrollbar {
  display: none;
}

#archive .work-list {
  flex: none;
  justify-content: flex-start;
  overflow: visible;
  padding-bottom: 80px;
}

#archive .work-images {

  height: calc(100% - var(--nav-h));
  margin: var(--nav-h) 0 0;
  position: relative;
}

.transition-red {
  position: absolute;
  inset: 0;
  background: var(--accent);
  z-index: 2;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.p6 {
  background-color: #D3D4C8;
}

.p7 {
  background-color: #CDD4D1;
}

nav#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--frame-top);
  padding: 0 calc(var(--frame-side) + var(--pad-x));
  display: flex;
  align-items: center;

  justify-content: space-between;
  background: transparent;
  z-index: 200;
}

.nav-lead {
  height: var(--frame-top);
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a:not(.nav-monogram),
.project-foot-link {
  position: relative;
  z-index: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.18s var(--ease-out);
}

.nav-links a:not(.nav-monogram)::before,
.project-foot-link::before {
  content: '';
  position: absolute;
  inset: -7px -12px;
  z-index: -1;
  background: var(--accent);
  border-radius: 7px;
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.34, 1.6, 0.5, 1),
    opacity 0.16s var(--ease-out);
}

.nav-links a:not(.nav-monogram):hover,
.nav-links a:not(.nav-monogram).active,
.project-foot-link:hover,
.project-foot-link.active {
  color: var(--bg);
}

.nav-links a:not(.nav-monogram):hover::before,
.nav-links a:not(.nav-monogram).active::before,
.project-foot-link:hover::before,
.project-foot-link.active::before {
  transform: scale(1);
  opacity: 1;
}

.nav-links a:not(.nav-monogram):not(.active):hover::before,
.nav-monogram:not(.active):hover::before,
.project-foot-link:not(.active):hover::before {
  background: var(--accent-light);
}

.nav-monogram {
  position: relative;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  display: inline-flex;
  white-space: nowrap;
  transform-origin: center;
  transition: color 0.25s var(--ease-out), transform 0.85s var(--ease-sharp);
}

.nav-monogram::before {
  content: '';
  position: absolute;
  inset: -7px -12px;
  z-index: -1;
  background: var(--accent);
  border-radius: 7px;
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.34, 1.6, 0.5, 1),
    opacity 0.16s var(--ease-out);
}

.nav-monogram:hover,
.nav-monogram.active {
  color: var(--bg);
}

.nav-monogram:hover::before,
.nav-monogram.active::before {
  transform: scale(1);
  opacity: 1;
}

.nav-monogram .ml {
  display: inline-block;
  overflow: hidden;
  max-width: var(--w, 1.4em);
  opacity: 1;
  transform: translateX(0);

  transition: max-width 0.42s var(--ease-out),
              transform 0.34s var(--ease-out) 0.45s,
              opacity 0.3s var(--ease-out) 0.45s;
}

.nav-monogram .ml[data-keep] {
  max-width: none;
}

.nav-monogram .ml-space {
  --w: 0.34em;
}

nav#nav.nav-collapsed .nav-monogram .ml:not([data-keep]) {
  opacity: 0;
  max-width: 0;
  transform: translateX(-1em);

  transition: transform 0.32s var(--ease-out),
              opacity 0.28s var(--ease-out),
              max-width 0.42s var(--ease-out) 0.38s;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#hero {
  height: 100%;
  overflow: hidden;
  user-select: none;
}

#dot-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 768px) {
  .rain-canvas { display: none !important; }
}

.hero-featured {
  position: absolute;
  top: calc(var(--frame-top) + 20px);
  bottom: 40px;
  right: 32px;
  width: 38%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1;
}

.hero-feature {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--bg);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translateY(28px);
  transition: flex-grow 1.1s var(--ease-out), opacity 0.4s var(--ease-out),
    transform 0.45s var(--ease-out);
}

#hero.featured-ready .hero-feature { opacity: 1; transform: translateY(0); }
.hero-feature:nth-child(1) { transition-delay: 0.25s; }
.hero-feature:nth-child(2) { transition-delay: 0.38s; }
.hero-feature:nth-child(3) { transition-delay: 0.51s; }

.hero-featured:has(.hero-feature:hover) .hero-feature { flex-grow: 0.6; }
.hero-featured:has(.hero-feature:hover) .hero-feature:hover { flex-grow: 2.4; }

.hero-feature-media {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.hero-feature-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 60vh;
  background-size: cover;
  background-position: center;
}

.hero-feature[data-project="hybrid-construction"] .hero-feature-img {
  top: 50%;
  transform: translateY(-50%);
}

.hero-feature[data-project="l-acoustics"] .hero-feature-img {
  top: 30%;
  transform: translateY(-30%);
}

.hero-feature-info {
  flex: 0 0 auto;
  background: var(--frame-bg);
  padding: 9px 16px 10px;
}

.hero-feature-name {
  display: block;
  text-align: left;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-feature-blurb-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 1.1s var(--ease-out);
}

.hero-feature:hover .hero-feature-blurb-wrap {
  grid-template-rows: 1fr;
}

.hero-feature-blurb {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding-top: 7px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: var(--pad-x);
  transform: translateY(-50%);
  width: 58%;
  z-index: 2;
  pointer-events: none;
}

.hero-name {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(5rem, 11.5vw, 14rem);
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-left: -0.04em;
  transition-delay: 0.15s;
}

.hero-title-text { display: inline-block; }

.hero-title-text.is-project {
  font-family: var(--font-condensed);
  font-size: clamp(3.2rem, 8.5vw, 12rem);
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: var(--accent);
  white-space: nowrap;
  margin-left: 0;
}

.hero-role {
  margin-top: clamp(24px, 2.5vw, 48px);
  min-height: 1.1em;
}

.hero-role-text {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-intro {
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.9vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--text);
  margin-left: -0.02em;
  max-width: 20em;
}

.hero-role-accent {
  font-weight: 700;
  color: var(--accent);
}

.hero-strong {
  font-weight: 700;
  color: var(--text);
}

.hero-tags {
  position: absolute;
  bottom: 40px;
  left: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 12px;

  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition-delay: 0.45s;
  z-index: 3;
}

#hero .hero-tags {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-tags-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-tags-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-tags .sep {
  color: var(--accent);
}

.hero-tags a {
  position: relative;
  z-index: 0;
  color: inherit;
  transition: color 0.18s var(--ease-out);
}

.hero-tags a::before {
  content: '';
  position: absolute;
  inset: -4px -8px;
  z-index: -1;
  background: var(--accent);
  border-radius: 7px;
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.34, 1.6, 0.5, 1),
    opacity 0.16s var(--ease-out);
}

.hero-tags a:hover {
  color: var(--bg);
}

.hero-tags a:hover::before {
  transform: scale(1);
  opacity: 1;
}

.hero-email {
  cursor: pointer;
}

.hero-email.copied {
  color: var(--bg);
}

.hero-email.copied::before {
  transform: scale(1);
  opacity: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition-delay: 0.55s;
  z-index: 1;
}

.scroll-indicator.reveal {
  transform: translateX(-50%) translateY(20px);
}

.scroll-indicator.reveal.visible {
  transform: translateX(-50%) translateY(0);
}

.scroll-line {
  width: 2px;
  height: 96px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  animation: scroll-drip 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-drip {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.work-layout {
  display: grid;
  grid-template-columns: 1fr 30vw;
  height: 100%;
}

.work-left {
  padding: calc(var(--nav-h) + 24px) var(--pad-x) 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  padding-right: 32px;
  flex-shrink: 0;
}

.work-list {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.work-item {
  position: relative;
  cursor: pointer;
}

.work-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 9px 0;
}

.work-name {
  font-family: var(--font-condensed);
  font-weight: 700;

  font-size: clamp(2.8rem, 7.4vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: #D5D5D5;
  white-space: nowrap;
  display: block;

  margin-left: -0.045em;
  transition: color 0.3s var(--ease-out);
}

.work-item.active .work-name {
  color: var(--accent);
}

.work-item:not(.active):hover .work-name {
  color: #FF8A75;
  transition: color 0.2s var(--ease-out);
}

.work-type {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D5D5D5;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.3s var(--ease-out);
}

.work-item.active .work-type {
  color: var(--text);
}

.work-images {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.work-img-group {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  pointer-events: none;
}

.work-img-group.active {
  opacity: 1;
}

.work-img {
  flex: 1;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.work-img.s1 {
  margin-left: 18%;
}

.work-img.s2 {
  margin-left: 0;
}

.work-img.s3 {
  margin-left: 10%;
}

.p1 {
  background-color: #D4CFC8;
}

.p2 {
  background-color: #D8D8D8;
}

.p3 {
  background-color: #CDD1D6;
}

.p4 {
  background-color: #D1CEC9;
}

.p5 {
  background-color: #D6D3CE;
}

#about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px var(--pad-x);
  min-height: 100%;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 40px;
}

.about-bio p {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 24px;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-bio.reveal {
  transition-delay: 0.1s;
}

.about-disciplines.reveal {
  transition-delay: 0.2s;
}

.disciplines-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.disciplines-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.disciplines-list .dash {
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}

.about-education {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edu-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.edu-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.legal-line {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--muted);
  max-width: 720px;
}

#project-page .project-blurb-col {
  display: flex;
  flex-direction: column;
  grid-column: auto;
}

#project-page .project-credits {
  margin: clamp(16px, 3vh, 30px) 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
}
#project-page .project-credits:empty { display: none; }

#project-page .legal-line {
  margin-top: clamp(16px, 3vh, 32px);
}

footer {
  padding: 20px var(--pad-x);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

@media (max-width: 768px) {
  :root {
    --pad-x: 22px;
  }

  #dot-grid, #hero-preview { display: none !important; }
  .scroll-indicator { display: none; }

  nav#nav {
    height: var(--nav-h);
    padding: 0 22px;
    justify-content: space-between;
    gap: 0;
    background: var(--bg);
  }
  .nav-lead {
    position: static;
    flex: 1;
    display: flex;
    align-items: center;
  }
  .nav-links {
    flex: 1;
    gap: 0;
    justify-content: space-between;
  }
  .nav-links a:not(.nav-monogram) {
    font-size: 0.74rem;
  }

  .nav-monogram,
  .nav-links a:not(.nav-monogram) {
    color: var(--text);
  }

  .nav-monogram .ml:not([data-keep]) {
    max-width: 0 !important;
    opacity: 0 !important;
    transform: none !important;
  }
  .nav-monogram .ml-space { max-width: 0 !important; }

  #hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(var(--nav-h) + 26px) var(--pad-x) 48px;
  }
  .hero-content {
    position: static;
    transform: none;
    width: 100%;
    order: 1;
    margin-bottom: 26px;
    pointer-events: auto;
  }
  .hero-name { font-size: clamp(2.8rem, 15vw, 5rem); }
  .hero-role { margin-top: 12px; min-height: 0; }
  .hero-role-text { font-size: 0.72rem; }
  .hero-intro { font-size: clamp(1.5rem, 5.6vw, 2.2rem); line-height: 1.2; }

  .hero-featured {
    position: static;
    order: 2;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hero-feature {
    flex: none;
    height: 132px;
    border-radius: 3px;
    background-color: var(--hover-bg);
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0s !important;
    box-shadow: none !important;
  }

  .hero-feature-info {
    display: none;
  }

  .hero-feature-img {
    inset: 0;
    transform: none !important;
  }

  .hero-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0) 75%);
    pointer-events: none;
  }

  .hero-feature::after {
    content: attr(data-name);
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    color: var(--accent);
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
    pointer-events: none;
  }
  .hero-tags {
    position: static;
    order: 3;
    left: auto;
    bottom: auto;
    margin-top: 24px;
  }

  #archive { padding: 0; }
  .work-layout { grid-template-columns: 1fr; }
  #archive .work-images, .work-images { display: none; }
  #archive .work-left {
    padding: calc(var(--nav-h) + 24px) var(--pad-x) calc(var(--nav-h) + 24px);
  }
  .work-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .work-name {
    font-size: clamp(2rem, 9vw, 3.6rem) !important;
  }
  .work-item.active .work-name {
    font-size: clamp(2.3rem, 10vw, 4.2rem) !important;
  }
  .work-type { font-size: 0.66rem; }

  #about { padding: calc(var(--nav-h) + 40px) var(--pad-x) 80px; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  footer {
    padding: 20px 24px;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

.project-foot {
  position: fixed;
  left: var(--frame-side);
  right: var(--frame-side);
  top: var(--frame-top);
  height: calc(var(--frame-top-open) - var(--frame-top));
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;

  z-index: 0;
  pointer-events: none;
}

.project-foot.active {
  pointer-events: auto;
}

.project-foot.foot-back-only .project-foot-list {
  display: none;
}

.project-foot-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 1 48vw;
  gap: 16px;
}

.project-foot-link {
  display: inline-flex;
  align-items: center;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--text);
  white-space: nowrap;
  text-transform: uppercase;
}

.project-foot-list .project-foot-link {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

#project-page {
  background: var(--bg);

  scroll-snap-type: none;
}

#project-page .project-snap-anchor {
  height: 0;
  margin: 0;
  padding: 0;
  scroll-snap-align: start;
  pointer-events: none;
}

#project-page .project-meta-row,
#project-page .project-shot {
  scroll-snap-align: none;
  scroll-margin-top: 0;
}

#project-page .project-layout {

  display: block;
  padding: 0 var(--pad-x) 160px;
  box-sizing: border-box;
}

#project-page .project-text-col {

  position: fixed;
  top: 0;
  left: 0;
  width: clamp(340px, 40vw, 720px);
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;

  overflow: visible;

  padding: clamp(16px, 3vh, 28px) 0 clamp(16px, 3vh, 24px) var(--pad-x);
  z-index: 3;

  pointer-events: none;
}

#project-page .project-media-col {
  min-width: 0;
  width: 48vw;
  max-width: 48vw;

  margin-left: auto;

  padding-top: calc(clamp(16px, 3vh, 28px) + clamp(2.8rem, min(8.5vw, 13vh), 12rem) * 0.1);
}

#project-page .project-title-block {
  position: static;
  z-index: auto;
  margin: 0 0 0 -0.045em;
  pointer-events: none;
}

#project-page .project-title {
  display: block;
  margin: 0 0 0 -0.045em;
  font-family: var(--font-condensed);
  font-weight: 700;

  font-size: clamp(2.8rem, min(8.5vw, 13vh), 12rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--accent);
  white-space: nowrap;
  overflow: visible;
  pointer-events: none;
  transform-origin: top left;
  text-transform: none;
}

#project-page .project-title-sub {
  display: block;

  margin: clamp(14px, 3vh, 32px) 0 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  transform-origin: top left;
}

#project-page .project-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  margin: 0 0 24px 0;
  overflow: hidden;
  transform-origin: top left;
}

#project-page[data-project="raufwerk"] .project-hero {
  width: 100%;
  height: auto;
}

#project-page[data-project="raufwerk"] .project-title-block {
  top: auto;
  margin-top: 0;
}
#project-page[data-project="raufwerk"] .project-meta-row {
  padding-top: 0;
}
#project-page[data-project="raufwerk"] .project-blurb {
  font-size: clamp(0.8rem, 1.45vh, 0.9rem);
  line-height: 1.5;
}

#project-page[data-project="sears-catalog"] .project-blurb {
  font-size: clamp(0.76rem, 1.35vh, 0.9rem);
  line-height: 1.5;
}

#project-page .project-hero-img {
  display: block;
  width: 100%;
  height: auto;

  max-height: 80vh;
  object-fit: cover;
  object-position: center;
}

#project-page .project-meta-row {

  margin-top: clamp(40px, 8vh, 120px);
  min-height: 0;
  display: block;
  padding-top: 0;
}

#project-page .project-type {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

#project-page .project-blurb {
  font-family: var(--font-mono);

  font-size: clamp(0.85rem, 1.6vh, 1rem);
  line-height: 1.55;
  color: var(--text);

  max-width: 960px;
  margin: 0;
  white-space: pre-line;
}

#project-page .project-gallery {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

#project-page .reveal,
#project-page .reveal.visible {
  opacity: 1;
  transform: none;
  transition: none;
}

#project-page .project-shot {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  box-sizing: border-box;
}

#project-page .project-shot img,
#project-page .project-shot video {
  display: block;
  max-width: 100%;
  max-height: none;
  width: 100%;
  height: auto;
}

#project-page .project-shot--single img,
#project-page .project-shot--single video {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
}
#project-page .project-shot--single.project-shot--full img,
#project-page .project-shot--single.project-shot--full video {
  width: 100%;
  max-height: none;
}

#project-page .project-shot--group {
  display: grid;

  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 16px;
  padding: 0;
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
}

#project-page .project-shot--group img,
#project-page .project-shot--group video {
  max-width: 100%;
  max-height: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}

#project-page .project-shot--group.project-shot--fill {
  grid-template-rows: repeat(var(--rows, 1), 1fr);
  aspect-ratio: calc(var(--cols, 3) * var(--ar, 1) / var(--rows, 1));
}
#project-page .project-shot--group.project-shot--fill img,
#project-page .project-shot--group.project-shot--fill video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#project-page .project-shot--levels {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap, 8px);
  padding: 0;
  box-sizing: border-box;
}
#project-page .project-shot--levels .level {
  display: flex;
  gap: var(--gap, 8px);
  justify-content: center;
}

#project-page .project-shot--levels .level > * {
  flex: 0 0 calc((100% - (var(--cells, 6) - 1) * var(--gap, 8px)) / var(--cells, 6));
  aspect-ratio: 1;
  min-width: 0;
}
#project-page .project-shot--levels img,
#project-page .project-shot--levels video {
  object-fit: cover;
  display: block;
}

#project-page .project-shot--rect-pair {
  padding: 0;
}

#project-page .project-shot--rect-pair .rect-pair-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: auto;

  aspect-ratio: 2 / 1;
  gap: 0;
}

#project-page .project-shot--rect-pair img,
#project-page .project-shot--rect-pair video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#project-page .project-shot--rect-pair-contain img,
#project-page .project-shot--rect-pair-contain video {
  object-fit: contain;
}

#project-page .project-meta-row { position: relative; }
#project-page .project-blurb-col { position: relative; z-index: 2; }
#project-page .meta-feature {
  position: relative;
  margin: 28px 0 0;
  width: 56%;
  max-width: 340px;
  line-height: 0;
  pointer-events: none;
}

#project-page .meta-feature + .project-meta-row {
  margin-top: clamp(28px, 4.5vh, 60px);
}
#project-page .meta-feature img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}
#project-page .meta-feature .feature-label {
  position: absolute;
  z-index: 3;
  right: -22px;
  bottom: 24px;
  transform: rotate(-9deg);
  transform-origin: 100% 100%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg);
  padding: 7px 13px;
  white-space: nowrap;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

#project-page .project-shot--split {
  display: grid;
  grid-template-columns: repeat(var(--split-cols, 2), 1fr);
  gap: 32px;
  padding: 0;
}

#project-page .project-shot--split .project-shot__col {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), 1fr);
  grid-template-rows: auto;
  gap: 12px;
  align-items: center;
  justify-items: center;
  min-height: 0;
}

#project-page .project-shot--split img,
#project-page .project-shot--split video {
  max-width: 100%;
  max-height: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {

  .sections-container {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
  }
  .sections-container.project-open { transform: none; }
  .sections-container::after { display: none; }

  .project-foot {
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: 44px;
    padding: 0 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    z-index: 150;

    opacity: 0;
    transition: opacity 0.25s var(--ease-out);
  }
  .project-foot.active { opacity: 1; }
  .project-foot-list { gap: 14px; overflow-x: auto; }
  .project-foot-list .project-foot-link { font-size: 0.7rem; color: var(--text); }

  #project-page {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
  #project-page .project-snap-anchor,
  #project-page .project-meta-row,
  #project-page .project-shot {
    scroll-snap-align: none;
    scroll-margin-top: 0;
  }

  #project-page .project-layout {
    display: block;
    max-width: none;
    padding: 0 var(--pad-x) 80px;
  }
  #project-page .project-text-col {

    position: static;
    width: auto;
    height: auto;
    top: auto;
    left: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    pointer-events: auto;
  }
  #project-page .project-media-col {
    width: auto;
    max-width: none;
    margin-left: 0;
  }

  #project-page .project-title-block,
  #project-page[data-project="raufwerk"] .project-title-block {
    position: static;
    top: auto;
    margin: calc(var(--nav-h) + 42px + 24px) 0 0 0;
    padding: 0 var(--pad-x);
  }
  #project-page .project-title {
    font-size: clamp(2.6rem, 11vw, 4.6rem);
    white-space: normal;
  }
  #project-page .project-title-sub {
    margin: 14px 0 0 0;
    white-space: normal;
  }

  #project-page .project-hero,
  #project-page[data-project="raufwerk"] .project-hero {
    width: 100%;
    height: auto;
    margin: 20px 0 0 0;
  }
  #project-page .project-hero-img {
    width: 100%;
    max-height: none;
  }

  #project-page .project-meta-row,
  #project-page[data-project="raufwerk"] .project-meta-row {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    margin-top: 36px;
    padding-top: 0;
  }
  #project-page .project-blurb,
  #project-page[data-project="raufwerk"] .project-blurb {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  #project-page .meta-feature {
    position: relative;
    width: 70%;
    margin-top: 28px;
  }

  #project-page .project-gallery { gap: 28px; margin-top: 28px; }
  #project-page .project-shot {
    height: auto;
    min-height: 0;
    padding: 0;
  }
  #project-page .project-shot img,
  #project-page .project-shot video {
    max-width: 100%;
    max-height: none;
    width: 100%;
    height: auto;
  }
  #project-page .project-shot--group {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
    padding: 0;
  }
  #project-page .project-shot--group img,
  #project-page .project-shot--group video,
  #project-page .project-shot--group.project-shot--fill img,
  #project-page .project-shot--group.project-shot--fill video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  #project-page .project-shot--group.project-shot--fill {
    aspect-ratio: auto;
    grid-template-rows: none;
  }

  #project-page .project-shot--levels { padding: 0; }
  #project-page .project-shot--levels .level > * {
    flex-basis: calc((100% - (var(--cells, 6) - 1) * var(--gap, 8px)) / var(--cells, 6));
  }

  #project-page .project-shot--rect-pair .rect-pair-inner {
    grid-template-columns: 1fr !important;
    height: auto;
    aspect-ratio: auto !important;
  }
  #project-page .project-shot--rect-pair img,
  #project-page .project-shot--rect-pair video {
    height: auto;
    object-fit: contain;
  }
}

.page-project main {
  padding: calc(var(--nav-h) + 80px) var(--pad-x) 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.project-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 80px;
}

.project-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.project-description {
  max-width: 720px;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 100px;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--hover-bg);
}

.project-gallery .placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--hover-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-next {
  margin-top: 120px;
  padding-top: 60px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.project-next .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-next .next-link {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.project-next .next-link:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .page-project main {
    padding: calc(var(--nav-h) + 40px) 24px 80px;
  }

  .project-header {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }

  .project-description {
    margin-bottom: 60px;
  }

  .project-next {
    flex-direction: column;
    gap: 8px;
  }
}

.work-item-link {
  display: block;
  color: inherit;
  text-decoration: none;
