:root {
  color-scheme: light;
  --paper: #f1eadc;
  --paper-deep: #e4d7c2;
  --ink: #17130f;
  --muted: #625b51;
  --ash: #4f4941;
  --line: rgba(94, 78, 47, 0.22);
  --line-soft: rgba(94, 78, 47, 0.12);
  --black: #050403;
  --darkslide: #050403;
  --darkslide-depth: #0d0a07;
  --moss: #586151;
  --rust: #8a7342;
  --accent: #8a7342;
  --white: #fffdf8;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 84px;
  left: 30px;
  width: 28px;
  height: 1px;
  z-index: -1;
  background: rgba(94, 78, 47, 0.13);
  box-shadow:
    192px 0 0 rgba(94, 78, 47, 0.08),
    384px 0 0 rgba(94, 78, 47, 0.1),
    768px 0 0 rgba(94, 78, 47, 0.08),
    1056px 0 0 rgba(94, 78, 47, 0.1),
    96px 192px 0 rgba(94, 78, 47, 0.07),
    480px 192px 0 rgba(94, 78, 47, 0.09),
    864px 192px 0 rgba(94, 78, 47, 0.07),
    192px 384px 0 rgba(94, 78, 47, 0.08),
    576px 384px 0 rgba(94, 78, 47, 0.09),
    960px 384px 0 rgba(94, 78, 47, 0.07),
    96px 576px 0 rgba(94, 78, 47, 0.07),
    480px 576px 0 rgba(94, 78, 47, 0.09),
    864px 576px 0 rgba(94, 78, 47, 0.07);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 72px;
  left: 44px;
  width: 1px;
  height: 28px;
  z-index: -1;
  background: rgba(94, 78, 47, 0.12);
  box-shadow:
    192px 0 0 rgba(94, 78, 47, 0.07),
    384px 0 0 rgba(94, 78, 47, 0.09),
    768px 0 0 rgba(94, 78, 47, 0.07),
    1056px 0 0 rgba(94, 78, 47, 0.08),
    96px 192px 0 rgba(94, 78, 47, 0.06),
    480px 192px 0 rgba(94, 78, 47, 0.08),
    864px 192px 0 rgba(94, 78, 47, 0.06),
    192px 384px 0 rgba(94, 78, 47, 0.07),
    576px 384px 0 rgba(94, 78, 47, 0.08),
    960px 384px 0 rgba(94, 78, 47, 0.06),
    96px 576px 0 rgba(94, 78, 47, 0.06),
    480px 576px 0 rgba(94, 78, 47, 0.08),
    864px 576px 0 rgba(94, 78, 47, 0.06);
  pointer-events: none;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-deep);
}

