/* ==========================================================================
   FORYX.SPACE — Liquid Geometry
   Exhibition 01 · Pure HTML5 + CSS3
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. TOKENS
   -------------------------------------------------------------------------- */
:root {
  --clay: #F1EEE7;
  --graphite: #161B20;
  --moss: #344C45;
  --indigo: #6877A8;
  --apricot: #E58C62;
  --citron: #D8C45B;
  --eucalyptus: #91B5A3;
  --dust-rose: #D6A7A8;
  --text: #161B20;
  --text-light: #F5F1E9;
  --text-secondary: #707671;

  --font-display: "Fraunces", Georgia, serif;
  --font-secondary: "Syne", sans-serif;
  --font-ui: "Urbanist", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1.25rem);
  --space-md: clamp(1.25rem, 2.5vw, 2rem);
  --space-lg: clamp(2rem, 5vw, 4rem);
  --space-xl: clamp(3.5rem, 8vw, 7rem);
  --space-2xl: clamp(5rem, 12vw, 10rem);

  --pad-x: clamp(1.25rem, 5vw, 4.5rem);
  --max-w: 1400px;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   02. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--clay);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--apricot);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--pad-x);
  top: -100%;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--graphite);
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 0.75rem;
}

/* --------------------------------------------------------------------------
   03. TYPOGRAPHY
   -------------------------------------------------------------------------- */
.label-mono {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 0.6rem + 0.2vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.label-light {
  color: color-mix(in srgb, var(--text-light) 55%, transparent);
}

.display-hero {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.25rem, 2rem + 6vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
}

.display-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.display-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 1.25rem + 3.5vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.display-light {
  color: var(--text-light);
}

.display-exit {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.5rem, 1.5rem + 5vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-light);
  position: relative;
  z-index: 2;
}

.lede {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 28ch;
}

.section-head {
  margin-bottom: var(--space-lg);
  max-width: 28ch;
}

.section-head .label-mono {
  margin-bottom: var(--space-sm);
}

.section-head-offset {
  margin-left: clamp(0rem, 8vw, 6rem);
}

.section-head-light {
  max-width: 20ch;
}

/* --------------------------------------------------------------------------
   04. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--moss);
  color: var(--text-light);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--moss) 85%, var(--graphite));
}

.btn-ghost {
  background: transparent;
  color: var(--moss);
  border: 1px solid var(--moss);
}

.btn-ghost:hover {
  background: var(--moss);
  color: var(--text-light);
}

.btn-accent {
  background: var(--apricot);
  color: var(--graphite);
}

.btn-accent:hover {
  background: color-mix(in srgb, var(--apricot) 85%, var(--citron));
}

/* --------------------------------------------------------------------------
   05. NAVIGATION
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  background: color-mix(in srgb, var(--clay) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--graphite) 8%, transparent);
}

.nav-logo {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}

.nav-list {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.nav-list a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
}

.nav-list a:hover {
  color: var(--moss);
}

.nav-cta {
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  border-bottom: 1px solid var(--apricot);
  padding-bottom: 0.15rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-cta:hover {
  color: var(--apricot);
}

/* --------------------------------------------------------------------------
   06. ROOM SHELL
   -------------------------------------------------------------------------- */
.room {
  position: relative;
  padding: var(--space-2xl) var(--pad-x);
}

/* --------------------------------------------------------------------------
   07. THRESHOLD
   -------------------------------------------------------------------------- */
.room-threshold {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + var(--space-lg));
  padding-bottom: var(--space-xl);
  background:
    radial-gradient(ellipse 50% 40% at 85% 35%, color-mix(in srgb, var(--eucalyptus) 18%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, color-mix(in srgb, var(--dust-rose) 12%, transparent), transparent 65%),
    var(--clay);
}

.threshold-grid {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-lg);
  align-items: center;
}

.threshold-copy {
  max-width: 18ch;
  padding-top: var(--space-md);
}

.threshold-copy .label-mono {
  margin-bottom: var(--space-md);
  color: var(--moss);
}

.threshold-copy .lede {
  margin-top: var(--space-md);
}

