/*
  Winston Gilbert — Rooms for the work
  A warm, low-poly/isometric portfolio with no build step.
*/

:root {
  --paper: #eee7d9;
  --paper-light: #f7f1e6;
  --paper-deep: #d8cdb8;
  --ink: #18251f;
  --ink-soft: #435047;
  --forest: #173c31;
  --forest-deep: #0c2a22;
  --moss: #657963;
  --sage: #a4b29b;
  --clay: #a34f39;
  --clay-deep: #873a2b;
  --apricot: #e9a36f;
  --gold: #e7bf72;
  --night: #1a1b1a;
  --line: rgba(24, 37, 31, 0.18);
  --line-light: rgba(247, 241, 230, 0.22);
  --shadow: 0 30px 80px rgba(42, 28, 20, 0.16);
  --shell: min(100% - 96px, 1420px);
  --display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: var(--paper-light);
  background: var(--clay);
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

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

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

button {
  color: inherit;
  font: inherit;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 14px;
  left: 14px;
  padding: 10px 14px;
  color: var(--paper-light);
  background: var(--forest-deep);
  border-radius: 2px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 max(48px, calc((100vw - 1420px) / 2));
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition:
    min-height 240ms var(--ease-out),
    background-color 240ms ease,
    border-color 240ms ease,
    color 240ms ease;
}

.site-header.is-scrolled {
  min-height: 70px;
  background: rgba(238, 231, 217, 0.9);
  border-bottom-color: rgba(24, 37, 31, 0.12);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.brand {
  position: relative;
  z-index: 102;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper-light);
  background: var(--forest);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: transform 280ms var(--ease-out), background 240ms ease;
}

.brand:hover .brand-mark {
  background: var(--clay);
  transform: rotate(-8deg);
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong {
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.site-nav a {
  position: relative;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

/* Shared type */
.overline,
.room-kicker,
.work-meta,
.path-list > li > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.overline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.overline::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
}

.overline-light {
  color: rgba(247, 241, 230, 0.68);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
  min-height: 100svh;
  width: var(--shell);
  margin: 0 auto;
  padding: 135px 0 66px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 15%;
  right: -7vw;
  width: min(44vw, 680px);
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(185, 99, 70, 0.13), transparent 67%);
  filter: blur(12px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-family: var(--display);
  font-size: clamp(4rem, 7.25vw, 8rem);
  font-stretch: condensed;
  font-weight: 820;
  letter-spacing: -0.074em;
  line-height: 0.84;
}

.hero h1 em,
.contact-section h2 em {
  color: var(--clay);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 610px;
  margin-bottom: 42px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.58;
}

.enter-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.enter-link span {
  font-size: 17px;
  transition: transform 220ms var(--ease-out);
}

.enter-link:hover span {
  transform: translateY(5px);
}

.hero-house {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(66vw, 720px);
  perspective: 1200px;
}

.house-model {
  position: relative;
  width: min(34vw, 490px);
  min-width: 360px;
  aspect-ratio: 1.08;
  transform: rotateX(2deg) rotateY(-4deg);
  transform-style: preserve-3d;
  transition: transform 650ms var(--ease-out);
  will-change: transform;
}

.house-shadow {
  position: absolute;
  bottom: 10%;
  width: 72%;
  height: 15%;
  background: rgba(54, 37, 27, 0.2);
  border-radius: 50%;
  filter: blur(22px);
  transform: rotate(-5deg);
}

.house-front,
.house-side,
.house-roof {
  position: absolute;
  box-shadow: inset 0 0 0 1px rgba(24, 37, 31, 0.12);
}

.house-front {
  right: 12%;
  bottom: 13%;
  width: 55%;
  height: 53%;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(99, 67, 45, 0.18) 50%, transparent 50.4%),
    linear-gradient(#dcb07f, #bf7c56);
  clip-path: polygon(0 19%, 50% 0, 100% 19%, 100% 100%, 0 100%);
}

.house-side {
  left: 9%;
  bottom: 13%;
  width: 34%;
  height: 46%;
  background: linear-gradient(135deg, #8d5d46, #6f493b);
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 87%);
}

.house-roof {
  z-index: 2;
  top: 18%;
  right: 9%;
  width: 62%;
  height: 29%;
  background: linear-gradient(145deg, #29493d, #173c31 54%, #102d25);
  clip-path: polygon(50% 0, 100% 49%, 84% 73%, 50% 28%, 7% 65%, 0 47%);
  filter: drop-shadow(0 12px 5px rgba(38, 25, 19, 0.15));
}

.house-window,
.house-door {
  position: absolute;
  display: block;
  background: linear-gradient(150deg, #ffd486, #e9795d 72%, #8d4a4c);
  border: 7px solid #5f4437;
  box-shadow: 0 0 30px rgba(255, 180, 91, 0.32);
}

.house-window {
  top: 35%;
  width: 22%;
  aspect-ratio: 0.8;
}

.house-window::before,
.house-window::after {
  position: absolute;
  content: "";
  background: #6b4a3b;
}

.house-window::before {
  top: 48%;
  left: 0;
  right: 0;
  height: 4px;
}

.house-window::after {
  top: 0;
  bottom: 0;
  left: 48%;
  width: 4px;
}

.house-window-one {
  left: 13%;
}

.house-window-two {
  right: 13%;
}

.house-door {
  bottom: 0;
  left: 39%;
  width: 23%;
  height: 40%;
  background: linear-gradient(90deg, #394b40, #25392f);
  border-bottom: 0;
}

.house-door::after {
  position: absolute;
  top: 52%;
  right: 12%;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

.house-light {
  position: absolute;
  z-index: -1;
  top: 30%;
  left: 20%;
  width: 65%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 199, 112, 0.42), transparent 68%);
  filter: blur(12px);
}

.house-sign {
  position: absolute;
  z-index: 4;
  right: -10%;
  bottom: 31%;
  padding: 11px 14px 10px;
  color: var(--paper-light);
  background: var(--clay);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.12em;
  box-shadow: 7px 7px 0 rgba(63, 44, 34, 0.16);
  transform: rotate(3deg);
}

.house-sign small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 8px;
}

.house-step {
  position: absolute;
  z-index: 5;
  bottom: 9%;
  left: 55%;
  height: 5%;
  background: #7d5946;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}

.step-one {
  width: 26%;
  transform: translateX(-30%);
}

.step-two {
  bottom: 5%;
  width: 33%;
  transform: translateX(-35%);
}

.hero-note {
  position: absolute;
  right: 2%;
  bottom: 5%;
  margin: 0;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* Rooms */
.rooms-section {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 10vw, 150px) max(48px, calc((100vw - 1420px) / 2));
  color: var(--paper-light);
  background:
    radial-gradient(circle at 85% 10%, rgba(163, 190, 156, 0.14), transparent 32%),
    var(--forest-deep);
}

.rooms-section::after {
  position: absolute;
  top: 0;
  right: 3vw;
  width: 1px;
  height: 100%;
  content: "";
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.15), transparent);
}

.rooms-heading {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  gap: clamp(50px, 8vw, 150px);
  margin-bottom: clamp(50px, 7vw, 100px);
}

.rooms-heading h2,
.section-title h2,
.path-intro h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.rooms-heading > p {
  max-width: 480px;
  margin: 0 0 7px;
  color: rgba(247, 241, 230, 0.62);
  font-size: 16px;
  line-height: 1.7;
}

.room-explorer {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid rgba(247, 241, 230, 0.16);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.3);
}

.room-tabs {
  display: grid;
  align-content: start;
  background: #142f28;
  border-right: 1px solid rgba(247, 241, 230, 0.12);
}

.room-tab {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  min-height: 112px;
  padding: 25px 21px;
  overflow: hidden;
  color: rgba(247, 241, 230, 0.53);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(247, 241, 230, 0.1);
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease;
}

.room-tab::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 380ms var(--ease-out);
}

.room-tab > * {
  position: relative;
  z-index: 1;
}

.room-tab > span:first-child {
  padding-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.room-tab > span:last-child {
  display: grid;
  gap: 5px;
}

.room-tab strong {
  color: inherit;
  font-size: 14px;
  font-weight: 680;
}

.room-tab small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.room-tab:hover {
  color: var(--paper-light);
  background: rgba(255, 255, 255, 0.035);
}

.room-tab.is-active {
  color: #fff8e9;
}

.room-tab.is-active::before {
  transform: scaleX(1);
}

.room-display {
  min-width: 0;
}

.room-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.68fr);
  min-height: 720px;
}