figure {
  margin: 0;
  max-width: 100%;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--black);
  color: var(--white);
  transform: translateY(-140%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(241, 234, 220, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.brand {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.primary-nav a {
  border-bottom: 1px solid transparent;
  padding: 3px 0;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.section-pad {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) var(--pad);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.84fr);
  align-items: center;
  gap: clamp(34px, 6vw, 72px);
  min-height: clamp(680px, 86vh, 900px);
  padding-top: clamp(56px, 8vw, 92px);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 9.6vw, 9.15rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.7vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  font-weight: 400;
  line-height: 1.08;
}

.subtitle {
  max-width: 580px;
  margin-bottom: 12px;
  font-size: clamp(1.15rem, 2.1vw, 1.8rem);
  line-height: 1.24;
  overflow-wrap: break-word;
}

.intro {
  max-width: 560px;
  color: var(--ash);
  font-size: 1.02rem;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.text-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  color: var(--ink);
  font-weight: 700;
}

.text-link:hover {
  color: var(--rust);
}

.hero-media {
  justify-self: end;
  width: 100%;
  max-width: 610px;
}

.hero-media img {
  border: 1px solid rgba(94, 78, 47, 0.12);
  box-shadow: 0 18px 46px rgba(31, 24, 16, 0.13);
}

.hero-archive-caption {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  color: var(--ash);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: clamp(24px, 5vw, 74px);
  margin-bottom: clamp(32px, 6vw, 72px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.section-heading > *,
.project-intro > *,
.about-layout > * {
  min-width: 0;
}

.project-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 56px);
}

.project-entry a {
  display: grid;
  gap: 22px;
}

.project-entry figure {
  overflow: hidden;
  background: var(--paper-deep);
}

.project-entry img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 350ms ease;
}

.project-entry a:hover img {
  transform: scale(1.025);
}

.project-entry-copy {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.project-entry-copy p {
  margin-bottom: 6px;
  color: var(--muted);
}

.project-number {
  color: var(--accent) !important;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.project-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 6vw, 82px);
  margin-bottom: clamp(34px, 7vw, 78px);
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.project-text {
  max-width: 620px;
  color: var(--ash);
  font-size: 1rem;
}

.project-text p {
  margin-bottom: 18px;
}

.sequence-note {
  border-top: 1px solid rgba(138, 115, 66, 0.38);
  padding-top: 16px;
  color: var(--white);
}

.discreet-note {
  display: inline-block;
  margin-top: 8px;
  border-left: 4px solid var(--black);
  padding: 10px 0 10px 16px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.artwork-grid,
.returns-grid,
.doc-grid,
.material-grid {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
}

.wishes-installation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.3fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(18px, 3vw, 32px) 0;
}

.wishes-installation.is-object-open {
  grid-template-columns: minmax(0, 0.84fr) minmax(390px, 0.92fr) 46px;
  gap: clamp(40px, 4.8vw, 56px);
}

.wishes-installation .nine-grid {
  grid-column: 1;
}

.wishes-installation .object-view {
  grid-column: 2;
}

.wishes-installation .object-view[hidden] {
  display: none;
}

.wishes-installation .wish-index {
  grid-column: 2;
}

.wishes-installation.is-object-open .wish-index {
  grid-column: 3;
}

.nine-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(10px, 1.5vw, 18px);
  padding: clamp(10px, 1.4vw, 16px);
  border: 1px solid var(--line-soft);
  background: rgba(255, 253, 248, 0.18);
}

.nine-grid img,
.returns-grid img {
  box-shadow: 0 10px 34px rgba(23, 21, 18, 0.08);
}

.object-trigger {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.object-trigger img {
  transition: box-shadow 220ms ease, outline-color 220ms ease, outline-offset 220ms ease;
}

.object-trigger:hover img,
.object-trigger.is-selected img {
  outline: 1px solid rgba(138, 115, 66, 0.9);
  outline-offset: 6px;
}

.darkslide-tile img {
  background: var(--darkslide);
  box-shadow: 0 12px 44px rgba(5, 4, 3, 0.16);
}

.wish-index {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: var(--ash);
  font-size: 0.88rem;
  line-height: 1.34;
  list-style: none;
}

.wish-index li {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 8px;
}

.wish-index span {
  display: inline-block;
  min-width: 2.1rem;
  color: var(--accent);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.wishes-installation.is-object-open .wish-index {
  position: sticky;
  top: 98px;
  gap: 12px;
  align-self: start;
  font-size: 0;
  line-height: 1;
}

.wishes-installation.is-object-open .wish-index li {
  border-bottom: 0;
  padding-bottom: 0;
}

.wishes-installation.is-object-open .wish-index span {
  display: grid;
  width: 42px;
  min-width: 0;
  height: 32px;
  place-items: center;
  border-left: 1px solid rgba(138, 115, 66, 0.46);
  color: var(--accent);
  font-size: 0.72rem;
}

.object-view {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0 26px;
  color: var(--ash);
}

.object-view-wishes {
  min-width: 0;
}

.dark-section .object-view {
  border-top-color: rgba(138, 115, 66, 0.42);
  border-bottom-color: rgba(255, 253, 248, 0.12);
  color: rgba(255, 253, 248, 0.78);
}

.object-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.object-label,
.object-number,
.side-controls p {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.object-close,
.side-controls button {
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 2px 0 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.object-close {
  border-bottom-color: currentColor;
  color: var(--muted);
}

.dark-section .object-close {
  color: rgba(255, 253, 248, 0.64);
}

.object-meta h3 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  line-height: 1.12;
}

.object-year,
.object-medium {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.42;
}

.object-medium {
  margin-bottom: 26px;
}

.dark-section .object-year,
.dark-section .object-medium {
  color: rgba(255, 253, 248, 0.56);
}

.object-image {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
}

.object-image:disabled {
  cursor: default;
}

.object-image-inner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5.18;
  transform-style: preserve-3d;
  transition: transform 430ms ease;
}

.object-image.is-verso .object-image-inner {
  transform: rotateY(180deg);
}

.object-side {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  backface-visibility: hidden;
}

.dark-section .object-side {
  border-color: rgba(255, 253, 248, 0.12);
}

.object-side img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255, 253, 248, 0.16);
  box-shadow: none;
}

.object-verso {
  background: rgba(255, 253, 248, 0.2);
  transform: rotateY(180deg);
}

.object-view.is-recto-only .object-verso,
.object-view.is-recto-only .side-controls {
  display: none;
}

.side-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-top: 20px;
}