.threshold-actions {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  animation: hint-float 3.5s var(--ease-soft) infinite;
}

.threshold-art {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: clamp(320px, 50vw, 560px);
}

/* Liquid geometric sculpture */
.sculpture {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
}

.shape {
  position: absolute;
  display: block;
}

.shape-moss-oval {
  width: 58%;
  height: 72%;
  top: 12%;
  left: 8%;
  background: var(--moss);
  border-radius: 58% 42% 48% 52% / 42% 55% 45% 58%;
  animation: morph-oval 14s var(--ease-soft) infinite alternate;
  box-shadow: 0 30px 60px color-mix(in srgb, var(--graphite) 12%, transparent);
}

.shape-indigo-ring {
  width: 48%;
  height: 48%;
  top: 28%;
  right: 4%;
  border: 14px solid var(--indigo);
  border-radius: 50%;
  animation: orbit-slow 22s linear infinite;
}

.shape-apricot-sphere {
  width: 28%;
  height: 28%;
  top: 8%;
  right: 18%;
  background: var(--apricot);
  border-radius: 50%;
  animation: float-a 9s var(--ease-soft) infinite alternate;
}

.shape-eucalyptus-curve {
  width: 42%;
  height: 34%;
  bottom: 10%;
  right: 12%;
  background: var(--eucalyptus);
  border-radius: 80% 20% 70% 30% / 30% 70% 30% 70%;
  animation: morph-curve 12s var(--ease-soft) infinite alternate;
}

.shape-citron-dot {
  width: 10%;
  height: 10%;
  top: 46%;
  left: 42%;
  background: var(--citron);
  border-radius: 50%;
  z-index: 2;
  animation: pulse-dot 5s var(--ease-soft) infinite;
}

.shape-graphite-orbit {
  width: 78%;
  height: 78%;
  top: 11%;
  left: 11%;
  border: 1px solid color-mix(in srgb, var(--graphite) 35%, transparent);
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  animation: orbit-tilt 18s var(--ease-soft) infinite alternate;
}

/* --------------------------------------------------------------------------
   08. MANIFESTO
   -------------------------------------------------------------------------- */
.room-manifesto {
  background: var(--clay);
  padding-block: var(--space-2xl);
}

.manifesto-layout {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  position: relative;
  min-height: 60vh;
  align-items: start;
  padding-left: clamp(0rem, 6vw, 5rem);
}

.manifesto-rail {
  width: 1px;
  align-self: stretch;
  min-height: 280px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--indigo) 15%,
    var(--moss) 70%,
    transparent
  );
  transform-origin: top;
  animation: line-grow 1.8s var(--ease) both;
}

.manifesto-content {
  max-width: 22ch;
  padding-top: var(--space-md);
}

.manifesto-content .label-mono {
  margin-bottom: var(--space-md);
}

.manifesto-body {
  margin-top: var(--space-md);
  max-width: 38ch;
  font-weight: 300;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.dust-rose-mark {
  position: absolute;
  bottom: 8%;
  right: 12%;
  width: clamp(48px, 6vw, 88px);
  height: clamp(48px, 6vw, 88px);
  background: var(--dust-rose);
  border-radius: 50%;
  animation: float-b 8s var(--ease-soft) infinite alternate;
}

/* --------------------------------------------------------------------------
   09. SHAPE STUDIES
   -------------------------------------------------------------------------- */
.room-studies {
  background:
    linear-gradient(180deg, var(--clay) 0%, color-mix(in srgb, var(--clay) 92%, var(--eucalyptus)) 100%);
}

.studies-list {
  width: min(100%, var(--max-w));
  margin: 0 auto;
}

.study-row {
  border-top: 1px solid color-mix(in srgb, var(--graphite) 14%, transparent);
  --study-accent: var(--eucalyptus);
}

.study-row:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--graphite) 14%, transparent);
}

.study-row[data-accent="eucalyptus"] { --study-accent: var(--eucalyptus); }
.study-row[data-accent="moss"] { --study-accent: var(--moss); }
.study-row[data-accent="apricot"] { --study-accent: var(--apricot); }
.study-row[data-accent="indigo"] { --study-accent: var(--indigo); }
.study-row[data-accent="citron"] { --study-accent: var(--citron); }

