/* Bamicon v3 layer: Gloock + Hanken Grotesk, brand yellow as the working accent,
   floating header, layered hero, cursor-led showcase, mobile-first sheets. */

@font-face { font-family: "Gloock"; src: url(../fonts/gloock-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --serif: "Gloock", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --paper: #F2F3EE;
  --paper-2: #E7EAE2;
  --ink: #14201B;
  --ink-2: #4B5A53;
  --sun: #E3DE3B;
  --sun-2: #EFEB7A;
  --forest: #1E3B33;
  --hh: 0px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
body { font-size: 1.0625rem; line-height: 1.6; font-synthesis: none; }
h1, h2, .display { font-weight: 400; letter-spacing: -0.012em; }
h1 { line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.04; }
.unit h3, .dev h3, .person h3, .profile h3, .services h3, .footer-updates h2, .schedule tbody th, .guide__num, .timeline b, .hero2__proof b { font-weight: 400; }
::selection { background: var(--sun); color: var(--forest); }
.link { color: var(--forest); text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.dark .link { color: var(--sun); text-decoration-color: currentColor; }
.btn--sun:hover { background: var(--sun-2); }
.kicker { color: var(--forest); }
.kicker::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--sun); }
.dark .kicker { color: var(--sun); }
.chip--sun { background: var(--sun); color: var(--forest); }
.tag--live { background: var(--sun); border-color: var(--sun); color: var(--forest); }

/* ---------- Header ---------- */
.enquire-float { display: none !important; }
/* Draft 2 header (site.css), restored in round 3: every top-level item shares one height and centre line. */
.nav > ul { align-items: center; }
.nav > ul > li { display: flex; align-items: center; height: 36px; }
.nav > ul > li > a:not(.btn) { padding-block: 0; line-height: 36px; }
.nav .has-sub { gap: 0; }
.sub-toggle { height: 36px; width: 22px; margin-left: 2px; }
.nav .sub { top: calc(100% + 10px); }
.cta-tile { justify-self: end; display: inline-flex; align-items: stretch; height: 44px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--forest); color: #fff; font: 600 0.875rem/1 var(--sans); cursor: pointer; text-decoration: none; }
.cta-tile span { display: flex; align-items: center; padding: 0 16px; }
.cta-tile i { display: grid; place-items: center; width: 44px; background: var(--sun); color: var(--forest); }
.cta-tile i svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.cta-tile:hover i svg { transform: rotate(45deg); }
.cta-tile--light { background: #fff; color: var(--forest); height: 52px; font-size: 0.9375rem; }
.cta-tile--light span { padding: 0 20px; }
.cta-tile--light i { width: 52px; }


/* ---------- Hero ---------- */
.h3 { position: relative; height: calc(100svh - var(--header-h)); min-height: 640px; max-height: 1100px; overflow: hidden; color: #fff; background: #5a7da8; isolation: isolate; }
.h3__media { position: absolute; inset: 0; overflow: hidden; }
.h3__box { position: absolute; left: 50%; top: 50%; width: max(100%, calc(max(100svh - var(--header-h), 640px) * 1.7795)); aspect-ratio: 1920 / 1079; transform: translate(-50%, -50%); container-type: inline-size; }
.h3__bg, .h3__fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.h3__fg { z-index: 2; pointer-events: none; }
.h3__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to top, rgba(14, 26, 22, 0.78) 0%, rgba(14, 26, 22, 0.32) 34%, rgba(14, 26, 22, 0) 58%), linear-gradient(to bottom, rgba(14, 26, 22, 0.32), rgba(14, 26, 22, 0) 18%); }
.h3__ui { position: absolute; inset: 0; z-index: 4; padding: 24px var(--gutter) clamp(32px, 5vh, 56px); max-width: 1600px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 48px; pointer-events: none; }
.h3__ui > * { pointer-events: auto; }
.h3__stats { grid-column: 1; grid-row: 1; align-self: center; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; width: max-content; font-size: 0.75rem; line-height: 1.3; color: rgba(255, 255, 255, 0.82); max-width: 120px; }
.h3__stats b { display: block; font: 600 1.625rem/1.1 var(--sans); color: #fff; letter-spacing: -0.01em; }
.h3__copy { grid-column: 1; grid-row: 2; }
.h3 h1 { max-width: 13ch; font-size: clamp(2.25rem, 1.3rem + 3vw, 4.25rem); color: #fff; text-shadow: 0 2px 30px rgba(14, 26, 22, 0.35); }
.h3__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.h3__link { color: #fff; font-weight: 600; font-size: 0.9375rem; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.h3__lede { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; max-width: 36ch; margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.4); font-size: 1rem; color: rgba(255, 255, 255, 0.9); }
.h3__scroll { position: absolute; z-index: 4; left: 50%; bottom: 0; width: 1px; height: 56px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.h3__scroll::after { content: ""; position: absolute; inset: 0; background: var(--sun); transform: translateY(-100%); animation: scrollcue 2.4s var(--ease-out) infinite; }
@keyframes scrollcue { 60%, 100% { transform: translateY(100%); } }
@media (max-width: 860px) {
  .h3 { min-height: 600px; height: calc(100svh - var(--header-h)); }
  .h3__ui { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto auto; row-gap: 20px; }
  .h3__stats { grid-row: 3; grid-auto-flow: column; width: auto; max-width: none; gap: 18px; align-self: end; }
  .h3__stats b { font-size: 1.25rem; }
  .h3__copy { grid-row: 2; }
  .h3__lede { grid-column: 1; grid-row: 4; justify-self: start; font-size: 0.9375rem; display: none; }
  .h3__cta { gap: 16px; margin-top: 24px; }
  .h3__scroll { display: none; }
}

/* ---------- Section heads ---------- */
.v3-sec { padding-block: clamp(72px, 10vw, 136px); }
.v3-sec--paper { background: var(--paper-2); }
.v3-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.v3-head h2 { max-width: 16ch; }
.v3-head p { margin: 0; color: var(--ink-2); max-width: 44ch; justify-self: end; }
.v3-sub { margin: 80px 0 16px; font-size: 1rem; }
@media (max-width: 860px) { .v3-head { grid-template-columns: 1fr; } .v3-head p { justify-self: start; } }

/* ---------- Homes showcase ---------- */
.show { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.show__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); align-self: center; }
.show__row { position: relative; width: 100%; display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; gap: 16px; padding: 26px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.show__row::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.show__row.is-on::before { transform: scaleX(1); }
.show__no { font-size: 0.8125rem; color: var(--ink-2); }
.show__name { font: 400 clamp(1.375rem, 1rem + 1vw, 1.875rem)/1.15 var(--serif); transition: transform .6s var(--ease-out), color .3s; }
.show__name small { display: block; margin-top: 6px; font: 500 0.8125rem/1.3 var(--sans); color: var(--ink-2); }
.show__amt { font-weight: 600; font-size: 1.0625rem; }
.show__row.is-on .show__name, .show__row:hover .show__name { transform: translateX(10px); }
.show__row.is-on .show__no { color: var(--forest); }
.show__row.is-on .show__no::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--forest); vertical-align: middle; }
.show__stage { position: relative; min-height: 600px; border-radius: 8px; overflow: hidden; background: var(--forest); }
.show__fig { position: absolute; inset: 0; margin: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease-out); }
.show__fig.is-on { clip-path: inset(0 0 0 0); z-index: 1; }
.show__img { position: absolute; inset: 0; }
.show__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.show__fig.is-on .show__img img { transform: scale(1); }
.show__price { position: absolute; top: 20px; left: 20px; padding: 10px 14px; border-radius: 6px; background: var(--forest); color: #fff; font: 600 1.0625rem/1.2 var(--sans); }
.show__price small { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--sun); }
.show__card { position: absolute; right: 20px; bottom: 20px; width: min(400px, calc(100% - 40px)); padding: 22px 24px; border-radius: 12px; color: #fff; background: rgba(20, 32, 27, 0.55); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid rgba(255, 255, 255, 0.16); opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out) .25s, transform .8s var(--ease-out) .25s; }
.show__fig.is-on .show__card { opacity: 1; transform: none; }
.show__card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.show__card h3 { font: 400 1.375rem/1.2 var(--serif); color: #fff; }
.show__card dl { margin: 0 0 16px; }
.show__card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.875rem; }
.show__card dt { color: rgba(255, 255, 255, 0.7); }
.show__card dd { margin: 0; text-align: right; }
.show__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.show__actions .link { color: #fff; text-decoration-color: var(--sun); font-size: 0.875rem; }
@media (max-width: 860px) {
  .show { grid-template-columns: 1fr; }
  .show__list { display: none; }
  .show__stage { min-height: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; background: none; border-radius: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .show__stage::-webkit-scrollbar { display: none; }
  .show__fig { position: relative; inset: auto; flex: 0 0 86%; clip-path: none; scroll-snap-align: center; border-radius: 10px; overflow: hidden; background: var(--forest); }
  .show__img { position: relative; aspect-ratio: 4 / 3.2; }
  .show__img img { transform: none; }
  .show__card { position: relative; inset: auto; width: auto; opacity: 1; transform: none; border-radius: 0; border: 0; background: var(--forest); backdrop-filter: none; padding: 20px; }
}

/* ---------- Mosaic (ref: hover tiles, large preview) ---------- */
.mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 3vw, 40px); align-items: center; }
.mosaic__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, auto); gap: 12px; }
.mosaic__tile { padding: 0; border: 0; background: var(--paper); aspect-ratio: 4 / 4.6; overflow: hidden; cursor: pointer; border-radius: 4px; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .3s, opacity .4s, transform .6s var(--ease-out); }
.mosaic__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.mosaic__tile:hover img { transform: scale(1.08); }
.mosaic__tile.is-on { outline-color: var(--sun); }
.mosaic:has(.mosaic__tile:hover) .mosaic__tile:not(:hover) { opacity: 0.55; }
.t0 { grid-area: 1 / 1; } .t1 { grid-area: 1 / 2; } .t2 { grid-area: 1 / 4; } .t3 { grid-area: 2 / 2; } .t4 { grid-area: 2 / 3; } .t5 { grid-area: 3 / 1; } .t6 { grid-area: 3 / 3; } .t7 { grid-area: 3 / 4; }
.mosaic__big { position: relative; margin: 0; aspect-ratio: 4 / 3.3; overflow: hidden; border-radius: 6px; background: var(--paper); }
.mosaic__frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out); }
.mosaic__frame.is-on { opacity: 1; transform: none; }
.mosaic__frame img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__big figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 0.8125rem; color: var(--ink); }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr; }
  .mosaic__big { order: -1; }
  .mosaic__grid { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); }
  .mosaic__tile { flex: 0 0 72px; aspect-ratio: 1; }
}