.side-controls p {
  width: 100%;
  margin-bottom: 2px;
}

.side-controls button[aria-pressed="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.side-controls button[aria-pressed="false"] {
  color: var(--muted);
}

.dark-section .side-controls button[aria-pressed="false"] {
  color: rgba(255, 253, 248, 0.52);
}

.object-note {
  max-width: 38ch;
  margin-top: 28px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.dark-section .object-note {
  border-top-color: rgba(255, 253, 248, 0.12);
}

.object-note p:last-child {
  margin-bottom: 0;
  color: inherit;
  font-size: 0.96rem;
  line-height: 1.62;
}

.dark-section {
  max-width: none;
  background: var(--darkslide);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(138, 115, 66, 0.28);
}

.dark-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.dark-section .eyebrow,
.dark-section figcaption,
.dark-section .project-text {
  color: rgba(255, 253, 248, 0.74);
}

.dark-section .project-intro {
  border-top-color: rgba(255, 253, 248, 0.2);
}

.dark-section .discreet-note {
  border-left-color: var(--white);
  color: var(--white);
}

.returns-stage {
  display: grid;
  gap: 20px;
}

.returns-stage.is-object-open {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
  align-items: start;
  gap: clamp(24px, 4vw, 46px);
}

.returns-stage.is-object-open .returns-grid {
  grid-column: 1;
}

.returns-stage .object-view {
  grid-column: 2;
}

.returns-stage .object-view[hidden] {
  display: none;
}

.returns-stage.is-object-open .restart-sequence {
  grid-column: 1 / -1;
}

.object-view-returns {
  padding: 18px 0 22px;
}

.object-view-returns .object-view-head {
  margin-bottom: 18px;
}

.object-view-returns .object-meta h3 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 1.5vw, 1.55rem);
}

.object-view-returns .object-medium {
  margin-bottom: 20px;
}

.object-view-returns .object-image-inner {
  aspect-ratio: 4 / 5.2;
}

.object-view-returns .object-note {
  max-width: 35ch;
  margin-top: 22px;
}

.returns-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.return-item {
  min-width: 0;
}

.return-card {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  perspective: 1100px;
}

.return-card[disabled] {
  cursor: default;
}

.return-card.is-revealed {
  cursor: pointer;
}

.return-card[disabled]:not(.is-revealed) {
  opacity: 0.62;
}

.return-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 7px;
}

.return-card.is-selected .card-inner {
  outline: 1px solid rgba(138, 115, 66, 0.85);
  outline-offset: 6px;
}

.card-inner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5.4;
  transform-style: preserve-3d;
  transition: transform 440ms ease;
}

.return-card.is-revealed .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backface-visibility: hidden;
}

