/* Tovizy home, October 2026: from drawing to light. */
:root {
  --wall: #13201B; --wall-2: #1A2A24; --wall-3: #22342D;
  --ivory: #EAE5D8; --ivory-2: rgba(234, 229, 216, .68); --ivory-3: rgba(234, 229, 216, .4);
  --hair: rgba(234, 229, 216, .16);
  --brass: #B89A63; --brass-2: #D2B57C;
  --vellum: #E6E7DE; --vellum-2: #DCDCCF; --ink: #17231E; --ink-2: #4C5A52; --rule: #C6C9BC;
  --serif: "Noto Serif Display", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--wall); color: var(--ivory); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.02em; line-height: .96; text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; background: var(--ivory); color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: .01em; border: 1px solid var(--ivory); transition: background .3s var(--ease), color .3s var(--ease); }
.btn:hover { background: transparent; color: var(--ivory); }
.tlink { font-size: 14px; color: var(--ivory); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease); }
.tlink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- header ---------- */
.hdr { position: fixed; z-index: 60; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gut) 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: transform .5s var(--ease), background .4s var(--ease); }
.hdr.solid { background: rgba(19, 32, 27, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hdr.hide { transform: translateY(-110%); }
.hdr .logo img { width: 60px; height: auto; }
.hdr nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font-size: 14px; }
.hdr nav a:not(.btn) { color: var(--ivory-2); transition: color .3s; }
.hdr nav a:not(.btn):hover { color: var(--ivory); }
.hdr nav .btn { min-height: 38px; padding: 0 16px; font-size: 13px; }
.menu-btn { display: none; font-size: 14px; }
.menu { position: fixed; inset: 0; z-index: 55; background: var(--wall); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 0 var(--gut); visibility: hidden; opacity: 0; transition: opacity .4s var(--ease), visibility .4s; }
.menu-open .menu { visibility: visible; opacity: 1; }
.menu nav { display: grid; gap: 6px; }
.menu nav a { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 10vw, 56px); line-height: 1.1; }
.menu p { color: var(--ivory-2); font-size: 14px; }
@media (max-width: 820px) { .hdr nav { display: none; } .menu-btn { display: block; } }

/* ---------- hero: the live model ---------- */
.hero3d { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--wall); }
.h3d-frame { position: absolute; inset: 0; will-change: clip-path, transform; }
.h3d-cv, .h3d-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.h3d-fallback { object-fit: cover; }
.h3d-gl .h3d-fallback { display: none; }
.h3d-static .h3d-cv, .h3d-static .h3d-labels, .h3d-static .h3d-views { display: none; }
.h3d-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
.h3d-labels span { position: absolute; left: 0; top: 0; font-size: 12px; font-stretch: 82%; letter-spacing: .05em; color: var(--ivory); white-space: nowrap; text-shadow: 0 1px 10px rgba(10, 18, 15, .9); }
.h3d-labels span.dim { font-family: var(--serif); font-size: 17px; letter-spacing: 0; color: var(--brass-2); }
.h3d-scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(90% 60% at 0% 100%, rgba(19, 32, 27, .5), rgba(19, 32, 27, 0) 70%), linear-gradient(180deg, rgba(19, 32, 27, .5) 0%, rgba(19, 32, 27, 0) 18%, rgba(19, 32, 27, 0) 50%, rgba(19, 32, 27, .82) 100%); opacity: .6; transition: opacity 1.4s var(--ease); }
.h3d-built .h3d-scrim { opacity: 1; }
.h3d-outline { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.h3d-outline polyline { fill: none; stroke: var(--brass); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; }
.h3d-copy { position: absolute; z-index: 5; left: var(--gut); right: var(--gut); bottom: clamp(28px, 6vh, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 56px; }
.h3d-copy h1 { font-size: clamp(48px, 5.6vw, 112px); line-height: .9; letter-spacing: -.035em; text-shadow: 0 2px 28px rgba(10, 18, 15, .4); }
.h3d-copy h1 .ln { display: block; overflow: hidden; padding-bottom: .05em; margin-bottom: -.05em; }
.h3d-copy h1 .ln > span { display: block; }
.h3d-copy .lede { margin-top: clamp(16px, 2vw, 26px); max-width: 44ch; font-size: clamp(15px, 1.2vw, 18px); color: var(--ivory-2); }
.h3d-copy .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(20px, 2.4vw, 32px); }
.h3d-side { display: grid; gap: 14px; justify-items: end; text-align: right; min-width: 0; }
.h3d-cap { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 42px); line-height: 1; letter-spacing: -.02em; opacity: 0; text-shadow: 0 2px 20px rgba(10, 18, 15, .45); }
.h3d-cap .n { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .04em; font-stretch: 82%; color: var(--ivory-2); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.h3d-cap small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; letter-spacing: .01em; font-stretch: 82%; color: var(--ivory-2); }
.h3d-views { display: flex; gap: 6px; }
.h3d-views button { position: relative; width: clamp(26px, 2.6vw, 40px); height: 22px; }
.h3d-views button::before, .h3d-views button i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ivory-3); }
.h3d-views button i { background: var(--ivory); transform-origin: left; transform: scaleX(0); }
.h3d-views button[aria-current="true"]::before { background: var(--ivory-2); }
.h3d-views button span { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 4px); white-space: nowrap; font-size: 11px; font-stretch: 82%; color: var(--ivory-2); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.h3d-views button:hover span, .h3d-views button:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.h3d-note { max-width: 34ch; font-size: 12px; font-stretch: 82%; color: var(--ivory-3); }
.js .h3d-copy .lede, .js .h3d-copy .actions, .js .h3d-side { opacity: 0; }
.cue { position: absolute; z-index: 5; left: 50%; bottom: 14px; width: 1px; height: 46px; background: linear-gradient(var(--ivory-3), transparent); transform: translateX(-50%); }
@media (max-width: 860px) {
  .h3d-copy { grid-template-columns: 1fr; }
  .h3d-side { justify-items: start; text-align: left; }
  .cue { display: none; }
}
@media (max-aspect-ratio: 1/1) {
  .h3d-copy h1 { font-size: clamp(44px, 12.5vw, 84px); text-shadow: 0 2px 24px rgba(10, 18, 15, .55); }
  .h3d-note { display: none; }
  .h3d-scrim { opacity: 1; background: linear-gradient(180deg, rgba(19, 32, 27, .5) 0%, rgba(19, 32, 27, 0) 14%, rgba(19, 32, 27, 0) 40%, rgba(19, 32, 27, .78) 68%, rgba(19, 32, 27, .9) 100%); }
}

