/* ============================================================
   Plan2Walk — plan2walk.com
   One idea carries the page: an architect's drawing becomes a
   house you can walk into. Everything else stays quiet.
   ============================================================ */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url('fonts/instrument-sans-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url('fonts/instrument-sans-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* palette */
  --daylight: #eef2f4;   /* the sky behind the model */
  --paper: #ffffff;
  --graphite: #17191c;   /* text, walls on the drawing */
  --pencil: #676d73;     /* secondary text */
  --lead: #a3a9ae;       /* drawing annotations */
  --hairline: #dce1e4;
  --ultramarine: #2d4fe0;/* actions only */
  --ultramarine-dark: #1f3cc0;
  --sun: #f2a93b;        /* only where time of day is shown */
  --dusk: #0f1726;       /* the walkthrough section */
  --dusk-text: #e8edf3;
  --dusk-muted: #93a0b4;

  /* type */
  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-display: clamp(2.625rem, 1.4rem + 4.6vw, 5.5rem);
  --fs-h2: clamp(2.125rem, 1.35rem + 3.1vw, 4rem);
  --fs-h3: 1.3125rem;
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;

  /* layout */
  --wrap: 1180px;
  --gutter: clamp(20px, 4.2vw, 44px);
  --section: clamp(104px, 13vw, 196px);
  --nav-h: 56px;
  --radius-l: 28px;
  --radius-m: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-feature-settings: 'kern', 'liga';
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ultramarine);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--graphite);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------- headings */
h1, h2 {
  font-weight: 600;
  font-stretch: 84%;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: 0.98; }
h2 { font-size: var(--fs-h2); line-height: 1.02; font-stretch: 86%; letter-spacing: -0.028em; }
h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: -0.012em;
}
p { text-wrap: pretty; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ultramarine);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 94%;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--ultramarine-dark); }
.btn:active { transform: scale(0.98); }
.btn--small { min-height: 36px; padding: 0 16px; font-size: 0.875rem; }
.btn--quiet {
  background: transparent;
  color: var(--graphite);
  box-shadow: inset 0 0 0 1px rgba(23, 25, 28, 0.22);
}
.btn--quiet:hover { background: rgba(23, 25, 28, 0.05); }
.btn--light { background: #fff; color: var(--graphite); }
.btn--light:hover { background: #f1f3f5; }

/* ------------------------------------------------------------- navbar */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(23, 25, 28, 0.08);
}
.navbar.is-over-scene.is-scrolled { background: rgba(238, 242, 244, 0.7); }
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.navbar__links { display: flex; gap: 28px; margin-left: auto; font-size: 0.875rem; }
.navbar__links a { text-decoration: none; color: var(--pencil); transition: color 0.2s; }
.navbar__links a:hover { color: var(--graphite); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.brand__mark { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: miter; }
.brand__door { stroke-width: 1.4; }
.brand__name { font-size: 1.0625rem; font-weight: 600; font-stretch: 88%; letter-spacing: -0.02em; }

@media (max-width: 800px) {
  .navbar__links { display: none; }
  .navbar .btn { margin-left: auto; }
}

/* ======================================================== hero */
.hero {
  position: relative;
  height: 540vh;
  background: var(--daylight);
}
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: calc(var(--nav-h) + clamp(16px, 5vh, 56px)) auto minmax(0, 1fr) clamp(56px, 9vh, 96px);
  justify-items: center;
}
.hero__stage { position: absolute; inset: 0; }
.hero__stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s var(--ease); }
.hero__stage.is-ready canvas { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(238, 242, 244, 0.92), rgba(238, 242, 244, 0.55) 45%, rgba(238, 242, 244, 0));
  opacity: 0;
  pointer-events: none;
}

.hero__intro {
  grid-row: 2;
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 0 var(--gutter);
  text-align: center;
  will-change: opacity, transform;
}
.hero__lead {
  max-width: 36em;
  margin: clamp(16px, 2.4vh, 26px) auto 0;
  font-size: var(--fs-lead);
  line-height: 1.42;
  color: var(--pencil);
  letter-spacing: -0.005em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(20px, 3.4vh, 36px);
}

.hero__plan {
  grid-row: 3;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: clamp(18px, 3.5vh, 40px) var(--gutter) 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: opacity, transform;
}
.hero__plan .plan { width: 100%; height: 100%; }