.card-back {
  flex-direction: column;
  gap: 11px;
  border: 1px solid rgba(138, 115, 66, 0.36);
  background: var(--darkslide-depth);
  box-shadow:
    inset 0 0 0 1px rgba(255, 253, 248, 0.035),
    0 18px 48px rgba(0, 0, 0, 0.22);
  color: rgba(255, 253, 248, 0.78);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(0.66rem, 0.82vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.card-back span:nth-child(2) {
  color: var(--accent);
  font-size: clamp(0.86rem, 1vw, 1.05rem);
  letter-spacing: 0.11em;
}

.card-front {
  border: 1px solid rgba(255, 253, 248, 0.12);
  background: #0b0907;
  transform: rotateY(180deg);
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.return-caption {
  margin: 11px 0 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 220ms ease;
}

.return-item.is-revealed .return-caption {
  opacity: 1;
}

.return-caption span {
  display: block;
  color: rgba(255, 253, 248, 0.56);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.restart-sequence {
  justify-self: start;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 3px 0;
  background: transparent;
  color: rgba(255, 253, 248, 0.76);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.doc-grid {
  grid-template-columns: 1.3fr 0.9fr;
  align-items: start;
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(18px, 3vw, 28px);
}

.doc-grid img {
  border: 1px solid rgba(23, 21, 18, 0.08);
}

.material-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(18px, 3vw, 28px);
}

.material-grid figure:nth-child(4) {
  align-self: start;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(28px, 6vw, 86px);
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.about-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
}

.about-copy p {
  margin-bottom: 22px;
}

.document-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.document-link small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.document-link:hover {
  color: var(--rust);
}

.contact-panel {
  display: grid;
  gap: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 6vw, 62px) 0;
}

.contact-panel h2 {
  max-width: 760px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.contact-links a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  font-weight: 700;
}

.contact-links span {
  color: var(--muted);
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--pad);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .primary-nav {
    justify-content: flex-start;
    width: 100%;
    font-size: 0.84rem;
  }

  .hero,
  .section-heading,
  .project-intro,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    gap: 30px;
    padding-top: 48px;
  }

  .hero-media {
    justify-self: start;
    max-width: 620px;
  }

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

  .wishes-installation {
    grid-template-columns: 1fr;
  }

  .wishes-installation.is-object-open {
    grid-template-columns: 1fr;
    gap: clamp(22px, 6vw, 34px);
  }

  .wishes-installation .nine-grid,
  .wishes-installation .object-view,
  .wishes-installation .wish-index,
  .returns-stage .object-view,
  .returns-stage.is-object-open .returns-grid,
  .returns-stage.is-object-open .restart-sequence {
    grid-column: 1;
  }

  .wishes-installation .nine-grid {
    order: 1;
  }

  .wishes-installation .object-view {
    order: 2;
  }

  .wishes-installation .wish-index {
    order: 3;
  }

  .wishes-installation.is-object-open .wish-index {
    display: none;
  }

  .wishes-installation .object-view[hidden] {
    display: none;
  }

  .returns-stage.is-object-open {
    grid-template-columns: 1fr;
  }

  .doc-grid,
  .material-grid,
  .document-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section-pad {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-top: 56px;
    padding-bottom: 62px;
  }

  .primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    font-size: 0.82rem;
  }

  .primary-nav a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .hero-copy,
  .hero-media,
  .subtitle,
  .intro {
    width: calc(100vw - 40px);
    min-width: 0;
    max-width: calc(100vw - 40px);
  }

  .subtitle span,
  .intro span {
    display: block;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 26px;
  }

  .hero > * {
    min-width: 0;
  }

  h1 {
    max-width: calc(100vw - 40px);
    overflow-wrap: break-word;
  }

  .project-pair {
    grid-template-columns: 1fr;
  }

  .nine-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .returns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .object-view {
    padding-top: 22px;
  }

  .object-view-head {
    align-items: flex-start;
  }

  .object-image-inner {
    aspect-ratio: 4 / 5.35;
  }

  h1 {
    font-size: clamp(3rem, 13.8vw, 3.75rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-media {
    max-width: calc(100vw - 40px);
  }

  .hero-archive-caption {
    font-size: 0.66rem;
  }

  .card-inner {
    aspect-ratio: 4 / 5.7;
  }

  .card-back {
    gap: 8px;
    padding: 12px;
    font-size: 0.59rem;
    letter-spacing: 0.1em;
  }

  .card-back span:nth-child(2) {
    font-size: 0.72rem;
  }

  .return-caption {
    font-size: 0.8rem;
  }

  .wish-index {
    font-size: 0.82rem;
  }
}

@media (max-width: 700px) {
  .nav-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 18px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    color: var(--ink);
    font-size: 0.94rem;
  }

  .site-header.is-menu-open .primary-nav {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    border-bottom: 1px solid rgba(23, 21, 18, 0.1);
    padding: 10px 0;
  }

  .primary-nav a:hover,
  .primary-nav a.is-active {
    border-bottom-color: rgba(23, 21, 18, 0.35);
  }
}

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

  .card-inner,
  .return-caption {
    transition: none !important;
  }
}