.study-link {
  display: grid;
  grid-template-columns: clamp(4rem, 10vw, 8rem) minmax(0, 1fr) clamp(80px, 12vw, 140px) auto;
  align-items: center;
  gap: var(--space-md);
  padding: clamp(1.5rem, 3vw, 2.75rem) 0;
  position: relative;
}

.study-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--study-accent);
  transition: width 0.55s var(--ease);
}

.study-row:hover .study-link::after,
.study-link:focus-visible::after {
  width: 100%;
}

.study-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: color-mix(in srgb, var(--text) 28%, transparent);
  transition: transform 0.5s var(--ease), color 0.5s var(--ease);
}

.study-title {
  display: block;
  font-family: var(--font-secondary);
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.study-desc {
  display: block;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 28ch;
}

.study-shape {
  width: 100%;
  aspect-ratio: 1.2;
  background: var(--study-accent);
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  transition: transform 0.6s var(--ease), border-radius 0.6s var(--ease), background 0.5s var(--ease);
}

.study-row[data-accent="moss"] .study-shape {
  border-radius: 18% 82% 30% 70% / 60% 30% 70% 40%;
}

.study-row[data-accent="apricot"] .study-shape {
  border-radius: 50%;
}

.study-row[data-accent="indigo"] .study-shape {
  border-radius: 70% 30% 40% 60% / 40% 60% 40% 60%;
  background: transparent;
  border: 8px solid var(--indigo);
}

.study-row[data-accent="citron"] .study-shape {
  border-radius: 12px;
  transform: rotate(12deg);
}

.study-arrow {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: transform 0.45s var(--ease), color 0.45s var(--ease);
}

.study-row:hover .study-num,
.study-link:focus-visible .study-num {
  transform: scale(1.08);
  color: var(--study-accent);
}

.study-row:hover .study-shape,
.study-link:focus-visible .study-shape {
  transform: translateX(12px) rotate(-6deg);
  border-radius: 55% 45% 48% 52% / 42% 58% 42% 58%;
}

.study-row[data-accent="citron"]:hover .study-shape,
.study-row[data-accent="citron"] .study-link:focus-visible .study-shape {
  transform: translateX(12px) rotate(-8deg);
}

.study-row:hover .study-arrow,
.study-link:focus-visible .study-arrow {
  transform: translateX(10px);
  color: var(--study-accent);
}

/* --------------------------------------------------------------------------
   10. MOVING GALLERY
   -------------------------------------------------------------------------- */
.room-gallery {
  background: color-mix(in srgb, var(--clay) 90%, var(--indigo));
}

.gallery-grid {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: clamp(0.85rem, 1.5vw, 1.35rem);
}

.gallery-cell {
  background: var(--clay);
  border: 1px solid color-mix(in srgb, var(--graphite) 10%, transparent);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.gallery-cell:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px color-mix(in srgb, var(--graphite) 8%, transparent);
}

.form-01 { grid-column: 1 / 8; grid-row: span 2; }
.form-02 { grid-column: 8 / 13; grid-row: span 3; }
.form-03 { grid-column: 1 / 5; }
.form-04 { grid-column: 5 / 8; grid-row: span 2; }
.form-05 { grid-column: 1 / 9; min-height: 280px; }
.form-06 { grid-column: 9 / 13; align-self: start; }

.gallery-visual {
  position: relative;
  flex: 1;
  min-height: 140px;
  overflow: hidden;
  background: color-mix(in srgb, var(--clay) 70%, white);
}

.gallery-meta {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-top: 1px solid color-mix(in srgb, var(--graphite) 8%, transparent);
}

.gallery-name {
  font-family: var(--font-secondary);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  font-weight: 600;
  margin: 0.35rem 0 0.25rem;
}

.gallery-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--indigo);
  margin-bottom: 0.5rem;
}

.gallery-desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
}

.gv-block {
  position: absolute;
  transition: transform 0.7s var(--ease);
}