/* ---------- Yellow consultation panel ---------- */
.v3-yellow { background: var(--sun); color: var(--forest); padding-block: clamp(64px, 9vw, 120px); }
.v3-yellow__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.v3-yellow h2 { font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); max-width: 12ch; color: var(--forest); }
.v3-yellow .lede { color: var(--forest); margin-top: 24px; }
.v3-ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.v3-ticks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.v3-ticks li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23E3DE3B' stroke-width='2'/%3E%3C/svg%3E") center / 20px no-repeat; }
.v3-yellow__form { background: var(--paper); border-radius: 10px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 30px 60px rgba(30, 59, 51, 0.16); }
@media (max-width: 860px) { .v3-yellow__in { grid-template-columns: 1fr; } }

/* ---------- Process rail ---------- */
.rail { position: relative; height: 2px; background: var(--line); margin-bottom: -2px; }
.rail__fill { position: absolute; inset: 0; background: var(--sun); transform-origin: left; transform: scaleX(var(--p, 0)); }
.steps li { transition: border-color .4s; }
.steps li h3 { transition: transform .5s var(--ease-out); }
.steps li:hover h3 { transform: translateX(6px); }
.assure li { position: relative; border-top-color: var(--line); }
.assure li::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--forest); transform: scaleX(0.18); transform-origin: left; transition: transform .8s var(--ease-out), background-color .4s; }
.assure li:hover::before { transform: scaleX(1); background: var(--sun); }

