:root {
  color-scheme: light;
  --night: #1f2033;
  --night-soft: #343047;
  --plum: #4f315d;
  --plum-deep: #34213f;
  --paper: #f3ebdf;
  --paper-high: #fff9ee;
  --paper-low: #dfd1c0;
  --peach: #e9966b;
  --amber: #efb84e;
  --sage: #95b4a2;
  --mist: #a8c4d4;
  --ink: #292535;
  --muted: #716975;
  --line: rgba(52, 33, 63, .22);
  --shadow: 0 24px 62px rgba(31, 25, 43, .18);
  --warm: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 7%, rgba(233, 150, 107, calc(.08 + var(--warm) * .13)), transparent 27rem),
    radial-gradient(circle at 88% 22%, rgba(168, 196, 212, .12), transparent 34rem),
    repeating-linear-gradient(94deg, rgba(52, 33, 63, .025) 0 1px, transparent 1px 8px),
    var(--paper);
  font-family: Inter, Avenir, "Segoe UI", sans-serif;
  line-height: 1.62;
}
body.warm-light { --warm: 1; --paper: #f6e7d3; --paper-high: #fff4dc; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 99;
  left: 1rem;
  top: -6rem;
  padding: .8rem 1rem;
  background: var(--night);
  color: white;
}
.skip-link:focus { top: 1rem; }

.site-key {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: .85rem clamp(1rem, 4vw, 4rem);
  color: white;
  background: rgba(31, 32, 51, .96);
  border-bottom: .35rem solid var(--peach);
  backdrop-filter: blur(14px);
}
.wordmark {
  font: 500 clamp(1.65rem, 3vw, 2.3rem)/1 Georgia, serif;
  letter-spacing: -.04em;
  text-decoration: none;
}
.site-key nav { display: flex; justify-content: center; gap: clamp(.65rem, 2.4vw, 2rem); }
.site-key nav a {
  padding: .55rem .1rem;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 750;
}
.site-key nav a:hover,
.site-key nav a:focus-visible { color: white; box-shadow: 0 2px var(--amber); }
.light-control {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: .55rem .8rem;
  color: white;
  background: transparent;
  font: 750 .76rem/1 inherit;
  cursor: pointer;
}
.light-control span {
  width: .75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 .3rem rgba(149,180,162,.14);
}
.warm-light .light-control span { background: var(--amber); box-shadow: 0 0 1rem .35rem rgba(239,184,78,.45); }

main { overflow: hidden; }
.kicker,
.drawer-mark,
.directory-label {
  margin: 0 0 .6rem;
  color: var(--plum);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}
h1, h2 {
  margin: .15em 0 .35em;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
h1 { font-size: clamp(3.5rem, 8.6vw, 8.6rem); }
h2 { font-size: clamp(2.5rem, 5.5vw, 5.8rem); }
p { max-width: 66ch; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.42rem); line-height: 1.5; }
.door-link {
  display: inline-block;
  margin-top: 1rem;
  padding: .85rem 1.15rem;
  color: var(--night);
  background: var(--peach);
  text-decoration: none;
  font-weight: 900;
  clip-path: polygon(2% 3%, 99% 0, 97% 94%, 0 100%);
}
.door-link--light { background: var(--paper-high); }

.scene {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--plum);
  box-shadow: var(--shadow);
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 -5rem 7rem rgba(30,22,43,.17);
}
.scene figcaption {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: .75rem .9rem;
  color: white;
  background: rgba(31,32,51,.84);
  font-family: Georgia, serif;
}

.dusk-threshold {
  width: min(1480px, calc(100% - 2rem));
  min-height: 82svh;
  display: grid;
  grid-template-columns: minmax(20rem, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 5rem);
  margin: 2rem auto clamp(5rem, 10vw, 10rem);
  padding: clamp(1rem, 3vw, 2rem);
}
.threshold-copy { position: relative; z-index: 3; }
.threshold-copy h1 { max-width: 8ch; }
.scene--hero {
  min-height: min(76svh, 820px);
  clip-path: polygon(2% 0, 98% 2%, 100% 94%, 72% 100%, 5% 96%, 0 17%);
}
.scene--arrival {
  position: absolute;
  z-index: 4;
  width: min(27vw, 25rem);
  height: 16rem;
  right: clamp(1.5rem, 6vw, 7rem);
  bottom: -2.2rem;
  transform: rotate(-1.2deg);
  border: .55rem solid var(--paper-high);
}

