/* Newtonian Design
   Layout: soft and flowing. Generous space, rounded imagery, tinted bands instead of boxes,
   live fluid art as the signature, and one italic serif voice for emphasis. */
:root {
  --paper: #EEEEEA;
  --sheet: #F8F8F5;
  --mist: #E2E7EC;
  --ink: #14181E;
  --ink-2: #545C68;
  --line: #D6D8D5;
  --line-2: #B6BBBD;
  --accent: #1B3D6E;          /* Prussian blue */
  --accent-ink: #F4F6FA;
  --accent-soft: #DCE3ED;
  --ok: #2F6B4A;
  --bad: #A33A2C;
  --mass-1: #FBFBFA;
  --mass-2: #E2E3E0;
  --mass-3: #CDD0CC;
  --mass-line: #8E959A;
  --fluid-bg: #EEEEEA;
  --fluid-1: #1B3D6E;
  --fluid-2: #6C8DBD;
  --fluid-3: #BC9A55;
  --fluid-4: #C49A6C;

  /* Materials: paint for drawings and renders only */
  --m-oak: #C49A6C; --m-floor: #D6B88F; --m-walnut: #6F4C35; --m-linen: #E8DFD1;
  --m-boucle: #F1EDE5; --m-rug: #DCD2BF; --m-sage: #8C9C82; --m-cognac: #9A5A38;
  --m-brass: #BC9A55; --m-stone: #E0DDD6; --m-charcoal: #383C42; --m-prussian: #26466F;
  --m-clay: #B4705A; --m-wall: #ECE9E2; --m-wall-2: #DFDBD3; --m-glass: #C2D5E6;
  --m-glass-night: #1C2840; --m-passage: #C3AD8B; --m-glow: #FFC57E; --m-dusk: #2B3652;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-xs: .78rem;
  --t-sm: .9rem;
  --t-base: 1.0625rem;
  --t-lg: clamp(1.125rem, 1.05rem + .4vw, 1.35rem);
  --t-xl: clamp(1.4rem, 1.2rem + .9vw, 1.9rem);
  --t-2xl: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  --t-3xl: clamp(3rem, 1.6rem + 6vw, 7.25rem);

  --r: 28px;
  --r-sm: 16px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --maxw: 1280px;
  --side: clamp(20px, 4.5vw, 64px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1216; --sheet: #161A20; --mist: #151B24; --ink: #E7E9EC; --ink-2: #A0A8B3; --line: #262C35; --line-2: #3B434E;
    --accent: #8FB4EA; --accent-ink: #0B1424; --accent-soft: #1A2639; --ok: #6FBF8E; --bad: #F08C7C;
    --mass-1: #3A4048; --mass-2: #2C3139; --mass-3: #22262D; --mass-line: #6A727D;
    --fluid-bg: #0F1216; --fluid-1: #8FB4EA; --fluid-2: #3F5F94; --fluid-3: #D8BA78; --fluid-4: #B88E62;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1216; --sheet: #161A20; --mist: #151B24; --ink: #E7E9EC; --ink-2: #A0A8B3; --line: #262C35; --line-2: #3B434E;
  --accent: #8FB4EA; --accent-ink: #0B1424; --accent-soft: #1A2639; --ok: #6FBF8E; --bad: #F08C7C;
  --mass-1: #3A4048; --mass-2: #2C3139; --mass-3: #22262D; --mass-line: #6A727D;
  --fluid-bg: #0F1216; --fluid-1: #8FB4EA; --fluid-2: #3F5F94; --fluid-3: #D8BA78; --fluid-4: #B88E62;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap {
  max-width: var(--maxw); margin-inline: auto;
  padding-left: max(var(--side), env(safe-area-inset-left, 0px));
  padding-right: max(var(--side), env(safe-area-inset-right, 0px));
}
.eyebrow { font-family: var(--f-body); font-size: var(--t-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-2); margin: 0; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1 em, h2 em { color: var(--accent); font-size: 1.08em; line-height: .9; }
.display { font-size: var(--t-3xl); font-stretch: 108%; font-weight: 520; line-height: .98; letter-spacing: -.035em; }
h2 { font-size: var(--t-2xl); font-stretch: 104%; font-weight: 520; line-height: 1.08; letter-spacing: -.025em; }
h3 { font-size: var(--t-lg); font-stretch: 102%; font-weight: 560; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: var(--t-lg); line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--paper); padding: .5rem .75rem; text-decoration: none; font-size: var(--t-sm); border-radius: 8px; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 50px; padding: 0 1.5rem;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px;
  font: 500 var(--t-base)/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn span[aria-hidden] { transition: transform .4s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: var(--t-sm); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: 30px; height: 30px; flex: none; color: var(--ink); }
.logo-swing { stroke: var(--accent); }
.logo-word { font-family: var(--f-display); font-stretch: 125%; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.logo-word b { font-weight: 700; }
.logo-word span { font-weight: 380; }
.site-nav { display: flex; gap: .25rem; }
.site-nav a { position: relative; text-decoration: none; font-size: var(--t-sm); padding: .55rem .85rem; color: var(--ink-2); border-radius: 999px; transition: color .25s, background-color .25s; }
.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.site-nav a[aria-current] { color: var(--ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.menu-btn { display: none; }
.menu-open { overflow: hidden; }
.menu-open .site-header::before { background: var(--paper); }

/* Mobile menu: a full-screen layer outside the header, so nothing in the header can clip or hide it. */
.mobile-menu { display: none; }
@media (max-width: 860px) {
  .header-cta, .site-nav { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--line-2); border-radius: 999px;
    background: transparent; color: var(--ink); font: 500 var(--t-sm) var(--f-body); cursor: pointer;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 45; background: var(--paper); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .menu-open .mobile-menu { display: block; animation: menu-in .2s ease-out; }
  @keyframes menu-in { from { opacity: 0; } }
  .mobile-menu-in {
    display: grid; align-content: start;
    padding-top: calc(env(safe-area-inset-top, 0px) + 88px);
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(var(--side), env(safe-area-inset-left, 0px));
    padding-right: max(var(--side), env(safe-area-inset-right, 0px));
  }
  .mobile-menu-in > a {
    display: block; text-decoration: none; color: var(--ink);
    font-family: var(--f-display); font-stretch: 108%; font-size: 2.1rem; font-weight: 520; line-height: 1.2; letter-spacing: -.02em;
    padding: .75rem 0;
  }
  .mobile-menu-in > a[aria-current] { color: var(--accent); font-family: var(--f-serif); font-style: italic; font-weight: 400; }
  .nav-extra { display: grid; gap: .35rem; margin-top: 2rem; font-size: var(--t-sm); color: var(--ink-2); }
  .nav-extra a { color: var(--ink); text-decoration: none; }
}
@media (max-width: 440px) {
  .header-in { gap: .75rem; }
  .site-header .logo { gap: .55rem; min-width: 0; }
  .site-header .logo-mark { width: 26px; height: 26px; }
  .site-header .logo-word { font-size: .8rem; letter-spacing: .04em; }
}

/* ---------- Views and transitions ---------- */
main { display: block; outline: none; }
.view { view-transition-name: page; }
::view-transition-old(page) { animation: vt-out .3s var(--ease) both; }
::view-transition-new(page) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.view.enter { animation: view-in .6s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(16px); } }
.rise > span { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(.3em); } }
[data-reveal] { transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
[data-reveal].pending { transform: translateY(32px); opacity: .25; }

/* ---------- Scaffolding ---------- */
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); }
.section + .section { padding-top: 0; }
.sec-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 4rem); max-width: 50rem; }
.sec-head p:not(.eyebrow) { color: var(--ink-2); font-size: var(--t-lg); max-width: 36em; }
.img-soft { border-radius: var(--r); overflow: hidden; margin: 0; }
.band-soft { background: var(--mist); border-radius: clamp(28px, 4vw, 56px); margin-inline: clamp(8px, 1.5vw, 20px); }
.band-soft-in { padding-block: clamp(4rem, 3rem + 5vw, 8rem); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 4vw, 4rem);
  align-items: center; padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 6rem);
}
.hero-copy { display: grid; gap: 1.75rem; }
.hero .display span { white-space: nowrap; }
.tagline { font-family: var(--f-serif); font-style: italic; font-size: var(--t-lg); color: var(--ink-2); }
.hero-art { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--fluid-bg); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 45%, transparent); }
.hero-art figcaption { position: absolute; left: 1.1rem; bottom: 1rem; font-size: var(--t-xs); color: var(--ink-2); background: color-mix(in srgb, var(--paper) 80%, transparent); padding: .35rem .7rem; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
canvas.fluid { position: relative; z-index: 1; display: block; width: 100%; height: 100%; touch-action: pan-y; }
/* Soft washes of pigment drifting behind the ink lines */
.hero-art::before, .story-art::before, .contact-art::before {
  content: ""; position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 32% at 28% 30%, color-mix(in srgb, var(--fluid-2) 50%, transparent), transparent 70%),
    radial-gradient(34% 40% at 74% 66%, color-mix(in srgb, var(--fluid-3) 42%, transparent), transparent 70%),
    radial-gradient(44% 34% at 62% 22%, color-mix(in srgb, var(--fluid-1) 30%, transparent), transparent 70%),
    radial-gradient(30% 30% at 22% 78%, color-mix(in srgb, var(--fluid-4) 35%, transparent), transparent 70%);
  filter: blur(28px);
  animation: drift 22s ease-in-out infinite alternate;
}
.story-art, .contact-art { position: relative; }
.hero-art figcaption { z-index: 2; }
@keyframes drift { to { transform: translate(7%, -5%) rotate(14deg) scale(1.1); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { aspect-ratio: 5 / 4; }
}

/* ---------- Statement ---------- */
.statement { padding-block: clamp(3rem, 2rem + 5vw, 8rem); display: grid; gap: 1.5rem; justify-items: start; }
.big-quote { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.4rem); font-stretch: 102%; font-weight: 440; line-height: 1.2; letter-spacing: -.02em; max-width: 24em; }

