/* =========================================================
   StudioSathi landing — "Measurement Drawing System"
   Blueprint indigo + chalk paper, zero radius, drafting marks.
   ========================================================= */

:root {
  --chalk: #f1f2ee;
  --chalk-2: #e7e9e2;
  --paper: #fafaf7;
  --ink: #1f2225;
  --ink-2: #4a4f55;
  --ink-3: #7b8087;
  --indigo: #2a3a8f;
  --indigo-2: #3a4db3;
  --verdigris: #1f7a6b;
  --verdigris-2: #2aa38e;
  --turmeric: #e8a317;
  --sindoor: #c6402b;

  --bp: #0b1030;
  --bp-2: #111845;
  --bp-3: #18215a;
  --bp-line: rgba(241, 242, 238, 0.14);
  --bp-line-2: rgba(241, 242, 238, 0.28);
  --bp-text: rgba(241, 242, 238, 0.74);
  --rule: rgba(31, 34, 37, 0.14);

  --font: "Anek Latin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bp);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--turmeric); color: var(--ink); }
:focus-visible { outline: 2px solid var(--turmeric); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--turmeric); color: var(--ink); padding: 8px 14px; font-weight: 600; }
.skip:focus { left: 8px; }

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mono-label--dark { color: var(--bp-text); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px;
  font-weight: 600; font-size: 16px; line-height: 1.1;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s, border-color .2s;
  position: relative;
  white-space: nowrap;
}
.btn span[aria-hidden] { transition: transform .2s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn--primary { background: var(--turmeric); color: var(--ink); box-shadow: 4px 4px 0 0 var(--ink); }
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--ink); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--ink); }
.bp .btn--primary, .nav .btn--primary { box-shadow: 4px 4px 0 0 rgba(0, 0, 0, .45); }
.bp .btn--primary:hover, .nav .btn--primary:hover { box-shadow: 6px 6px 0 0 rgba(0, 0, 0, .45); }
.btn--ghost { color: var(--chalk); border-color: var(--bp-line-2); background: transparent; }
.btn--ghost:hover { border-color: var(--chalk); background: rgba(241, 242, 238, .06); }
.btn--sm { padding: 9px 14px; font-size: 14px; }
.btn--lg { padding: 15px 24px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--wa { background: var(--verdigris); color: #fff; }
.btn--wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn--wa:hover:not(:disabled) { background: var(--verdigris-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .02em;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.pill--ok { color: var(--verdigris); background: rgba(31, 122, 107, .08); }
.pill--warn { color: #9a6a00; background: rgba(232, 163, 23, .12); }
.pill--bad { color: var(--sindoor); background: rgba(198, 64, 43, .08); }
.pill--mute { color: var(--ink-3); }
.pill--draft { color: var(--ink-3); }
.pill--sent { color: var(--indigo); background: rgba(42, 58, 143, .08); }
.bp .pill--ok { color: #57d1b9; background: rgba(42, 163, 142, .12); }
.bp .pill--warn { color: #f5c25a; background: rgba(232, 163, 23, .12); }
.bp .pill--bad { color: #f07f6c; background: rgba(198, 64, 43, .14); }
.bp .pill--mute { color: var(--bp-text); }

/* ---------- Blueprint surfaces ---------- */
.bp { position: relative; background: var(--bp); color: var(--chalk); isolation: isolate; overflow: hidden; }
.bp__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px),
    linear-gradient(rgba(241, 242, 238, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 242, 238, .05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 100%);
}
.bp__grid--soft { opacity: .55; }

.reg { position: absolute; width: 28px; height: 28px; z-index: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(circle, transparent 7px, var(--chalk) 7px, var(--chalk) 8px, transparent 8px); }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--chalk); }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; }
.reg--tl { top: calc(var(--nav-h) + 18px); left: 18px; }
.reg--tr { top: calc(var(--nav-h) + 18px); right: 18px; }
.reg--bl { bottom: 18px; left: 18px; }
.reg--br { bottom: 18px; right: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  color: var(--chalk);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 16, 48, .82); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); border-bottom-color: var(--bp-line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand img { box-shadow: 0 0 0 1px rgba(241, 242, 238, .2); }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { white-space: nowrap; text-decoration: none; font-size: 15px; color: var(--bp-text); position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--turmeric); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--chalk); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 42px; height: 42px; background: transparent; border: 1px solid var(--bp-line-2); position: relative; margin-left: 8px; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--chalk); transition: transform .25s var(--ease), top .25s var(--ease); }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 24px; }
.nav.is-open .nav__toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(56px, 8vw, 96px); }
.hero__glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(58, 77, 179, .55) 0%, rgba(42, 58, 143, .18) 40%, transparent 68%);
  filter: blur(10px);
}
.hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bp-text);
  padding: 7px 12px; border: 1px solid var(--bp-line-2);
  background: rgba(11, 16, 48, .5);
}
.live-dot { width: 7px; height: 7px; background: var(--verdigris-2); box-shadow: 0 0 0 0 rgba(42, 163, 142, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(42, 163, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(42, 163, 142, 0); } }
.hero__title {
  margin-top: 26px;
  font-size: clamp(38px, 6.4vw, 80px);
  line-height: 1.02; letter-spacing: -.025em; font-weight: 700;
  max-width: 19ch;
  text-wrap: balance;
}
.scaled { display: inline-block; position: relative; color: var(--turmeric); padding-bottom: .28em; }
.scaled__dim { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; display: flex; align-items: center; }
.scaled__dim i { width: 1.5px; height: 14px; background: var(--turmeric); flex: none; }
.scaled__dim b { flex: 1; height: 1.5px; background: var(--turmeric); transform-origin: left; transform: scaleX(0); transition: transform 1.1s .5s var(--ease); position: relative; }
.scaled__dim b::before, .scaled__dim b::after { content: ""; position: absolute; top: -4px; width: 9px; height: 9px; border-top: 1.5px solid var(--turmeric); border-left: 1.5px solid var(--turmeric); }
.scaled__dim b::before { left: 0; transform: rotate(-45deg); transform-origin: 0 0; top: 0; }
.scaled__dim b::after { right: 0; transform: rotate(135deg); transform-origin: 0 0; top: 1px; }
.is-in .scaled__dim b, .hero__title.is-in .scaled__dim b { transform: scaleX(1); }
.hero__sub { margin-top: 26px; max-width: 660px; font-size: clamp(17px, 1.6vw, 19px); color: var(--bp-text); text-wrap: pretty; }
.hero__ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero__chips li { font-family: var(--mono); font-size: 12px; color: var(--bp-text); padding: 5px 10px; border: 1px dashed var(--bp-line-2); }

/* ---------- Drawing board ---------- */
.board {
  margin-top: clamp(48px, 7vw, 80px);
  border: 1px solid var(--bp-line-2);
  background: linear-gradient(180deg, rgba(24, 33, 90, .72), rgba(11, 16, 48, .82));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(241, 242, 238, .08);
  position: relative;
}
.board::before, .board::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--turmeric); }
.board::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.board::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
.board__titleblock {
  display: flex; flex-wrap: wrap;
  border-bottom: 1px solid var(--bp-line-2);
  font-family: var(--mono); font-size: 11px; color: var(--bp-text); letter-spacing: .04em;
}
.board__titleblock span { padding: 9px 14px; border-right: 1px solid var(--bp-line); }
.board__titleblock span:last-child { border-right: 0; margin-left: auto; }
.board__titleblock b { color: var(--chalk); font-weight: 600; margin-right: 6px; opacity: .55; }
.board__body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; }