.gallery-cell:hover .gv-block {
  transform: scale(1.06);
}

/* Form visuals */
.gv-arch {
  inset: 18% 10% 28% 10%;
  background: linear-gradient(135deg, var(--moss) 0%, color-mix(in srgb, var(--moss) 70%, var(--eucalyptus)) 100%);
  border-radius: 2px;
}

.gv-arch-bar {
  left: 10%;
  right: 35%;
  bottom: 18%;
  height: 8px;
  background: var(--apricot);
}

.gv-liquid {
  width: 55%;
  height: 78%;
  top: 10%;
  left: 22%;
  background: linear-gradient(180deg, var(--eucalyptus), var(--indigo));
  border-radius: 60% 40% 55% 45% / 35% 55% 45% 65%;
  animation: morph-liquid 10s var(--ease-soft) infinite alternate;
}

.gv-circle {
  width: 58%;
  aspect-ratio: 1;
  top: 16%;
  left: 21%;
  background: var(--dust-rose);
  border-radius: 50%;
}

.gv-circle-ring {
  width: 72%;
  aspect-ratio: 1;
  top: 9%;
  left: 14%;
  border: 2px solid var(--indigo);
  border-radius: 50%;
}

.gv-panel {
  inset: 8% 22% 8% 22%;
  background: var(--moss);
}

.gv-panel-line {
  top: 20%;
  bottom: 20%;
  left: 50%;
  width: 1px;
  background: var(--citron);
  transform: translateX(-50%);
}

.gv-field {
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, var(--citron) 0%, transparent 35%),
    radial-gradient(circle at 70% 60%, var(--eucalyptus) 0%, transparent 40%),
    var(--moss);
}

.gv-field-dot {
  width: 18px;
  height: 18px;
  top: 28%;
  right: 22%;
  background: var(--apricot);
  border-radius: 50%;
}

.gv-float {
  width: 46%;
  height: 46%;
  top: 22%;
  left: 18%;
  background: var(--indigo);
  border-radius: 40% 60% 55% 45%;
  animation: float-a 7s var(--ease-soft) infinite alternate;
}

.gv-float-mini {
  width: 22%;
  height: 22%;
  bottom: 18%;
  right: 18%;
  background: var(--apricot);
  border-radius: 50%;
  animation: float-b 6s var(--ease-soft) infinite alternate;
}

.form-01 .gallery-visual { min-height: 220px; }
.form-02 .gallery-visual { min-height: 320px; }
.form-05 .gallery-visual { min-height: 200px; }

/* --------------------------------------------------------------------------
   11. COORDINATES
   -------------------------------------------------------------------------- */
.room-coordinates {
  background: var(--graphite);
  overflow: hidden;
}

.coord-frame {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  position: relative;
  padding: var(--space-md) 0;
}

.coord-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  position: relative;
  z-index: 2;
}

.coord-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: var(--space-md);
  border-top: 1px solid color-mix(in srgb, var(--indigo) 55%, transparent);
  position: relative;
}

.coord-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 28%;
  height: 2px;
  background: var(--citron);
}

.coord-item:nth-child(2)::before { background: var(--apricot); width: 40%; }
.coord-item:nth-child(3)::before { background: var(--indigo); width: 55%; }
.coord-item:nth-child(4)::before { background: var(--eucalyptus); width: 22%; }

.coord-num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.5rem + 4vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text-light);
  letter-spacing: -0.03em;
}

.coord-label {
  font-family: var(--font-secondary);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--citron);
}

.coord-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--text-light) 40%, transparent);
}

.coord-blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}

.bp-line {
  position: absolute;
  background: color-mix(in srgb, var(--indigo) 40%, transparent);
}

.bp-h {
  top: 42%;
  left: 0;
  right: 0;
  height: 1px;
}

.bp-v {
  left: 62%;
  top: 10%;
  bottom: 10%;
  width: 1px;
}

.bp-mark {
  position: absolute;
  border-radius: 50%;
}

.bp-apricot {
  width: 10px;
  height: 10px;
  background: var(--apricot);
  top: 42%;
  left: 62%;
  transform: translate(-50%, -50%);
}