/* ---------- Blend (human + AI) ---------- */
.blend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4.5rem); }
.blend-col { display: grid; gap: 1.25rem; align-content: start; }
.palette-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--paper); padding: 6px; aspect-ratio: 4 / 3; max-width: 100%; }
.palette-mini > div { background: var(--sheet); border-radius: 20px; display: grid; place-items: center; overflow: hidden; min-height: 0; }
.palette-mini svg { width: 92%; height: 92%; }
.collage { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; aspect-ratio: 4 / 3; max-width: 100%; }
.collage > div { border-radius: 20px; overflow: hidden; min-height: 0; }
.collage > div:first-child { grid-row: span 2; }
.collage.tall { aspect-ratio: 4 / 5; }
.pairs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem 1.25rem; margin: 0; }
.pairs dt { font-family: var(--f-serif); font-style: italic; font-size: var(--t-lg); color: var(--accent); line-height: 1.4; }
.pairs dd { margin: 0; color: var(--ink-2); padding-top: .2rem; }
@media (max-width: 760px) { .blend { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Room stages ---------- */
.shape-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 4vw, 4rem); align-items: center; }
.shape-copy { display: grid; gap: 1.5rem; }
.shape-room { margin: 0; background: var(--sheet); border-radius: var(--r); padding: clamp(1rem, 3vw, 2.5rem); }
.stage-bar { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--mist); border-radius: 999px; justify-self: start; }
.stage-bar button {
  position: relative; padding: .6rem 1.05rem; min-height: 42px; border: 0; border-radius: 999px; overflow: hidden;
  background: transparent; color: var(--ink-2); font: 500 var(--t-sm)/1 var(--f-body); cursor: pointer;
  transition: color .3s, background-color .3s; -webkit-tap-highlight-color: transparent;
}
.stage-bar button:hover { color: var(--ink); }
.stage-bar button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 10px -4px rgb(0 0 0 / .25); }
.stage-bar .bar { position: absolute; left: 18%; right: 18%; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.stage-bar.auto button[aria-pressed="true"] .bar { animation: fill var(--dwell, 3.8s) linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stage-caption { font-size: var(--t-lg); color: var(--ink-2); max-width: 26em; min-height: 3.3em; }
@media (max-width: 900px) { .shape-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Materials ---------- */
.materials-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.mat { margin: 0; display: grid; gap: .7rem; }
.mat > div { aspect-ratio: 3 / 4; max-width: 100%; border-radius: 999px 999px var(--r-sm) var(--r-sm); overflow: hidden; transition: transform .6s var(--ease); }
.mat:hover > div { transform: translateY(-6px); }
.mat figcaption { font-size: var(--t-sm); color: var(--ink-2); }
[data-material] { position: relative; overflow: hidden; }
[data-material] > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
@media (max-width: 900px) { .materials-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .materials-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Flow list ---------- */
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; }
.flow-list a {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1.4rem 0;
  text-decoration: none; color: inherit; border-top: 1px solid var(--line); transition: padding-left .5s var(--ease);
}
.flow-list li:last-child a { border-bottom: 1px solid var(--line); }
.flow-list a:hover { padding-left: .75rem; }
.flow-list .n { font-family: var(--f-serif); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--accent); }
.flow-list .t { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .25rem 2rem; color: var(--ink-2); }
.flow-list b { font-family: var(--f-display); font-stretch: 104%; font-weight: 540; font-size: var(--t-xl); color: var(--ink); letter-spacing: -.015em; line-height: 1.2; }
@media (max-width: 680px) { .flow-list .t { grid-template-columns: minmax(0, 1fr); } .flow-list a { grid-template-columns: 2.75rem minmax(0, 1fr); } }

/* ---------- Study cards ---------- */
.study-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.study-card { display: grid; gap: .6rem; text-decoration: none; color: var(--ink); }
.study-card .frame { background: var(--sheet); border-radius: var(--r); padding: 1.25rem; aspect-ratio: 4 / 3; max-width: 100%; display: grid; place-items: center; overflow: hidden; margin-bottom: .4rem; }
.study-card .frame svg { width: 100%; height: 100%; transition: transform 1s var(--ease); }
.study-card:hover .frame svg { transform: scale(1.05) rotate(-.5deg); }
.study-card p { color: var(--ink-2); font-size: var(--t-sm); }
@media (max-width: 900px) { .study-cards { grid-template-columns: minmax(0, 1fr); } .study-card .frame { aspect-ratio: 16 / 10; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--accent); color: var(--accent-ink); border-radius: clamp(28px, 4vw, 56px); margin: clamp(3rem, 6vw, 6rem) clamp(8px, 1.5vw, 20px) 0; isolation: isolate; }
.cta canvas.fluid { position: absolute; inset: 0; z-index: -1; opacity: .55; }
.cta-in { padding-block: clamp(4rem, 3rem + 5vw, 8rem); display: grid; gap: 1.25rem; justify-items: start; }
.cta h2 { font-size: var(--t-2xl); max-width: 14em; }
.cta h2 em { color: inherit; }
.cta p { font-size: var(--t-lg); opacity: .88; max-width: 30em; }
.cta .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
body[data-route="contact"] .cta { display: none; }

/* ---------- Page heads ---------- */
.page-head { padding-block: clamp(3rem, 2rem + 4vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 5rem); display: grid; gap: 1.5rem; }
.page-head .display { font-size: clamp(2.6rem, 1.4rem + 5.2vw, 6.25rem); }

/* ---------- Process ---------- */
.phases { display: grid; gap: clamp(4.5rem, 3rem + 6vw, 9rem); padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); }
.phase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; scroll-margin-top: 96px; }
.phase:nth-child(even):not(.stack) .phase-text { order: 2; }
.phase.stack { grid-template-columns: minmax(0, 1fr); }
.phase.stack .phase-text { max-width: 44rem; }
.phase-text { display: grid; gap: 1.1rem; min-width: 0; }
.phase-text .num { font-family: var(--f-serif); font-style: italic; font-size: clamp(3rem, 2rem + 3vw, 4.75rem); line-height: .8; color: var(--accent); }
.phase-text > p { font-size: var(--t-lg); color: var(--ink-2); }
.duo { display: grid; gap: .9rem; margin-top: .5rem; padding-left: 1.25rem; border-left: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.duo p { color: var(--ink-2); }
.duo b { color: var(--ink); font-weight: 600; }
.phase-art { min-width: 0; margin: 0; }
.room-frame { background: var(--sheet); padding: clamp(1rem, 3vw, 2.5rem); }
.room-frame svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .phase { grid-template-columns: minmax(0, 1fr); }
  .phase:nth-child(even):not(.stack) .phase-text { order: 0; }
}

