/* PROTOTYPE, throwaway: direction B of the Kanzen site. One light theme on purpose (printed-report look). */
:root {
  --paper: #f7f7f5; --ink: #1b2530; --mute: #5d6670; --line: rgb(27 37 48 / .14); --amber: #f6b04a;
  --serif: "Newsreader", Georgia, serif; --sans: "Hanken Grotesk", system-ui, sans-serif;
  --m: clamp(20px, 5vw, 96px); --gap: clamp(20px, 2.4vw, 40px);
  --sec: clamp(72px, 10vw, 160px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
dl, dd, ol { margin: 0; padding: 0; }
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 var(--m); }
.tab { font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }
.fine { font-size: 13px; color: var(--mute); }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; max-width: 36ch; }
.d1 { font-size: clamp(44px, 5.1vw, 80px); line-height: 1; letter-spacing: -.03em; }
.h2 { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.05; }
.h2.big { font-size: clamp(40px, 4.6vw, 72px); }
.h3 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; }

/* links and buttons */
.btn { display: inline-flex; gap: .5em; align-items: center; background: var(--ink); color: var(--paper); text-decoration: none; font: 500 16px/1 var(--sans);
  padding: 18px 24px; border: 0; cursor: pointer; transition: background .2s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.wide { width: 100%; justify-content: center; }
.acts { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-top: 40px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------------------------------------------------------------- interaction: one family of hovers.
   Amber only where light comes on (the buttons, the logo's windows, a product's sill). */
:root { --out: cubic-bezier(.16, 1, .3, 1); }

/* text links: an underline drawn from the left. Links that rest underlined (.ul) retract it and
   redraw it; plain links (nav, footer, phones, crumbs) draw it in and let it go to the right. */
.ul, .top nav a, .foot nav a, .people a, .crumbs a, .legal-in a {
  text-decoration: none; padding-bottom: 3px; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 1px;
  transition: background-size .45s var(--out), color .25s, translate .5s var(--out);
}
.ul { background-size: 100% 1px; padding-bottom: 4px; }
.ul:hover, .ul:focus-visible { background-size: 0 1px; animation: kz-redraw .9s var(--out) .18s forwards; }
.top nav a:hover, .foot nav a:hover, .people a:hover, .crumbs a:hover, .legal-in a:hover,
.top nav a:focus-visible, .foot nav a:focus-visible, .people a:focus-visible {
  background-position: left bottom; background-size: 100% 1px;
}
@keyframes kz-redraw { from { background-position: left bottom; background-size: 0 1px; } to { background-position: left bottom; background-size: 100% 1px; } }

/* arrows step the way they point */
.arr { display: inline-block; transition: transform .55s var(--out); }
a:hover .arr.r, button:hover .arr.r, a:focus-visible .arr.r { transform: translateX(5px); }
a:hover .arr.d, a:focus-visible .arr.d { transform: translateY(4px); }
a:hover .arr.ne, button:hover .arr.ne, a:focus-visible .arr.ne { transform: translate(3px, -3px); }

/* solid buttons: amber rises inside like a window lighting up, a sheen follows the pointer */
.btn--live { position: relative; isolation: isolate; overflow: hidden; transition: color .35s var(--out), translate .5s var(--out), transform .1s; }
.btn--live::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--amber); transform: translateY(101%); transition: transform .55s var(--out); }
.btn--live::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .45), transparent 70%); }
.btn--live:hover, .btn--live:focus-visible { color: var(--ink); }
.btn--live:hover::before, .btn--live:focus-visible::before { transform: translateY(0); }
.btn--live:hover::after { opacity: 1; }
[data-magnet] { translate: var(--tx, 0) var(--ty, 0); }