.hero__story {
  position: absolute;
  z-index: 3;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  bottom: clamp(28px, 7vh, 72px);
  width: min(400px, calc(100vw - var(--gutter) * 2));
  height: 9.5em;
}
.story {
  position: absolute;
  inset: auto 0 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.story__title {
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.12;
  font-weight: 600;
  font-stretch: 86%;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.story__text { margin-top: 8px; color: var(--pencil); font-size: var(--fs-small); line-height: 1.5; max-width: 34em; }
.story__walk { margin-top: 16px; }

.hero__progress {
  position: absolute;
  z-index: 3;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  bottom: calc(clamp(28px, 7vh, 72px) + 10.5em);
  display: flex;
  gap: 6px;
  opacity: 0;
}
.hero__progress span {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: rgba(23, 25, 28, 0.16);
  overflow: hidden;
  position: relative;
}
.hero__progress span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--graphite);
  transform-origin: left;
  transform: scaleX(var(--fill, 0));
}

.hero__clock {
  position: absolute;
  z-index: 3;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  bottom: clamp(28px, 7vh, 72px);
  display: flex;
  align-items: baseline;
  gap: 10px;
  opacity: 0;
}
.hero__clock svg {
  width: 18px; height: 18px;
  align-self: center;
  fill: var(--sun);
  stroke: var(--sun);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.hero__time {
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  font-weight: 500;
  font-stretch: 82%;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero__date { font-size: var(--fs-micro); color: var(--pencil); }

.hero__hint {
  position: absolute;
  z-index: 3;
  left: 0; right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  font-size: var(--fs-micro);
  color: var(--pencil);
}
.hero__hint span { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__hint span::after {
  content: '';
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--pencil), transparent);
  animation: hint 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes hint {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Static hero: no WebGL, reduced motion, or before the scene loads. */
.hero.is-static { height: auto; }
.hero.is-static .hero__sticky { position: relative; height: 100svh; min-height: 640px; }
.hero.is-static .hero__hint,
.hero.is-static .hero__story,
.hero.is-static .hero__progress,
.hero.is-static .hero__clock { display: none; }

@media (max-width: 640px) {
  .hero { height: 480vh; }
  .hero h1 br { display: none; }
  .hero__lead { font-size: 1.0625rem; }
  .hero__actions .btn--quiet { display: none; }
  .hero__story { bottom: calc(clamp(28px, 7vh, 72px) + 44px); height: 10.5em; }
  .hero__progress { bottom: calc(clamp(28px, 7vh, 72px) + 44px + 11.5em); }
  .hero__clock { left: var(--gutter); right: auto; bottom: clamp(24px, 4vh, 40px); }
}

/* -------------------------------------------- the floor-plan drawing */
.plan { overflow: visible; --s: var(--plan-s, 0.2); }
.plan rect, .plan line, .plan path, .plan circle { vector-effect: non-scaling-stroke; }
.plan-wall { fill: var(--graphite); }
.plan-sill { fill: var(--paper); stroke: var(--graphite); stroke-width: 0.9; }
.plan-glass { stroke: var(--graphite); stroke-width: 0.7; }
.plan-door { stroke: var(--graphite); stroke-width: 1.1; fill: none; }
.plan-swing { stroke: var(--lead); stroke-width: 0.7; fill: none; }
.plan-dash { stroke: var(--lead); stroke-width: 0.8; stroke-dasharray: 5 4; fill: none; }
.plan-item { fill: none; stroke: var(--lead); stroke-width: 0.8; }
.plan-rug { fill: none; stroke: var(--hairline); stroke-width: 0.8; }
.plan-terrace { fill: none; stroke: var(--lead); stroke-width: 0.8; }
.plan-paving { fill: none; stroke: var(--hairline); stroke-width: 0.8; stroke-dasharray: 6 4; }
.plan-board { stroke: var(--hairline); stroke-width: 0.7; }
.plan-dim, .plan-ext { stroke: var(--lead); stroke-width: 0.7; }
.plan-tick { stroke: var(--graphite); stroke-width: 1.1; }
.plan text {
  font-family: var(--font);
  text-anchor: middle;
  fill: var(--graphite);
}
.plan-room {
  font-size: calc(11.5px / var(--s));
  font-weight: 600;
  font-stretch: 80%;
  letter-spacing: 0.01em;
}
.plan-area { font-weight: 400; fill: var(--pencil); font-size: calc(10.5px / var(--s)); }
.plan-room--outside { fill: var(--pencil); font-weight: 500; }
.plan-dimtext {
  font-size: calc(10px / var(--s));
  font-stretch: 75%;
  fill: var(--pencil);
  font-variant-numeric: tabular-nums;
}
.plan-north circle { fill: none; stroke: var(--lead); stroke-width: 0.8; }
.plan-north path { fill: var(--graphite); }
.plan-north text { font-size: calc(11px / var(--s)); font-weight: 600; font-stretch: 80%; }

.plan.is-compact .plan-area,
.plan.is-compact .plan-room--small { display: none; }
.plan.is-tiny .plan-room:not(.plan-room--outside) { font-size: calc(9.5px / var(--s)); }
.plan.is-tiny .plan-dims,
.plan.is-tiny .plan-furniture { display: none; }

/* ===================================================== sections */
.section { padding: var(--section) 0; }
.section__head { max-width: 820px; }
.section__lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--pencil);
}

/* ----------------------------------------------------- checks */
.checks__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(56px, 7vw, 96px);
  align-items: start;
}
.checks__list li { padding: 26px 0 28px; border-top: 1px solid var(--hairline); }
.checks__list li:last-child { border-bottom: 1px solid var(--hairline); }
.checks__list p { margin-top: 8px; color: var(--pencil); max-width: 30em; }