.bp-citron {
  width: 6px;
  height: 6px;
  background: var(--citron);
  top: 18%;
  right: 12%;
}

/* --------------------------------------------------------------------------
   12. MATERIAL / MOTION
   -------------------------------------------------------------------------- */
.room-material {
  background: var(--clay);
  padding-block: 0;
}

.material-split {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(90vh, 820px);
}

.material-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--pad-x) var(--space-xl) 0;
  max-width: 18ch;
}

.material-copy .label-mono {
  margin-bottom: var(--space-md);
}

.material-labels {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.material-labels li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.material-labels li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.material-labels li:nth-child(1)::before { background: var(--moss); }
.material-labels li:nth-child(2)::before { background: var(--apricot); }
.material-labels li:nth-child(3)::before { background: var(--indigo); }

.material-stage {
  position: relative;
  background: color-mix(in srgb, var(--graphite) 4%, var(--clay));
  border-left: 1px solid color-mix(in srgb, var(--graphite) 10%, transparent);
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 420px;
}

.morph-object {
  width: clamp(180px, 28vw, 320px);
  aspect-ratio: 0.78;
  background: linear-gradient(145deg, var(--moss), var(--indigo) 50%, var(--eucalyptus));
  border-radius: 60% 40% 50% 50% / 45% 55% 45% 55%;
  animation: morph-object 16s var(--ease-soft) infinite;
  box-shadow:
    0 40px 80px color-mix(in srgb, var(--graphite) 15%, transparent),
    inset -20px -20px 40px color-mix(in srgb, var(--graphite) 12%, transparent);
}

/* --------------------------------------------------------------------------
   13. FIELD NOTES
   -------------------------------------------------------------------------- */
.room-notes {
  background: var(--clay);
}

.notes-stack {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.note-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.note-b {
  grid-template-columns: 1fr 1.1fr;
}

.note-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--moss);
  transition: transform 0.6s var(--ease);
}

.note-row:hover .note-media {
  transform: scale(1.015);
}

.note-a .note-media {
  background:
    radial-gradient(ellipse at 30% 40%, var(--eucalyptus) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, var(--dust-rose) 0%, transparent 35%),
    linear-gradient(160deg, color-mix(in srgb, var(--clay) 40%, var(--moss)), var(--moss));
  border-radius: 48% 52% 40% 60% / 55% 40% 60% 45%;
  aspect-ratio: 5 / 4;
}

.note-b .note-media {
  background:
    linear-gradient(120deg, var(--indigo) 0%, color-mix(in srgb, var(--indigo) 60%, var(--graphite)) 100%);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.note-b .note-media::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  background: var(--apricot);
  border-radius: 50%;
  top: 22%;
  right: 18%;
}

.note-c .note-media {
  background:
    radial-gradient(circle at 60% 40%, var(--citron) 0%, transparent 28%),
    linear-gradient(200deg, var(--moss), color-mix(in srgb, var(--moss) 70%, var(--eucalyptus)));
  border-radius: 2px 60% 2px 40%;
}

.note-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.65rem 0 var(--space-sm);
  max-width: 16ch;
}

.note-desc {
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 38ch;
  margin-bottom: var(--space-md);
}

.note-foot {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.read-ind {
  color: var(--apricot);
  transition: transform 0.35s var(--ease);
  display: inline-block;
}

.note-row:hover .read-ind {
  transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   14. OBSERVATION / NUMBERS
   -------------------------------------------------------------------------- */
.room-observation {
  background: var(--moss);
}

.room-observation .section-head {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.obs-grid {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.obs-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: var(--space-md);
  border-top: 1px solid color-mix(in srgb, var(--indigo) 50%, transparent);
}

.obs-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.75rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text-light);
  letter-spacing: -0.03em;
}

.obs-plus,
.obs-slash {
  color: var(--citron);
}

.obs-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-light) 55%, transparent);
}

/* --------------------------------------------------------------------------
   15. EDITIONS
   -------------------------------------------------------------------------- */
.room-editions {
  background: var(--clay);
}