/* the logo: its four windows go out and come back on, one after another */
.logo .mw { transition: fill .2s; }
.logo:hover .mw, .logo:focus-visible .mw { animation: kz-window 1.1s steps(1, end) both; }
.logo:hover .mw:nth-of-type(2), .logo:focus-visible .mw:nth-of-type(2) { animation-delay: .12s; }
.logo:hover .mw:nth-of-type(3), .logo:focus-visible .mw:nth-of-type(3) { animation-delay: .24s; }
.logo:hover .mw:nth-of-type(4), .logo:focus-visible .mw:nth-of-type(4) { animation-delay: .36s; }
@keyframes kz-window { 0% { fill: #f6b04a; } 20% { fill: #d9d5cc; } 55% { fill: #ffd28a; } 100% { fill: #f6b04a; } }

/* products: the plate drifts closer and an amber sill lights under it */
.prod { cursor: default; }
.prod-img img, .prod-img video { transition: transform 1.2s var(--out), filter .6s var(--out); }
.prod-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--out); }
.prod h3 { transition: translate .5s var(--out); }
.prod:hover .prod-img img, .prod:hover .prod-img video { transform: scale(1.045); filter: saturate(1.08); }
.prod:hover .prod-img::after { transform: scaleX(1); }
.prod:hover h3 { translate: 6px 0; }

/* tabs and segmented controls */
.pl-tabs button { transition: color .25s, border-color .35s var(--out); }
.pl-tabs button:hover { color: var(--ink); border-bottom-color: rgb(27 37 48 / .3); }
.seg button { transition: background .25s, color .25s; }
.seg button:not([aria-pressed="true"]):hover { background: rgb(27 37 48 / .06); color: var(--ink); }

/* form fields answer the pointer too */
.form input, .form textarea, .kz-select__btn { transition: border-color .25s, box-shadow .35s var(--out); }
.form input:hover, .form textarea:hover, .kz-select__btn:hover { box-shadow: 0 1px 0 0 var(--ink); }

/* the dropdown (site.js turns every .form select into this; the select stays for the form's data) */
.kz-select { position: relative; }
.kz-select__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: inherit; font-size: 18px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; cursor: pointer; text-align: left; }
.kz-select__btn[data-empty] { color: var(--mute); }
.kz-select__btn svg { flex: none; transition: transform .4s var(--out); }
.kz-select__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.kz-select__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 18px 40px rgb(27 37 48 / .14); transform-origin: top; opacity: 0; transform: translateY(-6px) scaleY(.96); pointer-events: none;
  transition: opacity .2s, transform .35s var(--out); }
.kz-select__list.open { opacity: 1; transform: none; pointer-events: auto; }
.kz-select__list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px; font-size: 16px; color: var(--ink); cursor: pointer; transition: background .15s, padding-left .3s var(--out); }
.kz-select__list li[hidden] { display: none; }
.kz-select__list li[aria-selected="true"]::after { content: ""; width: 8px; height: 8px; background: var(--amber); }
.kz-select__list li:hover, .kz-select__list li.active { background: rgb(246 176 74 / .18); padding-left: 18px; }