.study {
  background: var(--daylight);
  border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 48px) clamp(24px, 3vw, 36px);
}
.study__svg { width: 100%; height: auto; overflow: visible; }
.study__floor { fill: #fff; }
.study__orbit { fill: none; stroke: rgba(23, 25, 28, 0.14); stroke-width: 1.5; stroke-dasharray: 3 9; }
.study__patch { fill: url(#study-light); mix-blend-mode: multiply; }
.study__furniture rect { fill: none; stroke: var(--lead); stroke-width: 2.2; }
.study__walls rect { fill: var(--graphite); }
.study__sill { fill: #fff; stroke: var(--graphite); stroke-width: 2; }
.study__glass { stroke: var(--graphite); stroke-width: 1.6; }
.study__label { font-size: 30px; font-weight: 600; font-stretch: 82%; text-anchor: middle; fill: var(--graphite); }
.study__note { font-size: 22px; font-stretch: 80%; text-anchor: middle; fill: var(--pencil); }
.study__sun circle { fill: var(--sun); }
.study__sun .study__sun-halo { fill: var(--sun); opacity: 0.18; }
.study__sun { transition: opacity 0.3s; }
.study__compass path { fill: var(--graphite); }
.study__compass text { font-size: 22px; font-weight: 600; text-anchor: middle; font-stretch: 80%; }

.study__controls { margin-top: clamp(16px, 2.5vw, 28px); }
.study__readout { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.study__time {
  font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 500;
  font-stretch: 82%;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.study__context { color: var(--pencil); font-size: var(--fs-small); }
.study__range { display: block; margin-top: 18px; }
.study__scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--fs-micro); color: var(--pencil); font-variant-numeric: tabular-nums; }
.study__caption { margin-top: 18px; font-size: var(--fs-small); color: var(--pencil); max-width: 36em; }

/* range inputs: thin track, sun-coloured thumb */
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
  --track: rgba(23, 25, 28, 0.16);
}
input[type='range']::-webkit-slider-runnable-track { height: 2px; background: var(--track); border-radius: 2px; }
input[type='range']::-moz-range-track { height: 2px; background: var(--track); border-radius: 2px; }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--sun);
  border: 4px solid #fff;
  box-shadow: 0 1px 2px rgba(23, 25, 28, 0.2), 0 4px 14px rgba(242, 169, 59, 0.45);
}
input[type='range']::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sun);
  border: 4px solid #fff;
  box-shadow: 0 1px 2px rgba(23, 25, 28, 0.2), 0 4px 14px rgba(242, 169, 59, 0.45);
}
input[type='range']:focus-visible { outline: none; }
input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--ultramarine); }
input[type='range']:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--ultramarine); }

/* ---------------------------------------------------- process */
.process { background: var(--paper); padding-top: 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 80px);
  counter-reset: step;
}
.step { padding-top: 22px; border-top: 1px solid var(--graphite); }
.step__n {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--pencil);
  margin-bottom: 18px;
}
.step p { margin-top: 10px; color: var(--pencil); max-width: 26em; }