/* ---------- Directors ---------- */
.directors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.dir { display: flex; flex-direction: column; padding: 28px; background: var(--white); border-radius: 10px; border: 1px solid var(--line); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.dir:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(20, 32, 27, 0.1); }
.dir__top { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.dir__mono { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--forest); color: var(--sun); font: 400 1.375rem/1 var(--serif); transition: transform .8s var(--ease-out); }
.dir:hover .dir__mono { transform: rotate(-8deg) scale(1.04); }
.dir h3 { font: 400 1.5rem/1.15 var(--serif); }
.dir__role { margin: 4px 0 0; font-size: 0.8125rem; font-weight: 600; color: var(--forest); }
.dir__lede { color: var(--ink-2); font-size: 0.9375rem; }
.dir__facts { list-style: none; margin: 4px 0 20px; padding: 0; border-top: 1px solid var(--line); flex: 1; }
.dir__facts li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.dir__facts span { display: block; font-size: 0.75rem; color: var(--ink-2); }
@media (max-width: 960px) { .directors { grid-template-columns: 1fr; } }
.timeline { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.timeline li { border-top-color: var(--sun); }
.profile__mono { color: var(--sun); }

/* ---------- Lower sections ---------- */
.faq summary { transition: color .3s; }
.faq summary:hover { color: var(--forest); }
.faq summary::after { background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; }
.faq details { position: relative; }
.faq details::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.faq details[open]::before, .faq details:hover::before { transform: scaleX(1); }
.faq details[open] .answer { animation: faq-in .6s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }
.dev__img { border-radius: 6px; }
.js-motion .dev[data-reveal] .dev__img { clip-path: inset(18% 0 0 0); transition: clip-path 1.2s var(--ease-out); }
.js-motion .dev[data-reveal].is-in .dev__img { clip-path: inset(0 0 0 0); }
.fan { position: relative; height: 220px; margin-top: 40px; }
.fan span { position: absolute; top: 0; left: 0; width: 150px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; border: 3px solid var(--paper); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); transition: transform .9s var(--ease-out); }
.fan span img { width: 100%; height: 100%; object-fit: cover; }
.fan span:nth-child(1) { transform: rotate(-6deg); }
.fan span:nth-child(2) { transform: translateX(40px) rotate(2deg); }
.fan span:nth-child(3) { transform: translateX(80px) rotate(8deg); }
.v3-bro:hover .fan span:nth-child(1) { transform: translateX(-10px) rotate(-12deg); }
.v3-bro:hover .fan span:nth-child(2) { transform: translateX(80px) rotate(0deg) translateY(-12px); }
.v3-bro:hover .fan span:nth-child(3) { transform: translateX(170px) rotate(12deg); }
.tagline p { font-size: clamp(2rem, 1rem + 3.6vw, 4.25rem); max-width: 20ch; }
.js-motion .tagline .w.is-on { color: var(--paper); }
.clients li { transition: background-color .4s; }
.clients li:hover { background: var(--white); }