/* header and footer */
.top { padding: 26px 0; }
.top-in { display: flex; align-items: center; gap: 40px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 25px/1 var(--sans); letter-spacing: -.02em; }
.logo .mark { width: 25px; height: 28px; }
.logo .dot { color: var(--amber); }
.top nav { margin-left: auto; display: flex; gap: 34px; font-size: 16px; }
.top nav a, .foot nav a { text-decoration: none; }
.cta-top { font-size: 16px; }
.foot { border-top: 1px solid var(--line); padding: 34px 0 40px; }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-co { font-size: 14px; color: var(--mute); border-left: 1px solid var(--line); padding-left: 28px; line-height: 1.4; }
.foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
/* the published inner pages, by group (shell.py writes it only once a page is published, D49) */
.foot-pages { display: flex; flex-wrap: wrap; gap: 24px 72px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot .foot-group { margin-left: 0; flex-direction: column; flex-wrap: nowrap; gap: 8px; }
.foot-h { font-size: 13px; color: var(--mute); }
/* questions and answers of a page's FAQ (the <!-- kz:faq --> marker of a page fragment) */
.faq { margin-top: 40px; border-bottom: 1px solid var(--line); }
.faq div { padding: 22px 0; border-top: 1px solid var(--line); }
.faq dt { font: 400 clamp(20px, 1.8vw, 26px)/1.25 var(--serif); letter-spacing: -.01em; }
.faq dd { margin-top: 8px; color: var(--mute); max-width: 68ch; }

/* plates: photographs set like a printed page */
.plate { margin: 0; }
.plate img { width: 100%; }
.plate figcaption { font-size: 13px; color: var(--mute); margin-top: 12px; }

/* sections */
.sec { padding: var(--sec) 0 0; position: relative; }
.sec:last-of-type { padding-bottom: var(--sec); }
.hero { padding-top: clamp(16px, 2vw, 32px); }
.hero .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.hero-txt { grid-column: 1 / span 5; }
.hero-txt .lead { margin-top: 32px; }
.hero-img { grid-column: 6 / -1; }

.how .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.how-img { grid-column: 1 / span 5; }
.how-txt { grid-column: 7 / -1; }
.rows { margin-top: 48px; }
.rows div { display: grid; grid-template-columns: 12em 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.rows div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 500; font-size: 18px; }
.rows dd { color: var(--mute); }

.lit-head { display: grid; grid-template-columns: 1fr auto; gap: var(--gap); align-items: start; }
.lit-head .lead { margin-top: 28px; }
.count { text-align: right; }
.count .num { display: block; font: 400 clamp(56px, 7vw, 112px)/1 var(--serif); letter-spacing: -.03em; }
.count span:last-child { color: var(--mute); }
.stage { position: relative; margin-top: 56px; }
.towers { display: flex; justify-content: center; align-items: flex-end; gap: clamp(28px, 7vw, 120px); border-bottom: 1px solid var(--ink); padding: 0 2%; --k: clamp(1px, .125vw, 1.7px); }
.tower { margin: 0; display: flex; flex-direction: column; align-items: center; }
.tw { width: calc(var(--w) * var(--k)); height: auto; overflow: visible; }
.tw .ln { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tw .body { fill: var(--paper); }
.tw .slab { stroke: var(--ink); stroke-opacity: .25; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tw .win { fill: none; stroke: var(--ink); stroke-opacity: .35; stroke-width: .8; vector-effect: non-scaling-stroke; }
.tw .win.on { fill: var(--amber); stroke: none; cursor: pointer; transition: fill .15s; }
.tw .win.on:hover, .tw .win.on.sel { fill: #d98a1c; }
.towers:not(.small) .tower { position: relative; }
.towers:not(.small) figcaption { position: absolute; top: 100%; margin-top: 18px; text-align: center; white-space: nowrap; display: flex; flex-direction: column; font-size: 15px; color: var(--mute); }
.towers:not(.small) figcaption b { font-weight: 500; color: var(--ink); font-size: 17px; }
.lit .fine { margin-top: 128px; }
.ucard { position: absolute; top: 0; left: 0; width: 280px; background: var(--paper); border: 1px solid var(--line); padding: 20px 22px; box-shadow: 0 18px 40px rgb(27 37 48 / .12); }
.ucard .uh { font-size: 18px; margin-bottom: 10px; }
.ucard dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.ucard dt { color: var(--mute); }
.ucard .x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--mute); }

.prods .lead { margin-top: 16px; max-width: none; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 56px; }
.prod-img { overflow: hidden; position: relative; }
.prod img, .prod video { display: block; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; }
.prod h3 { font-size: clamp(24px, 2.1vw, 32px); margin-top: 24px; }
.prod .st { font-weight: 500; margin-top: 6px; }
.prod .mute { margin-top: 10px; max-width: 26ch; }
.prods .fine { margin: 24px 0 36px; }
/* the Vitrine's deliverables: a quiet list on the product grid, one window shows the row in focus */
.xband { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); align-items: start;
  margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.x-h { font-size: clamp(24px, 1.9vw, 30px); line-height: 1.15; }
.x-intro .mute { margin-top: 12px; font-size: 15px; max-width: 34ch; }
.x-list { grid-column: 2 / span 2; list-style: none; margin: 0; padding: 0; }
.x-row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; width: 100%; padding: 18px 0 20px; margin: 0;
  background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.x-list li:last-child .x-row { border-bottom: 1px solid var(--line); }
.x-row:focus-visible { outline-offset: -2px; }
.x-name { font-weight: 500; font-size: 18px; line-height: 1.35; }
.x-st { font-size: 14px; line-height: 1.35; color: var(--mute); align-self: center; text-align: right; }
.x-d { grid-column: 1 / -1; font-size: 15px; line-height: 1.5; color: var(--mute); transition: color .3s; }
.x-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--out); }
.x-row[aria-pressed="true"]::after { transform: scaleX(1); }
.x-row[aria-pressed="true"] .x-d { color: var(--ink); }
.x-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: rgb(27 37 48 / .06); }
.x-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04);
  transition: opacity .6s var(--out), transform 1.2s var(--out); }