.room-panel.is-entering .room-visual {
  animation: room-in 620ms var(--ease-out) both;
}

.room-panel.is-entering .room-story > * {
  animation: copy-in 520ms var(--ease-out) both;
}

.room-panel.is-entering .room-story > :nth-child(2) {
  animation-delay: 50ms;
}

.room-panel.is-entering .room-story > :nth-child(3) {
  animation-delay: 90ms;
}

.room-panel.is-entering .room-story > :nth-child(4) {
  animation-delay: 130ms;
}

.room-panel.is-entering .room-story > :nth-child(5) {
  animation-delay: 170ms;
}

@keyframes room-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(13px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.room-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 720px;
  padding: 38px;
  overflow: hidden;
  perspective: 1300px;
  isolation: isolate;
}

.room-visual::before,
.room-visual::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
  filter: blur(12px);
}

.room-visual::before {
  top: 8%;
  right: 9%;
  width: 36%;
  aspect-ratio: 1;
  background: rgba(255, 221, 151, 0.2);
}

.room-visual::after {
  bottom: 5%;
  left: 8%;
  width: 50%;
  aspect-ratio: 1;
  background: rgba(81, 47, 42, 0.13);
}

.room-visual-systems {
  background: linear-gradient(145deg, #d7bd91 0%, #b78462 49%, #7c5043 100%);
}

.room-visual-sound {
  background: linear-gradient(145deg, #704449 0%, #4b2f39 48%, #211d2a 100%);
}

.room-visual-ideas {
  background: linear-gradient(145deg, #c1b07f 0%, #8b7556 52%, #4e5b4f 100%);
}

.room-visual-long {
  background: linear-gradient(145deg, #aab7a7 0%, #829585 45%, #65705e 100%);
}

.room-visual > svg {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  max-height: 640px;
  overflow: visible;
  filter: saturate(0.96) contrast(1.02);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(0);
  transform-origin: 50% 58%;
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease-out);
  will-change: transform;
}

.room-visual.is-tilting > svg {
  transition-duration: 100ms;
}

.room-chip {
  position: absolute;
  z-index: 4;
  padding: 10px 13px;
  color: var(--paper-light);
  background: rgba(20, 35, 29, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 8px 9px 22px rgba(29, 18, 16, 0.16);
  backdrop-filter: blur(8px);
}

.chip-one {
  top: 10%;
  left: 8%;
  transform: rotate(-2deg);
}

.chip-two {
  right: 7%;
  bottom: 11%;
  color: var(--ink);
  background: rgba(247, 241, 230, 0.88);
  transform: rotate(2deg);
}

.room-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(45px, 5vw, 78px);
  background: var(--paper-light);
}

.room-kicker {
  margin-bottom: 27px;
  color: var(--clay);
}

.room-story h3 {
  margin-bottom: 27px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 3.5vw, 4.6rem);
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.room-story > p:not(.room-kicker) {
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.72;
}

.room-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 42px;
  padding: 0;
  list-style: none;
}

.room-shelf li,
.work-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.room-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding: 15px 0 10px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.room-link:not(.room-link-static):hover span {
  transform: translate(4px, 4px);
}

.room-link span {
  font-size: 17px;
  transition: transform 220ms var(--ease-out);
}

.room-link-static {
  cursor: default;
}

.room-controls {
  position: absolute;
  z-index: 6;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 250px;
  height: 78px;
  padding: 0 19px 0 24px;
  color: var(--paper-light);
  background: #0d2720;
  border-top: 1px solid rgba(247, 241, 230, 0.1);
}

.room-controls p {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.room-controls > div {
  display: flex;
  gap: 6px;
}

.room-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--paper-light);
  background: transparent;
  border: 1px solid rgba(247, 241, 230, 0.24);
  border-radius: 50%;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms var(--ease-out);
}

.room-controls button:hover {
  color: var(--forest-deep);
  background: var(--paper-light);
  transform: translateY(-2px);
}

/* Selected work */
.work-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(55px, 8vw, 130px);
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(100px, 12vw, 185px) 0;
}