/* ---------- work: one stage, lattice transitions ---------- */
.work { position: relative; }
.work-pin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--wall); }
.stage { position: absolute; inset: 0; overflow: hidden; background: var(--wall); }
.stage > img, .stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage > img { object-fit: cover; }
.stage-img-b { opacity: 0; }
.stage > canvas { opacity: 0; }
.stage.gl > canvas { opacity: 1; }
.scrim-b { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 50%; pointer-events: none; background: linear-gradient(0deg, rgba(19, 32, 27, .86), rgba(19, 32, 27, 0)); }
.scrim-t { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 30%; pointer-events: none; background: linear-gradient(180deg, rgba(19, 32, 27, .55), rgba(19, 32, 27, 0)); }
.ov { position: absolute; z-index: 3; }
.work-kick { left: var(--gut); top: calc(env(safe-area-inset-top, 0px) + 92px); font-size: 13px; font-stretch: 82%; letter-spacing: .03em; color: var(--ivory-2); }
.work-info { left: var(--gut); right: 40%; bottom: clamp(28px, 7vh, 72px); }
.work-info .n { display: block; font-size: 13px; font-stretch: 82%; color: var(--ivory-2); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.work-title { font-size: clamp(40px, 6.6vw, 120px); line-height: .9; letter-spacing: -.035em; }
.work-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.work-title a:hover { background-size: 100% 1px; }
.work-meta { margin-top: 14px; font-size: 15px; color: var(--ivory-2); max-width: 52ch; }
.work-go { margin-top: 22px; }
.work-list { right: var(--gut); top: 50%; transform: translateY(-50%); display: grid; gap: 2px; text-align: right; }
.work-list button { font-size: 14px; font-stretch: 82%; color: var(--ivory-3); padding: 3px 0 3px 24px; position: relative; transition: color .35s var(--ease); text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.work-list button::after { content: ""; position: absolute; right: -16px; top: 50%; width: 6px; height: 1px; background: currentColor; transition: width .35s var(--ease), background .35s; }
.work-list button.on { color: var(--ivory); }
.work-list button.on::after { width: 12px; background: var(--brass); }
.work-all { right: var(--gut); bottom: clamp(28px, 7vh, 72px); }
@media (max-width: 860px) {
  .work-info { right: var(--gut); bottom: clamp(84px, 14vh, 120px); }
  .work-list { display: none; }
  .work-all { left: var(--gut); right: auto; bottom: clamp(28px, 5vh, 48px); }
}

/* ---------- clients ---------- */
.clients { padding: clamp(36px, 5vw, 64px) var(--gut); border-bottom: 1px solid var(--hair); display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px clamp(28px, 4vw, 64px); }
.clients p { font-size: 13px; font-stretch: 82%; color: var(--ivory-3); }
.clients ul { display: flex; flex-wrap: wrap; gap: 12px clamp(24px, 3.4vw, 56px); }
.clients li { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.1; }
.clients li span { display: block; font-family: var(--sans); font-size: 12px; font-stretch: 82%; color: var(--ivory-3); margin-top: 4px; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(84px, 11vw, 176px) var(--gut); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 40px; margin-bottom: clamp(32px, 4.4vw, 64px); }
.h2 { font-size: clamp(44px, 7.2vw, 128px); line-height: .9; }
.lede { max-width: 38ch; font-size: clamp(15px, 1.2vw, 17px); color: var(--ivory-2); }
@media (max-width: 700px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- services (light, with a pitched top edge) ---------- */
.svc { background: var(--vellum); color: var(--ink); --ivory-2: var(--ink-2); color-scheme: light; }
.svc .tlink { color: var(--ink); }
.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.card { position: relative; overflow: hidden; background: var(--ink); color: var(--ivory); min-height: 0; isolation: isolate; }
.card .media { position: absolute; inset: 0; }
.card .media > img, .card .media > video, .card .media > .stage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .copy { position: absolute; z-index: 4; left: clamp(18px, 2.4vw, 36px); right: clamp(18px, 2.4vw, 36px); bottom: clamp(18px, 2.4vw, 34px); display: grid; gap: 10px; pointer-events: none; }
.card .copy a, .card .copy button { pointer-events: auto; }
.card h3 { font-size: clamp(32px, 3.6vw, 60px); line-height: .95; }
.card h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.card h3 a:hover { background-size: 100% 1px; }
.card p { max-width: 46ch; font-size: 15px; color: rgba(234, 229, 216, .8); }
.card .tag { font-size: 12px; font-stretch: 82%; letter-spacing: .04em; color: rgba(234, 229, 216, .62); }
.card .shade { position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(15, 26, 22, .82) 0%, rgba(15, 26, 22, 0) 55%); }
.c-render { grid-column: 1 / -1; aspect-ratio: 16 / 7.4; }
.c-film { grid-column: 1 / span 6; aspect-ratio: 4 / 3.6; }
.c-estate { grid-column: 7 / span 6; aspect-ratio: 4 / 3.6; }
@media (max-width: 860px) {
  .c-render { aspect-ratio: 4 / 4.4; }
  .c-film, .c-estate { grid-column: 1 / -1; aspect-ratio: 4 / 4.2; }
}
/* the lens: a small house-shaped window shows the drawing under the render */
.lens-host .under { z-index: 1; }
.lens-host .over { z-index: 2; clip-path: var(--lp, polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%)); }
.lens-host .lensline { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lens-host .lensline polygon { fill: none; stroke: var(--brass-2); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.c-render .hint { font-size: 12px; font-stretch: 82%; color: rgba(234, 229, 216, .62); }

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.studio-fig { position: sticky; top: 96px; }
.studio-fig img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.studio-fig figcaption { margin-top: 12px; font-size: 13px; font-stretch: 82%; color: var(--ivory-3); }
.studio-copy .lead { margin-top: clamp(22px, 2.4vw, 36px); max-width: 40ch; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2vw, 32px); line-height: 1.25; letter-spacing: -.01em; }
.facts { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 18px clamp(20px, 3vw, 48px); padding-top: 16px; border-top: 1px solid var(--hair); }
.facts div { flex: 1 1 auto; }
.facts dd { white-space: nowrap; }
.facts dt { font-size: 12px; font-stretch: 82%; color: var(--ivory-3); }
.facts dd { margin-top: 8px; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.5vw, 42px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.quote { margin-top: clamp(40px, 5vw, 72px); padding-top: 26px; border-top: 1px solid var(--hair); max-width: 62ch; }
.quote blockquote p { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.3; letter-spacing: -.01em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 13px; color: var(--ivory-2); }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; color: var(--ivory); font-weight: 500; }
.quote details { margin-top: 16px; font-size: 14px; color: var(--ivory-2); }
.quote summary { cursor: pointer; color: var(--ivory); width: max-content; }
.quote details p { margin-top: 12px; max-width: 62ch; }
.built { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.built figure { position: relative; overflow: hidden; }
.built img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.built figure:hover img { transform: scale(1.04); }
.built figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 12px; font-stretch: 82%; letter-spacing: .04em; color: var(--ivory); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.built-t { grid-column: 1 / -1; font-size: 14px; color: var(--ivory-2); max-width: 64ch; }
.built-t b { color: var(--ivory); font-weight: 500; }
@media (max-width: 860px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-fig { max-width: 420px; }
  .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .studio-fig { position: relative; top: auto; }
}

/* ---------- contact ---------- */
.contact { background: var(--wall-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.contact-copy p { margin-top: 20px; max-width: 40ch; color: var(--ivory-2); }
.contact-copy .note { font-size: 14px; color: var(--ivory-3); }
.contact-copy dl { margin-top: 32px; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 14px; }
.contact-copy dt { color: var(--ivory-3); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-stretch: 82%; letter-spacing: .03em; color: var(--ivory-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ivory); background: transparent; border: 0; border-bottom: 1px solid var(--hair); padding: 10px 0; border-radius: 0; transition: border-color .3s; }
.field select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23EAE5D8' stroke-opacity='.6'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field select option { background: var(--wall-2); color: var(--ivory); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.hp { position: absolute; left: -9999px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form-status { font-size: 14px; color: var(--ivory-2); }
.form-status[data-state="ok"] { color: var(--brass-2); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 28px var(--gut) calc(env(safe-area-inset-bottom, 0px) + 28px); font-size: 13px; color: var(--ivory-3); border-top: 1px solid var(--hair); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot nav a:hover { color: var(--ivory); }
.foot img { width: 48px; height: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .h3d-copy .lede, .js .h3d-copy .actions, .js .h3d-side { opacity: 1; }
}
.no-js .h3d-copy .lede, .no-js .h3d-copy .actions, .no-js .h3d-side { opacity: 1; }

/* =====================================================================
   v3: the house walks by scrolling, presentations get their own chapter
   ===================================================================== */
.h3d-main { will-change: transform, opacity; }
.h3d-hint { display: flex; align-items: center; gap: 12px; font-size: 13px; font-stretch: 82%; color: var(--ivory-2); opacity: 0; }
.h3d-hint::before { content: ""; width: 1px; height: 30px; background: linear-gradient(var(--ivory), transparent); animation: h3d-cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes h3d-cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.h3d-walking .h3d-scrim { opacity: .75; }
.h3d-views button i { transition: none; }
.no-js .h3d-hint, .rm .h3d-hint { opacity: 1; }

/* ---------- presentations ---------- */
.pres { position: relative; background: var(--wall); }
.pres-head { padding: clamp(96px, 12vw, 184px) var(--gut) clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 88px); align-items: end; }
.kick { display: block; margin-bottom: 18px; font-family: var(--sans); font-size: 13px; font-stretch: 82%; letter-spacing: .03em; color: var(--brass-2); }
.pres-head .lead-s { max-width: 40ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--ivory-2); }
.pres-head .acts { margin-top: 22px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pres-pin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--wall); }
.pres-screen { --inset: 1; position: absolute; inset: 0; clip-path: inset(calc(var(--inset) * 11vh) calc(var(--inset) * 9vw) calc(var(--inset) * 7vh) round calc(var(--inset) * 14px)); will-change: clip-path; }
.pres-bar { position: absolute; z-index: 7; top: calc(var(--inset) * 11vh); left: calc(var(--inset) * 9vw); right: calc(var(--inset) * 9vw); height: 42px; display: flex; align-items: center; gap: 18px; padding: 0 18px; background: rgba(15, 26, 22, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); font-size: 12px; color: var(--ivory-2); pointer-events: none; }
.pres-bar .dots { display: flex; gap: 6px; }
.pres-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ivory-3); }
.pres-bar .url { margin: 0 auto; padding: 4px 14px; background: rgba(234, 229, 216, .07); border-radius: 6px; font-variant-numeric: tabular-nums; }
.pres-bar .url b { font-weight: 400; color: var(--ivory); }
.pres-stage { position: absolute; inset: 0; background: var(--wall); }
.pres-stage > img, .pres-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pres-stage > img { object-fit: cover; }
.pres-stage > canvas { opacity: 0; }
.pres-stage.gl > canvas { opacity: 1; }
.pres-stage.gl > img { visibility: hidden; }
.pres-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(15, 26, 22, .5) 0%, rgba(15, 26, 22, 0) 18%, rgba(15, 26, 22, 0) 46%, rgba(15, 26, 22, .86) 100%); }
.pres-hud { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; }
.pres-name { position: absolute; left: var(--gut); bottom: calc(clamp(28px, 7vh, 72px) + 62px); max-width: 62%; }
.pres-name .pn { display: block; margin-bottom: 12px; font-size: 13px; font-stretch: 82%; color: var(--ivory-2); font-variant-numeric: tabular-nums; }
.pres-name h3 { font-size: clamp(40px, 5.2vw, 96px); line-height: .9; letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(10, 18, 15, .35); }
.pres-name p { margin-top: 14px; font-size: 15px; color: var(--ivory-2); }
.pres-clock { position: absolute; right: var(--gut); bottom: calc(clamp(28px, 7vh, 72px) + 76px); text-align: right; opacity: 0; transition: opacity .6s var(--ease); }
.pres-clock.on { opacity: 1; }
.pres-clock .t { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 64px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.pres-clock .l { display: block; margin-top: 6px; font-size: 12px; font-stretch: 82%; color: var(--ivory-2); }
.pres-ch { position: absolute; left: var(--gut); bottom: clamp(28px, 7vh, 72px); display: flex; flex-wrap: wrap; gap: 10px clamp(18px, 2.4vw, 36px); pointer-events: auto; }
.pres-ch li { position: relative; padding-top: 12px; font-size: 14px; color: var(--ivory-3); cursor: pointer; transition: color .35s var(--ease); }
.pres-ch li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: currentColor; opacity: .5; transform-origin: left; transition: background .35s, opacity .35s; }
.pres-ch li.on { color: var(--ivory); }
.pres-ch li.on::before { background: var(--brass-2); opacity: 1; }
.pres-go { position: absolute; right: var(--gut); bottom: clamp(28px, 7vh, 72px); pointer-events: auto; }
@media (max-aspect-ratio: 1/1) {
  .pres-screen { clip-path: none; }
  .pres-bar { display: none; }
  .pres-name { bottom: calc(clamp(28px, 6vh, 56px) + 112px); max-width: none; right: var(--gut); }
  .pres-name h3 { font-size: clamp(38px, 11vw, 64px); }
  .pres-clock { top: calc(env(safe-area-inset-top, 0px) + 80px); bottom: auto; right: var(--gut); }
  .pres-ch { bottom: calc(clamp(28px, 6vh, 56px) + 60px); right: var(--gut); gap: 8px 16px; }
  .pres-go { bottom: clamp(28px, 6vh, 56px); }
  .pres-ch li { font-size: 13px; }
  .pres-go { left: var(--gut); right: auto; }
  .pres-head { grid-template-columns: 1fr; }
}