.x-media > .on { opacity: 1; transform: none; }
.x-media [data-x="painel"] { object-position: 50% 40%; }

.case .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.case-img { grid-column: 1 / span 7; }
.case-txt { grid-column: 8 / -1; padding-left: 2vw; }
.case-txt .lead { margin-top: 28px; }
.kv { margin: 40px 0 44px; }
.kv div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.kv div:last-child { border-bottom: 1px solid var(--line); }
.kv dt { color: var(--mute); }

.start-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.start-top .h2 { grid-column: 1 / span 4; }
.steps { grid-column: 5 / -1; list-style: none; }
.steps li { display: grid; grid-template-columns: 9em 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); align-items: baseline; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps h3 { font-size: clamp(26px, 2.2vw, 34px); }
.steps p { color: var(--mute); max-width: 52ch; }
.band-img { margin-top: clamp(56px, 7vw, 104px); }
.band-img img { aspect-ratio: 2136 / 728; object-fit: cover; }

.contact .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.c-txt { grid-column: 1 / span 5; }
.c-txt .lead { margin-top: 28px; }
.people { margin-top: 48px; }
.people div { padding: 22px 0; border-top: 1px solid var(--line); }
.people dt { font-size: 15px; color: var(--mute); }
.people dd { font-size: 20px; display: flex; flex-direction: column; margin-top: 4px; }
.people a { text-decoration: none; }
.form { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 28px; }
.form label { display: flex; flex-direction: column; gap: 8px; color: var(--mute); font-size: 16px; }
.form .opt { font-size: 14px; }
.form-row { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form input, .form select, .form textarea { font: inherit; font-size: 18px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; border-radius: 0; appearance: none; }
/* the native select, before site.js replaces it */
.form select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231b2530' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-width: 2px; }
.form .btn { margin-top: 8px; }

/* project page */
.phero { padding-top: clamp(16px, 2vw, 32px); }
.phero .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.phero-txt { grid-column: 1 / span 5; }
.crumbs { font-size: 15px; color: var(--mute); margin-bottom: clamp(48px, 7vw, 120px); }
.crumbs a { text-decoration: none; }
.kick { color: var(--mute); margin-bottom: 16px; }
.phero .lead { margin-top: 28px; max-width: 34ch; }
.phero-img { grid-column: 6 / -1; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); margin-top: 40px; }
.facts div { padding: 24px 20px 4px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: 15px; color: var(--mute); }
.facts dd { font-size: clamp(18px, 1.6vw, 24px); margin-top: 6px; }

.hour .lead { margin-top: 16px; max-width: none; }
.dn { position: relative; margin-top: 44px; aspect-ratio: 2304 / 1040; overflow: hidden; }
.dn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dn .day { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.dn .handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 1px; background: var(--paper); pointer-events: none; }
.dn .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 2px solid var(--paper); transform: translate(-50%, -50%); }
.dn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.dn-tags { display: flex; justify-content: space-between; margin: 14px 0 10px; font-size: 18px; }

.blds .fine { margin-top: 12px; }
.blds-in { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 56px; align-items: end; }
.towers.small { grid-column: 1 / span 5; --k: clamp(.75px, .078vw, 1.1px); gap: clamp(12px, 1.4vw, 24px); padding: 0; }
.tbl { grid-column: 6 / -1; border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 22px 12px 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-weight: 400; font-size: 15px; color: var(--mute); padding-top: 0; }
.tbl tbody th { font-weight: 400; font-size: 20px; }
.tbl tbody th small { display: block; font-size: 14px; color: var(--mute); margin-top: 4px; }
.tbl td { font-size: 20px; }
.tbl tfoot th, .tbl tfoot td { font: 400 28px/1 var(--serif); border-bottom: 0; }

.band .lead { margin-top: 20px; max-width: none; }

