/* Toda Group Invest
   The look of the Horizont brochure: cool off-white paper, near-black navy, one soft green,
   a Palatino-style serif for headings over Inter. Status colours are shared by the building
   page, badges and the admin. */

:root {
  --ink: #141b23;
  --ink-soft: #34434f;
  --ink-faint: #6c8492;
  --paper: #f2f5fb;
  --card: #fdfeff;
  --line: #d2dce2;
  --wash: #e8edf5;
  --night: #141b23;
  --night-2: #1a2634;
  --night-line: rgba(242, 245, 251, .18);
  --navy: #141b23;
  --green: #9fd191;
  --green-deep: #2f6b3a;
  --sky: #b4d8e5;

  /* actions are the ink colour; the admin reads these names too */
  --red: #141b23;
  --red-dark: #0c1117;

  --available: #2f6b3a;
  --available-tint: #9fd191;
  --reserved: #215a70;
  --reserved-tint: #b4d8e5;
  --sold: #6c7880;
  --sold-tint: #e2e8ee;

  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(20, 27, 35, .05);
  --shadow-md: 0 2px 4px rgba(20, 27, 35, .04), 0 14px 30px -14px rgba(20, 27, 35, .16);
  --shadow-lg: 0 4px 10px rgba(20, 27, 35, .05), 0 30px 56px -22px rgba(20, 27, 35, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Palatino Linotype", Palatino, "Book Antiqua", "EB Garamond", Georgia, serif;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 77px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
dl, dd, figure { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.muted { color: var(--ink-faint); }
.muted a { color: var(--ink); }

/* ---------- type ---------- */

.display { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 62px); line-height: 1.06; letter-spacing: -.012em; }
.display--md { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.14; }
.display--sm { font-size: clamp(21px, 2.1vw, 25px); line-height: 1.25; }

/* the brochure's small caps label with its green point */
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.eyebrow--light { color: rgba(242, 245, 251, .72); }

.lede { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-soft); max-width: 38em; margin-top: 16px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

.wordmark { display: block; width: 190px; height: 26px; color: currentColor; }
.wordmark--lg { width: min(340px, 74vw); height: auto; aspect-ratio: 293.36 / 38.7; }

/* ---------- buttons, fields, chips, badges ---------- */

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .25s var(--ease); }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.button--primary { background: var(--ink); color: var(--paper); }
.button--primary:hover { background: #2a3844; }
.button--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.button--ghost:hover { background: var(--ink); color: var(--paper); }
.button--light { background: var(--paper); color: var(--ink); }
.button--light:hover { background: var(--green); }
.button--block { width: 100%; }


.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink-soft); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--toggle::before { content: ""; width: 14px; height: 14px; margin-right: 9px; border: 1.5px solid currentColor; border-radius: 3px; background-position: center; background-repeat: no-repeat; background-size: 10px; }
.chip--toggle.is-on::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3 4.7 9 10 3.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* status labels, as the brochure prints them */
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 3px 8px; border-radius: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; line-height: 1.5; }
.badge--available { background: var(--green); color: var(--ink); }
.badge--reserved { background: var(--sky); color: var(--ink); }
.badge--unavailable { background: var(--sold); color: #fff; }
.badge--sold { background: var(--ink-soft); color: #fff; }
.badge--lg { font-size: 12px; padding: 5px 12px; }

.tag { display: inline-block; padding: 3px 9px; border-radius: 2px; background: var(--wash); color: var(--ink-soft); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.tag--live { background: var(--green); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- save for comparison ---------- */

.fav { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.fav:hover { color: var(--ink); border-color: var(--ink); }
.fav:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fav__icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); background: var(--green); }
.fav[aria-pressed="true"] .fav__icon { fill: currentColor; }
.fav--wide { display: inline-flex; gap: 8px; width: auto; height: auto; min-height: 48px; padding: 0 18px; border-radius: var(--radius-sm); border-color: var(--ink); background: transparent; font: 600 15px var(--font); color: var(--ink); }

.tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: var(--paper); }
.tray__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.tray__count { font-size: 14px; color: rgba(242, 245, 251, .7); }
.tray__count strong { color: #fff; font-size: 16px; }
.tray__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.tray__chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 3px; background: rgba(242, 245, 251, .1); font-size: 13px; font-weight: 500; }
.tray__chip button { width: 26px; height: 26px; border: 0; border-radius: 3px; background: transparent; color: rgba(242, 245, 251, .7); font-size: 18px; line-height: 1; cursor: pointer; }
.tray__chip button:hover { background: rgba(242, 245, 251, .15); color: #fff; }
.tray__note { width: 100%; order: 5; font-size: 13px; color: var(--green); }
.tray__go { min-height: 44px; }
.tray__go.is-waiting { background: rgba(242, 245, 251, .12); color: rgba(242, 245, 251, .75); cursor: default; }
@media (max-width: 640px) {
  .tray__chips { display: none; }
  .tray__inner { justify-content: space-between; }
}
body.has-tray { padding-bottom: 72px; }

.site-nav__count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 2px; padding: 0 5px; border-radius: 999px; background: var(--green); color: var(--ink); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.site-nav__count[hidden] { display: none; }

/* ---------- chrome ---------- */

/* the brochure's page head: logo, rule, and a short green start to the rule */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header::after { content: ""; position: absolute; left: 0; bottom: -1px; width: min(33vw, 420px); height: 1px; background: var(--green); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(20, 27, 35, .4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }

.logo { display: block; height: 42px; width: auto; aspect-ratio: 148 / 43.21; overflow: visible; }
.logo--light { --logo-ink: #fff; --logo-grey: rgba(255, 255, 255, .62); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
@media (max-width: 600px) { .site-header .logo { height: 36px; } }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 500; }
.site-nav a { position: relative; text-decoration: none; }
.site-nav a:not(.site-nav__phone)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:not(.site-nav__phone):hover::after { transform: scaleX(1); }
.site-nav__phone { padding: 10px 14px; border: 1px solid var(--ink); border-radius: var(--radius-sm); font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.site-nav__phone:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), background .2s; }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 24px 40px -24px rgba(20, 27, 35, .35); }
.mobile-menu__inner { display: grid; padding-top: 8px; padding-bottom: 16px; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 22px; text-decoration: none; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu:not([hidden]) { animation: menu-in .3s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1080px) {
  .site-nav { gap: 10px; }
  .site-nav a:not(.site-nav__phone) { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 460px) { .site-nav__phone { display: none; } }
@media (min-width: 1081px) { .mobile-menu { display: none; } }

.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 28px; }
.site-footer__inner { display: grid; gap: 36px; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.6fr 1fr 1.2fr; } }
.site-footer .logo { height: 46px; }
.site-footer__lede { margin-top: 18px; max-width: 30em; color: rgba(242, 245, 251, .62); font-size: 15px; }
.site-footer__social { display: flex; gap: 10px; margin-top: 22px; }
.site-footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(242, 245, 251, .28); border-radius: 50%; color: #fff; transition: background .25s, color .25s; }
.site-footer__social a:hover { background: var(--paper); color: var(--ink); }
.site-footer__social svg { width: 20px; height: 20px; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col h2 { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(242, 245, 251, .5); margin-bottom: 4px; }
.site-footer__col a:not(.button) { color: var(--paper); text-decoration: none; font-size: 15px; }
.site-footer__col a:not(.button):hover { color: var(--green); }
.site-footer__enquire { align-self: start; margin-top: 14px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--night-line); font-size: 13px; color: rgba(242, 245, 251, .5); }
.site-footer__blink { display: inline-block; opacity: .75; transition: opacity .2s; }
.site-footer__blink:hover { opacity: 1; }
.site-footer__blink img { display: inline-block; width: auto; height: 1.35em; vertical-align: -0.28em; filter: brightness(0) invert(1); }

/* ---------- sections ---------- */

.section { padding: 88px 0; }
.section--tight { padding: 48px 0; }
.section--white { background: var(--card); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.empty { text-align: center; max-width: 560px; margin: 0 auto; display: grid; gap: 14px; justify-items: center; padding: 40px 0; }
@media (max-width: 719px) { .section { padding: 56px 0; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: 13.5px; color: var(--ink-faint); }
.crumbs a { text-decoration: none; color: var(--ink-soft); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.page-head { padding: 44px 0 64px; }

/* ---------- home: the brochure's cover ---------- */

.cover { display: grid; background: var(--paper); }
.cover__text { display: flex; flex-direction: column; justify-content: space-between; }
.cover__lead { padding: 36px 16px 32px; }
.cover .lede { margin-top: 18px; }
.cover__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cover__info { padding: 26px 16px; background: var(--sky); font-size: 14px; }
.cover__info .eyebrow { margin-bottom: 8px; }
.cover__info .eyebrow::before { background: var(--ink); }
.cover__phone { display: block; font-family: var(--display); font-size: clamp(25px, 2.5vw, 32px); line-height: 1.2; text-decoration: none; }
.cover__image { position: relative; min-height: 62svh; background: var(--night); overflow: hidden; }
.cover__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cover__image figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 24px; padding: 64px 16px 18px; color: #fff; font-size: 13.5px; background: linear-gradient(180deg, transparent, rgba(12, 17, 23, .62)); }
@media (min-width: 900px) {
  .cover { grid-template-columns: minmax(380px, 34%) minmax(0, 1fr); min-height: calc(100svh - 77px); max-height: 960px; }
  .cover__lead { padding: clamp(40px, 7vh, 88px) 44px 36px max(32px, calc((100vw - var(--max)) / 2 + 32px)); }
  .cover__info { padding: 28px 44px 32px max(32px, calc((100vw - var(--max)) / 2 + 32px)); }
  .cover__image { min-height: 0; }
  .cover__image figcaption { padding: 80px 32px 24px; }
}

.search-band { background: var(--card); border-bottom: 1px solid var(--line); }
.search-band__inner { display: grid; gap: 14px; padding-top: 26px; padding-bottom: 26px; }
@media (min-width: 900px) { .search-band__inner { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 44px; } }


.project-intro { display: grid; gap: 36px; }
.project-intro .lede { margin-top: 22px; }
.project-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
@media (min-width: 900px) { .project-intro { grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; } }

.fact-list { display: grid; align-content: start; padding: 8px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.fact-list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-list div:last-child { border-bottom: 0; }
.fact-list dt { font-size: 13.5px; color: var(--ink-faint); }
.fact-list dd { font-size: 15px; font-weight: 600; }
.fact-list--plain { margin-top: 26px; padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }

/* the types of flat, each 3D view on the dark ground the brochure gives it */
.types { padding: 80px 0; background: var(--night); color: var(--paper); }
.types .eyebrow { color: rgba(242, 245, 251, .72); }
.types .link-arrow { border-color: var(--paper); }
.types__rail { display: flex; gap: 14px; padding: 4px max(16px, calc((100vw - var(--max)) / 2 + 32px)) 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(242, 245, 251, .3) transparent; }
.type-card { flex: 0 0 min(76vw, 320px); display: grid; align-content: start; gap: 2px; padding: 14px 14px 18px; border: 1px solid var(--night-line); border-radius: var(--radius); text-decoration: none; scroll-snap-align: center; transition: border-color .25s, background .25s; }
.type-card:hover { border-color: var(--green); background: var(--night-2); }
.type-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.type-card__image { position: relative; display: block; height: 232px; margin-bottom: 12px; }
.type-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.type-card:hover img { transform: scale(1.03); }
.type-card__name { font-family: var(--display); font-size: 23px; line-height: 1.25; }
.type-card__meta { font-size: 13.5px; color: var(--green); }

.about-intro { display: grid; gap: 12px 64px; }
.about-intro .lede { margin: 0; }
.about-cols { display: grid; gap: 28px 48px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.about-cols h3 { font-family: var(--display); font-size: 23px; line-height: 1.25; }
.about-cols p { margin-top: 8px; color: var(--ink-soft); }
@media (min-width: 900px) { .about-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.about-values { margin-top: 48px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
@media (min-width: 900px) { .about-intro { grid-template-columns: 5fr 7fr; } }

.values { display: grid; gap: 0 40px; margin-top: 12px; border-top: 1px solid var(--line); }
.values div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.values dt { font-family: var(--display); font-size: 22px; }
.values dd { color: var(--ink-soft); margin-top: 4px; }
@media (min-width: 620px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values { grid-template-columns: repeat(4, 1fr); } }

/* ---------- contact band ---------- */

.contact { padding: 80px 0; background: var(--night-2); color: var(--paper); }
.contact__inner { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact__inner { grid-template-columns: 6fr 5fr; gap: 72px; align-items: end; } }
.contact__text { margin-top: 14px; color: rgba(242, 245, 251, .72); font-size: 17px; max-width: 30em; }
.contact__list { border-top: 1px solid var(--night-line); }
.contact__list div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 20px; padding: 13px 0; border-bottom: 1px solid var(--night-line); }
.contact__list dt { color: rgba(242, 245, 251, .6); font-size: 14px; }
.contact__list dd { overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--green); }
.contact__phone { font-family: var(--display); font-size: 24px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.contact-cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: grid; align-content: start; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.contact-card h2 { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.contact-card a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact-card a:hover { text-decoration: underline; }
.contact-card__big { font-family: var(--display); font-size: 26px; font-weight: 400 !important; }

.catalogue__inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; }
.catalogue { padding: 64px 0; border-top: 1px solid var(--line); }
.garages { border-top: 1px solid var(--line); }
.garage { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.garage__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.garage__svg { display: block; width: 100%; min-width: 820px; height: auto; }
.garage__hint { margin-top: 8px; font-size: 13px; color: var(--ink-faint); }
@media (min-width: 900px) { .garage__hint { display: none; } }

/* each status has its own tint on the plan; green only ever means confirmed as available */
.spot { --spot: var(--sky); cursor: pointer; outline: none; }
.spot--available { --spot: var(--green); }
.spot--reserved { --spot: #d6c0d5; }
.spot--sold { --spot: var(--sold); }
.spot polygon { fill: var(--spot); fill-opacity: .24; stroke: var(--ink-soft); stroke-opacity: 0; stroke-width: 3; transition: fill-opacity .18s, stroke-opacity .18s; }
.spot text { fill: var(--ink); font: 600 27px var(--font); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 7px; stroke-linejoin: round; pointer-events: none; }
.spot:hover polygon, .spot:focus-visible polygon, .spot.is-active polygon { fill-opacity: .72; stroke-opacity: 1; }

.spots { display: grid; gap: 6px; margin-top: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (min-width: 620px) { .spots { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.spot-cell { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .18s, border-color .18s; }
.spot-cell:hover, .spot-cell.is-active { border-color: var(--ink); background: var(--sky); }
.spot-cell:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.spot-cell--available { border-color: var(--green); }
.spot-cell--sold { color: var(--ink-faint); }
.spot-key { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 2px; background: var(--sky); vertical-align: -1px; }
.spot-key--available { background: var(--green); }
.spot-key--reserved { background: #d6c0d5; }
.spot-key--sold { background: var(--sold); }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 15px; font-weight: 600; }
.project-links a { text-underline-offset: 3px; }

/* ---------- project page ---------- */

.project-head { padding: 40px 0 64px; }
.project-head__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .project-head__grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; } }
.project-head__cover { overflow: hidden; border-radius: var(--radius); aspect-ratio: 1.05; background: var(--night); }
.project-head__cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.availability { background: var(--card); border-top: 1px solid var(--line); }
.availability__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 32px; margin-bottom: 22px; }
.availability__head .muted { margin-top: 8px; font-size: 14.5px; }
.availability__note { margin-top: 16px; font-size: 13px; color: var(--ink-faint); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.status-grid { display: grid; gap: 8px; margin-top: 18px; }
.floor { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.floor__label { display: grid; place-items: center; align-self: stretch; border-radius: var(--radius-sm); background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 21px; }
.floor__flats { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); }
@media (min-width: 1000px) {
  .floor { grid-template-columns: 64px minmax(0, 1fr); }
  .floor__label { font-size: 26px; }
  .floor__flats { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
.cell { position: relative; display: grid; align-content: start; gap: 2px; padding: 9px 9px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); text-decoration: none; transition: border-color .2s, box-shadow .25s var(--ease), opacity .2s; }
.cell:hover { border-color: var(--ink); box-shadow: var(--shadow-md); }
.cell:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cell--available { background: var(--card); border-color: var(--green); }
.cell__no { font-size: 11px; color: var(--ink-faint); }
.cell__m2 { font-family: var(--display); font-size: 19px; line-height: 1.2; white-space: nowrap; }
.cell__m2 small { font-family: var(--font); font-size: 11px; color: var(--ink-faint); }
.cell .badge { justify-self: start; margin-top: 6px; padding: 2px 5px; font-size: 8.5px; letter-spacing: .04em; }
.cell.is-dim { opacity: .28; }
.cell.is-saved::after { content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.floor--commercial { align-items: center; }
.floor--commercial p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 28px; font-size: 14.5px; color: var(--ink-soft); }
.floor--commercial strong { font-family: var(--display); font-size: 19px; font-weight: 400; color: var(--ink); }
.floor--commercial { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.floor--commercial a { padding: 10px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (min-width: 1000px) { .floor--commercial { grid-template-columns: 64px minmax(0, 1fr) auto; } }

/* admin's small status swatches */
.unit { display: inline-block; border-radius: 2px; }
.unit--available { background: var(--green); }
.unit--reserved { background: var(--sky); }
.unit--unavailable, .unit--sold { background: var(--sold); }

/* ---------- lists of flats ---------- */

.similar__lede { margin: 6px 0 20px; }
.flat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .flat-grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.explorer__note { margin-bottom: 18px; }
.views { display: flex; gap: 6px; }
.views a { display: inline-flex; align-items: center; min-height: 38px; gap: 7px; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.views a:hover { background: var(--wash); color: var(--ink); }
.views a[aria-current] { background: var(--ink); color: var(--paper); }
.views svg { width: 15px; height: 15px; fill: currentColor; }


.flat-list { border-top: 1px solid var(--line); }
.floor-group + .floor-group { margin-top: 40px; }
.floor-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-family: var(--display); font-size: 21px; }
.floor-group__head span { font-family: var(--font); font-size: 13px; color: var(--ink-faint); }
.floor-group__head + .flat-grid { margin-top: 16px; }
.floor-group__head + .flat-list { border-top: 0; }

.flat-row { border-bottom: 1px solid var(--line); }
.flat-row__head { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; gap: 8px 18px; padding: 14px 6px; cursor: pointer; list-style: none; transition: background .2s; }
.flat-row__head::-webkit-details-marker { display: none; }
.flat-row__head:hover, .flat-row[open] .flat-row__head { background: var(--paper); }
@media (min-width: 760px) { .flat-row__head { grid-template-columns: minmax(0, 1fr) 1.1fr 1.2fr auto 118px 24px; } }
.flat-row__no { display: grid; font-weight: 600; }
.flat-row__building { font-size: 12px; font-weight: 500; color: var(--ink-faint); }
.flat-row__cell { color: var(--ink-soft); font-size: 14px; }
.flat-row__m2 { font-family: var(--display); font-size: 19px; white-space: nowrap; }
.flat-row .badge { justify-self: start; }
@media (min-width: 760px) { .flat-row .badge { justify-self: end; } }
.flat-row__toggle { position: relative; width: 22px; height: 22px; justify-self: end; }
.flat-row__toggle::before, .flat-row__toggle::after { content: ""; position: absolute; left: 6px; top: 10px; width: 10px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
.flat-row__toggle::after { transform: rotate(90deg); }
.flat-row[open] .flat-row__toggle::after { transform: rotate(0); }
.flat-row__body { display: grid; gap: 22px; padding: 6px 6px 26px; }
@media (min-width: 760px) { .flat-row__body { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; } }
.flat-row__plan { position: relative; display: grid; place-items: center; min-height: 190px; padding: 12px; border-radius: var(--radius); background: var(--paper); }
.flat-row__plan--render { height: 280px; padding: 0; container-type: size; }
.flat-row__facts { display: grid; gap: 16px; align-content: start; }
.flat-row__same { color: var(--ink-faint); font-size: 14px; }
.flat-row__rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px; }
@media (min-width: 520px) { .flat-row__rooms { grid-template-columns: repeat(2, 1fr); } }
.flat-row__rooms li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.flat-row__rooms li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--room); flex: none; }
.flat-row__rooms span { flex: 1; color: var(--ink-soft); }
.flat-row__rooms b { font-weight: 600; white-space: nowrap; }
.flat-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.flat-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; transition: border-color .2s, box-shadow .3s var(--ease); }
.flat-card:hover { border-color: var(--ink); box-shadow: var(--shadow-md); }
.flat-card__link { display: grid; text-decoration: none; }
.flat-card__link:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.flat-card .fav { position: absolute; top: 10px; right: 10px; }
.flat-card__plan { --pad: 12px; position: relative; display: block; height: 150px; container-type: size; background: var(--night); }
/* a fixed panel: the image is laid inside it, so its own proportions can never stretch the card */
.flat-card__plan > img { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain; transition: transform .5s var(--ease); }
.flat-card:hover .flat-card__plan > img { transform: scale(1.03); }
.flat-card__plan:has(.plan-crop) { background: var(--paper); }
.plan-crop { position: absolute; inset: 0; margin: auto; width: min(100cqw - 28px, (100cqh - 28px) * var(--ratio)); aspect-ratio: var(--ratio); overflow: hidden; }
.plan-crop img { position: absolute; max-width: none; height: auto; }
.flat-card__body { display: grid; gap: 2px; padding: 12px 13px 14px; }
.flat-card__building { font-size: 12px; color: var(--ink-faint); }
.flat-card__no { font-family: var(--display); font-size: 21px; line-height: 1.25; }
.flat-card__meta { color: var(--ink-soft); font-size: 13px; }
.flat-card__same { color: var(--ink-faint); font-size: 12px; }
.flat-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; }
.flat-card__m2 { font-weight: 600; font-size: 15px; }
@media (min-width: 620px) {
  .flat-card__plan { --pad: 16px; height: 220px; }
  .flat-card__body { padding: 16px 18px 18px; }
  .flat-card__no { font-size: 24px; }
  .flat-card__meta { font-size: 14px; }
  .flat-card__m2 { font-size: 16px; }
}

.projects { display: grid; gap: 24px; }
.project { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
@media (min-width: 900px) { .project { grid-template-columns: 1.1fr 1fr; } }
.project__media { position: relative; display: block; min-height: 320px; overflow: hidden; background: var(--night); }
.project__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.project__body { display: grid; align-content: center; gap: 10px; padding: 28px; }
@media (min-width: 900px) { .project__body { padding: 40px 44px; } }
.project__body .tag { justify-self: start; }
.project__title { font-family: var(--display); font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.project__title a { text-decoration: none; }
.project__place { color: var(--ink-soft); }
.project__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 0; border-top: 1px solid var(--line); }
.project__facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.project__facts dt { font-size: 13px; color: var(--ink-faint); }
.project__facts dd { margin: 2px 0 0; font-weight: 600; }
.project__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- flat page ---------- */

/* on a phone the call and the enquiry stay within reach, however far down the plan you are */
.flat-bar { display: none; }
@media (max-width: 719px) {
  .flat-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
  .flat-bar .button { width: 100%; min-height: 46px; }
  body[data-page="flat"] { padding-bottom: 74px; }
  /* the compare tray owns the bottom of the screen while it is up */
  body:has([data-tray]:not([hidden])) .flat-bar { display: none; }
}

.flat-top { padding: 36px 0 28px; }
.flat-top__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.flat-top__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }
.flat-top__area { font-family: var(--font); font-size: clamp(34px, 4vw, 50px); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.flat-top__area small { font-size: .42em; font-weight: 600; letter-spacing: 0; }
.flat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 20px; }
.flat-actions__price { margin-right: auto; font-family: var(--display); font-size: 23px; }
@media (max-width: 719px) { .flat-actions__price { width: 100%; } .flat-actions .button--primary { display: none; } }

/* the dark spread: the brochure's left page */
.spread { background: var(--night); color: var(--paper); }
.spread__inner { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 960px) { .spread__inner { grid-template-columns: 4fr 7fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 56px; } }
.spread__image { display: grid; place-items: center; }
.spread__image img { width: 100%; height: min(66vh, 640px); object-fit: contain; }
.traits { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 22px; }
.traits h2 { font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--green); }
.traits h2 span { color: rgba(242, 245, 251, .6); }
.traits p { margin-top: 5px; font-size: 15px; color: rgba(242, 245, 251, .78); }

.flat-plan { padding: 56px 0; }
.plan-missing { padding: 40px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-align: center; }
.plan-missing p { margin-top: 8px; color: var(--ink-soft); }

.whereabouts { display: grid; gap: 40px; align-items: start; }
.siblings .display { margin-bottom: 16px; }
.siblings__list { display: flex; flex-wrap: wrap; gap: 8px; }
.sibling { display: grid; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.sibling__floor { font-weight: 600; }
.sibling__status { color: var(--ink-faint); }
.sibling--available .sibling__status { color: var(--green-deep); font-weight: 600; }
.sibling:hover { border-color: var(--ink); }
.sibling.is-current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- interactive plan ---------- */

.nacrt { position: relative; }
.nacrt__views { display: none; gap: 4px; margin-bottom: 14px; }
.nacrt__view { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font: 500 14px var(--font); color: var(--ink-soft); cursor: pointer; }
.nacrt__view.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 979px) {
  .nacrt__views { display: flex; }
  .nacrt[data-pane="spec"] .nacrt__drawing, .nacrt[data-pane="plan"] .nacrt__spec { display: none; }
}
.nacrt__body { display: grid; gap: 28px; }
@media (min-width: 980px) { .nacrt__body { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 48px; align-items: start; } }
.nacrt__drawing { display: grid; justify-items: center; gap: 12px; }
.nacrt__svg { display: block; width: 100%; height: auto; max-height: 72vh; overflow: visible; touch-action: manipulation; }
.nacrt__readout { min-height: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: .45em; font-size: 13.5px; color: var(--ink-faint); text-align: center; }
.nacrt__readout b { display: none; }
.nacrt__readout strong { color: var(--ink); font-weight: 600; text-transform: none; }

.plan-lines { pointer-events: none; }
.plan-room { cursor: pointer; outline: none; }
.plan-room__floor { fill: transparent; }
.plan-room__deck { pointer-events: none; display: none; }
.plan-room__edge { fill: var(--room); fill-opacity: 0; stroke: var(--ink); stroke-opacity: 0; stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill-opacity .18s, stroke-opacity .18s; }
.plan-room:hover .plan-room__edge, .plan-room.is-active .plan-room__edge { fill: var(--green); fill-opacity: .6; stroke: var(--green-deep); stroke-opacity: 1; }
.plan-tag, .plan-select, .plan-cursor { display: none; }
.nacrt[data-view="render"] .plan-lines { display: none; }
.hatch-ground { fill: var(--card); }
.hatch-line { fill: var(--ink); fill-opacity: .4; }
.plan-walls { stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.plan-cut { fill: var(--card); }
.plan-window { fill: var(--card); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-window__pane { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-door__leaf { stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.plan-door__swing { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }

.nacrt__spec { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.nacrt__spec-head { display: flex; justify-content: space-between; padding-bottom: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.nacrt__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.spec-row { display: block; width: 100%; padding: 10px 12px; border: 0; background: color-mix(in srgb, var(--room) 24%, var(--card)); color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: background .18s; }
.spec-row__line { display: flex; align-items: baseline; gap: 10px; }
.spec-row__swatch { display: none; }
.spec-row__name { flex: 1; font-size: 13.5px; font-weight: 500; }
.spec-row__m2 { font-size: 14px; font-weight: 600; white-space: nowrap; }
.spec-row:hover, .spec-row.is-active { background: color-mix(in srgb, var(--room) 52%, var(--card)); }
.spec-row[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--ink); }
.spec-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.nacrt__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nacrt__total strong { font-size: 22px; font-weight: 700; letter-spacing: -.01em; text-transform: none; white-space: nowrap; }
.nacrt__note { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--ink-faint); }
.nacrt__leader { display: none; }

/* ---------- compare ---------- */

.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.compare { position: relative; overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; -webkit-overflow-scrolling: touch; }
.compare__table { width: 100%; min-width: calc(150px + var(--cols) * 220px); border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); table-layout: fixed; }
.compare__table th, .compare__table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare__table tbody th { width: 170px; font-size: 14px; font-weight: 600; color: var(--ink-soft); position: sticky; left: 0; z-index: 1; background: var(--card); }
.compare__table tbody th small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-faint); }
.compare__corner { width: 170px; }
.compare__head { vertical-align: bottom; }
.compare__head-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.compare__building { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.compare__flat { display: block; font: 400 26px/1.15 var(--display); text-decoration: none; }
.compare__remove { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--ink-faint); }
.compare__remove:hover { color: var(--ink); }
.compare__plans td { vertical-align: bottom; }
.compare-plan { display: block; }
.compare-plan svg { display: block; width: 100%; height: auto; overflow: visible; }
.compare-plan .plan-crop { position: relative; inset: auto; display: block; width: 100%; }
.compare__key strong { font: 400 22px/1.15 var(--display); }
.compare__table td.is-best { background: color-mix(in srgb, var(--green) 26%, var(--card)); }
.compare__group th { position: static; padding-top: 22px; font-size: 12px !important; letter-spacing: .1em; text-transform: uppercase; color: var(--ink) !important; background: var(--card); }
.compare__room th { display: table-cell; }
.compare__swatch { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 2px; background: var(--room); }
.compare__m2 { font-weight: 600; }
.compare__bar { display: block; height: 5px; margin-top: 8px; background: linear-gradient(90deg, var(--room) var(--share), var(--wash) var(--share)); }
.compare__none { color: var(--ink-faint); }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__more { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

.pager { display: flex; justify-content: space-between; gap: 12px; padding-top: 36px; padding-bottom: 36px; font-weight: 500; font-size: 15px; }
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }

/* ---------- enquiry side panel ---------- */

.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

.has-drawer, .has-drawer body { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(12, 17, 23, .55); opacity: 0; transition: opacity .4s var(--ease); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(540px, 100%); padding: 28px 24px 24px; overflow-y: auto; overscroll-behavior: contain; color: var(--paper); background: var(--night); box-shadow: -30px 0 60px -20px rgba(12, 17, 23, .45); transform: translateX(100%); transition: transform .45s var(--ease); }
@media (min-width: 720px) { .drawer__panel { padding: 40px 48px 32px; } }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { position: absolute; top: 18px; right: 18px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(242, 245, 251, .1); cursor: pointer; transition: background .2s; }
.drawer__close::before, .drawer__close::after { content: ""; position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; background: #fff; transform: rotate(45deg); }
.drawer__close::after { transform: rotate(-45deg); }
.drawer__close:hover { background: rgba(242, 245, 251, .2); }
.drawer__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.drawer__logo { position: relative; align-self: flex-start; height: 42px; margin-bottom: 32px; }
.drawer__body, .drawer__done { position: relative; }
.drawer__title { font-family: var(--display); font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.drawer__lede { margin-top: 10px; font-size: 16px; color: rgba(242, 245, 251, .8); max-width: 30em; }
.drawer__about[hidden] { display: none; }
.drawer__about { display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 2px; background: var(--green); color: var(--ink); font-size: 14px; }
.drawer__form { display: grid; gap: 14px; margin-top: 26px; }
.drawer__field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.drawer__field small { font-weight: 400; color: rgba(242, 245, 251, .6); }
.drawer__field input, .drawer__field textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(242, 245, 251, .32); border-radius: var(--radius-sm); background: transparent; color: #fff; font: inherit; font-size: 16px; transition: border-color .2s; }
.drawer__field textarea { resize: vertical; min-height: 88px; }
.drawer__field ::placeholder { color: rgba(242, 245, 251, .5); }
.drawer__field input:focus, .drawer__field textarea:focus { outline: none; border-color: var(--green); }
.drawer__field [aria-invalid="true"] { border-color: #fff; border-width: 2px; }
.drawer__error { justify-self: start; padding: 4px 10px; border-radius: 2px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; }
.drawer__alert { padding: 12px 14px; border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-weight: 600; }
.drawer__alert[hidden] { display: none; }
.drawer__send { margin-top: 6px; }
.drawer__send:disabled { opacity: .75; cursor: progress; }
.drawer__note { font-size: 13px; color: rgba(242, 245, 251, .7); }
.drawer__done { display: grid; justify-items: start; gap: 6px; margin-top: 8px; outline: none; }
.drawer__done[hidden] { display: none; }
.drawer__done .button { margin-top: 18px; }
.drawer__done-icon { position: relative; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: var(--green); animation: pop .6s var(--ease) both; }
.drawer__done-icon::after { content: ""; position: absolute; left: 21px; top: 20px; width: 22px; height: 12px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }
.drawer__call { position: relative; margin-top: auto; padding-top: 28px; font-size: 15px; color: rgba(242, 245, 251, .75); }
.drawer__call a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(242, 245, 251, .5); }

/* ---------- scroll reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); animation: reveal-fallback 0s 3s forwards; }
.js [data-reveal].is-in { opacity: 1; transform: none; animation: none; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; animation: none; }
}