.section-title {
  align-self: start;
  position: sticky;
  top: 120px;
}

.section-title h2 {
  margin-bottom: 38px;
  font-size: clamp(3.6rem, 6.6vw, 7.5rem);
}

.section-title > p:last-child {
  max-width: 430px;
  color: var(--ink-soft);
  line-height: 1.7;
}

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

.work-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 150px;
  gap: 28px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.work-index {
  padding-top: 5px;
  color: var(--clay);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
}

.work-main h3 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 3.2vw, 4.2rem);
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.work-main > p:last-child {
  max-width: 590px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.68;
}

.work-meta {
  margin-bottom: 15px;
  color: var(--clay);
}

.work-tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-link {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

a.work-link span {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}

a.work-link:hover span {
  transform: translate(3px, -3px);
}

/* Path */
.path-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(60px, 9vw, 150px);
  padding: clamp(100px, 11vw, 170px) max(48px, calc((100vw - 1420px) / 2));
  color: var(--paper-light);
  background: var(--clay-deep);
}

.path-intro {
  align-self: start;
}

.path-intro h2 {
  max-width: 700px;
}

.path-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(247, 241, 230, 0.22);
}

.path-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 26px;
  padding: 32px 0 38px;
  border-bottom: 1px solid rgba(247, 241, 230, 0.22);
}