.detail {
  margin-top: clamp(64px, 8vw, 112px);
  padding: clamp(28px, 5vw, 64px);
  background: var(--daylight);
  border-radius: var(--radius-l);
}
.detail__svg { width: 100%; height: auto; overflow: visible; }
.detail__wall { fill: var(--graphite); }
.detail__sill { fill: #fff; stroke: var(--graphite); stroke-width: 2; }
.detail__glass { stroke: var(--graphite); stroke-width: 1.6; }
.detail__dim line { stroke: var(--lead); stroke-width: 1.4; }
.detail__dim .detail__tick { stroke: var(--graphite); stroke-width: 2.2; }
.detail__dim text { font-size: 24px; text-anchor: middle; font-stretch: 78%; fill: var(--pencil); font-variant-numeric: tabular-nums; }
.detail__tag { font-size: 22px; font-weight: 600; text-anchor: middle; font-stretch: 80%; fill: var(--graphite); }
.detail__room { font-size: 30px; font-weight: 600; text-anchor: middle; font-stretch: 82%; fill: var(--graphite); }
.detail__room--small { font-size: 22px; font-weight: 400; fill: var(--pencil); }
.detail__callouts path { fill: none; stroke: var(--ultramarine); stroke-width: 1.6; }
.detail__callouts circle { fill: var(--ultramarine); }
.detail__callouts text { font-size: 28px; font-weight: 600; font-stretch: 86%; letter-spacing: -0.01em; fill: var(--graphite); }
.detail__callouts .detail__sub { font-size: 22px; font-weight: 400; fill: var(--pencil); }
.detail figcaption { margin-top: clamp(20px, 3vw, 36px); max-width: 38em; color: var(--pencil); font-size: var(--fs-small); }
.detail__facts { display: none; }

/* ------------------------------------------------------- walk */
.walk { background: var(--dusk); color: var(--dusk-text); }
.walk .section__lead { color: var(--dusk-muted); }
.walk__frame {
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #1b2436;
  aspect-ratio: 16 / 9;
}
.walk__poster { width: 100%; height: 100%; object-fit: cover; }
.walk__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 38, 0.5), rgba(15, 23, 38, 0) 45%);
  pointer-events: none;
}
.walk__start {
  white-space: nowrap;
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(20px, 4vw, 40px);
  transform: translateX(-50%);
  min-height: 52px;
  padding: 0 30px;
  font-size: 1.0625rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.walk__start:active { transform: translateX(-50%) scale(0.98); }
.walk__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
}
.walk__controls dt { font-weight: 600; font-stretch: 92%; }
.walk__controls dd { margin: 8px 0 0; color: var(--dusk-muted); font-size: var(--fs-small); max-width: 26em; }
kbd {
  display: inline-block;
  min-width: 1.75em;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(232, 237, 243, 0.28);
  font: 600 0.75rem/1.6 var(--font);
  text-align: center;
  color: var(--dusk-text);
}

/* --------------------------------------------------- audience */
.audience__list {
  margin-top: clamp(48px, 6vw, 80px);
}
.audience__list li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(16px, 4vw, 64px);
  padding: clamp(26px, 3vw, 36px) 0;
  border-top: 1px solid var(--hairline);
}
.audience__list li:last-child { border-bottom: 1px solid var(--hairline); }
.audience__list h3 { font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); font-stretch: 86%; letter-spacing: -0.02em; }
.audience__list p { color: var(--pencil); max-width: 34em; }
.audience__list h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.35s var(--ease); }
.audience__list h3 a:hover { background-size: 100% 1.5px; }

/* -------------------------------------------------------- faq */
.faq { background: var(--daylight); }
.faq__wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); }
.faq__list details { border-top: 1px solid rgba(23, 25, 28, 0.12); }
.faq__list details:last-child { border-bottom: 1px solid rgba(23, 25, 28, 0.12); }
.faq__list summary {
  position: relative;
  display: block;
  padding: 24px 48px 24px 0;
  font-size: 1.1875rem;
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before,
.faq__list summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.6px;
  background: var(--graphite);
  transition: transform 0.35s var(--ease);
}
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0deg); }
.faq__list details p { padding: 0 48px 26px 0; color: var(--pencil); max-width: 38em; }