/* ---------- work: letters arrive with the picture ---------- */
.work-title .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.work-title .ch { display: inline-block; will-change: transform; }

/* ---------- estates ---------- */
.est { position: relative; padding: clamp(96px, 12vw, 184px) var(--gut); background: var(--wall-2); overflow: hidden; }
.est-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.est .h2 { font-size: clamp(40px, 4.8vw, 88px); }
.est-copy > p { margin-top: 22px; max-width: 40ch; font-size: clamp(16px, 1.2vw, 18px); color: var(--ivory-2); }
.est-ui { margin-top: 34px; display: grid; gap: 20px; }
.est-ui fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.est-ui legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-stretch: 82%; color: var(--ivory-3); }
.est-ui button { min-height: 40px; padding: 0 16px; border: 1px solid var(--hair); font-size: 14px; color: var(--ivory-2); transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease); }
.est-ui button:hover { color: var(--ivory); border-color: var(--ivory-3); }
.est-ui button[aria-pressed="true"] { color: var(--ivory); border-color: var(--brass); background: rgba(184, 154, 99, .13); }
.est-lot { margin-top: 16px; min-height: 1.5em; font-size: 13px; color: var(--ivory-2); }
.est-price { margin-top: 26px; font-size: 14px; color: var(--ivory-2); }
.est-price b { font-weight: 500; color: var(--ivory); }
.est-acts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.est-view { position: relative; }
.est-house { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.est-house .stage { position: absolute; inset: 0; }
.est-tag { position: absolute; z-index: 4; left: 16px; bottom: 14px; font-size: 13px; color: var(--ivory); text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.est-map { position: absolute; z-index: 5; right: 2.5%; bottom: 3.5%; width: 30%; aspect-ratio: 1600 / 1067; border: 1px solid rgba(234, 229, 216, .28); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); background: var(--wall); }
.est-map img { width: 100%; height: 100%; object-fit: cover; }
.est-pin { position: absolute; left: var(--x); top: var(--y); width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: var(--c); border: 2px solid rgba(19, 32, 27, .9); transition: box-shadow .3s var(--ease); }
.est-pin:hover, .est-pin.on { box-shadow: 0 0 0 3px var(--ivory); }
.est-pin.s-available { --c: #9DC29A; } .est-pin.s-reserved { --c: #D2B57C; } .est-pin.s-sold { --c: #A7766A; } .est-pin.s-model { --c: #F2EEE3; }
.est-pin.s-model::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--ivory); animation: est-ring 2.4s var(--ease) infinite; }
@keyframes est-ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.est-key { position: absolute; z-index: 6; left: 0; right: 0; bottom: 100%; display: flex; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 7px; font-size: 11px; font-stretch: 82%; color: var(--ivory-2); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.est-key span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--c); }
@media (max-width: 860px) {
  .est-grid { grid-template-columns: 1fr; }
  .est-view { padding-bottom: 0; }
  .est-map { position: relative; right: auto; bottom: auto; width: 72%; margin: -12% 0 34px auto; }
}
@media (prefers-reduced-motion: reduce) { .est-pin.s-model::after { animation: none; } }