.editions-grid {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.edition {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--moss);
  display: flex;
  flex-direction: column;
  position: relative;
  background: color-mix(in srgb, var(--clay) 96%, white);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}

.edition::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 8px;
  height: 8px;
  background: var(--indigo);
  border-radius: 50%;
}

.edition:hover {
  transform: translateY(-4px);
}

.edition-featured {
  background: color-mix(in srgb, var(--clay) 88%, var(--moss));
  border-width: 2px;
  transform: translateY(-12px);
}

.edition-featured:hover {
  transform: translateY(-16px);
}

.edition-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--apricot);
  color: var(--graphite);
  padding: 0.35rem 0.75rem;
}

.edition-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  font-weight: 400;
  margin: 0.75rem 0 0.35rem;
}

.edition-tag {
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.edition-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.edition-benefits li {
  font-size: 0.95rem;
  font-weight: 300;
  padding-left: 1rem;
  position: relative;
  color: var(--text);
}

.edition-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--indigo);
  border-radius: 50%;
}

.edition .btn {
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   16. EXIT ROOM
   -------------------------------------------------------------------------- */
.room-exit {
  background: var(--graphite);
  min-height: min(90vh, 900px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-block: var(--space-2xl);
}

.exit-sculpture {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.exit-shape {
  position: absolute;
  display: block;
}

.exit-moss {
  width: clamp(220px, 35vw, 480px);
  height: clamp(280px, 45vw, 580px);
  background: var(--moss);
  border-radius: 55% 45% 48% 52% / 42% 58% 42% 58%;
  top: 10%;
  right: 8%;
  opacity: 0.85;
  animation: morph-oval 16s var(--ease-soft) infinite alternate;
}

.exit-indigo {
  width: clamp(160px, 22vw, 300px);
  height: clamp(160px, 22vw, 300px);
  border: 16px solid color-mix(in srgb, var(--indigo) 70%, transparent);
  border-radius: 50%;
  bottom: 18%;
  left: 12%;
  animation: orbit-slow 28s linear infinite;
}

.exit-apricot {
  width: clamp(80px, 10vw, 140px);
  height: clamp(80px, 10vw, 140px);
  background: var(--apricot);
  border-radius: 50%;
  top: 22%;
  left: 28%;
  animation: float-a 10s var(--ease-soft) infinite alternate;
}

.exit-eucalyptus {
  width: clamp(140px, 18vw, 240px);
  height: clamp(100px, 12vw, 160px);
  background: var(--eucalyptus);
  border-radius: 70% 30% 60% 40% / 40% 60% 40% 60%;
  bottom: 22%;
  right: 28%;
  opacity: 0.75;
  animation: morph-curve 14s var(--ease-soft) infinite alternate;
}

.exit-citron {
  width: 18px;
  height: 18px;
  background: var(--citron);
  border-radius: 50%;
  top: 48%;
  left: 48%;
  z-index: 3;
  animation: pulse-dot 6s var(--ease-soft) infinite;
}

.exit-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 18ch;
  margin: 0 auto;
}

.exit-content .label-mono {
  margin-bottom: var(--space-md);
}

.exit-lede {
  margin: var(--space-md) auto var(--space-lg);
  font-weight: 300;
  color: color-mix(in srgb, var(--text-light) 65%, transparent);
  max-width: 32ch;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--clay);
  padding: var(--space-xl) var(--pad-x) var(--space-lg);
  border-top: 1px solid color-mix(in srgb, var(--graphite) 10%, transparent);
}

.footer-top {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.footer-logo {
  font-family: var(--font-secondary);
  font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  max-width: 18ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  font-weight: 300;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--apricot);
}

.footer-bottom {
  width: min(100%, var(--max-w));
  margin: var(--space-xl) auto 0;
}

.footer-divider {
  display: block;
  height: 1px;
  background: var(--citron);
  margin-bottom: var(--space-md);
  width: 100%;
}

/* --------------------------------------------------------------------------
   18. KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes morph-oval {
  0% { border-radius: 58% 42% 48% 52% / 42% 55% 45% 58%; transform: rotate(0deg) scale(1); }
  100% { border-radius: 42% 58% 52% 48% / 55% 42% 58% 45%; transform: rotate(8deg) scale(1.03); }
}

@keyframes morph-curve {
  0% { border-radius: 80% 20% 70% 30% / 30% 70% 30% 70%; transform: translateY(0); }
  100% { border-radius: 30% 70% 40% 60% / 60% 40% 70% 30%; transform: translateY(-12px); }
}

@keyframes morph-liquid {
  0% { border-radius: 60% 40% 55% 45% / 35% 55% 45% 65%; }
  100% { border-radius: 40% 60% 45% 55% / 55% 35% 65% 45%; }
}

@keyframes morph-object {
  0% {
    border-radius: 60% 40% 50% 50% / 45% 55% 45% 55%;
    transform: rotate(0deg) scale(1) translateY(0);
    filter: hue-rotate(0deg);
  }
  33% {
    border-radius: 40% 60% 45% 55% / 60% 40% 60% 40%;
    transform: rotate(12deg) scale(1.05) translateY(-10px);
  }
  66% {
    border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%;
    transform: rotate(-8deg) scale(0.96) translateY(8px);
  }
  100% {
    border-radius: 45% 55% 48% 52% / 52% 48% 55% 45%;
    transform: rotate(4deg) scale(1.02) translateY(-4px);
    filter: hue-rotate(12deg);
  }
}

@keyframes orbit-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbit-tilt {
  0% { transform: rotate(-6deg) scale(1); }
  100% { transform: rotate(6deg) scale(1.04); }
}

@keyframes float-a {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10px, -16px); }
}

@keyframes float-b {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-12px, 10px); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.85; }
}

@keyframes hint-float {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1; }
}

@keyframes line-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .form-01 { grid-column: 1 / 5; grid-row: span 1; }
  .form-02 { grid-column: 5 / 7; grid-row: span 2; }
  .form-03 { grid-column: 1 / 3; }
  .form-04 { grid-column: 3 / 5; grid-row: span 1; }
  .form-05 { grid-column: 1 / 5; }
  .form-06 { grid-column: 5 / 7; }

  .edition-featured {
    transform: none;
  }

  .edition-featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 900px) {
  .nav-list {
    display: none;
  }

  .threshold-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .threshold-copy {
    max-width: 22ch;
  }

  .threshold-art {
    justify-content: center;
    min-height: clamp(260px, 70vw, 400px);
  }

  .sculpture {
    width: min(100%, 360px);
  }

  .manifesto-layout {
    padding-left: 0;
  }

  .material-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .material-copy {
    max-width: none;
    padding: var(--space-xl) 0 var(--space-md);
  }

  .material-stage {
    border-left: none;
    border-top: 1px solid color-mix(in srgb, var(--graphite) 10%, transparent);
    min-height: 360px;
  }

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

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

  .editions-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .note-row,
  .note-b {
    grid-template-columns: 1fr;
  }

  .note-b .note-media {
    order: -1;
  }
}

@media (max-width: 640px) {
  .room {
    padding-block: var(--space-xl);
  }

  .study-link {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "num title arrow"
      "shape desc arrow";
    gap: 0.75rem 1rem;
  }

  .study-num { grid-area: num; }
  .study-text { grid-area: title / title / desc / desc; }
  .study-shape {
    grid-area: shape;
    width: 64px;
    aspect-ratio: 1;
  }
  .study-arrow { grid-area: arrow; align-self: center; }

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

  .form-01,
  .form-02,
  .form-03,
  .form-04,
  .form-05,
  .form-06 {
    grid-column: 1;
    grid-row: auto;
  }

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

  .obs-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .dust-rose-mark {
    right: 6%;
    bottom: 0;
  }

  .exit-content {
    max-width: 22ch;
  }

  .btn {
    min-height: 3.5rem;
    width: 100%;
    max-width: 280px;
  }

  .threshold-actions .btn {
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   20. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-hint,
  .morph-object,
  .shape,
  .exit-shape,
  .gv-liquid,
  .gv-float,
  .gv-float-mini {
    animation: none !important;
  }
}