.plan { position: relative; padding: 22px 22px 18px; border-right: 1px solid var(--bp-line-2); cursor: default; }
.plan__hint {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; color: var(--turmeric); letter-spacing: .03em;
  margin-bottom: 6px;
  transition: opacity .4s;
}
.plan__hint.is-hidden { opacity: 0; }
.tap-ring { width: 12px; height: 12px; border: 1.5px solid var(--turmeric); position: relative; animation: ring 1.8s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(232, 163, 23, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(232, 163, 23, 0); } }
.plan__svg { width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }

.room { cursor: pointer; outline: none; }
.room__fill { fill: rgba(241, 242, 238, 0); transition: fill .35s var(--ease); }
.room:hover .room__fill, .room.is-peek .room__fill { fill: rgba(241, 242, 238, .06); }
.room:focus-visible .room__fill { fill: rgba(241, 242, 238, .08); stroke: var(--turmeric); stroke-width: 1.5; stroke-dasharray: 4 4; }
.room.is-on .room__fill { fill: rgba(232, 163, 23, .17); }
.room.is-on:hover .room__fill { fill: rgba(232, 163, 23, .24); }
.room.is-focus .room__fill { fill: rgba(232, 163, 23, .26); }
.room__name { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; fill: var(--chalk); text-anchor: middle; opacity: .8; transition: fill .3s, opacity .3s; pointer-events: none; }
.room__area { font-family: var(--mono); font-size: 9.5px; fill: var(--bp-text); text-anchor: middle; opacity: .7; pointer-events: none; }
.room.is-on .room__name { fill: var(--turmeric); opacity: 1; }
.room.is-on .room__area { fill: #f5c25a; opacity: .9; }

.furn { fill: none; stroke: rgba(241, 242, 238, .2); stroke-width: 1; pointer-events: none; }
.wall, .win, .door, .counter { fill: none; pointer-events: none; }
.wall { stroke: var(--chalk); stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; }
.wall--outer { stroke-width: 6; }
.wall--inner { stroke-width: 3.5; }
.win { stroke: #8fb4ff; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.door { stroke: rgba(241, 242, 238, .7); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.counter { stroke: rgba(241, 242, 238, .45); stroke-width: 2; stroke-dasharray: 3 3; }
.board.is-in .wall--outer { animation: draw 1.6s .15s var(--ease) forwards; }
.board.is-in .wall--inner { animation: draw 1.4s .6s var(--ease) forwards; }
.board.is-in .win { animation: draw 1s 1.1s var(--ease) forwards; }
.board.is-in .door { animation: draw 1s 1.3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.furn, .room__name, .room__area, .dim { opacity: 0; transition: opacity .8s 1.4s; }
.board.is-in .furn, .board.is-in .dim { opacity: 1; }
.board.is-in .room__name { opacity: .8; }
.board.is-in .room__area { opacity: .7; }
.dim path { fill: none; stroke: rgba(143, 180, 255, .55); stroke-width: 1; }
.dim text { font-family: var(--mono); font-size: 9.5px; fill: #8fb4ff; text-anchor: middle; }
.dim__bg { fill: #121a4d; }
.dim .dim__note { text-anchor: start; fill: var(--bp-text); font-size: 9px; letter-spacing: .08em; }

.xhair { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.xhair.is-on { opacity: 1; }
.xhair__v, .xhair__h { position: absolute; background: rgba(232, 163, 23, .35); }
.xhair__v { top: 0; bottom: 0; width: 1px; left: var(--x, 0); }
.xhair__h { left: 0; right: 0; height: 1px; top: var(--y, 0); }
.xhair__tag {
  position: absolute; left: var(--x, 0); top: var(--y, 0); transform: translate(10px, 10px);
  font-family: var(--mono); font-size: 10.5px; color: var(--ink); background: var(--turmeric);
  padding: 2px 6px; white-space: nowrap;
}

.room-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rchip {
  font-family: var(--mono); font-size: 11.5px; color: var(--bp-text);
  background: transparent; border: 1px solid var(--bp-line-2);
  padding: 6px 10px; display: inline-flex; align-items: center; gap: 6px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.rchip::before { content: "+"; font-weight: 600; color: var(--turmeric); }
.rchip:hover { border-color: var(--chalk); color: var(--chalk); }
.rchip[aria-pressed="true"] { background: var(--turmeric); color: var(--ink); border-color: var(--turmeric); }
.rchip[aria-pressed="true"]::before { content: "✓"; color: var(--ink); }

/* Quote ticket (paper on the board) */
.ticket {
  background: var(--paper); color: var(--ink);
  padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  min-height: 100%;
}
.ticket::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--indigo) 0 14px, transparent 14px 20px);
  opacity: .9;
}
.ticket__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 4px; }
.ticket__client { font-weight: 700; font-size: 19px; margin-top: 2px; }
.ticket__room { min-height: 152px; border-top: 1px solid var(--rule); padding-top: 12px; }
.ticket__empty { font-size: 14.5px; color: var(--ink-3); line-height: 1.5; padding: 14px; border: 1px dashed var(--rule); }
.troom__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.troom__head b { font-size: 15px; }
.troom__head span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.tline {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px;
  padding: 7px 0; border-bottom: 1px dotted var(--rule);
  font-size: 14px;
  animation: lineIn .45s var(--ease) both;
}
.tline:nth-child(2) { animation-delay: .06s; }
.tline:nth-child(3) { animation-delay: .12s; }
.tline:nth-child(4) { animation-delay: .18s; }
.tline:nth-child(5) { animation-delay: .24s; }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } }
.tline small { grid-column: 1; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.tline b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.ticket__rooms { display: flex; flex-wrap: wrap; gap: 6px; }
.ticket__rooms:empty { display: none; }
.trchip {
  font-family: var(--mono); font-size: 11px; padding: 4px 8px;
  background: var(--chalk-2); border: 1px solid transparent; color: var(--ink-2);
  animation: lineIn .35s var(--ease) both;
}
.trchip.is-focus { border-color: var(--ink); color: var(--ink); }
.trchip b { font-weight: 600; margin-left: 4px; color: var(--ink); }
.ticket__sum { margin: 0; border-top: 1.5px solid var(--ink); padding-top: 10px; display: grid; gap: 4px; margin-top: auto; }
.ticket__sum div { display: flex; justify-content: space-between; font-size: 14.5px; }
.ticket__sum dt { color: var(--ink-2); }
.ticket__sum dd { margin: 0; font-family: var(--mono); font-weight: 500; }
.ticket__total { padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--rule); }
.ticket__total dt { color: var(--ink); font-weight: 700; }
.ticket__total dd { font-size: 20px; font-weight: 700 !important; color: var(--indigo); }
.toast {
  font-size: 13.5px; line-height: 1.45; color: var(--ink-2);
  border-left: 3px solid var(--verdigris); background: rgba(31, 122, 107, .07);
  padding: 9px 12px;
  animation: lineIn .4s var(--ease);
}
.toast b { color: var(--verdigris); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--chalk {
  background: var(--chalk);
  background-image:
    linear-gradient(rgba(42, 58, 143, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 58, 143, .045) 1px, transparent 1px);
  background-size: 24px 24px;
}
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--indigo); font-weight: 500;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; box-shadow: 0 -4px 0 -0.5px transparent; }
.kicker--dark { color: var(--turmeric); }
.h2 { margin-top: 16px; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.h2--dark { color: var(--chalk); }
.h2--xl { font-size: clamp(34px, 4.4vw, 52px); }
.lede { margin-top: 20px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 640px; text-wrap: pretty; }
.lede--dark { color: var(--bp-text); }

/* ---------- Compare (before / after) ---------- */
.compare {
  position: relative; height: 470px;
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 0 rgba(31, 34, 37, .12);
  overflow: hidden; user-select: none; -webkit-user-select: none;
  background: var(--paper);
}
.compare__pane { position: absolute; inset: 0; padding: 26px; }
.compare__pane--before {
  background: #ece6da;
  background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px);
  background-size: 12px 12px;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  z-index: 1;
}
.compare__tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--sindoor); color: #fff; padding: 4px 9px;
}
.compare__tag--after { left: auto; right: 18px; background: var(--verdigris); }