/* ---------------------------------------------------- contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: var(--fs-small); font-weight: 600; font-stretch: 94%; padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--pencil); }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: var(--radius-m);
  border: 1px solid var(--hairline);
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--lead); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ultramarine); box-shadow: 0 0 0 3px rgba(45, 79, 224, 0.16); }
.field input[aria-invalid='true'] { border-color: #c8402f; }
.field--choice legend { margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choices span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: var(--fs-small);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.choices input:checked + span { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.choices input:focus-visible + span { box-shadow: 0 0 0 3px rgba(45, 79, 224, 0.35); }
.form__end { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__status { font-size: var(--fs-small); color: var(--pencil); }
.form__status.is-error { color: #c8402f; }

/* ----------------------------------------------------- footer */
.footer { background: var(--daylight); padding: 56px 0 44px; font-size: var(--fs-small); color: var(--pencil); border-top: 1px solid rgba(23, 25, 28, 0.06); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.footer__brand .brand { color: var(--graphite); }
.footer__brand p { margin-top: 10px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 28px clamp(40px, 6vw, 96px); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__h { color: var(--graphite); font-weight: 600; font-stretch: 92%; margin-bottom: 4px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--graphite); }
.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 24px; border-top: 1px solid rgba(23, 25, 28, 0.08); font-size: var(--fs-micro); }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--graphite); }

/* ================================================== walk mode */
.walkmode {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #0b0f16;
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
}
.walkmode[hidden] { display: none; }
.walkmode__stage { position: absolute; inset: 0; }
.walkmode__stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.walkmode__stage canvas:active { cursor: grabbing; }
.walkmode__close,
.walkmode__time,
.walkmode__hint {
  position: absolute;
  z-index: 2;
  background: rgba(15, 23, 38, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-radius: 999px;
}
.walkmode__close {
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}
.walkmode__close:hover { background: rgba(15, 23, 38, 0.8); }
.walkmode__map {
  position: absolute;
  z-index: 2;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: clamp(120px, 18vw, 200px);
  aspect-ratio: 2200 / 1960;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.walkmode__map .plan { width: 100%; height: 100%; }
.walkmode__map .plan-labels,
.walkmode__map .plan-dims,
.walkmode__map .plan-north,
.walkmode__map .plan-furniture,
.walkmode__map .plan-swing,
.walkmode__map .plan-door,
.walkmode__map .plan-board { display: none; }
.walkmode__me {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--ultramarine);
  box-shadow: 0 0 0 3px #fff;
  left: 0; top: 0;
}
.walkmode__me::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 44px;
  margin: -44px 0 0 -22px;
  transform-origin: 50% 100%;
  transform: rotate(var(--heading, 0deg));
  background: conic-gradient(from -30deg at 50% 100%, rgba(45, 79, 224, 0.35) 0deg 60deg, transparent 60deg);
  border-radius: 50% 50% 0 0;
}
.walkmode__hint {
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: opacity 0.6s var(--ease);
}
.walkmode__hint.is-hidden { opacity: 0; }
.walkmode__time {
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(440px, calc(100vw - 32px));
  padding: 6px 20px;
  font-size: 0.875rem;
}
.walkmode__time input { --track: rgba(255, 255, 255, 0.3); flex: 1; }
.walkmode__time output { min-width: 3.2em; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.walkmode__joy {
  position: absolute;
  z-index: 2;
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(15, 23, 38, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.walkmode__joy.is-active { opacity: 1; }
.walkmode__joy span {
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  transform: translate(var(--jx, 0px), var(--jy, 0px));
}
.walkmode__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}
.walkmode__loading[hidden] { display: none; }

@media (max-width: 640px) {
  .walkmode__hint { top: auto; bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px); white-space: normal; text-align: center; width: calc(100vw - 48px); border-radius: 16px; }
}

/* ================================================== responsive */
@media (max-width: 960px) {
  .checks__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 22px 0 28px; }
  .walk__controls { grid-template-columns: 1fr; gap: 22px; }
  .faq__wrap { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .audience__list li { grid-template-columns: 1fr; gap: 8px; }
  .form__row { grid-template-columns: 1fr; }
  .walk__frame { aspect-ratio: 4 / 5; border-radius: 20px; }
  .detail { padding: 24px 18px; border-radius: 20px; }
  .detail__svg { margin: 0 -8px; width: calc(100% + 16px); }
  .detail__callouts { display: none; }
  .detail__room { font-size: 52px; }
  .detail__room--small { font-size: 40px; }
  .detail__dim text, .detail__tag { font-size: 40px; }
  .detail__facts { display: grid; gap: 8px; margin-bottom: 16px; color: var(--graphite); }
  .detail__facts strong { font-weight: 600; }
  .study { border-radius: 20px; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ================================================== subpages */
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 112px)) 0 clamp(56px, 7vw, 96px); background: var(--paper); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); font-size: var(--fs-micro); color: var(--pencil); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--graphite); }
.crumbs [aria-current] { color: var(--graphite); }
.page-hero h1 { max-width: 15em; font-size: clamp(2.5rem, 1.45rem + 4.1vw, 4.75rem); line-height: 1; }
.page-hero__lead { margin-top: clamp(18px, 2.5vw, 28px); max-width: 36em; font-size: var(--fs-lead); line-height: 1.45; color: var(--pencil); }
.page-hero .hero__actions { justify-content: flex-start; }
.page-hero__figure { margin-top: clamp(48px, 6vw, 80px); border-radius: var(--radius-l); overflow: hidden; background: var(--daylight); }
.page-hero__figure img { width: 100%; height: auto; }
.page-hero__figure.detail { margin-top: clamp(48px, 6vw, 80px); }