.weather-aperture {
  width: min(1320px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(18rem, .7fr) minmax(0, 1.3fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  margin: 0 auto clamp(6rem, 12vw, 12rem);
}
.weather-copy { align-self: end; padding: clamp(1rem, 3vw, 3rem); }
.scene--weather {
  min-height: 36rem;
  grid-row: span 2;
  clip-path: polygon(1% 3%, 100% 0, 98% 96%, 4% 100%);
}
.scene--veil {
  height: 20rem;
  margin-right: 14%;
  clip-path: polygon(4% 0, 100% 4%, 96% 100%, 0 94%);
}

.support-shelf {
  padding: clamp(3rem, 7vw, 7rem) max(1rem, calc((100vw - 1420px) / 2));
  color: white;
  background: var(--plum-deep);
  clip-path: polygon(0 1%, 100% 0, 100% 98%, 0 100%);
}
.shelf-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 1rem 4rem; align-items: end; }
.shelf-heading .kicker { color: var(--amber); grid-column: 1 / -1; }
.shelf-heading h2 { max-width: 10ch; }
.shelf-heading p:last-child { align-self: end; color: rgba(255,255,255,.78); }
.support-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(16rem, 1fr));
  gap: clamp(.75rem, 2vw, 1.5rem);
  margin-top: 3rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0 0 1.2rem;
}
.support-card {
  position: relative;
  min-height: 34rem;
  margin: 0;
  overflow: hidden;
  background: var(--night);
  scroll-snap-align: start;
  clip-path: polygon(2% 0, 100% 2%, 96% 100%, 0 97%);
}
.support-card:nth-child(even) { transform: translateY(1.6rem); }
.support-card figcaption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: .25rem;
  padding: 4rem 1.1rem 1.2rem;
  background: linear-gradient(transparent, rgba(31,32,51,.94));
}
.support-card strong { font: 500 1.6rem/1.1 Georgia, serif; }
.support-card span { color: rgba(255,255,255,.75); font-size: .86rem; }