.before { position: relative; height: 100%; }
.chat {
  position: absolute; left: 4%; top: 46px; width: min(360px, 52%);
  background: #e5ddd3; padding: 14px; border: 1px solid rgba(0, 0, 0, .08);
  transform: rotate(-1.5deg);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .4);
}
.chat__day { font-family: var(--mono); font-size: 10.5px; color: #6b6458; margin-bottom: 10px; text-align: center; }
.bub { font-size: 14px; padding: 7px 10px; margin-bottom: 7px; max-width: 86%; line-height: 1.35; }
.bub--in { background: #fff; }
.bub--out { background: #d6f3c5; margin-left: auto; }
.bub--file { background: #fff; font-family: var(--mono); font-size: 12px; color: #2a5d9f; }
.mess { position: absolute; right: 4%; top: 64px; width: min(330px, 42%); display: grid; gap: 14px; }
.missed { background: #fff; padding: 10px 12px; font-size: 14px; border-left: 3px solid var(--sindoor); transform: rotate(1.2deg); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .35); }
.missed span { color: var(--sindoor); margin-right: 4px; }
.missed b { color: var(--sindoor); }
.sheet {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  background: #fff; border: 1px solid #c9c9c9; font-family: var(--mono); font-size: 12px;
  transform: rotate(-.8deg); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .35);
}
.sheet span { padding: 6px 8px; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.sheet span:nth-child(-n+3) { background: #eef1ee; color: #777; text-align: center; }
.sheet .err { color: var(--sindoor); font-weight: 600; background: #fdeeea; }
.note { background: #fbe38c; padding: 12px 14px; font-size: 14px; transform: rotate(2.2deg); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .35); width: 88%; justify-self: end; }
.note i { color: #6b5a12; font-size: 12px; }

.after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 34px; max-width: 760px; margin-left: auto; }
.after__card { background: #fff; border: 1px solid var(--rule); padding: 14px 16px; display: grid; gap: 4px; align-content: start; justify-items: start; box-shadow: 0 1px 0 rgba(0, 0, 0, .03); }
.after__title { font-weight: 700; font-size: 17px; }
.after__meta { font-size: 14px; color: var(--ink-2); }
.after__card .pill { margin-top: 6px; }
.after__bar { height: 6px; background: var(--chalk-2); width: 100%; margin: 8px 0 4px; }
.after__bar i { display: block; height: 100%; width: var(--w); background: var(--verdigris); }

.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none;
}
.compare__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; background: var(--turmeric); border: 2px solid var(--ink);
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.compare__range {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 470px; cursor: ew-resize; }
.compare__range::-moz-range-thumb { width: 60px; height: 470px; border: 0; cursor: ew-resize; }
.compare:has(.compare__range:focus-visible) .compare__handle span { outline: 2px solid var(--indigo); outline-offset: 3px; }

.punch { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.punch li { padding: 20px 22px 0 0; font-size: 15.5px; color: var(--ink-2); position: relative; }
.punch li + li { padding-left: 22px; border-left: 1px solid var(--rule); }
.punch b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; line-height: 1.3; }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; padding-top: 34px; counter-reset: s; }
.flow::before {
  content: ""; position: absolute; top: 17px; left: 0; right: 0; height: 1.5px;
  background: var(--turmeric); transform-origin: left; transform: scaleX(0);
  transition: transform 1.6s var(--ease);
}
.flow::after {
  content: "ENQUIRY ─────────────────────────── FINAL RUPEE";
  position: absolute; top: 0; left: 0; right: 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--bp-text);
  display: none;
}
.flow.is-in::before { transform: scaleX(1); }
.flow__step { padding: 30px 26px 0 0; position: relative; }
.flow__step + .flow__step { padding-left: 26px; border-left: 1px dashed var(--bp-line-2); }
.flow__node {
  position: absolute; top: -28px; left: 0;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  background: var(--bp); color: var(--turmeric);
  border: 1.5px solid var(--turmeric); padding: 3px 8px;
}
.flow__step + .flow__step .flow__node { left: 26px; }
.flow__step h3 { font-size: 22px; line-height: 1.2; font-weight: 700; margin-top: 8px; }
.flow__step p { margin-top: 10px; font-size: 15.5px; color: var(--bp-text); }
.flow__mini { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Quotation spotlight ---------- */
.quote { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.ticks { margin-top: 26px; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-2); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border: 1.5px solid var(--verdigris); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 5px; height: 8px; border-right: 2px solid var(--verdigris); border-bottom: 2px solid var(--verdigris); transform: rotate(45deg); }
.ticks b { color: var(--ink); }

.boq { background: #fff; border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 0 var(--indigo); }
.boq__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { width: 40px; height: 22px; border: 1.5px solid var(--ink); position: relative; background: var(--chalk-2); transition: background-color .2s; }
.switch__track i { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; background: var(--ink); transition: transform .25s var(--ease), background-color .2s; }
.switch input:checked + .switch__track { background: var(--turmeric); }
.switch input:checked + .switch__track i { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--indigo); outline-offset: 2px; }
.boq__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.boq__table th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 10px 16px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.boq__table td { padding: 13px 16px; border-bottom: 1px dotted var(--rule); white-space: nowrap; }
.boq__table td:first-child { white-space: normal; font-weight: 500; }
.boq__table td:not(:first-child), .boq__table th:not(:first-child) { text-align: right; font-family: var(--mono); font-size: 13px; }
.boq__table th:not(:first-child) { font-size: 10.5px; }
.m-col { display: none; color: var(--indigo); background: rgba(232, 163, 23, .07); }
.boq.show-margin .m-col { display: table-cell; animation: lineIn .35s var(--ease); }
.boq__foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
.versions { display: inline-flex; align-items: center; gap: 0; font-family: var(--mono); font-size: 12px; }
.v { padding: 4px 8px; border: 1px solid var(--rule); color: var(--ink-3); }
.v small { font-size: 10px; margin-left: 4px; }
.v--on { border-color: var(--verdigris); color: var(--verdigris); background: rgba(31, 122, 107, .07); }
.v__line { width: 22px; height: 1px; background: var(--rule); }
.boq__total { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--indigo); }
.boq__total small { font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--ink-3); margin-right: 8px; }
.boq__private { font-size: 13px; color: var(--ink-3); padding: 10px 16px; border-top: 1px dashed var(--rule); background: var(--chalk); }
.boq.show-margin .boq__private { color: var(--indigo); font-weight: 600; }

/* ---------- Client portal ---------- */
.client { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.client__copy .btn { margin-top: 32px; }
.client__stage { display: grid; grid-template-columns: minmax(0, 1fr) 290px minmax(0, 1fr); grid-template-rows: repeat(4, auto); column-gap: 30px; row-gap: 22px; align-items: center; padding: 20px 0; }
.phone {
  grid-column: 2; grid-row: 1 / span 4;
  width: 290px; background: #05081c; padding: 12px; position: relative; z-index: 1;
  border: 1.5px solid var(--bp-line-2);
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .8), 0 0 0 6px rgba(241, 242, 238, .04);
}
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 70px; height: 6px; background: #05081c; z-index: 2; }
.portal { background: var(--paper); color: var(--ink); padding: 26px 16px 18px; display: grid; gap: 10px; }
.portal__brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.portal__hi { font-size: 22px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.portal__sub { font-size: 14px; color: var(--ink-2); margin-top: -6px; }
.portal__sub b { color: var(--indigo); }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.stages li { font-size: 10.5px; font-family: var(--mono); padding: 5px 4px; text-align: center; background: var(--chalk-2); color: var(--ink-3); }
.stages li.done { background: rgba(31, 122, 107, .12); color: var(--verdigris); }
.stages li.done::before { content: "✓ "; }
.stages li.now { background: var(--turmeric); color: var(--ink); font-weight: 600; }
.stages li.now span { font-weight: 500; }
.portal__photo { background: var(--bp-2); padding: 10px; display: grid; gap: 6px; }
.portal__photo svg { width: 100%; fill: none; stroke: rgba(241, 242, 238, .55); stroke-width: 1.2; }
.portal__photo .ph-draw { stroke: var(--turmeric); stroke-width: 2; stroke-dasharray: 200; stroke-dashoffset: 200; }
.client__stage.is-in .ph-draw { animation: phdraw 2.6s .8s var(--ease) infinite alternate; }
@keyframes phdraw { to { stroke-dashoffset: 0; } }
.portal__photo span { font-family: var(--mono); font-size: 10px; color: var(--bp-text); }
.portal__pay { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--rule); }
.portal__pay small { display: block; font-size: 11px; color: var(--ink-3); }
.portal__pay b { font-family: var(--mono); font-size: 16px; }
.portal__btn { background: var(--verdigris); color: #fff; font-size: 12.5px; font-weight: 600; padding: 8px 10px; white-space: nowrap; }
.portal__link { font-size: 13px; text-align: center; color: var(--indigo); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.callouts { display: contents; }
.co { position: relative; font-size: 14px; line-height: 1.4; color: var(--chalk); opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.co span { display: block; padding: 9px 11px; border: 1px solid var(--bp-line-2); background: rgba(11, 16, 48, .85); }
.co::before { content: ""; position: absolute; top: 50%; height: 1px; width: 30px; background: var(--turmeric); }
.co::after { content: ""; position: absolute; top: calc(50% - 3px); width: 7px; height: 7px; background: var(--turmeric); }
.co--1, .co--3 { grid-column: 1; transform: translateX(-12px); }
.co--2, .co--4 { grid-column: 3; transform: translateX(12px); }
.co--1 { grid-row: 1; } .co--2 { grid-row: 2; } .co--3 { grid-row: 3; } .co--4 { grid-row: 4; }
.co--1::before, .co--3::before { left: 100%; }
.co--1::after, .co--3::after { left: calc(100% + 27px); }
.co--2::before, .co--4::before { right: 100%; }
.co--2::after, .co--4::after { right: calc(100% + 27px); }
.client__stage.is-in .co { opacity: 1; transform: none; }
.client__stage.is-in .co--2 { transition-delay: .25s; }
.client__stage.is-in .co--3 { transition-delay: .5s; }
.client__stage.is-in .co--4 { transition-delay: .75s; }

/* ---------- Money ---------- */
.money { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.money__viz { background: #fff; border: 1.5px solid var(--ink); padding: 26px; box-shadow: 10px 10px 0 0 var(--verdigris); }
.money__big { margin: 10px 0 22px; font-family: var(--mono); font-size: clamp(34px, 4vw, 46px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.money__big small { display: block; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 8px; }
.age { display: grid; gap: 14px; }
.age__row { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 14px; font-size: 14px; }
.age__row span { color: var(--ink-2); font-family: var(--mono); font-size: 12px; }
.age__row b { font-family: var(--mono); font-size: 13px; text-align: right; }
.age__bar { height: 12px; background: var(--chalk-2); position: relative; }
.age__bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.money__viz.is-in .age__bar i { transform: scaleX(1); }
.age__row:nth-child(2) i { transition-delay: .12s; }
.age__row:nth-child(3) i { transition-delay: .24s; }
.age__row:nth-child(4) i { transition-delay: .36s; }
.age__bar i.ok { background: var(--verdigris); }
.age__bar i.warn { background: var(--turmeric); }
.age__bar i.bad { background: var(--sindoor); }

/* ---------- Roles ---------- */
.roles { border: 1px solid var(--bp-line-2); background: rgba(17, 24, 69, .6); }
.roles__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--bp-line-2); }
.rtab {
  background: transparent; border: 0; border-right: 1px solid var(--bp-line);
  color: var(--bp-text); padding: 16px 14px; text-align: left; position: relative;
  font-weight: 600; font-size: 16px; transition: background-color .2s, color .2s;
}
.rtab:last-child { border-right: 0; }
.rtab small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; opacity: .7; margin-top: 2px; }
.rtab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--turmeric); transform: scaleX(0); transition: transform .3s var(--ease); }
.rtab:hover { color: var(--chalk); background: rgba(241, 242, 238, .03); }
.rtab[aria-selected="true"] { color: var(--chalk); background: rgba(241, 242, 238, .05); }
.rtab[aria-selected="true"]::after { transform: scaleX(1); }
.roles__panel { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.menu { border-right: 1px solid var(--bp-line-2); padding: 14px 10px; display: grid; gap: 2px; background: rgba(5, 8, 28, .45); }
.menu__item {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; font-size: 15px;
  transition: opacity .35s var(--ease), color .35s, background-color .35s, transform .35s var(--ease);
}
.menu__item i { width: 20px; height: 20px; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 11px; border: 1px solid var(--bp-line-2); color: var(--bp-text); flex: none; transition: border-color .35s, color .35s; }
.menu__item.is-on { color: var(--chalk); }
.menu__item.is-on i { border-color: var(--turmeric); color: var(--turmeric); }
.menu__item.is-off { opacity: .28; transform: translateX(-4px); }
.menu__item.is-off span { text-decoration: line-through; text-decoration-color: rgba(241, 242, 238, .5); }
.menu__item.is-off::after { content: "no access"; margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.roles__info { padding: clamp(24px, 4vw, 48px); align-self: center; }
.roles__info .roles__count { font-family: var(--mono); font-size: clamp(64px, 9vw, 112px); line-height: .9; font-weight: 600; color: var(--turmeric); letter-spacing: -.04em; }
.roles__info .roles__count small { font-size: 16px; letter-spacing: 0; color: var(--bp-text); font-weight: 400; }
.roles__info h3 { font-size: 28px; margin-top: 14px; }
.roles__info p { margin-top: 10px; color: var(--bp-text); max-width: 420px; font-size: 16.5px; }

/* ---------- Under the hood ---------- */
.vault { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-left: 1px solid var(--rule); }
.vault__tile { padding: 22px 20px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: rgba(250, 250, 247, .7); position: relative; transition: background-color .25s; overflow: hidden; }
.vault__tile:hover { background: #fff; }
.vault__ic { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 6px; border: 1.5px solid var(--indigo); color: var(--indigo); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.vault__tile h3 { margin-top: 16px; font-size: 18px; line-height: 1.25; }
.vault__tile p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); transition: filter .35s; }
.vault__tile:nth-child(n+5):not(.vault__tile--more) p { filter: blur(3.5px); }
.vault__tile:nth-child(n+5):not(.vault__tile--more):hover p { filter: blur(0); }
.vault__tile:nth-child(n+5):not(.vault__tile--more)::after { content: "DEMO"; position: absolute; top: 22px; right: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-3); border: 1px dashed var(--ink-3); padding: 2px 6px; }
.vault__tile--more { background: var(--indigo); color: var(--chalk); }
.vault__tile--more:hover { background: var(--indigo-2); }
.vault__tile--more .vault__ic { border-color: var(--turmeric); color: var(--turmeric); }
.vault__tile--more p { color: rgba(241, 242, 238, .78); }
.vault__cta { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--turmeric); text-decoration: none; }
.vault__cta::after { content: ""; position: absolute; inset: 0; }
.vault__cta:hover { text-decoration: underline; text-underline-offset: 4px; }

.built { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.built div { padding-top: 14px; border-top: 1px solid var(--ink); position: relative; }
.built div::before { content: ""; position: absolute; top: -4px; left: 0; width: 1px; height: 8px; background: var(--ink); }
.built b { display: block; font-size: 16.5px; }
.built span { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }

/* ---------- Behind the mark ---------- */
.mark { background: var(--paper); border-top: 1px solid var(--rule); }
.mark__inner { display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: "stage head" "stage parts"; gap: 28px 72px; align-items: center; }
.mark__head { grid-area: head; }
.mark__head .h2 { max-width: 20ch; }
.mark__stage { grid-area: stage; display: grid; justify-items: center; gap: 22px; position: relative; padding: 22px; }
/* drafting corner ticks around the tile, like a sheet's crop marks */
.mark__stage::before, .mark__stage::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--turmeric); pointer-events: none; }
.mark__stage::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.mark__stage::after { top: calc(100% - 64px); right: 0; border-left: 0; border-top: 0; }
.mark__tile {
  width: 260px; aspect-ratio: 1; overflow: hidden;
  box-shadow: 10px 10px 0 0 var(--ink);
  transition: box-shadow 0.35s var(--ease);
}
.mark__caption { display: flex; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mark__caption span:nth-child(2) { opacity: .6; }
.swing { width: 100%; height: 100%; cursor: pointer; }
.swing .part { transition: opacity 0.35s var(--ease), filter 0.35s; }

/* focus: the chosen part stays lit, the rest step back */
.swing.has-focus .part { opacity: 0.2; }
/* the field darkens rather than fades, so the tile never washes out on paper */
.swing.has-focus .part--field { opacity: 1; filter: brightness(0.6) saturate(0.85); }
.swing.has-focus .part.is-focus { opacity: 1; filter: drop-shadow(0 0 2.5px rgba(241, 242, 238, 0.9)); }
.swing.has-focus .part--field.is-focus { filter: brightness(1.12) saturate(1.1); }
.swing.has-focus .part--hinge.is-focus { fill: var(--turmeric); filter: drop-shadow(0 0 3px rgba(232, 163, 23, 0.95)); }
.mark__tile:has(.part--field.is-focus) { box-shadow: 10px 10px 0 0 var(--turmeric); }

/* assembly: threshold → door leaf rises → swing draws → hinge pins it */
.part--sill { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); }
.part--leaf, .part--arc { stroke-dasharray: 1; stroke-dashoffset: 1; }
.part--hinge { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); }
.mark__stage.is-in .part--sill { transform: none; transition: transform 0.6s var(--ease) 0.2s, opacity 0.35s, filter 0.35s; }
.mark__stage.is-in .part--leaf { stroke-dashoffset: 0; transition: stroke-dashoffset 0.6s var(--ease) 0.7s, opacity 0.35s, filter 0.35s; }
.mark__stage.is-in .part--arc { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease) 1.2s, opacity 0.35s, filter 0.35s; }
.mark__stage.is-in .part--hinge { transform: none; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2.2s, opacity 0.35s, filter 0.35s, fill 0.35s; }
.swing.has-focus .part { transition-delay: 0s !important; }

.parts { grid-area: parts; align-self: start; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.parts li { border-top: 1px solid var(--rule); }
.parts li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--rule); }
.parts li:last-child { grid-column: 1 / -1; }
.parts button {
  position: relative; width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left;
  background: none; border: 0; padding: 14px 4px 14px 0; color: var(--ink-2);
  font-size: 14.5px; line-height: 1.5; transition: color 0.25s;
}
.parts button::before { content: ""; position: absolute; left: -12px; top: 14px; bottom: 14px; width: 2px; background: var(--turmeric); transform: scaleY(0); transition: transform 0.3s var(--ease); }
.parts i { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--indigo); padding-top: 3px; flex: none; }
.parts b { display: block; color: var(--ink); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; margin-bottom: 3px; }
.parts button:hover, .parts button.is-active { color: var(--ink); }
.parts button.is-active::before { transform: scaleY(1); }

/* ---------- Contact / Demo ---------- */
.contact { padding-bottom: clamp(96px, 12vw, 140px); }
.contact::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 800px; height: 800px; right: -200px; top: 10%;
  background: radial-gradient(circle, rgba(58, 77, 179, .45), transparent 65%);
}
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(36px, 5vw, 72px); align-items: start; }
.checks { margin-top: 28px; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; color: var(--chalk); font-size: 16px; }
.checks li::before { content: "✕"; position: absolute; left: 0; top: 0; color: var(--sindoor); font-weight: 700; font-family: var(--mono); }
.direct { margin-top: 36px; display: grid; gap: 10px; max-width: 420px; }
.direct .mono-label { margin-bottom: 4px; }
.direct__link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--bp-line-2); text-decoration: none; transition: border-color .2s, background-color .2s; }
.direct__link:hover { border-color: var(--chalk); background: rgba(241, 242, 238, .04); }
.direct__ic { width: 38px; height: 38px; display: grid; place-items: center; background: var(--bp-3); flex: none; }
.direct__ic--wa { background: var(--verdigris); }
.direct__ic svg { width: 19px; height: 19px; fill: none; stroke: var(--chalk); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.direct__txt b { display: block; font-size: 16px; }
.direct__txt small { color: var(--bp-text); font-size: 13px; }

.form {
  background: var(--paper); color: var(--ink);
  padding: clamp(22px, 3vw, 32px);
  border: 1.5px solid var(--ink);
  box-shadow: 12px 12px 0 0 var(--turmeric);
  position: relative;
}
.form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--indigo) 0 14px, transparent 14px 20px); }
.form__head { margin-bottom: 22px; padding-top: 4px; }
.form__head h3 { font-size: 28px; margin-top: 6px; line-height: 1.1; }
.form__head p:last-child { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; margin: 0 0 14px; min-width: 0; }
.form__grid .field { margin: 0; }
.form__grid + .field { margin-top: 16px; }
.field > span, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.field em { color: var(--sindoor); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid rgba(31, 34, 37, .22);
  padding: 11px 12px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 3px 3px 0 0 rgba(42, 58, 143, .25); }