.path-list > li > span {
  padding-top: 6px;
  color: rgba(247, 241, 230, 0.74);
}

.path-list p {
  margin-bottom: 9px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-list h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.35vw, 2.8rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

/* Contact and footer */
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: clamp(60px, 10vw, 170px);
  min-height: 78svh;
  padding: clamp(110px, 12vw, 190px) max(48px, calc((100vw - 1420px) / 2));
  background:
    linear-gradient(rgba(24, 37, 31, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 37, 31, 0.055) 1px, transparent 1px),
    var(--paper-light);
  background-size: 48px 48px;
}

.contact-section h2 {
  max-width: 1000px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.4rem, 8vw, 9.6rem);
  font-weight: 820;
  letter-spacing: -0.078em;
  line-height: 0.84;
}

.contact-side {
  padding-bottom: 7px;
}

.contact-side p {
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.contact-side a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 11px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-side a span {
  font-size: 17px;
  transition: transform 220ms var(--ease-out);
}

.contact-side a:hover span {
  transform: translate(4px, -4px);
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 98px;
  padding: 24px max(48px, calc((100vw - 1420px) / 2));
  color: rgba(247, 241, 230, 0.63);
  background: var(--forest-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer a {
  justify-self: end;
  color: var(--paper-light);
}

/* Scroll reveals */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ambient room motion — subtle, object-specific, and paused offscreen by the browser. */
.room-panel.is-active .monitor,
.room-panel.is-active .wave-poster,
.room-panel.is-active .open-book,
.room-panel.is-active .topo-map {
  animation: object-breathe 4.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.room-panel.is-active .monitor-delay {
  animation-delay: -2.1s;
}

.room-panel.is-active .hanging-light,
.room-panel.is-active .lamp {
  animation: light-breathe 3.4s ease-in-out infinite;
}

.room-panel.is-active .bot {
  animation: bot-hop 5.6s ease-in-out infinite;
}

@keyframes object-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.86;
  }
}

@keyframes light-breathe {
  0%,
  100% {
    opacity: 0.86;
  }
  50% {
    opacity: 1;
  }
}

@keyframes bot-hop {
  0%,
  82%,
  100% {
    transform: translate(253px, 382px);
  }
  88% {
    transform: translate(253px, 374px);
  }
  94% {
    transform: translate(253px, 382px);
  }
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--ink);
}

/* Large tablet */
@media (max-width: 1180px) {
  :root {
    --shell: min(100% - 64px, 1060px);
  }

  .site-header,
  .rooms-section,
  .path-section,
  .contact-section,
  .site-footer {
    padding-right: 32px;
    padding-left: 32px;
  }

  .hero {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 25px;
  }

  .hero h1 {
    font-size: clamp(4rem, 7.6vw, 6.8rem);
  }

  .room-explorer {
    grid-template-columns: 1fr;
  }

  .room-tabs {
    grid-template-columns: repeat(4, 1fr);
    border-right: 0;
    border-bottom: 1px solid rgba(247, 241, 230, 0.12);
  }

  .room-tab {
    grid-template-columns: 23px 1fr;
    min-height: 100px;
    border-right: 1px solid rgba(247, 241, 230, 0.1);
    border-bottom: 0;
  }

  .room-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    min-height: 660px;
  }

  .room-visual {
    min-height: 660px;
  }

  .room-controls {
    top: 100px;
    right: 0;
    bottom: auto;
    left: auto;
    width: auto;
    height: 58px;
    gap: 24px;
    background: rgba(13, 39, 32, 0.9);
    backdrop-filter: blur(8px);
  }

  .work-section {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
  }

  .work-item {
    grid-template-columns: 36px 1fr;
  }

  .work-link {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
    margin-top: 6px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  :root {
    --shell: calc(100% - 48px);
  }

  .site-header,
  .rooms-section,
  .path-section,
  .contact-section,
  .site-footer {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 145px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    max-width: 850px;
    font-size: clamp(4.4rem, 12vw, 7rem);
  }

  .hero-house {
    min-height: 580px;
    margin-top: -40px;
  }

  .house-model {
    width: min(62vw, 520px);
  }

  .rooms-heading,
  .work-section,
  .path-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .rooms-heading {
    align-items: start;
    gap: 34px;
  }

  .rooms-heading > p {
    max-width: 620px;
  }

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

  .room-tab {
    min-height: 92px;
    padding: 20px;
    border-bottom: 1px solid rgba(247, 241, 230, 0.1);
  }

  .room-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-visual,
  .room-panel {
    min-height: 0;
  }

  .room-visual {
    aspect-ratio: 1.16;
    padding: 24px;
  }

  .room-story {
    min-height: 480px;
  }

  .room-controls {
    top: 184px;
  }

  .work-section {
    gap: 62px;
  }

  .section-title {
    position: static;
  }

  .section-title h2 {
    max-width: 720px;
  }

  .path-section {
    gap: 65px;
  }

  .path-intro h2 {
    max-width: 740px;
  }

  .contact-section {
    gap: 60px;
    min-height: auto;
  }

  .contact-side {
    max-width: 600px;
  }
}

/* Mobile */
@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .site-header,
  .rooms-section,
  .path-section,
  .contact-section,
  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-header {
    min-height: 72px;
  }

  .site-header.is-scrolled {
    min-height: 64px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: grid;
    align-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform 220ms var(--ease-out);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 90px 34px 50px;
    color: var(--paper-light);
    background: var(--forest-deep);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: visibility 0s 300ms, opacity 300ms ease, transform 300ms var(--ease-out);
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .site-nav a {
    font-family: var(--display);
    font-size: clamp(2.4rem, 13vw, 4rem);
    font-weight: 780;
    letter-spacing: -0.05em;
    line-height: 1;
    text-transform: none;
  }

  .menu-open .site-header,
  .menu-open .site-header.is-scrolled {
    color: var(--paper-light);
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
  }

  .menu-open .brand-mark {
    color: var(--forest-deep);
    background: var(--paper-light);
  }

  .menu-open .menu-toggle {
    border-color: rgba(247, 241, 230, 0.28);
  }

  .hero {
    min-height: auto;
    padding-top: 124px;
    padding-bottom: 74px;
  }

  .hero h1 {
    margin-bottom: 25px;
    font-size: clamp(3.65rem, 18.6vw, 5.2rem);
    line-height: 0.87;
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-house {
    min-height: 410px;
    margin-top: -10px;
    overflow: hidden;
  }

  .house-model {
    width: 390px;
    min-width: 390px;
    transform: scale(0.86);
  }

  .hero-note {
    right: 0;
  }

  .rooms-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .rooms-heading h2,
  .section-title h2,
  .path-intro h2 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .room-explorer {
    margin-right: -16px;
    margin-left: -16px;
  }

  .room-tab {
    grid-template-columns: 22px 1fr;
    min-height: 88px;
    padding: 17px 14px;
  }

  .room-tab strong {
    font-size: 12px;
  }

  .room-tab small {
    font-size: 7px;
  }

  .room-controls {
    position: static;
    width: 100%;
    height: 64px;
  }

  .room-visual {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 0.94;
    min-height: 0;
    padding: 10px;
  }

  .room-visual > svg {
    width: 100%;
    max-width: none;
  }

  .room-chip {
    padding: 8px 9px;
    font-size: 7px;
  }

  .chip-one {
    top: 5%;
    left: 5%;
  }

  .chip-two {
    right: 5%;
    bottom: 7%;
  }

  .room-story {
    min-height: 445px;
    padding: 46px 24px;
  }

  .room-story h3 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .work-section {
    padding: 90px 0;
  }

  .work-item {
    grid-template-columns: 29px 1fr;
    gap: 18px;
    padding: 34px 0;
  }

  .work-main h3 {
    font-size: 2.65rem;
  }

  .work-tags,
  .work-link {
    grid-column: 2;
  }

  .path-section {
    padding-top: 85px;
    padding-bottom: 90px;
  }

  .path-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .path-list > li > span {
    padding: 0;
  }

  .contact-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-size: 32px 32px;
  }

  .contact-section h2 {
    font-size: clamp(3.9rem, 18vw, 5.6rem);
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 9px;
    min-height: 120px;
  }

  .site-footer p:nth-child(2) {
    text-align: left;
  }

  .site-footer a {
    justify-self: start;
  }
}

@media (max-width: 680px) and (max-height: 500px) {
  .site-nav {
    justify-content: flex-start;
    gap: 12px;
    padding-top: 92px;
    padding-bottom: 20px;
    overflow-y: auto;
  }

  .site-nav a {
    font-size: clamp(2rem, 10vh, 2.5rem);
    line-height: 1.05;
  }
}

@media (max-width: 390px) {
  .room-tab small {
    display: none;
  }

  .room-tab {
    min-height: 72px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