/* ---------- services and fees ---------- */
.c-pres { grid-column: 7 / span 6; aspect-ratio: 4 / 3.6; }
.fees { margin-top: clamp(28px, 3.4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.fees li { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.fees li span { font-size: 14px; color: var(--ink-2); }
.fees li b { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; color: var(--ink); font-variant-numeric: lining-nums; }
.fees li small { font-size: 13px; color: var(--ink-2); }
@media (max-width: 860px) { .c-pres { grid-column: 1 / -1; aspect-ratio: 4 / 4.2; } .fees { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fees { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .est-key { bottom: auto; top: 100%; padding: 8px 0 0; } }

/* v3c: presentations and work play by themselves, one screen each */
.pres-screen { --inset: .42; }
.pres-bar { pointer-events: auto; }
.pres-bar .url { margin: 0 0 0 auto; }
.pres-bar .tabs { display: flex; gap: 2px; margin-left: 8px; }
.pres-bar .tabs button { padding: 7px 14px; font-size: 12px; color: var(--ivory-3); border-radius: 6px 6px 0 0; transition: color .3s var(--ease), background .3s var(--ease); }
.pres-bar .tabs button:hover { color: var(--ivory); }
.pres-bar .tabs button[aria-current="true"] { color: var(--ivory); background: rgba(234, 229, 216, .1); }
.pres-hud { inset: calc(var(--inset) * 11vh + 42px) calc(var(--inset) * 9vw) calc(var(--inset) * 7vh); --pad: clamp(20px, 2.6vw, 44px); }
.pres-name { left: var(--pad); bottom: calc(var(--pad) + 58px); }
.pres-clock { right: var(--pad); bottom: calc(var(--pad) + 72px); }
.pres-ch { left: var(--pad); bottom: var(--pad); }
.pres-go { right: var(--pad); bottom: var(--pad); }
.pres-prog { position: absolute; z-index: 6; left: calc(var(--inset) * 9vw); right: calc(var(--inset) * 9vw); bottom: calc(var(--inset) * 7vh); height: 2px; background: rgba(234, 229, 216, .14); pointer-events: none; }
.pres-prog i, .work-prog i { display: block; height: 100%; background: var(--brass-2); transform-origin: left; transform: scaleX(0); }
.work-prog { left: 0; right: 0; bottom: 0; height: 2px; background: rgba(234, 229, 216, .12); }
.work-list button { cursor: pointer; }
@media (max-aspect-ratio: 1/1) {
  .pres-hud { inset: 0; --pad: var(--gut); }
  .pres-name { bottom: calc(clamp(28px, 6vh, 56px) + 112px); }
  .pres-ch { bottom: calc(clamp(28px, 6vh, 56px) + 60px); }
  .pres-go { bottom: clamp(28px, 6vh, 56px); }
  .pres-prog { left: 0; right: 0; bottom: 0; }
}
@media (max-aspect-ratio: 1/1) { .pres-clock { top: calc(env(safe-area-inset-top, 0px) + 80px); bottom: auto; right: var(--gut); } }
@media (max-aspect-ratio: 1/1) { .pres-go { left: var(--gut); right: auto; } }
