/* Spaces — "Blueprint". Drafting lines, a floor plan that rescales between rooms, counting figures.
   Nothing here is shared with other pages: no floating ingredients, rings, or marquee tracks. */
.page-space main { margin-top: calc(-1 * var(--header-height)); overflow-x: clip; }
.page-space { --blueprint: #1b1d1f; --draft: #c9c2b6; }
.page-space h1 > span, .page-space h2 > span { display: inline-block; }
.page-space h1 .accent, .page-space h2 .accent { color: var(--accent); }
.bp-head { margin-bottom: clamp(32px, 4vw, 54px); }
.bp-head h2 { margin: 0; font-size: clamp(46px, 6vw, 92px); line-height: .9; }

/* Hero: the photo is drafted in from the left, corner ticks draw after it. */
.bp-hero { position: relative; padding: calc(var(--header-height) + 48px) 0 0; background:
  linear-gradient(#ffffff08 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, #ffffff08 1px, transparent 1px) 0 0 / 32px 32px, var(--blueprint); }
.bp-hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: 56px; }
.bp-hero h1 { margin-bottom: 26px; font-size: clamp(62px, 8vw, 128px); line-height: .86; }
.bp-hero__copy > p:not(.eyebrow) { max-width: 40ch; margin-bottom: 30px; color: var(--cream-soft); font-size: 17px; }
.bp-hero__photo { position: relative; margin: 0; padding: 14px; }
.bp-hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: inset(0); }
.bp-hero__photo figcaption { margin-top: 12px; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.bp-tick { position: absolute; width: 46px; height: 46px; border: 0 solid var(--accent); }
.bp-tick--tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.bp-tick--br { right: 0; bottom: 26px; border-width: 0 2px 2px 0; }
.bp-walkin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-block: 0; padding: 22px 0 34px; border-top: 1px dashed #c9c2b640; color: var(--cream-soft); font-size: 14px; }
.bp-walkin strong { color: var(--cream); }
@media (prefers-reduced-motion: no-preference) {
  .bp-hero__photo img { animation: bp-draft 1100ms var(--ease) 120ms both; }
  .bp-tick { animation: bp-tick 700ms var(--ease) 900ms both; }
  .bp-hero h1 > span { animation: bp-rise 800ms var(--ease) both; }
  .bp-hero h1 > span:nth-of-type(2) { animation-delay: 110ms; }
}
@keyframes bp-draft { from { clip-path: inset(0 100% 0 0); } }
@keyframes bp-tick { from { opacity: 0; width: 0; height: 0; } }
@keyframes bp-rise { from { opacity: 0; transform: translateY(.35em); } }

/* Switcher */
.bp-switch { padding: clamp(80px, 9vw, 130px) 0; background: var(--ink); }
.bp-tabs { display: inline-flex; gap: 6px; padding: 6px; margin-bottom: 36px; border: 1px solid #ffffff1f; border-radius: 999px; }
.bp-tabs button { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px; background: transparent; color: var(--cream-soft); font-size: 13px; transition: background-color 260ms ease, color 260ms ease; }
.bp-tabs button span { color: var(--accent); font-size: 10px; letter-spacing: .1em; }
.bp-tabs button[aria-selected='true'] { background: var(--accent); color: var(--accent-dark); }
.bp-tabs button[aria-selected='true'] span { color: var(--accent-dark); }
.no-js .bp-tabs { display: none; }
.bp-switch__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.bp-plan { padding: 18px; border: 1px solid #ffffff14; border-radius: 14px; background: var(--blueprint); color: var(--draft); }
.space-plan { display: block; width: 100%; height: auto; overflow: visible; }
.plan-walls { fill: none; stroke: var(--accent); stroke-width: 2.5; transform-box: view-box; transform-origin: 320px 210px; transition: transform 900ms var(--ease); }
.plan-table { fill: #c9c2b60f; stroke: currentColor; stroke-width: 1.6; }
.plan-screen { fill: var(--accent); }
.plan-chair { fill: var(--blueprint); stroke: currentColor; stroke-width: 1.4; }
.plan-label { fill: var(--muted); font: 600 11px var(--body); letter-spacing: .16em; }
.plan-extra { transform-box: fill-box; transform-origin: center; transition: opacity 420ms ease, transform 620ms var(--ease); transition-delay: calc(var(--i) * 90ms + 260ms); }
[data-plan-state='room'] .plan-walls { transform: scale(.517, .583); }
[data-plan-state='room'] .plan-extra { opacity: 0; transform: scale(.4) rotate(-40deg); transition-delay: 0ms; }
/* First view: walls and tables draw themselves. */
.js-drawn-pending .plan-walls, .js-drawn-pending .plan-table { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-drawn-pending .plan-chair { opacity: 0; }
.is-drawn .plan-walls, .is-drawn .plan-table { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1200ms var(--ease), transform 900ms var(--ease); }
.is-drawn .plan-chair { opacity: 1; transition: opacity 300ms ease calc(700ms + var(--i, 0) * 40ms); }
.bp-plan__note { margin: 10px 4px 0; color: var(--muted); font-size: 10px; }
.bp-panel__name { margin-bottom: 18px; font: 600 clamp(24px, 2.4vw, 34px)/1.1 var(--display); letter-spacing: -.02em; }
.bp-figures { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-bottom: 26px; border-block: 1px solid #ffffff1f; }
.bp-figures > div { padding: 20px 28px 20px 0; }
.bp-figures > div + div { padding-left: 28px; border-left: 1px solid #ffffff1f; }
.bp-figures dt { margin-bottom: 4px; color: var(--accent); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.bp-figures dd { margin: 0; color: var(--muted); font-size: 13px; }
.bp-figures strong { display: inline-block; min-width: 2ch; color: var(--cream); font: 700 clamp(38px, 4.4vw, 64px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bp-panel__best { display: grid; gap: 6px; margin-bottom: 18px; font-size: 15px; }
.bp-panel__best > span:first-child { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.bp-panel__note { max-width: 44ch; color: var(--muted); font-size: 13px; }
.bp-panel [data-space-field] { transition: opacity 200ms ease; }
.bp-panel.is-swapping [data-space-field] { opacity: 0; }

/* Inclusions: icons draw their strokes once the list enters. */
.bp-included { padding: clamp(80px, 9vw, 120px) 0; background: var(--concrete); }
.bp-included__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid #ffffff1f; }
.bp-included__list li { display: grid; gap: 22px; align-content: start; padding: 30px 22px 10px 0; font-size: 14px; color: var(--cream-soft); }
.bp-included__list li + li { padding-left: 22px; border-left: 1px solid #ffffff14; }
.line-icon { width: 46px; height: 46px; color: var(--accent); }
.js-drawn-pending .bp-included__list .line-icon * { stroke-dasharray: 220; stroke-dashoffset: 220; }
.is-drawn .bp-included__list .line-icon * { stroke-dasharray: 220; stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease) calc(var(--i, 0) * 0ms); }
.is-drawn .bp-included__list li:nth-child(2) .line-icon * { transition-delay: 120ms; }
.is-drawn .bp-included__list li:nth-child(3) .line-icon * { transition-delay: 240ms; }
.is-drawn .bp-included__list li:nth-child(4) .line-icon * { transition-delay: 360ms; }
.is-drawn .bp-included__list li:nth-child(5) .line-icon * { transition-delay: 480ms; }

/* Terms */
.bp-terms { padding: clamp(80px, 9vw, 120px) 0; background: var(--ink); }
.bp-terms__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.bp-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.bp-steps li { position: relative; padding: 18px 0 18px 58px; border-bottom: 1px solid #ffffff14; color: var(--cream-soft); font-size: 15px; counter-increment: step; }
.bp-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 16px; color: var(--accent); font: 700 22px/1 var(--display); }
.bp-steps strong { display: block; color: var(--cream); }
.bp-compare { width: 100%; margin-bottom: 30px; border-collapse: collapse; font-size: 14px; }
.bp-compare th, .bp-compare td { padding: 14px 10px 14px 0; border-bottom: 1px solid #ffffff1f; text-align: left; }
.bp-compare thead th { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bp-compare tbody th { font-weight: 500; }
.bp-policy { border: 1px solid #ffffff1f; border-radius: 12px; padding: 4px 22px; }
.bp-policy summary { padding: 16px 0; cursor: pointer; font-family: var(--display); font-size: 20px; }
.bp-policy ol { margin: 0 0 18px; padding-left: 20px; color: var(--cream-soft); font-size: 14px; }
.bp-policy li + li { margin-top: 8px; }
.bp-inquiry { background: var(--blueprint); }
.bp-inquiry h2 { font-size: clamp(46px, 6vw, 92px); }
.contact-form select { display: block; width: 100%; margin-top: 8px; padding: 13px 12px; border: 1px solid #555555; border-radius: 5px; background: var(--ink-soft); color: var(--cream); font: inherit; font-size: 14px; }

@media (max-width: 1000px) {
  .bp-included__list { grid-template-columns: repeat(2, 1fr); }
  .bp-included__list li + li { border-left: 0; padding-left: 0; }
  .bp-included__list li { border-bottom: 1px solid #ffffff14; padding-bottom: 24px; }
}
@media (max-width: 800px) {
  .bp-hero__grid, .bp-switch__grid, .bp-terms__grid { grid-template-columns: 1fr; }
  .bp-tabs { display: flex; width: 100%; }
  .bp-tabs button { flex: 1; justify-content: center; padding-inline: 10px; font-size: 12px; }
  .bp-figures > div { padding-right: 16px; }
  .bp-figures > div + div { padding-left: 16px; }
}
@media (max-width: 540px) {
  .bp-included__list { grid-template-columns: 1fr; }
  .bp-tabs button span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-walls, .plan-extra, .bp-panel [data-space-field] { transition: none !important; }
}