.footer-top h2 { color: var(--sun); }
.site-footer a { background: linear-gradient(var(--sun), var(--sun)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.site-footer a:hover { text-decoration: none; background-size: 100% 1px; }

/* ---------- Buttons ---------- */
.btn { border-radius: 4px; transition: background-color .4s, color .4s, border-color .4s, transform .3s var(--ease-out); }
.btn--primary:hover { background: #142B25; }
[data-magnetic] { transition: transform .5s var(--ease-out); will-change: transform; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--sun); pointer-events: none; opacity: 0; display: grid; place-items: center; transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), opacity .3s, background-color .3s; will-change: transform; }
.cursor.is-visible { opacity: 1; }
.cursor.is-big { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.cursor__label { font: 600 0.8125rem/1 var(--sans); color: var(--forest); opacity: 0; transform: scale(0.6); transition: opacity .3s, transform .5s var(--ease-out); white-space: nowrap; }
.cursor.is-big .cursor__label { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Sheets (consultation form) ---------- */
dialog.sheet { width: min(640px, calc(100vw - 32px)); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35); overflow: hidden; }
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .55s var(--ease-out); }
dialog.sheet::backdrop { background: rgba(14, 26, 22, 0.55); backdrop-filter: blur(6px); animation: fade-in .4s; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet__bar { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 28px; border-bottom: 1px solid var(--line); background: var(--paper); }
.sheet__bar h2 { font-size: 1.625rem; }
.sheet__grip { display: none; }
.sheet__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); cursor: pointer; transition: background-color .3s, transform .4s var(--ease-out); }
.sheet__close:hover { background: var(--sun); transform: rotate(90deg); }
.sheet__close svg { width: 20px; height: 20px; }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 20px 28px 32px; }
.sheet__body > .muted { margin-bottom: 20px; font-size: 0.9375rem; }
@media (max-width: 720px) {
  dialog.sheet { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  dialog.sheet[open] { animation: sheet-up .5s var(--ease-out); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  .sheet__bar { padding: 22px 16px 14px 20px; }
  .sheet__grip { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(20, 32, 27, 0.2); }
  .sheet__body { padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); }
  .sheet .form .actions .small { display: none; }
}

/* ---------- Forms ---------- */
.field input, .field select, .field textarea { border-radius: 6px; border-color: #CFD5CA; min-height: 52px; font-size: 16px; background-color: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(227, 222, 59, 0.55); }
.field label { font-weight: 600; font-size: 0.8125rem; }
.form .actions .btn { min-height: 52px; }
@media (max-width: 560px) { .form .actions .btn { width: 100%; } }

/* ---------- Mobile action bar ---------- */
@media (max-width: 720px) {
  .action-bar { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 4px; border: 0; border-radius: 999px; background: rgba(30, 59, 51, 0.94); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(14, 26, 22, 0.3); gap: 4px; }
  .action-bar a, .action-bar button { min-height: 48px; border-radius: 999px; }
  .action-bar a + a { border: 0; }
  body { padding-bottom: 84px; }
  .menu-open .action-bar { display: none; }
  .v3-sec { padding-block: 64px; }
  .section { padding-block: 64px; }
  h2 { font-size: clamp(1.875rem, 7.5vw, 2.5rem); }
  .tagline { padding-block: 96px; }
  .fan { height: 180px; } .fan span { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .h3__scroll::after, .show__fig, .mosaic__frame { animation: none !important; transition: none !important; }
  .js-motion .ft-word, .js-motion .dev[data-reveal] .dev__img { transform: none !important; opacity: 1 !important; clip-path: none !important; }
}

/* Hero refinement: calmer grade, tighter headline */
.h3__bg, .h3__fg { filter: saturate(0.78) brightness(0.97) contrast(1.03); }
.h3 h1 { font-size: clamp(2rem, 1.1rem + 2.3vw, 3.5rem); max-width: 17ch; }
.h3__stats { gap: 18px; }
.h3__stats b { font-size: 1.375rem; }
.h3__shade { background: linear-gradient(to top, rgba(14, 26, 22, 0.82) 0%, rgba(14, 26, 22, 0.4) 30%, rgba(14, 26, 22, 0) 55%), linear-gradient(to right, rgba(14, 26, 22, 0.35), rgba(14, 26, 22, 0) 40%), linear-gradient(to bottom, rgba(14, 26, 22, 0.28), rgba(14, 26, 22, 0) 16%); }
@media (max-width: 860px) {
  .h3__ui { padding-bottom: calc(100px + env(safe-area-inset-bottom)); grid-template-rows: 1fr auto auto; }
  .h3__stats { grid-row: 2; align-self: end; margin-bottom: 8px; font-size: 0.6875rem; }
  .h3__stats li { max-width: 92px; }
  .h3__copy { grid-row: 3; }
}
@media (min-width: 721px) and (max-width: 860px) { .h3__ui { padding-bottom: 40px; } }

/* ---------- Round 3 additions ---------- */
.h3__status { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: var(--sun); color: var(--forest); font: 600 0.8125rem/1.3 var(--sans); }
.postnominals { margin: 2px 0 0; font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.06em; color: var(--forest); }
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: var(--forest); margin-bottom: 20px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__mono { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sun); font: 400 clamp(2.5rem, 5vw, 3.5rem)/1 var(--serif); }
.profile__id .portrait { max-width: 260px; }
.profile__h { margin: 28px 0 8px; font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--forest); }
.profile__list { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.profile__list li { margin-bottom: 6px; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.team__card h3 { font: 400 1.5rem/1.15 var(--serif); }
.team__bio { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 760px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.clients__text span { font: 400 1.125rem/1.25 var(--serif); color: var(--ink); text-align: center; }
.clients__note { margin-top: 16px; color: var(--ink-2); }
.siteplan { margin: 0; }
.sitefacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 24px; }
.sitefacts dt { font-size: 0.75rem; color: var(--ink-2); }
.sitefacts dd { margin: 2px 0 0; font-weight: 600; }
.form input[type="file"] { padding: 10px; }

/* ---------- Round 3 review fixes ---------- */
/* Hero: a larger, solid GLEE in front of the terraces (it fades on scroll in v3.js); stats and status chip removed. */
/* Consent and choice checkboxes: keep the box on the first line of its text in every form. */
.form .field label.check, .field .check { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; margin: 0; font-weight: 400; }
.form .check input[type="checkbox"] { flex: none; width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; border-radius: 3px; }
.form .check span { flex: 1; line-height: 1.5; }
.team { grid-template-columns: repeat(auto-fill, minmax(240px, 320px)); }

/* Team: two columns, each card a portrait with the name and bio beside it */
.team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.team__card { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.team__card .portrait { margin-bottom: 0; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .team__card { grid-template-columns: 112px 1fr; } }
.video--wide { aspect-ratio: 16 / 9; max-width: none; }
.video--wide video { object-fit: contain; }

/* ---------- 3D floor plans (plan3d.js) ---------- */
.p3d { --p3d-top: calc(var(--header-h) + 54px); --p3d-bottom: 0px; position: relative; margin-bottom: var(--s6); }
.p3d.is-live:not(.is-flat) { height: var(--p3d-len, 300vh); }
.p3d__stage { position: sticky; top: var(--p3d-top); height: calc(100svh - var(--p3d-top) - var(--p3d-bottom)); min-height: 420px; display: flex; flex-direction: column; padding-block: var(--s4) var(--s3); }
.p3d__stage[hidden], .p3d.is-flat .p3d__stage { display: none; }
.p3d__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); min-height: 56px; }
.p3d__title { margin: 0; font-family: var(--serif); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.15; color: var(--ink); }
.p3d__desc { margin: 4px 0 0; max-width: 60ch; }
.p3d__flat { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: 999px; background: transparent; font: 600 0.8125rem var(--sans); color: var(--forest); cursor: pointer; transition: background-color .3s, border-color .3s; }
.p3d__flat:hover { background: var(--white); border-color: var(--forest); }
.p3d__flat svg { width: 16px; height: 16px; }
.p3d__view { position: relative; flex: 1; min-height: 0; }
.p3d__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.p3d__view.is-drag canvas { cursor: grabbing; }
.p3d__hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(30, 59, 51, 0.92); color: var(--on-dark); font-size: 0.75rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; }
.p3d__hint svg { width: 14px; height: 14px; }
.p3d__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding-top: var(--s3); }
.p3d__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.p3d__chips button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: 600 0.8125rem var(--sans); color: var(--forest); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.p3d__chips button:hover { border-color: var(--forest); }
.p3d__chips button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.p3d__note { margin: 0; font-size: 0.75rem; color: var(--ink-2); max-width: none; }
.p3d__bar { height: 2px; margin-top: var(--s3); background: var(--line); border-radius: 2px; overflow: hidden; }
.p3d__bar i { display: block; height: 100%; background: var(--leaf); transform-origin: left; transform: scaleX(0); }
.p3d__back { display: none; margin-top: var(--s4); }
.p3d.is-flat .p3d__back { display: inline-flex; }
/* Live 3D: the flat plans stay for screen readers only. */
.p3d.is-live:not(.is-flat) .p3d__fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.plans2--1 { grid-template-columns: minmax(0, 720px); }
.plans2--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .plans2--2 { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .p3d { --p3d-bottom: 84px; }
  .p3d__stage { min-height: 380px; padding-block: var(--s3) var(--s2); }
  .p3d__head { min-height: 76px; }
  .p3d__desc { font-size: 0.8125rem; }
  .p3d__flat span { display: none; }
  .p3d__note { display: none; }
  .p3d__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .p3d__chips button { flex: none; }
}
/* The architect's plan drawings, shown flat. */
.plans2--real { align-items: start; }
.plans2--real img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.plans2--real figcaption { margin-top: var(--s2); font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.plans2--real.plans2--1 { grid-template-columns: minmax(0, 560px); }
.plans2--real.plans2--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .plans2--real.plans2--3 { grid-template-columns: 1fr; } }
/* Sky behind the finished building (plan3d.js sets --sky). */
.p3d__view::before { content: ""; position: absolute; inset: 0 0 18% 0; border-radius: 18px; background: linear-gradient(180deg, #B9D6E8 0%, #D7E7EF 48%, rgba(233,236,228,0) 100%); opacity: var(--sky, 0); pointer-events: none; }
.siteplan img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.siteplan a { display: block; cursor: zoom-in; }
/* Instagram follow link on The Glee Apartments page */
.ig-follow { margin: 16px 0 0; font-size: 0.875rem; }
.ig-follow a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; }
.ig-follow a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.ig-follow svg { width: 18px; height: 18px; flex: none; color: var(--forest); }
.ig-follow b { font-weight: 600; color: var(--forest); }