/* Palette explorer */
.explorer { background: var(--mist); border-radius: var(--r); padding: clamp(1rem, 2.5vw, 2rem); display: grid; gap: 1.25rem; }
.explorer-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.explorer-head p { color: var(--ink-2); max-width: 34em; }
.explorer-head b { color: var(--ink); }
.explorer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.opt {
  position: relative; display: grid; gap: .4rem; padding: .7rem .7rem .8rem; border: 2px solid transparent; border-radius: 22px;
  background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; font: inherit;
  transition: border-color .3s, transform .4s var(--ease); -webkit-tap-highlight-color: transparent;
}
.opt:hover { transform: translateY(-3px); }
.opt svg { width: 100%; height: auto; display: block; }
.opt .cap { display: flex; justify-content: space-between; gap: .5rem; font-size: var(--t-xs); color: var(--ink-2); padding-inline: .3rem; }
.opt .cap b { color: var(--ink); font-weight: 600; font-size: var(--t-sm); }
.opt .dots { display: flex; gap: 3px; }
.opt .dots i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.opt[aria-pressed="true"] { border-color: var(--accent); }
.opt .keep { position: absolute; top: .9rem; right: .9rem; font-size: var(--t-xs); font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .3s var(--ease); }
.opt[aria-pressed="true"] .keep { opacity: 1; transform: none; }
.opt.fresh { animation: opt-in .6s var(--ease) both; }
@keyframes opt-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.explorer-meta { font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 720px) { .explorer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Compare */
.compare { position: relative; background: var(--sheet); border-radius: var(--r); user-select: none; overflow: hidden; }
.compare .layer { padding: clamp(.75rem, 2vw, 1.5rem); background: var(--sheet); }
.compare .layer svg { width: 100%; height: auto; display: block; }
.compare .top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.compare .handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 18px; line-height: 42px; text-align: center;
  box-shadow: 0 6px 20px -6px rgb(0 0 0 / .4);
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input:focus-visible + .handle::after { outline: 2px solid var(--ink); outline-offset: 3px; }
.compare .tag { position: absolute; top: .9rem; font-size: var(--t-xs); font-weight: 500; padding: .3rem .75rem; border-radius: 999px; background: color-mix(in srgb, var(--paper) 85%, transparent); pointer-events: none; }
.compare .tag.l { left: .9rem; } .compare .tag.r { right: .9rem; }

/* Kelvin */
.kelvin { display: grid; gap: 1.25rem; }
.kelvin-view { background: var(--sheet); border-radius: var(--r); padding: clamp(1rem, 3vw, 2rem); }
.kelvin-view svg { width: 100%; height: auto; display: block; }
.range { width: 100%; accent-color: var(--accent); margin: 0; }
.range-row { display: grid; gap: .6rem; }
.range-row label { display: flex; justify-content: space-between; font-size: var(--t-sm); font-weight: 500; }
.range-row output { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.range-row p { color: var(--ink-2); font-size: var(--t-sm); }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.way { display: grid; gap: .75rem; align-content: start; }
.way-art { height: 9rem; border-radius: var(--r); overflow: hidden; }
.way p { color: var(--ink-2); }
@media (max-width: 800px) { .ways { grid-template-columns: minmax(0, 1fr); } .way-art { height: 7rem; } }

/* ---------- Work ---------- */
.studies { display: grid; gap: clamp(4rem, 3rem + 5vw, 8rem); padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); }
.study { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 4vw, 4rem); align-items: center; }
.study:nth-child(even) .compare { order: 2; }
.study-info { display: grid; gap: 1.1rem; align-content: start; }
.study-info h2 { font-size: var(--t-xl); font-stretch: 106%; }
.brief { font-family: var(--f-serif); font-style: italic; font-size: var(--t-lg); line-height: 1.45; color: var(--ink); }
.moves { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.moves li { padding-left: 1.4rem; position: relative; color: var(--ink-2); line-height: 1.55; }
.moves li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-xs); padding: .3rem .75rem .3rem .3rem; border-radius: 999px; background: var(--sheet); }
.swatch i { width: 1.5rem; height: 1.5rem; border-radius: 50%; overflow: hidden; display: block; flex: none; }
@media (max-width: 900px) { .study { grid-template-columns: minmax(0, 1fr); } .study:nth-child(even) .compare { order: 0; } }