.edge-rooms {
  width: min(1360px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  margin: clamp(6rem, 12vw, 12rem) auto;
}
.edge-copy { grid-column: 1 / -1; max-width: 64rem; }
.scene--edge,
.scene--connection { min-height: 34rem; }
.scene--edge { clip-path: polygon(2% 0, 100% 4%, 96% 100%, 0 96%); }
.scene--connection { clip-path: polygon(0 3%, 98% 0, 100% 95%, 3% 100%); }

.mirror-band {
  width: min(1480px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .7fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  margin: 0 auto clamp(6rem, 11vw, 11rem);
}
.scene--mirror { min-height: 38rem; clip-path: polygon(2% 0, 100% 4%, 96% 98%, 0 100%); }
.scene--sill { height: 22rem; clip-path: polygon(3% 4%, 100% 0, 96% 96%, 0 100%); }

.human-stair {
  width: min(1320px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: .9fr 1.1fr .72fr;
  grid-template-rows: auto 16rem 18rem;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  margin: 0 auto clamp(6rem, 12vw, 12rem);
}
.human-copy { grid-column: 1 / 3; align-self: end; max-width: 58rem; }
.scene--garden { grid-column: 3; grid-row: 1 / 4; min-height: 54rem; clip-path: polygon(5% 0, 100% 2%, 95% 100%, 0 96%); }
.scene--hall { grid-column: 1; grid-row: 2 / 4; min-height: 36rem; clip-path: polygon(0 3%, 96% 0, 100% 95%, 4% 100%); }
.scene--support { grid-column: 2; grid-row: 2 / 4; min-height: 36rem; clip-path: polygon(4% 0, 100% 5%, 95% 100%, 0 96%); }

.return-night {
  min-height: 76svh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, .8fr);
  align-items: center;
  color: white;
  background: var(--night);
}
.scene--return { min-height: 76svh; box-shadow: none; clip-path: polygon(0 0, 96% 2%, 100% 96%, 0 100%); }
.return-copy { padding: clamp(2rem, 6vw, 6rem); }
.return-copy .kicker { color: var(--amber); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  color: white;
  background: var(--night-soft);
  font-size: .85rem;
}

/* Policy route */
.roomlight-policy { background-color: #e8dece; }
.policy-threshold {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(2rem, 6vw, 6rem) clamp(1rem, 5vw, 6rem);
  color: white;
  background:
    linear-gradient(115deg, rgba(31,32,51,.97), rgba(52,33,63,.94)),
    var(--night);
  border-bottom: .45rem solid var(--peach);
}
.policy-threshold > div { max-width: 68rem; }
.policy-threshold h1 { font-size: clamp(3.2rem, 7.3vw, 7.5rem); }
.policy-threshold .kicker { color: var(--amber); }
.policy-threshold p:last-child { color: rgba(255,255,255,.78); font-size: 1.08rem; }

.policy-house {
  width: min(1500px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(16rem, .3fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 4vw, 4rem);
  margin: 2rem auto 8rem;
}
.policy-directory {
  position: sticky;
  top: 1rem;
  padding: 1.2rem;
  color: white;
  background: var(--plum-deep);
  box-shadow: var(--shadow);
  clip-path: polygon(1% 0, 100% 1%, 98% 100%, 0 98%);
}
.directory-label { color: var(--amber); }
.policy-directory ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .36rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.policy-directory a {
  min-height: 4rem;
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  align-items: center;
  gap: .25rem;
  padding: .45rem;
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.04);
  text-decoration: none;
  font-size: .72rem;
  line-height: 1.2;
}
.policy-directory a span { color: var(--peach); font-weight: 900; }
.policy-directory a:hover,
.policy-directory a:focus-visible,
.policy-directory a[aria-current="location"] { color: var(--night); background: var(--paper-high); }

.policy-runs { display: grid; gap: clamp(1.2rem, 3vw, 2.5rem); overflow: visible; }
.policy-room {
  min-height: 25rem;
  display: grid;
  grid-template-columns: minmax(16rem, .9fr) minmax(20rem, 1.1fr);
  align-items: stretch;
  overflow: hidden;
  scroll-margin-top: 1.5rem;
  border: 1px solid var(--line);
  background: var(--paper-high);
  box-shadow: 0 16px 38px rgba(31,25,43,.12);
  clip-path: polygon(0 1%, 99% 0, 100% 98%, 1% 100%);
}
.policy-room:nth-child(even) { grid-template-columns: minmax(20rem, 1.1fr) minmax(16rem, .9fr); clip-path: polygon(1% 0, 100% 1%, 98% 100%, 0 98%); }
.policy-room:nth-child(even) img { order: 2; }
.policy-room > div { align-self: center; padding: clamp(1.4rem, 4vw, 4rem); }
.policy-room h2 { font-size: clamp(2.2rem, 4.3vw, 4.8rem); }
.policy-room img { min-height: 25rem; }
.policy-room[data-shape="portrait"] img { object-position: center 42%; }
.policy-room--text {
  min-height: 18rem;
  display: block;
  border-left: .8rem solid var(--peach);
}
.policy-room--text > div { max-width: 62rem; }

.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem) rotate(.12deg);
  transition: opacity .58s ease, transform .58s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .site-key { position: relative; grid-template-columns: auto 1fr; }
  .site-key nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; }
  .site-key .light-control { justify-self: end; }
  .dusk-threshold,
  .weather-aperture,
  .mirror-band,
  .return-night { grid-template-columns: 1fr; }
  .scene--arrival { position: relative; width: min(90%, 34rem); right: auto; bottom: auto; margin: -7rem 1rem 0 auto; }
  .scene--weather { grid-row: auto; }
  .scene--veil { margin: -3rem 1rem 0 18%; }
  .shelf-heading { grid-template-columns: 1fr; }
  .support-rail { grid-template-columns: repeat(4, minmax(18rem, 44vw)); }
  .human-stair { grid-template-columns: 1fr 1fr; grid-template-rows: auto 30rem 30rem; }
  .human-copy { grid-column: 1 / -1; }
  .scene--garden { grid-column: 2; grid-row: 2 / 4; }
  .scene--hall { grid-column: 1; grid-row: 2; }
  .scene--support { grid-column: 1; grid-row: 3; }
  .scene--return { min-height: 44rem; }
  .policy-threshold { grid-template-columns: 1fr auto; }
  .policy-threshold > div { grid-column: 1 / -1; grid-row: 2; }
  .policy-house { grid-template-columns: 1fr; }
  .policy-directory { position: relative; }
  .policy-directory ol { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .site-key nav { gap: 1rem; }
  .site-key nav a { white-space: nowrap; }
  .site-key .light-control { max-width: 9rem; }
  .dusk-threshold { min-height: auto; padding: 0; }
  .scene--hero { min-height: 31rem; }
  .scene--arrival { height: 13rem; margin-top: -4rem; }
  .weather-aperture { display: block; }
  .weather-copy { padding-inline: .5rem; }
  .scene--weather { min-height: 27rem; }
  .scene--veil { height: 18rem; margin: 1rem 0 0; }
  .support-shelf { clip-path: none; }
  .support-rail { grid-template-columns: repeat(4, minmax(16rem, 82vw)); }
  .support-card:nth-child(even) { transform: none; }
  .edge-rooms { grid-template-columns: 1fr; }
  .edge-copy { grid-column: auto; }
  .scene--edge,
  .scene--connection,
  .scene--mirror { min-height: 27rem; }
  .scene--sill { height: 18rem; }
  .human-stair { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
  .human-copy,
  .scene--garden,
  .scene--hall,
  .scene--support { grid-column: auto; grid-row: auto; min-height: 31rem; }
  .return-night { display: block; }
  .scene--return { min-height: 36rem; }
  footer { flex-direction: column; }
  .policy-threshold { display: grid; grid-template-columns: 1fr; }
  .policy-threshold .light-control { justify-self: start; }
  .policy-threshold > div { grid-column: auto; grid-row: auto; }
  .policy-directory ol { grid-template-columns: 1fr 1fr; }
  .policy-room,
  .policy-room:nth-child(even) { grid-template-columns: 1fr; }
  .policy-room:nth-child(even) img { order: initial; }
  .policy-room img { min-height: 21rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
