/* Ribeiro Remodelações v2: architectural studio language.
   Concrete light + graphite dark, one tape-measure amber for measurements and actions,
   Newsreader (optical sizes, italic) over Geist, Geist Mono only for dimensions. */
:root {
  --bg: #E9E8E3;
  --bg-2: #DEDDD7;
  --paper: #F4F3EF;
  --ink: #161816;
  --ink-2: #51564F;
  --char: #111312;
  --char-2: #1B1E1C;
  --on-dark: #ECEBE6;
  --on-dark-2: #A9ADA6;
  --line: rgba(22, 24, 22, .14);
  --line-d: rgba(236, 235, 230, .12);
  --amber: #E0A526;
  --amber-ink: #87600F;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --pad: clamp(16px, 4.5vw, 72px);
  --r: 14px;
  --bar-h: 92px;
  --z-sticky: 20; --z-grain: 30; --z-chat: 40; --z-skip: 60;
  color-scheme: light;
}
html[data-lang="en"] [lang="pt-PT"]:not(html),
html[data-lang="pt"] [lang="en"]:not(html) { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; background: url(img/grain.png); opacity: .45; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: var(--z-skip); background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.h2 { font: 300 clamp(2.1rem, 4.2vw, 3.9rem)/1.02 var(--serif); letter-spacing: -0.022em; font-optical-sizing: auto; }
.h2 em, .hero h1 em, .foot-big em, .brand em { font-style: italic; }
.glass { -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 24px; border: 0; border-radius: 999px;
  font: 500 15.5px/1.1 var(--sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, box-shadow 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-amber { background: var(--amber); color: #1A1406; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 24px -10px rgba(224,165,38,.7); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
@media (hover: hover) and (pointer: fine) {
  .btn-amber:hover { background: #EBB43C; }
  .btn-ghost:hover { background: rgba(255,255,255,.08); }
}
.link { background: none; border: 0; padding: 10px 2px; min-height: 44px; font: 500 15px/1 var(--sans); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 1.5px; text-underline-offset: 6px; cursor: pointer; color: inherit; white-space: nowrap; }

/* fixed bar: ribbon + glass header */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky); color: var(--on-dark); transition: color 240ms ease; }
.ribbon { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 30px; padding: 0 var(--pad); background: #0B0C0B; color: #C9CCC5; font: 400 12px/1 var(--mono); letter-spacing: 0.01em; }
.ribbon a { text-decoration: none; min-height: 30px; display: inline-flex; align-items: center; }
.ribbon .rb-cta { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.top {
  display: flex; align-items: center; gap: 28px; height: 62px; padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(10,11,10,.42), rgba(10,11,10,.12));
  -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background-color 240ms ease, border-color 240ms ease;
}
.bar.light { color: var(--ink); }
.bar.light .top { background: rgba(233,232,227,.78); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; font: 400 20px/1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 10px 14px; font-size: 14.5px; font-weight: 500; border-radius: 999px; transition: background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: rgba(255,255,255,.12); } .bar.light .nav a:hover { background: rgba(22,24,22,.06); } }
.lang { display: flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; }
.lang button { border: 0; background: none; min-width: 42px; min-height: 36px; border-radius: 999px; font: 500 12.5px/1 var(--mono); cursor: pointer; opacity: .75; }
.lang button[aria-pressed="true"] { background: var(--amber); color: #1A1406; opacity: 1; }

/* hero */
.hero { position: relative; min-height: max(640px, 100svh); color: var(--on-dark); overflow: hidden; background: var(--char); isolation: isolate; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 32px; padding: calc(var(--bar-h) + 40px) var(--pad) clamp(28px, 5vw, 64px); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 80% at 0% 100%, rgba(10,11,10,.82) 0%, rgba(10,11,10,.35) 45%, rgba(10,11,10,0) 70%),
  linear-gradient(180deg, rgba(10,11,10,.5) 0%, rgba(10,11,10,0) 26%, rgba(10,11,10,0) 60%, rgba(10,11,10,.55) 100%); }
.hero-dims { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-dims path { fill: none; stroke: var(--amber); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hd-lab { position: absolute; z-index: 0; white-space: nowrap; font: 500 12.5px/1 var(--mono); color: var(--amber); padding: 4px 8px; border-radius: 6px; background: rgba(10,11,10,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hd-x { left: 74%; top: 22.5%; transform: translate(-50%, -50%); }
.hd-y { left: 96%; top: 55.8%; transform: translate(-50%, -50%) rotate(-90deg); }
.hero-in { max-width: 820px; }
.hero h1 { font: 300 clamp(2.9rem, 6.6vw, 6rem)/0.98 var(--serif); letter-spacing: -0.03em; font-optical-sizing: auto; }
.hero h1 .ln { display: block; }
.lede { margin-top: 22px; max-width: 46ch; font-size: clamp(1rem, 1.25vw, 1.15rem); color: #D7D8D2; }
.quick { justify-self: end; width: min(420px, 100%); padding: 20px; border-radius: var(--r); background: rgba(236,235,230,.10); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.quick-h { font: 400 1.25rem/1.2 var(--serif); margin-bottom: 14px; }
.quick-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.qo { position: relative; }
.qo input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qo > span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: background-color 160ms ease, color 160ms ease; }
.qo input:checked + span {  background: var(--on-dark); color: var(--ink); box-shadow: none; }
.qo input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.quick .btn { width: 100%; }
.js .hero h1 .ln { opacity: 0; transform: translateY(24px); animation: rise 900ms var(--ease-out) forwards; }
.js .hero h1 .ln + .ln { animation-delay: 110ms; }
.js .lede, .js .quick { opacity: 0; animation: rise 900ms var(--ease-out) 260ms forwards; }
.js .quick { animation-delay: 380ms; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .draw { stroke-dashoffset: 1; animation: draw 1200ms var(--ease-io) 500ms forwards; }
.js .hd-lab { opacity: 0; animation: fade 400ms ease 1400ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* before / after */
.ba-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding: clamp(72px, 9vw, 140px) var(--pad); }
.ba-intro p { margin-top: 18px; color: var(--ink-2); max-width: 38ch; }
.ba-tabs { margin-top: 28px; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.ba-tabs button { border: 0; background: none; min-height: 42px; padding: 8px 16px; border-radius: 999px; font: 500 14px/1.1 var(--sans); cursor: pointer; transition: background-color 160ms ease; }
.ba-tabs button[aria-selected="true"] { background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 14px -6px rgba(0,0,0,.18); }
.ba { margin: 0; min-width: 0; }
.ba-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 30px; grid-template-rows: 30px auto; }
.dim { overflow: visible; }
.dim path { fill: none; stroke: var(--amber-ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dim-x { grid-column: 1; grid-row: 1; width: 100%; height: 14px; align-self: center; }
.dim-y { grid-column: 2; grid-row: 2; height: 100%; width: 14px; justify-self: center; }
.dim-lab { position: absolute; font: 500 12px/1 var(--mono); color: var(--amber-ink); background: var(--bg); padding: 2px 8px; }
.dim-lab-x { top: 8px; left: calc((100% - 30px) / 2); transform: translateX(-50%); }
.dim-lab-y { right: 15px; top: calc(30px + (100% - 30px) / 2); transform: translate(50%, -50%) rotate(-90deg); }
.ba-frame { grid-column: 1; grid-row: 2; position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r); background: var(--bg-2); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; box-shadow: 0 40px 80px -40px rgba(17,19,18,.45); }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 50% 0 0); will-change: clip-path; }
.ba-tag { position: absolute; top: 14px; font: 500 12px/1 var(--mono); color: #fff; padding: 7px 10px; border-radius: 999px; background: rgba(10,11,10,.38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.ba-tag-l { left: 14px; } .ba-tag-r { right: 14px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 0; width: 48px; margin-left: -24px; display: grid; place-items: center; cursor: ew-resize; outline: none; will-change: transform; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 23.5px; width: 1px; background: rgba(255,255,255,.9); box-shadow: 0 0 12px rgba(0,0,0,.35); }
.ba-knob { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(17,19,18,.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 10px 30px -8px rgba(0,0,0,.5); transition: transform 180ms var(--ease-out), background-color 180ms ease; }
.ba-handle:focus-visible .ba-knob { box-shadow: inset 0 0 0 2px var(--amber), 0 10px 30px -8px rgba(0,0,0,.5); }
.ba-frame.dragging .ba-knob { transform: scale(1.1); background: rgba(224,165,38,.75); }
.ba-cap { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; color: var(--ink-2); min-height: 44px; }
.ba-cap b { font: 400 1.1rem/1.3 var(--serif); color: var(--ink); }

/* estimator: night CAD */
.calc { position: relative; padding: clamp(72px, 9vw, 130px) var(--pad); background: var(--char); color: var(--on-dark); isolation: isolate; overflow: clip; }
.calc::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(236,235,230,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(236,235,230,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(90% 80% at 70% 40%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(90% 80% at 70% 40%, #000 30%, transparent 100%); }
.calc::after { content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -10vw; top: 10%; background: radial-gradient(closest-side, rgba(224,165,38,.13), transparent); pointer-events: none; }
.calc-intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: 48px; }
.calc-intro p { color: var(--on-dark-2); max-width: 46ch; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.field { border: 0; margin: 0 0 34px; padding: 0; min-width: 0; }
.field legend { display: flex; align-items: center; gap: 10px; font: 400 1.25rem/1.2 var(--serif); margin-bottom: 14px; padding: 0; }
.n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-d); font: 500 11px/1 var(--mono); color: var(--amber); }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.room { position: relative; }
.room input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.room > span { display: grid; gap: 10px; align-content: start; min-height: 98px; padding: 12px; border-radius: 12px; background: rgba(236,235,230,.04); box-shadow: inset 0 0 0 1px var(--line-d); font-size: 14px; font-weight: 500; line-height: 1.2; transition: background-color 180ms ease, box-shadow 180ms ease, transform 140ms var(--ease-out); }
.msi { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 28px; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; display: inline-block; width: 1em; height: 1em; overflow: hidden; color: var(--on-dark-2); font-variation-settings: 'wght' 200; -webkit-font-smoothing: antialiased; }
.room input:checked + span { background: rgba(224,165,38,.12); box-shadow: inset 0 0 0 1px var(--amber); }
.room input:checked + span .msi { color: var(--amber); }
.room input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.room input:active + span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .room input:not(:checked):hover + span { background: rgba(236,235,230,.08); } }
.area-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.area-out { font: 300 clamp(2.8rem, 4.6vw, 4rem)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.area-dims { font: 400 13px/1.3 var(--mono); color: var(--on-dark-2); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 6px 0 0; cursor: pointer; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--amber) 0 var(--fill, 25%), rgba(236,235,230,.22) var(--fill, 25%)); }
input[type="range"]::-moz-range-track { height: 2px; background: rgba(236,235,230,.22); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; background: var(--on-dark); box-shadow: 0 0 0 6px rgba(224,165,38,.25), 0 4px 12px rgba(0,0,0,.4); transition: transform 140ms var(--ease-out); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--on-dark); box-shadow: 0 0 0 6px rgba(224,165,38,.25); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px var(--amber); }
.area-scale { display: flex; justify-content: space-between; font: 400 11.5px/1 var(--mono); color: var(--on-dark-2); }
.hint { margin-top: 10px; font-size: 13.5px; color: var(--on-dark-2); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(236,235,230,.05); box-shadow: inset 0 0 0 1px var(--line-d); }
.seg label { position: relative; display: grid; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; gap: 2px; align-content: start; height: 100%; padding: 10px 12px; border-radius: 10px; transition: background-color 180ms ease, color 180ms ease; }
.seg b { font-weight: 500; font-size: 15px; }
.seg small { font-size: 12.5px; color: var(--on-dark-2); line-height: 1.3; }
.seg input:checked + span { background: var(--on-dark); color: var(--ink); }
.seg input:checked + span small { color: var(--ink-2); }
.seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: -2px; }
.plan-col { position: sticky; top: calc(var(--bar-h) + 20px); display: grid; gap: 16px; }
.plan { border-radius: var(--r); padding: 10px 16px; box-shadow: inset 0 0 0 1px var(--line-d); background: rgba(236,235,230,.02); }
.plan svg { width: 100%; height: auto; max-height: 300px; overflow: visible; }
.plan .wall { fill: none; stroke: var(--on-dark); stroke-width: 5; }
.plan .wall-in { fill: rgba(224,165,38,.07); stroke: none; }
.plan .thin { fill: none; stroke: var(--on-dark-2); stroke-width: 1; }
.plan .gap { stroke: var(--char); stroke-width: 7; }
.plan .dl { stroke: var(--amber); stroke-width: 1; fill: none; }
.plan text { font: 500 13px var(--mono); fill: var(--amber); }
.plan text.room-lab { fill: var(--on-dark-2); font-size: 12px; font-weight: 400; }
.boq { padding: 22px 24px 24px; border-radius: var(--r); background: rgba(236,235,230,.06); box-shadow: inset 0 0 0 1px var(--line-d), 0 40px 80px -40px rgba(0,0,0,.6); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 32px; align-items: end; }
.boq h3 { grid-column: 1; grid-row: 1; font: 400 12.5px/1.3 var(--mono); color: var(--on-dark-2); margin-bottom: 4px; }
.boq table { grid-column: 1; grid-row: 2 / span 2; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.boq th, .boq td { padding: 10px 0; text-align: left; font-weight: 400; vertical-align: baseline; }
.boq tbody tr + tr > * { border-top: 1px solid var(--line-d); }
.boq td { text-align: right; font: 400 14.5px/1.3 var(--mono); white-space: nowrap; }
.boq tbody th small { display: block; font-size: 12.5px; color: var(--on-dark-2); }
.boq tfoot th, .boq tfoot td { border-top: 1px solid rgba(236,235,230,.35); padding-top: 16px; }
.boq tfoot th { font-weight: 500; }
.boq tfoot td { font: 300 clamp(2rem, 3vw, 2.7rem)/1 var(--serif); letter-spacing: -0.02em; }
.boq-range { grid-column: 2; grid-row: 2; align-self: end; font-size: 13px; color: var(--on-dark-2); margin-bottom: 16px; }
.boq .btn { grid-column: 2; grid-row: 3; width: 100%; }
.tick { display: inline-block; }
.tick.bump { animation: bump 260ms var(--ease-out); }
@keyframes bump { from { opacity: .3; transform: translateY(4px); } }

.req { margin-top: 32px; border-radius: var(--r); background: rgba(236,235,230,.06); box-shadow: inset 0 0 0 1px var(--line-d); }
.req-in, .req-done { padding: clamp(22px, 3vw, 40px); }
.req h3 { font: 300 clamp(1.6rem, 2.4vw, 2.2rem)/1.1 var(--serif); }
.req-sum { margin-top: 8px; font: 400 13px/1.5 var(--mono); color: var(--amber); }
.req-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; margin: 26px 0; }
.in { display: grid; gap: 8px; font-size: 14px; font-weight: 500; align-content: start; color: var(--on-dark-2); }
.in input:not([type="file"]) { min-height: 50px; padding: 12px 14px; border: 0; border-radius: 10px; background: rgba(236,235,230,.08); box-shadow: inset 0 0 0 1px var(--line-d); color: var(--on-dark); font-size: 16px; font-weight: 400; transition: box-shadow 160ms ease; }
.in input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--amber); }
.in input::placeholder { color: #8E928B; }
.in input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #F07B5A; }
.err { font: normal 400 12.5px/1.3 var(--sans); color: #F4A189; min-height: 1em; }
.photos { grid-column: 1 / -1; }
.drop { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(236,235,230,.35); cursor: pointer; justify-self: start; color: var(--on-dark); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.fine { margin-top: 12px; font-size: 13px; color: var(--on-dark-2); }
.req-done p { margin-top: 10px; max-width: 60ch; color: var(--on-dark-2); }
.stamp { display: inline-block; margin: 16px 0 20px !important; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--amber); color: var(--amber) !important; font: 500 13px/1.2 var(--mono); }

/* services with sticky image */
.works { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); padding: clamp(72px, 9vw, 140px) var(--pad); background: var(--paper); align-items: start; }
.works-media { position: sticky; top: calc(var(--bar-h) + 24px); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--bg-2); box-shadow: 0 40px 80px -40px rgba(17,19,18,.4); }
.works-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 500ms ease, transform 900ms var(--ease-out); }
.works-media img.on { opacity: 1; transform: none; }
.works-p { margin-top: 18px; color: var(--ink-2); max-width: 44ch; }
.svc { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.svc li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.svc li > div { transition: transform 300ms var(--ease-out); }
.svc h3 { font: 300 clamp(1.6rem, 2.5vw, 2.25rem)/1.1 var(--serif); letter-spacing: -0.015em; }
.svc p { margin-top: 6px; font: 400 13px/1.4 var(--mono); color: var(--ink-2); }
.svc li.on > div { transform: translateX(10px); }
.svc li.on h3 { font-style: italic; }
.svc .link { color: var(--ink); text-decoration-color: var(--amber); }

/* process */
.steps-sec { padding: clamp(72px, 9vw, 130px) var(--pad); }
.steps-wrap { position: relative; margin-top: 48px; }
.steps-line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.steps-line span { position: absolute; inset: 0; background: var(--amber-ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { position: relative; padding-top: 34px; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }
.steps .when { display: block; font: 500 12.5px/1.4 var(--mono); color: var(--amber-ink); }
.steps b { display: block; margin-top: 6px; font: 400 1.6rem/1.15 var(--serif); }
.steps p { margin-top: 8px; color: var(--ink-2); max-width: 28ch; }

/* projects */
.proj { padding: clamp(40px, 6vw, 80px) var(--pad) clamp(72px, 9vw, 140px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.proj > .h2 { grid-column: 1 / span 8; margin-bottom: clamp(36px, 5vw, 72px); }
.pj { position: relative; }
.pj-img { overflow: hidden; border-radius: var(--r); background: var(--bg-2); aspect-ratio: 4 / 5; }
.pj-img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.pj-a { grid-column: 1 / span 6; }
.pj-b { grid-column: 8 / span 5; margin-top: 160px; }
.pj-c { grid-column: 2 / span 5; margin-top: 72px; }
.pj-c .pj-img { aspect-ratio: 5 / 4; }
.pj-q { position: relative; margin: -90px 0 0 auto; width: min(400px, 88%); padding: 22px 24px; border-radius: var(--r); background: rgba(244,243,239,.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 30px 60px -30px rgba(17,19,18,.45); }
.pj-b .pj-q { margin-left: -40px; margin-right: 0; }
.pj-q > p:first-child { font: 400 1.3rem/1.35 var(--serif); }
.pj-q footer { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.ex { font: 500 11px/1 var(--mono); padding: 4px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-2); color: var(--ink-2); }
.pj-meta { margin-top: 8px; font: 400 12.5px/1.4 var(--mono); color: var(--ink-2); }
.proj-note { grid-column: 1 / -1; margin-top: 56px; font: 400 12.5px/1.4 var(--mono); color: var(--ink-2); }

/* area */
.zona { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 96px); padding: clamp(72px, 9vw, 130px) var(--pad); background: var(--char-2); color: var(--on-dark); align-items: center; }
.zona-map svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.rings circle { fill: none; stroke: rgba(236,235,230,.35); stroke-width: 1; stroke-dasharray: 3 5; }
.rings circle:first-child { stroke-dasharray: none; fill: rgba(224,165,38,.1); stroke: var(--amber); }
.ring-lab text { font: 400 11px var(--mono); fill: var(--on-dark-2); }
.axis { stroke: rgba(236,235,230,.1); stroke-width: 1; }
.towns circle { fill: var(--char-2); stroke: var(--on-dark); stroke-width: 1.4; }
.towns .home circle { fill: var(--amber); stroke: var(--amber); }
.towns text { font: 500 12.5px var(--sans); fill: var(--on-dark); paint-order: stroke; stroke: var(--char-2); stroke-width: 4px; stroke-linejoin: round; }
.towns .home text { font: 400 16px var(--serif); }
.zona-txt .big { margin-top: 18px; font: 300 1.4rem/1.4 var(--serif); max-width: 34ch; }
.hours { margin-top: 12px; font: 400 13px/1.4 var(--mono); color: var(--on-dark-2); }
.faq { margin: 28px 0 32px; border-top: 1px solid var(--line-d); }
.faq details { border-bottom: 1px solid var(--line-d); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; font-size: 1.05rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; background: linear-gradient(currentColor, currentColor) center / 12px 1.2px no-repeat, linear-gradient(currentColor, currentColor) center / 1.2px 12px no-repeat; transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--on-dark-2); max-width: 52ch; }

/* footer */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: end; padding: clamp(56px, 7vw, 100px) var(--pad) 110px; background: var(--char); color: var(--on-dark-2); }
.foot-big { grid-column: 1 / -1; font: 300 clamp(2.6rem, 8vw, 7.5rem)/0.95 var(--serif); letter-spacing: -0.035em; color: var(--on-dark); margin-bottom: 20px; }
.foot p:not(.foot-big) { max-width: 64ch; font-size: 14.5px; }
.foot a:not(.btn) { color: var(--on-dark); }

/* assistant */
.ask { position: fixed; right: 18px; bottom: 18px; z-index: var(--z-chat); display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: rgba(17,19,18,.72); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 18px 40px -16px rgba(0,0,0,.55); font: 500 15px/1 var(--sans); cursor: pointer; transition: transform 140ms var(--ease-out); }
.ask:active { transform: scale(0.97); }
.ask-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(224,165,38,.22); }
.askbox { position: fixed; right: 18px; bottom: 80px; z-index: var(--z-chat); width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 150px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: rgba(23,26,24,.86); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -30px rgba(0,0,0,.7); transform-origin: bottom right; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out); }
.askbox.enter { opacity: 0; transform: translateY(10px) scale(0.97); }
.askbox header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 14px 14px 20px; border-bottom: 1px solid var(--line-d); }
.askbox h2 { font: 400 1.3rem/1.1 var(--serif); }
.askbox header p { font: 400 12px/1.3 var(--mono); color: var(--on-dark-2); margin-top: 6px; }
.x { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 0; border-radius: 50%; cursor: pointer; margin: -6px -2px 0 0; color: inherit; }
.log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.msg.bot { align-self: flex-start; background: rgba(236,235,230,.08); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--amber); color: #1A1406; border-bottom-right-radius: 4px; }
.msg.typing { font-family: var(--mono); font-size: 13px; color: var(--on-dark-2); }
.msg.new { animation: msgIn 240ms var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.qs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 16px; border-top: 1px solid var(--line-d); }
.qs button { min-height: 42px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(236,235,230,.06); box-shadow: inset 0 0 0 1px rgba(236,235,230,.2); font: 500 14px/1.2 var(--sans); text-align: left; cursor: pointer; }
.qs button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .qs button:hover { background: rgba(236,235,230,.14); } }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }
.js .pj-img.rv { opacity: 1; transform: none; clip-path: inset(12% 0 0 0 round var(--r)); transition: clip-path 1100ms var(--ease-io); }
.js .pj-img.rv.in { clip-path: inset(0 0 0 0 round var(--r)); }

/* responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .boq { grid-template-columns: minmax(0, 1fr); }
  .boq > * { grid-column: 1 !important; grid-row: auto !important; }
  .boq-range { margin-top: 10px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-content: end; }
  .quick { justify-self: start; }
  .ba-sec, .calc-intro, .calc-grid, .works, .zona { grid-template-columns: minmax(0, 1fr); }
  .plan-col { position: static; }
  .works-media { display: none; }
  .svc li.on > div { transform: none; }
  .svc li.on h3 { font-style: normal; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps-line { display: none; }
  .proj { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .proj > .h2, .pj-a, .pj-b, .pj-c { grid-column: 1; margin-top: 0; }
  .pj-b .pj-q { margin-left: auto; margin-right: 0; }
  .req-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  :root { --bar-h: 86px; }
  body { font-size: 16px; }
  .ribbon { height: 28px; font-size: 11px; }
  .ribbon .rb-cta { display: none; }
  .ribbon .rb-main { text-decoration: underline; text-underline-offset: 3px; }
  .top { height: 58px; gap: 12px; }
  .brand { font-size: 18px; }
  .hero { min-height: 0; padding-top: calc(var(--bar-h) + 120px); padding-bottom: 24px; gap: 22px; }
  .hero-media video { object-position: 68% 50%; }
  .hero-shade { background: linear-gradient(180deg, rgba(10,11,10,.45) 0%, rgba(10,11,10,.35) 30%, rgba(10,11,10,.72) 62%, rgba(10,11,10,.88) 100%); }
  .hero h1 { font-size: clamp(2.6rem, 12.4vw, 3.4rem); }
  .lede { margin-top: 14px; }
  .hd-x { left: 74%; top: 22.5%; } .hd-y { display: none; }
  .quick { padding: 16px; width: 100%; }
  .quick-h { font-size: 1.1rem; margin-bottom: 10px; }
  .ba-tabs { display: flex; width: 100%; }
  .ba-tabs button { flex: 1; padding: 8px; font-size: 13.5px; }
  .ba-wrap { grid-template-columns: minmax(0, 1fr) 24px; grid-template-rows: 26px auto; }
  .dim-lab-x { top: 6px; left: calc((100% - 24px) / 2); }
  .dim-lab-y { right: 12px; top: calc(26px + (100% - 26px) / 2); }
  .ba-frame { aspect-ratio: 4 / 3.6; }
  .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .room > span { min-height: 0; padding: 10px; font-size: 13px; }
  .seg span { padding: 9px; }
  .seg small { font-size: 11.5px; }
  .boq { padding: 18px; }
  .req-fields { grid-template-columns: 1fr; }
  .svc li { padding: 18px 0; align-items: flex-end; }
  .steps { grid-template-columns: 1fr; }
  .pj-q { width: 92%; margin-top: -60px; padding: 18px; }
  .pj-q > p:first-child { font-size: 1.15rem; }
  .foot { grid-template-columns: 1fr; padding-bottom: 100px; }
  .ask { right: 12px; bottom: 12px; }
  .askbox { right: 12px; left: 12px; width: auto; bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .js .draw { stroke-dashoffset: 0; }
  .js .hd-lab, .js .lede, .js .quick, .js .hero h1 .ln { opacity: 1; transform: none; }
  .js .rv { opacity: 1; transform: none; clip-path: none; }
}
.bar.light.over-dark { color: var(--on-dark); }
.bar.light.over-dark .top { background: rgba(17,19,18,.62); border-bottom-color: rgba(255,255,255,.08); }
@media (hover: hover) and (pointer: fine) { .bar.light.over-dark .nav a:hover { background: rgba(255,255,255,.1); } }