/* ---------- Studio ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; padding-bottom: clamp(4rem, 3rem + 5vw, 8rem); }
.story-art { margin: 0; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--fluid-bg); }
.story-text { display: grid; gap: 1.1rem; }
.story-text p:not(.eyebrow) { color: var(--ink-2); font-size: var(--t-lg); max-width: 32em; }
@media (max-width: 860px) { .story { grid-template-columns: minmax(0, 1fr); } .story-art { aspect-ratio: 5 / 4; border-radius: var(--r); } }
.policy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.policy > div { display: grid; gap: 1rem; align-content: start; background: var(--paper); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2.25rem); }
.policy h3 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: var(--t-xl); color: var(--accent); }
.policy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .85rem; }
.policy li { padding-left: 1.4rem; position: relative; line-height: 1.5; }
.policy li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
.policy > div + div li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
@media (max-width: 720px) { .policy { grid-template-columns: minmax(0, 1fr); } }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.principle { display: grid; gap: .8rem; align-content: start; }
.p-art { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 50%; overflow: hidden; width: 70%; }
.principle p { color: var(--ink-2); }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .principles { grid-template-columns: minmax(0, 1fr); } .p-art { width: 40%; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; padding-bottom: clamp(4rem, 3rem + 4vw, 7rem); }
.contact-side { display: grid; gap: 1.5rem; align-content: start; }
.contact-art { margin: 0; height: 11rem; border-radius: var(--r); overflow: hidden; background: var(--fluid-bg); }
.contact-cards { display: grid; gap: .25rem; }
.c-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; padding: 1rem 0; align-items: center; border-bottom: 1px solid var(--line); }
.c-card .eyebrow { grid-column: 1 / -1; }
.c-card .val { font-family: var(--f-display); font-stretch: 104%; font-size: var(--t-xl); font-weight: 500; line-height: 1.2; user-select: all; overflow-wrap: anywhere; }
.c-card .val.addr { user-select: text; font-size: var(--t-lg); }
.c-card .links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem; font-size: var(--t-sm); margin-top: .3rem; }
.copy-btn { min-height: 36px; padding: 0 .9rem; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font: 500 var(--t-xs) var(--f-body); cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.done { color: var(--ok); border-color: var(--ok); }
.next-steps { list-style: none; counter-reset: s; margin: .5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; font-size: var(--t-sm); color: var(--ink-2); }
.next-steps li::before { content: counter(s); font-family: var(--f-serif); font-style: italic; color: var(--accent); font-size: var(--t-xl); line-height: 1; }
.next-steps b { color: var(--ink); font-weight: 600; display: block; }

form.inquiry { display: grid; gap: 1.25rem; background: var(--mist); border-radius: var(--r); padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.field { display: grid; gap: .45rem; min-width: 0; }
.field label, .field legend { font-size: var(--t-sm); font-weight: 500; padding: 0; }
.field .opt-l, .field .opt { color: var(--ink-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .95rem; border: 1px solid transparent; border-radius: 14px; background: var(--paper); color: var(--ink);
  font: 400 var(--t-base) var(--f-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: var(--t-xs); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .15rem; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1rem; border-radius: 999px; background: var(--paper); font-size: var(--t-sm); font-weight: 400; cursor: pointer; transition: background-color .2s, color .2s; }
.choices input:checked + span { background: var(--accent); color: var(--accent-ink); }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form-foot p { font-size: var(--t-xs); color: var(--ink-2); max-width: 28em; }
.sent { display: grid; gap: 1rem; background: var(--mist); border-radius: var(--r); padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.sent h2 { font-size: var(--t-xl); outline: none; }
.sent pre { margin: 0; padding: 1rem; background: var(--paper); border-radius: 14px; font: 400 var(--t-sm)/1.55 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 18rem; overflow: auto; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .row2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(4rem, 3rem + 4vw, 7rem); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand .logo-word { font-size: 1.1rem; }
.footer-brand p { color: var(--ink-2); max-width: 22em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.footer-cols > div { display: grid; gap: .35rem; align-content: start; font-size: var(--t-sm); }
.footer-cols .eyebrow { margin-bottom: .35rem; }
.footer-cols a { text-decoration: none; overflow-wrap: anywhere; }
.footer-cols a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 3rem 1.75rem; font-size: var(--t-xs); color: var(--ink-2); }
.footer-base span:last-child { font-family: var(--f-serif); font-style: italic; font-size: var(--t-sm); }
@media (max-width: 860px) { .footer-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Axonometric room ---------- */
.iso { display: block; width: 100%; height: auto; overflow: visible; }
.iso polygon, .iso ellipse { transition: fill .8s var(--ease), stroke .8s var(--ease), opacity .6s var(--ease); }
.iso :is(.wall, .floor, .f, .win, .art, .door) { fill: transparent; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.iso .cap { fill: var(--ink); stroke: var(--ink); stroke-width: .5; vector-effect: non-scaling-stroke; }
.iso :is(.grid, .planks, .swing, .cloud, .dims, .notes, .light) { opacity: 0; transition: opacity .7s var(--ease); }
.iso :is(.objs, .openings) { transition: opacity .6s var(--ease); }
.iso line, .iso path, .iso polyline { fill: none; vector-effect: non-scaling-stroke; stroke-width: 1; }
.iso .grid line { stroke: var(--line-2); }
.iso .planks line { stroke: color-mix(in oklab, var(--m-floor) 74%, #000); stroke-opacity: .35; }
.iso .swing line, .iso .swing path { stroke: var(--accent); stroke-width: 1.25; }
.iso .dims line { stroke: var(--ink-2); }
.iso .dims line.tick { stroke: var(--ink); stroke-width: 1.5; }
.iso .mull { stroke: var(--ink); transition: opacity .6s; }
.iso .cord { stroke: var(--ink-2); }
.iso text { font-family: var(--f-body); font-size: 12px; fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; stroke-linejoin: round; }
.iso .notes circle { fill: var(--ink); }
.iso .notes polyline { stroke: var(--ink); }
.iso .cloud circle { fill: var(--accent); }
.iso .dusk { fill: var(--m-dusk); opacity: .45; mix-blend-mode: multiply; }
.iso .glow { mix-blend-mode: screen; }
.iso .light { transition: opacity 1.1s var(--ease); }
.iso[data-stage="plan"] :is(.grid, .swing) { opacity: 1; }
.iso[data-stage="plan"] .grid { opacity: .6; }
.iso[data-stage="plan"] .f.flat { stroke-dasharray: 5 4; }
.iso[data-stage="plan"] .f.over { stroke-dasharray: 2 3; }
.iso[data-stage="plan"] .art { opacity: 0; }
.iso[data-stage="model"] :is(.floor, .f.top, .win, .art, .door) { fill: var(--mass-1); }
.iso[data-stage="model"] :is(.f.sx, .wall.a) { fill: var(--mass-2); }
.iso[data-stage="model"] :is(.f.sy, .wall.b) { fill: var(--mass-3); }
.iso[data-stage="model"] :is(.wall, .floor, .f, .win, .art, .door) { stroke: var(--mass-line); }
.iso:is([data-stage="finish"], [data-stage="light"]) :is(.wall, .floor, .f, .win, .art, .door) { fill: var(--c); stroke: color-mix(in oklab, var(--c) 74%, #000); stroke-width: .75; }
.iso:is([data-stage="finish"], [data-stage="light"]) .planks { opacity: 1; }
.iso[data-stage="finish"] .notes { opacity: 1; }
.iso[data-stage="light"] .light { opacity: 1; }
.iso[data-stage="light"] .win { fill: var(--m-glass-night); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  ::view-transition-old(page), ::view-transition-new(page) { animation: none; }
}