.field input::placeholder, .field textarea::placeholder { color: #a3a7ac; }
.field__phone { display: flex; }
.field__phone > span { display: grid; place-items: center; padding: 0 12px; background: var(--chalk-2); border: 1.5px solid rgba(31, 34, 37, .22); border-right: 0; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.field__err { display: none; color: var(--sindoor); font-size: 13px; font-weight: 500; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--sindoor); }
.field.is-invalid .field__err { display: block; }
.field--chips { border: 0; padding: 0; margin: 16px 0 14px; }
.field--chips legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 12px; font-size: 14px; border: 1.5px solid rgba(31, 34, 37, .22); background: #fff; transition: all .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; margin: 4px 0 6px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--indigo); flex: none; }
.field__err--consent { margin-bottom: 8px; }
.form.consent-missing .field__err--consent { display: block; }
.form .btn--primary { margin-top: 12px; box-shadow: 4px 4px 0 0 var(--ink); }
.btn__spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(31, 34, 37, .3); border-top-color: var(--ink); animation: spin .7s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ts { margin: 10px 0 6px; min-height: 65px; }
.ts[hidden] { display: none; }
.ts.is-invalid { outline: 1.5px solid var(--sindoor); outline-offset: 2px; }
.form__status { margin-top: 12px; font-size: 14px; color: var(--sindoor); min-height: 0; }
.form__status:empty { display: none; }
.form__status a { font-weight: 600; }
.form__done { position: absolute; inset: 0; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; z-index: 2; }
.form__done[hidden] { display: none; }
.form__done h3 { font-size: 28px; margin-top: 18px; }
.form__done p { color: var(--ink-2); margin-top: 8px; max-width: 34ch; }
.done__mark { width: 96px; height: 96px; background: var(--indigo); fill: none; stroke: var(--chalk); stroke-width: 7; stroke-linecap: round; }
.done__mark path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1s .1s var(--ease) forwards; }
.done__mark path:nth-child(2) { animation-delay: .35s; }
.done__mark path:nth-child(3) { animation-delay: .7s; }