.section--tint { background: var(--daylight); }
.section--flush-top { padding-top: 0; }
.rows { margin-top: clamp(40px, 5vw, 72px); }
.rows li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(16px, 4vw, 64px);
  padding: clamp(24px, 3vw, 34px) 0;
  border-top: 1px solid var(--hairline);
}
.section--tint .rows li { border-color: rgba(23, 25, 28, 0.12); }
.rows li:last-child { border-bottom: 1px solid var(--hairline); }
.rows h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-stretch: 88%; letter-spacing: -0.018em; }
.rows p { color: var(--pencil); max-width: 34em; }

.cta-band { background: var(--dusk); color: var(--dusk-text); padding: clamp(80px, 10vw, 144px) 0; }
.cta-band h2 { max-width: 14em; }
.cta-band p { margin-top: 20px; max-width: 34em; font-size: var(--fs-lead); line-height: 1.45; color: var(--dusk-muted); }
.cta-band .btn { margin-top: clamp(28px, 3.5vw, 40px); }

/* articles */
.article__head { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 104px)); }
.article__head h1 { max-width: 15em; font-size: clamp(2.375rem, 1.45rem + 3.6vw, 4.25rem); line-height: 1.02; }
.article__lead { margin-top: 22px; max-width: 34em; font-size: var(--fs-lead); line-height: 1.45; color: var(--pencil); }
.article__meta { margin-top: 22px; font-size: var(--fs-micro); color: var(--pencil); }
.prose {
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
  font-size: 1.125rem;
  line-height: 1.7;
}
.prose > * { max-width: 680px; }
.prose > .table-scroll { max-width: 820px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.625rem, 1.35rem + 1vw, 2.125rem); line-height: 1.12; font-stretch: 88%; letter-spacing: -0.022em; }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; }
.prose h2 + p, .prose h3 + p { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--pencil); }
.prose a { color: var(--ultramarine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.prose th, .prose td { padding: 12px 10px 12px 0; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose th { font-weight: 600; }
.prose td { color: var(--pencil); font-variant-numeric: tabular-nums; }
.prose .note { padding: 20px 22px; border-radius: var(--radius-m); background: var(--daylight); font-size: 1rem; color: var(--graphite); }
.prose .table-scroll { overflow-x: auto; }

/* blog list */
.posts { margin-top: clamp(40px, 5vw, 72px); }
.posts li { padding: clamp(26px, 3vw, 36px) 0; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(12px, 4vw, 64px); }
.posts li:last-child { border-bottom: 1px solid var(--hairline); }
.posts time, .posts .posts__meta { font-size: var(--fs-micro); color: var(--pencil); }
.posts h2 { font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem); line-height: 1.15; font-stretch: 86%; letter-spacing: -0.02em; }
.posts h2 a { text-decoration: none; }
.posts h2 a:hover { color: var(--ultramarine); }
.posts p { margin-top: 10px; color: var(--pencil); max-width: 36em; }

.related { padding: clamp(64px, 8vw, 112px) 0; background: var(--daylight); }
.related h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }

@media (max-width: 640px) {
  .rows li, .posts li { grid-template-columns: 1fr; gap: 8px; }
  .page-hero__figure { border-radius: 20px; }
}