/* P3b: the 3D model */
.stage3d { position: relative; margin-top: 40px; }
.m3d { position: relative; aspect-ratio: 16 / 8; border-bottom: 1px solid var(--ink); }
.m3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.m3d-fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; transition: opacity .4s; }
.m3d-fallback .towers { border: 0; --k: clamp(.8px, .12vw, 1.6px); }
.stage3d.ready .m3d-fallback { opacity: 0; pointer-events: none; }
.m3d-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.m3d-bar b { font: 400 28px/1 var(--serif); }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button { font: 500 14px/1 var(--sans); background: transparent; border: 0; padding: 10px 16px; cursor: pointer; color: var(--mute); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tbl-wide { margin-top: 48px; }

/* P3c: plans seen from above */
.pl-tabs { display: flex; gap: 28px; margin-top: 36px; border-bottom: 1px solid var(--line); }
.pl-tabs button { font: 400 clamp(20px, 1.8vw, 26px)/1 var(--serif); background: none; border: 0; padding: 0 0 14px; color: var(--mute); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pl-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.pl-in { display: grid; grid-template-columns: 8fr 4fr; gap: var(--gap); margin-top: 32px; align-items: start; }
.pl-stage { position: relative; }
.pl-canvas { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.pl-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pl-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pl-labels span { position: absolute; left: 0; top: 0; font: 500 12px/1.2 var(--sans); color: var(--ink); background: rgb(247 247 245 / .86); padding: 3px 6px; white-space: nowrap; transition: background .2s, color .2s; }
.pl-labels span.on { background: var(--ink); color: var(--paper); }
.pl-canvas .m3d-fallback { z-index: 1; background: var(--paper); }
.plans.ready .pl-canvas .m3d-fallback { opacity: 0; pointer-events: none; }
.plans.loading .pl-canvas canvas { opacity: .35; transition: opacity .3s; }

/* switching apartments, the way Apple swaps a product view: the plan blurs and recedes a touch
   while the list lifts away, then the next plan settles in (planta.js eases the camera in too)
   and its rooms rise one after another. */
.plans { --swap: cubic-bezier(.32, .72, 0, 1); }
.pl-tabs { position: relative; }
.pl-tabs button[aria-selected="true"] { border-bottom-color: transparent; }
.pl-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--ink); transition: transform .6s var(--swap), width .6s var(--swap); }
.pl-canvas canvas, .pl-labels { transition: opacity .6s var(--swap), filter .6s var(--swap), transform .8s var(--swap); }
.plans.swapping .pl-canvas canvas { opacity: 0; filter: blur(8px); transform: scale(.985); transition-duration: .28s; transition-timing-function: ease-in; }
.plans.swapping .pl-labels { opacity: 0; transition-duration: .2s; }
.pl-labels span { animation: kz-fade .7s var(--swap) both; animation-delay: calc(.25s + var(--i, 0) * 30ms); }
.pl-side h3, .pl-side [data-k="typ"], .pl-side [data-k="area"] { transition: opacity .5s var(--swap), transform .7s var(--swap), filter .5s var(--swap); }
.pl-side [data-k="typ"] { transition-delay: .05s; } .pl-side [data-k="area"] { transition-delay: .1s; }
.plans.swapping .pl-side h3, .plans.swapping .pl-side [data-k="typ"], .plans.swapping .pl-side [data-k="area"] { opacity: 0; transform: translateY(-6px); filter: blur(3px); transition-duration: .22s; transition-delay: 0s; transition-timing-function: ease-in; }
.pl-rooms li { animation: kz-rise .65s var(--swap) both; animation-delay: calc(.12s + var(--i, 0) * 28ms); }
.plans.swapping .pl-rooms { opacity: 0; transition: opacity .2s ease-in; }
.pl-rooms { transition: opacity .3s; }
@keyframes kz-fade { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
@keyframes kz-rise { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.pl-views { position: absolute; right: 12px; top: 12px; z-index: 3; background: var(--paper); }
.pl-side h3 { font-size: clamp(28px, 2.6vw, 40px); }
.pl-side [data-k="typ"] { margin-top: 8px; font-size: 18px; }
.pl-rooms { list-style: none; padding: 0; margin: 24px 0 16px; border-top: 1px solid var(--line); }
.pl-rooms li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 15px; cursor: default; transition: background .15s; }
.pl-rooms li .tab { color: var(--mute); }
.pl-rooms li.on { background: rgb(246 176 74 / .22); }

/* P3d: the buyer's path as one timeline (scroll or video) */
.cn-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.cn-head .fine { margin-top: 12px; max-width: 70ch; }
.cn-track { position: relative; height: 700vh; margin-top: 32px; }
.cn-sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; display: grid; grid-template-columns: 3.4fr 8.6fr; gap: var(--gap); align-items: center; align-content: center; max-width: 1520px; margin: 0 auto; padding: 24px var(--m); }
.cn-steps { list-style: none; padding: 0; margin: 0; }
.cn-step { padding: 14px 0; border-top: 1px solid var(--line); opacity: .3; transition: opacity .35s; }
.cn-step:last-child { border-bottom: 1px solid var(--line); }
.cn-step.on { opacity: 1; }
.cn-step h3 { font-size: clamp(22px, 1.9vw, 30px); }
.cn-step p { font-size: 15px; color: var(--mute); margin-top: 4px; max-width: 36ch; }
/* the stage takes the steps column's height (the grid row), so the film and the text line up */
.cn-stage { position: relative; align-self: stretch; min-height: 420px; overflow: hidden; background: #ebe8e1; container: cn-stage / inline-size; }
.cn-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cn-map { position: absolute; inset: 0; z-index: 2; background: #ebe8e1; }
.cn-map svg { width: 100%; height: 100%; display: block; }
.cn-pins { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cn-pin { position: absolute; transform: translate(-50%, calc(-100% - 14px)); font: 500 13px/1 var(--sans); background: var(--ink); color: var(--paper); padding: 7px 10px; white-space: nowrap; transition: background .2s; }
.cn-pin::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ink); }
.cn-pin.on { background: #b86f08; } .cn-pin.on::after { border-top-color: #b86f08; }
.cn-veil { position: absolute; inset: 0; z-index: 4; background: var(--paper); opacity: 0; pointer-events: none; }
.cn-solar { position: absolute; z-index: 5; left: 50%; bottom: 7%; transform: translateX(-50%); width: min(460px, 64%); background: rgb(247 247 245 / .94); padding: 14px 18px 16px; box-shadow: 0 10px 30px rgb(27 37 48 / .14); opacity: 0; }
.cn-solar p { font-size: 13px; color: var(--mute); display: flex; justify-content: space-between; }
.cn-solar b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.cn-line { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--mute); }
.cn-line i { flex: 1; height: 2px; background: linear-gradient(90deg, #8fb3d1, #f6b04a 70%, #c96a3a); }
.cn-thumb { position: absolute; left: calc(28px + (100% - 66px) * var(--h, .3)); top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transform: translate(-50%, -50%); }
.cn-card { position: absolute; z-index: 5; right: 4%; top: 8%; width: min(300px, 40%); background: var(--paper); padding: 18px 20px; box-shadow: 0 14px 40px rgb(27 37 48 / .18); opacity: 0; }
.cn-card-h { font-size: 15px; margin-bottom: 10px; } .cn-card-h b { font-weight: 500; }
.cn-card dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 13px; } .cn-card dt { color: var(--mute); }
.cn-btns { display: flex; gap: 8px; margin-top: 14px; }
.cn-btn { font: 500 13px/1 var(--sans); background: var(--ink); color: var(--paper); padding: 10px 12px; white-space: nowrap; transition: transform .1s, background .1s; }
.cn-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cn-card.press [data-k="plan"] { transform: scale(.96); background: #2c3a48; }
.cn-plan { position: absolute; z-index: 5; right: 3%; top: 6%; bottom: 6%; width: min(260px, 32%); background: rgb(247 247 245 / .96); padding: 16px 18px; opacity: 0; overflow: hidden; }
.cn-plan-h { font: 400 22px/1.1 var(--serif); margin-bottom: 8px; }
.cn-rooms { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.cn-rooms li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 6px; border-bottom: 1px solid var(--line); }
.cn-rooms li span:last-child { color: var(--mute); font-variant-numeric: tabular-nums; }
.cn-rooms li.on { background: rgb(246 176 74 / .32); }
.cn-cursor { position: absolute; z-index: 8; width: 30px; height: 30px; margin: -4px 0 0 -6px; opacity: 0; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .25)); transition: transform .08s; pointer-events: none; }
.cn-ripple { position: absolute; z-index: 7; width: 54px; height: 54px; border-radius: 50%; border: 2.5px solid #f6b04a; background: rgb(246 176 74 / .22); opacity: 0; pointer-events: none; }
.cn-ripple::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid rgb(246 176 74 / .55); }
.cn-cursor.down { transform: scale(.8) translate(1px, 1px); }
.cn-solar.grab .cn-thumb { background: #f6b04a; border-color: #b86f08; scale: 1.3; box-shadow: 0 0 0 6px rgb(246 176 74 / .25); }
.cn-stage .m3d-fallback { z-index: 1; background: var(--paper); }
/* small stages (phones, 4:5): the card and the plan become sheets along the bottom edge;
   cinematico.js reads the plan sheet's box to frame the plan above it */
@container cn-stage (max-width: 560px) {
  .cn-pin { font-size: 12px; padding: 6px 8px; }
  .cn-solar { width: 86%; bottom: 5%; padding: 12px 14px 14px; }
  .cn-card { left: 4%; right: 4%; top: auto; bottom: 4%; width: auto; padding: 14px 16px 16px; }
  .cn-card-h { font-size: 14px; margin-bottom: 8px; }
  .cn-card dl { grid-template-columns: auto auto auto 1fr; gap: 4px 12px; font-size: 12.5px; }
  .cn-card dd:last-of-type { grid-column: 2 / -1; }
  .cn-btns { margin-top: 12px; }
  .cn-btn { padding: 9px 12px; }
  .cn-plan { left: 4%; right: 4%; top: auto; bottom: 4%; width: auto; height: 40%; padding: 12px 14px 0; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .cn-plan-h { font-size: 18px; margin-bottom: 4px; }
  .cn-rooms { font-size: 12px; }
  .cn-rooms li { padding: 5px 6px; }
  .cn-cursor { width: 26px; height: 26px; }
  .cn-ripple { width: 40px; height: 40px; }
  .cn-ripple::after { inset: -9px; }
}
.cine.ready .cn-stage .m3d-fallback { display: none; }

/* the AI agents and their rules */
.agents-head .lead { margin-top: 24px; max-width: 52ch; }
.agents-head .h2 { max-width: 18ch; }
.agents-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--gap); margin-top: 56px; }
.agents-grid > div { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.agents-grid h3 { font-size: clamp(24px, 2.1vw, 32px); }
.agents-grid p { margin-top: 10px; max-width: 46ch; }
@media (max-width: 760px) { .agents-grid { grid-template-columns: 1fr; } }

/* privacy and 404 */
.legal { padding-bottom: var(--sec); }
.legal-in { max-width: 68ch; }
.legal-in h2 { margin: 40px 0 12px; }
.legal-in p, .legal-in li { color: var(--mute); margin-top: 10px; }
.legal-in ul { padding-left: 1.2em; }

/* phones and tablets: one column */
@media (max-width: 960px) {
  .top nav { display: none; }
  .cta-top { margin-left: auto; }
  .hero .wrap, .how .wrap, .case .wrap, .contact .wrap, .phero .wrap, .start-top, .blds-in { grid-template-columns: 1fr; }
  .hero-txt, .hero-img, .how-img, .how-txt, .case-img, .case-txt, .c-txt, .form, .phero-txt, .phero-img, .start-top .h2, .steps, .towers.small, .tbl { grid-column: 1 / -1; }
  .hero-img { order: -1; margin-bottom: 8px; }
  .case-txt { padding-left: 0; }
  .how-img { max-width: 520px; }
  .lit-head { grid-template-columns: 1fr; }
  .count { text-align: left; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .xband { grid-template-columns: 1fr minmax(200px, 38%); }
  .x-intro { grid-column: 1 / -1; }
  .x-list { grid-column: 1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .dn { aspect-ratio: 4 / 3; }
  .m3d { aspect-ratio: 1 / 1; }
  .pl-in { grid-template-columns: 1fr; }
  .cn-sticky { grid-template-columns: 1fr; align-content: center; }
  .cn-stage { order: -1; align-self: auto; min-height: 0; aspect-ratio: 4 / 5; width: min(100%, calc((100dvh - 160px) * .8)); justify-self: center; }   /* short screens: the stage and its step both fit */
  .cn-step:not(.on) { display: none; }
  .cn-step { border: 0; opacity: 1; }
  .pl-tabs { gap: 18px; overflow-x: auto; }
  .pl-tabs button { white-space: nowrap; font-size: 18px; }
  .facts div, .facts div:first-child { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .foot nav { margin-left: 0; }
  .crumbs { margin-bottom: 40px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .towers { --k: clamp(.6px, .2vw, 1px); gap: 14px; padding: 0; }
  .towers:not(.small) figcaption { white-space: normal; width: 6.5em; font-size: 11px; line-height: 1.3; }
  .towers:not(.small) figcaption span:not(.tab) { display: none; }
  .lit .fine { margin-top: 96px; }
  .towers.small { --k: .7px; gap: 12px; }
  .hero, .phero { padding-top: 56px; }
  .hero .rv, .phero .rv { top: 12px; }
  .rv { top: calc(var(--sec) * .25); }
  .tbl thead th:nth-child(2), .tbl tbody td:nth-child(2), .tbl tfoot td:nth-child(2) { display: none; }
  .logo { font-size: 21px; } .logo .mark { width: 22px; height: 25px; }
  .cta-top { font-size: 14px; }
  .rows div, .steps li, .kv div { grid-template-columns: 1fr; gap: 6px; }
  .towers:not(.small) figcaption { font-size: 12px; } .towers:not(.small) figcaption b { font-size: 13px; }
  .tbl th, .tbl td { font-size: 16px; padding-right: 8px; } .tbl tbody th { font-size: 16px; }
  .tbl thead th { font-size: 12px; }
  .ucard { position: fixed; top: auto; bottom: 88px; left: 16px; right: 16px; width: auto; }
  .foot-co { border-left: 0; padding-left: 0; }
  .xband { grid-template-columns: 1fr; }
  .x-media { grid-row: 2; aspect-ratio: 4 / 3; }
  .x-media [data-x="painel"] { object-position: 50% 30%; }
  .x-list { grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- review chrome (prototype only) */
.rv { position: absolute; top: calc(var(--sec) * .35); left: 12px; z-index: 5; display: flex; align-items: center; gap: 6px; font: 500 12px/1 var(--sans);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 12px; box-shadow: 0 6px 18px rgb(27 37 48 / .1); }
.hero .rv, .phero .rv { top: 6px; }
.rv b { font-weight: 600; margin-right: 4px; }
.rv button { font: inherit; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; cursor: pointer; color: var(--ink); }
.rv button[aria-pressed="true"].keep { background: #1f6f43; border-color: #1f6f43; color: #fff; }
.rv button[aria-pressed="true"].drop { background: #a23b2a; border-color: #a23b2a; color: #fff; }
.sec.is-drop > .wrap { opacity: .22; filter: grayscale(1); }
.sec.is-keep > .wrap { }
body.hide-drop .sec.is-drop { display: none; }
body.no-review .rv, body.no-review .rvbar { display: none; }
body.no-review .sec.is-drop > .wrap { opacity: 1; filter: none; }
.rvbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper); font: 500 13px/1 var(--sans); padding: 8px 8px 8px 16px; border-radius: 999px; box-shadow: 0 12px 32px rgb(27 37 48 / .3); max-width: calc(100vw - 24px); white-space: nowrap; }
@media (min-width: 900px) { .rvbar { flex-wrap: nowrap; } }
.rvbar button, .rvbar a { font: inherit; background: rgb(255 255 255 / .12); color: inherit; border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer; text-decoration: none; }
.rvbar button:hover, .rvbar a:hover { background: rgb(255 255 255 / .22); }
.rvbar .st { opacity: .8; margin-right: 6px; }
.rvshow { position: fixed; right: 16px; bottom: 16px; z-index: 20; font: 500 12px/1 var(--sans); background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer; display: none; }
body.no-review .rvshow { display: block; }

/* review chrome on phones (after the base rules so it wins) */
@media (max-width: 700px) {
  .rvbar { flex-wrap: nowrap; overflow-x: auto; border-radius: 14px; left: 12px; right: 12px; transform: none; bottom: 12px; padding: 6px; scrollbar-width: none; }
  .rvbar .st { display: none; }
  .rv { font-size: 11px; }
}

/* visually hidden, for screen readers */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