/* ---------- Footer ---------- */
.footer { background: #070b22; color: var(--bp-text); border-top: 1px solid var(--bp-line); padding: 28px 0; }
.footer__inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .brand { color: var(--chalk); font-size: 17px; }
.footer__tag { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.footer__copy { margin-left: auto; font-size: 14px; }

/* ---------- Mobile action bar ---------- */
.mbar { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
/* Seven links plus the CTA need ~1150px, so the menu collapses well
   before the rest of the tablet layout does. */
@media (max-width: 1200px) {
  :root { --nav-h: 62px; }
  .nav__toggle { display: block; }
  .nav__cta { margin-left: auto; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: rgba(11, 16, 48, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bp-line-2);
    padding: 8px var(--gutter) 18px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { background: rgba(11, 16, 48, .97); }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--bp-line); color: var(--chalk); }
  .nav__links a::after { display: none; }

}

@media (max-width: 1080px) {
  .board__body { grid-template-columns: minmax(0, 1fr) 320px; }
  .client { grid-template-columns: 1fr; }
  .client__copy { max-width: 720px; }
}

@media (max-width: 960px) {
  .board__body { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--bp-line-2); }
  .ticket__room { min-height: 0; }

  .quote, .client, .money, .contact__inner { grid-template-columns: 1fr; }
  .money__viz { order: 2; }

  .flow { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .flow__step:nth-child(3) { padding-left: 0; border-left: 0; }
  .flow__step:nth-child(3) .flow__node { left: 0; }
  .flow::before { display: none; }
  .flow__step::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 1.5px; background: var(--turmeric); opacity: .7; }

  .vault { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .built { grid-template-columns: 1fr 1fr; }

  /* mark: stacked, and the tile sticks under the nav while the parts list
     scrolls past it, so the highlighted part stays in view */
  .mark__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "parts"; gap: 24px; }
  .mark__stage { position: sticky; top: calc(var(--nav-h) + 4px); z-index: 2; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) 18px; background: linear-gradient(var(--paper) 84%, rgba(250, 250, 247, 0)); gap: 10px; }
  .mark__stage::before, .mark__stage::after, .mark__caption { display: none; }
  .mark__tile { width: 140px; box-shadow: 6px 6px 0 0 var(--ink); }
  .mark__tile:has(.part--field.is-focus) { box-shadow: 6px 6px 0 0 var(--turmeric); }
  .parts { grid-template-columns: 1fr; }
  .parts li:nth-last-child(-n + 2) { border-bottom: 0; }
  .parts li:last-child { border-bottom: 1px solid var(--rule); }
  .parts button { padding-left: 12px; }
  .parts button::before { left: 0; }
  .roles__panel { grid-template-columns: 1fr; }
  .roles__info { order: -1; border-bottom: 1px solid var(--bp-line-2); padding: 22px; }
  .roles__count { font-size: 64px; }
  .menu { border-right: 0; grid-template-columns: 1fr 1fr; }
  .punch { grid-template-columns: 1fr; }
  .punch li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 18px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .reg { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .hero__title { font-size: clamp(36px, 10vw, 48px); }
  .hero__ctas .btn { width: 100%; }
  .tb-hide { display: none; }
  .plan { padding: 14px 10px 14px; }
  .room__name { font-size: 15px; letter-spacing: .02em; }
  .board.is-in .room__area, .room__area { display: none; }
  .dim text { font-size: 13px; }
  .dim .dim__note { font-size: 12px; }
  .furn { display: none; }

  .compare { height: 560px; }
  .compare__range::-webkit-slider-thumb { height: 560px; }
  .compare__pane { padding: 16px; }
  .chat { left: 3%; width: 82%; top: 44px; }
  .mess { right: 3%; left: auto; top: auto; bottom: 18px; width: 74%; }
  .note { display: none; }
  .after { grid-template-columns: 1fr; gap: 8px; margin-top: 36px; }
  .after__card { padding: 10px 12px; }
  .after__card:nth-child(4) { display: none; }
  .after__title { font-size: 15.5px; }

  .flow { grid-template-columns: 1fr; row-gap: 44px; }
  .flow__step, .flow__step + .flow__step { padding: 24px 0 0; border-left: 0; }
  .flow__step + .flow__step .flow__node { left: 0; }

  .boq { box-shadow: 6px 6px 0 0 var(--indigo); }
  .boq__table { font-size: 13.5px; }
  .boq__table th, .boq__table td { padding: 10px 10px; }
  .boq__table td:not(:first-child) { font-size: 12px; }
  .boq__table th:nth-child(2), .boq__table td:nth-child(2) { display: none; }
  .boq.show-margin .boq__table th:nth-child(4), .boq.show-margin .boq__table td:nth-child(4) { display: none; }

  .client__stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .phone { margin-bottom: 14px; }
  .co { width: 100%; max-width: 420px; transform: none; }
  .co::before, .co::after { display: none; }
  .co span { border-left: 2px solid var(--turmeric); }
  .roles__tabs { grid-template-columns: 1fr 1fr; }
  .rtab:nth-child(2) { border-right: 0; }
  .rtab:nth-child(-n+2) { border-bottom: 1px solid var(--bp-line); }
  .menu { grid-template-columns: 1fr 1fr; padding: 10px 6px; }
  .menu__item { font-size: 13.5px; padding: 7px 8px; gap: 8px; }
  .menu__item.is-off::after { display: none; }
  .vault { grid-template-columns: 1fr 1fr; }
  .vault__tile { padding: 16px 14px 18px; }
  .vault__tile h3 { font-size: 16px; }
  .vault__tile:nth-child(n+5):not(.vault__tile--more)::after { display: none; }
  .built { grid-template-columns: 1fr; gap: 16px; }
  .money__viz { padding: 20px; box-shadow: 6px 6px 0 0 var(--verdigris); }
  .age__row { grid-template-columns: 80px 1fr 52px; gap: 10px; }

  .form { box-shadow: 6px 6px 0 0 var(--turmeric); }
  .form__grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 96px; }
  .footer__copy { margin-left: 0; width: 100%; }

  .mbar {
    display: flex; gap: 8px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 16, 48, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--bp-line-2);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar__icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--bp-line-2); flex: none; }
  .mbar__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--chalk); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
  .mbar__cta { flex: 1; height: 46px; box-shadow: none !important; }
}

@media (max-width: 380px) {
  .hero__chips li { font-size: 11px; }
  .chat { width: 90%; }
  .mess { width: 84%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .wall, .win, .door { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
