/* ==========================================================================
   KG-DEV Residences — homepage styles
   --------------------------------------------------------------------------
   Design tokens are read from the reference theme (belgradewaterfront.com,
   css/main.min.css + page inline styles, root font-size 10px there):
     body            Sweet Sans Pro 400, line-height 2, color #282827
     headings        Domaine Sans Text 700 (content headings 600, uppercase)
     h2-line kicker  15px / 400 / letter-spacing 5px / #666, ::after 50×4px #c09b80, margin 10px auto
     h1 / h2         28px / 25px, line-height 1.2
     links           #c09b80 → hover #282827 + underline
     .button-gold    2px solid #c09b80, transparent, #282828 text, 12px, 600, uppercase,
                     padding 7px 15px, min-width 200px, radius 0; hover: fill #c09b80, white text
     menu links      12px / 500 / uppercase / white, current item #c09b80 600
     sections        padding 75px 0, light band #f3f3f3, card padding 24px 30px
     footer          #282827, white text, titles #c09b80 14px uppercase, links 13px uppercase
     radius          0 (pills 999px)
   Adjustments: commercial fonts replaced by free Red Hat Display (headings) and
   Montserrat (body/UI); accent darkened to #8e6547 where it is text on light
   backgrounds, and filled accent buttons use dark ink text (WCAG AA).
   ========================================================================== */

:root {
  /* palette */
  --ink-rgb: 40, 40, 39;
  --c-ink: rgb(var(--ink-rgb));
  --c-ink-2: #2e2d2c;          /* reference secondary dark */
  --c-ink-3: #3a3937;
  --c-accent: #c09b80;         /* reference gold */
  --c-accent-deep: #8e6547;    /* same hue, 5.1:1 on white — accent text on light */
  --c-accent-light: #e6d5c8;   /* light tint for strokes on photos */
  --c-grey: #666666;           /* reference kicker grey */
  --c-line: #eeeeee;           /* reference hairlines */
  --c-light: #f3f3f3;          /* reference light section */
  --c-paper: #ffffff;
  --c-text-muted: #4a4948;
  --c-plan-border: #d5d2cf;
  --c-plan-highlight: #f9f6f2;
  --c-plan-shadow: #e7e2dd;
  --c-field-border: #8a8987;   /* 3.5:1 on white, non-text contrast */
  --c-error: #a3322a;
  --c-available: #7fb08a;
  --c-reserved: #d9a441;
  --c-sold: #c8756a;

  /* typography */
  --font-heading: "Red Hat Display", "Domaine Sans Text", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Sweet Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-body: 2;                /* reference body line-height */
  --lh-text: 1.75;
  --lh-heading: 1.2;           /* reference h1/h2 */
  --fs-kicker: 15px;           /* reference h2-line */
  --ls-kicker: 5px;            /* reference h2-line */
  --fs-ui: 12px;               /* reference menu + buttons */
  --ls-ui: 0.06em;
  --fs-footer: 13px;           /* reference footer links */
  --fs-footer-title: 14px;     /* reference footer titles */

  /* shape & rhythm */
  --radius: 0;
  --radius-pill: 999px;
  --portfolio-size: 64px;
  --portfolio-right: max(clamp(14px, 2vw, 26px), env(safe-area-inset-right));
  --portfolio-bottom: max(clamp(14px, 2vw, 26px), env(safe-area-inset-bottom));
  --portfolio-dialog-bottom: calc(var(--portfolio-bottom) + var(--portfolio-size) + 12px);
  --border: 2px;               /* reference button border */
  --section-pad: 75px;         /* reference vc section padding */
  --gutter: 20px;
  --container: 1200px;
  --header-inset: 12px;
  --header-h: 56px;
  --header-offset: calc(var(--header-inset) + var(--header-h));

  /* glass */
  --glass: rgba(var(--ink-rgb), 0.52);
  --glass-dense: rgba(var(--ink-rgb), 0.9);
  --glass-card: rgba(var(--ink-rgb), 0.74);
  --glass-border: rgba(255, 255, 255, 0.16);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-curtain: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Palette samples use the same colors as the page themes. */
[data-palette="bronze"] {
  --c-ink: #282827;
  --c-accent: #c09b80;
  --c-paper: #ffffff;
}

:root[data-theme="coast"],
[data-palette="coast"] {
  --ink-rgb: 21, 44, 58;
  --c-ink: rgb(var(--ink-rgb));
  --c-ink-2: #1e3a4b;
  --c-ink-3: #2c4d62;
  --c-accent: #93c8db;
  --c-accent-deep: #265b72;
  --c-accent-light: #d8edf5;
  --c-grey: #4e6570;
  --c-line: #d3e1e7;
  --c-light: #e8f2f5;
  --c-paper: #f8fcfd;
  --c-field-border: #6e828a;
  --c-text-muted: #3b535f;
  --c-plan-border: #bdcfd7;
  --c-plan-highlight: #eff8fb;
  --c-plan-shadow: #d3e3eb;
}

:root[data-theme="olive"],
[data-palette="olive"] {
  --ink-rgb: 40, 50, 38;
  --c-ink: rgb(var(--ink-rgb));
  --c-ink-2: #333f30;
  --c-ink-3: #43513c;
  --c-accent: #bdc793;
  --c-accent-deep: #4b5b35;
  --c-accent-light: #e4e9d0;
  --c-grey: #59634f;
  --c-line: #dddccf;
  --c-light: #eeece1;
  --c-paper: #faf8f1;
  --c-field-border: #778069;
  --c-text-muted: #464f3f;
  --c-plan-border: #cccebd;
  --c-plan-highlight: #f6f3e8;
  --c-plan-shadow: #e0e2d3;
}

:root[data-theme="limestone"],
[data-palette="limestone"] {
  --ink-rgb: 53, 51, 46;
  --c-ink: rgb(var(--ink-rgb));
  --c-ink-2: #45423a;
  --c-ink-3: #575347;
  --c-accent: #d5c8ab;
  --c-accent-deep: #675537;
  --c-accent-light: #eee5d2;
  --c-grey: #625d52;
  --c-line: #e7dfd2;
  --c-light: #f2eee6;
  --c-paper: #fffdf8;
  --c-field-border: #82796a;
  --c-text-muted: #504a40;
  --c-plan-border: #d9d1c2;
  --c-plan-highlight: #fcf8ef;
  --c-plan-shadow: #e6decf;
}

:root[data-theme="terracotta"],
[data-palette="terracotta"] {
  --ink-rgb: 59, 34, 29;
  --c-ink: rgb(var(--ink-rgb));
  --c-ink-2: #503028;
  --c-ink-3: #663b30;
  --c-accent: #e6a18a;
  --c-accent-deep: #873e30;
  --c-accent-light: #f6d8cd;
  --c-grey: #6d574f;
  --c-line: #edd9cf;
  --c-light: #f7eae3;
  --c-paper: #fffbf7;
  --c-field-border: #96726a;
  --c-text-muted: #65483d;
  --c-plan-border: #dfc3b9;
  --c-plan-highlight: #fff3eb;
  --c-plan-shadow: #ecd7ce;
}

:root[data-theme="dusk"],
[data-palette="dusk"] {
  --ink-rgb: 43, 33, 58;
  --c-ink: rgb(var(--ink-rgb));
  --c-ink-2: #392c48;
  --c-ink-3: #4b3b5b;
  --c-accent: #c7b1df;
  --c-accent-deep: #64477c;
  --c-accent-light: #ebe0f4;
  --c-grey: #605668;
  --c-line: #e3d9e9;
  --c-light: #efe9f4;
  --c-paper: #fdfaff;
  --c-field-border: #80738c;
  --c-text-muted: #51445d;
  --c-plan-border: #d4c7df;
  --c-plan-highlight: #f9f2ff;
  --c-plan-shadow: #e3daec;
}

@media (min-width: 768px) {
  :root { --gutter: 30px; }
}

/* --------------------------------------------------------------------------
   Fonts (self-hosted, Latin subset, variable)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/red-hat-display-latin-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/red-hat-display-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Latin Extended (Serbian č ć š ž đ). Browsers only download these when such characters are on the page. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/red-hat-display-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/red-hat-display-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--c-ink);
}

html.is-loading,
html.is-loading body { overflow: hidden; }

body {
  margin: 0;
  overflow-x: clip;           /* never overflow: hidden — it would break the sticky reveal stage */
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

p { margin: 0; }

a { color: var(--c-accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--c-ink); }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}
[data-tone="light"] :focus-visible { outline-color: var(--c-accent-deep); }

main:focus { outline: none; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--c-accent);
  color: var(--c-ink);
  font: var(--fw-semibold) var(--fs-ui) / 1.2 var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--ls-ui);
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; color: var(--c-ink); }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* pointer-dependent copy */
.hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}

/* --------------------------------------------------------------------------
   Wordmark
   -------------------------------------------------------------------------- */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { color: #fff; }
a.wordmark { justify-content: center; min-height: 44px; }
.wordmark__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 19px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-right: -0.3em;
}
.wordmark__sub {
  margin-top: 5px;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 10px;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   Buttons — reference .button-gold
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  border: var(--border) solid var(--c-accent);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--sm { min-height: 44px; padding: 10px 18px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--c-accent); color: var(--c-ink); }
.btn--primary:hover { background: transparent; color: #fff; }
[data-tone="light"] .btn--primary:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.btn--ghost { background: transparent; color: #fff; }
.btn--ghost:hover { background: var(--c-accent); color: var(--c-ink); }

.btn--ghost-dark { background: transparent; color: var(--c-ink); }
.btn--ghost-dark:hover { background: var(--c-accent); color: var(--c-ink); }

.btn__arrow { width: 16px; height: 16px; flex: none; }

/* --------------------------------------------------------------------------
   Section headings — reference h2-line kicker + uppercase title
   -------------------------------------------------------------------------- */
.section { padding: calc(var(--header-offset) + 24px) 0 calc(var(--section-pad) * 0.7); }
@media (min-width: 768px) { .section { padding: max(var(--section-pad), calc(var(--header-offset) + 28px)) 0 var(--section-pad); } }

.section-head { max-width: 760px; margin: 0 auto; text-align: center; }

.kicker {
  margin: 0;
  color: var(--c-grey);
  font-family: var(--font-body);
  font-size: var(--fs-kicker);
  font-weight: var(--fw-regular);
  line-height: 1.4;
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
}
.kicker::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  margin: 10px auto;
  background: var(--c-accent);
}
.kicker--left::after { margin-left: 0; }

.section-title {
  margin-top: 14px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-lead {
  margin-top: 16px;
  color: var(--c-grey);
  line-height: var(--lh-text);
}

/* --------------------------------------------------------------------------
   6.1 Splash
   -------------------------------------------------------------------------- */
.splash { display: none; }
html.js .splash {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--c-ink);
  color: #fff;
  will-change: transform;
}
.splash__inner { display: grid; justify-items: center; gap: 28px; width: min(260px, 70vw); }
.wordmark--splash { align-items: center; }
.wordmark--splash .wordmark__name { font-size: 30px; }
.wordmark--splash .wordmark__sub { font-size: 11px; margin-top: 8px; margin-right: -0.46em; }
.splash__bar {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.splash__fill {
  display: block;
  height: 100%;
  background: var(--c-accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.splash__pct {
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}
html.js .splash.is-leaving {
  transform: translateY(-100%);
  transition: transform 1s var(--ease-curtain);
}
html.js .splash.is-done,
html.splash-failsafe .splash { display: none; }
html.splash-failsafe .hero__content > *,
html.splash-failsafe .hero__scrim { opacity: 1 !important; transform: none !important; }

/* --------------------------------------------------------------------------
   6.2 Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: var(--header-inset);
  left: var(--header-inset);
  right: var(--header-inset);
  z-index: 50;
  max-width: 1240px;
  margin: 0 auto;
  color: #fff;
  transition: transform 0.8s var(--ease-out);
}
html.is-loading .site-header { transform: translateY(calc(-100% - 2 * var(--header-inset))); }

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding: 0 8px 0 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.site-header.is-dense .site-header__bar { background: var(--glass-dense); }
.site-header--transparent-at-top:not(.is-scrolled) .site-header__bar {
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: transparent;
}

.site-header__brand .wordmark__name { font-size: 16px; }
.site-header__brand .wordmark__sub { font-size: 9px; margin-top: 4px; }

@media (max-width: 480px) {
  .site-header__bar { gap: 8px; }
  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav__link:hover { color: var(--c-accent); }
.site-nav__link[aria-current="true"] { color: var(--c-accent); font-weight: var(--fw-semibold); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font: var(--fw-medium) var(--fs-ui) / 1 var(--font-body);
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; display: block; width: 20px; height: 10px; }
.menu-toggle__icon span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 4.25px; transform: rotate(-45deg); }

.site-header__cta { display: none; }

/* language + theme pickers and the CTA, grouped so the links can sit in the centre on desktop */
.site-header__actions { display: flex; align-items: center; gap: 2px; }
.site-header__actions .site-header__cta { margin-left: 12px; }

/* language switch (built by js/i18n.js) */
.lang-switch { position: relative; flex: none; }
html:not(.js) .lang-switch { display: none; }
.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font: var(--fw-medium) var(--fs-ui) / 1 var(--font-body);
  letter-spacing: var(--ls-ui);
  cursor: pointer;
  transition: color 0.2s ease;
}
.lang-switch__toggle:hover,
.lang-switch.is-open .lang-switch__toggle { color: var(--c-accent); }
.lang-flag {
  display: block;
  flex: none;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.lang-switch__chevron { width: 9px; height: 6px; flex: none; transition: transform 0.2s ease; }
.lang-switch.is-open .lang-switch__chevron { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 2;
  min-width: 172px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--glass-dense);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font: var(--fw-medium) 13px / 1 var(--font-body);
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
}
.lang-switch__option:hover { background: rgba(255, 255, 255, 0.08); }
.lang-switch__option[aria-current="true"] { color: var(--c-accent); font-weight: var(--fw-semibold); }

/* Theme picker */
.theme-switch { position: relative; flex: none; }
.theme-switch__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font: var(--fw-semibold) var(--fs-ui) / 1 var(--font-body);
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  cursor: pointer;
}
.theme-switch__toggle:hover,
.theme-switch__toggle[aria-expanded="true"] { color: var(--c-accent); }
.theme-switch__icon {
  width: 17px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent) 50%, transparent 50%);
}
.theme-switch__chevron {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.theme-switch__toggle[aria-expanded="true"] .theme-switch__chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}
/* icon + chevron only, so the centred links keep room in every language; the label stays for screen readers */
.theme-switch__toggle { gap: 6px; padding-inline: 6px; }
.theme-switch__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.theme-switch__options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 3;
  width: 240px;
  max-height: calc(100dvh - var(--header-offset) - 16px);
  margin: 0;
  padding: 6px;
  overflow: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 1px solid var(--c-plan-border);
  border-radius: 12px;
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: 0 10px 36px rgba(var(--ink-rgb), 0.22);
}
@media (max-width: 480px) {
  .theme-switch { position: static; }
  .theme-switch__options {
    top: calc(100% + 4px);
    right: 8px;
    max-width: calc(100% - 16px);
  }
}
.theme-option {
  display: grid;
  grid-template-columns: auto 1fr 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: var(--fw-semibold) 0.875rem / 1.3 var(--font-body);
  text-align: start;
  cursor: pointer;
}
.theme-option:hover { background: var(--c-light); }
.theme-option[aria-pressed="true"] {
  border-color: var(--c-plan-border);
  background: var(--c-light);
  color: var(--c-accent-deep);
}
.theme-option:focus-visible {
  outline-color: var(--c-accent-deep);
  outline-offset: -2px;
}
.theme-option__swatch {
  width: 26px;
  height: 26px;
  border: 1px solid var(--c-plan-border);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-ink) 38%, var(--c-accent) 38% 63%, var(--c-paper) 63%);
}
.theme-option[aria-pressed="true"] .theme-option__check {
  justify-self: center;
  width: 6px;
  height: 11px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

/* collapsed navigation (≤ 960px) */
@media (max-width: 960px) {
  /* full-height sheet under the bar */
  .site-nav {
    --menu-line: color-mix(in srgb, var(--c-accent) 26%, transparent);
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: -1px;
    right: -1px;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--header-h) - 2 * var(--header-inset) + 1px);
    padding: 28px clamp(22px, 6vw, 40px) max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(120% 55% at 100% 0%, color-mix(in srgb, var(--c-accent) 16%, transparent), transparent 70%),
      rgb(var(--ink-rgb));
    border: 1px solid var(--menu-line);
    border-top-color: transparent;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.55s var(--ease-curtain), opacity 0.3s ease, visibility 0s linear 0.55s;
  }
  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    clip-path: inset(0);
    transition: clip-path 0.55s var(--ease-curtain), opacity 0.2s ease;
  }
  .site-header.is-open .site-header__bar,
  .site-header--transparent-at-top.is-open:not(.is-scrolled) .site-header__bar {
    background-color: rgb(var(--ink-rgb));
    border-color: color-mix(in srgb, var(--c-accent) 26%, transparent);
  }
  html.menu-open { overflow: hidden; }

  .site-nav__list { counter-reset: menu; }
  .site-nav__list li {
    counter-increment: menu;
    border-bottom: 1px solid var(--menu-line);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  }
  .site-nav__list li:first-child { border-top: 1px solid var(--menu-line); }
  .site-header.is-open .site-nav__list li {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
  }
  .site-header.is-open .site-nav__list li:nth-child(1) { transition-delay: 0.12s; }
  .site-header.is-open .site-nav__list li:nth-child(2) { transition-delay: 0.18s; }
  .site-header.is-open .site-nav__list li:nth-child(3) { transition-delay: 0.24s; }
  .site-header.is-open .site-nav__list li:nth-child(4) { transition-delay: 0.3s; }

  .site-nav__link {
    gap: 18px;
    min-height: 72px;
    padding: 0 2px;
    font-family: var(--font-heading);
    font-size: clamp(18px, 6.4vw, 30px);
    font-weight: var(--fw-medium);
    letter-spacing: 0.04em;
    line-height: 1.1;
  }
  .site-nav__link::before {
    content: counter(menu, decimal-leading-zero);
    flex: none;
    width: 22px;
    color: var(--c-accent);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.14em;
  }
  .site-nav__link::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    opacity: 0.35;
    transform: rotate(45deg);
    transition: opacity 0.2s ease, transform 0.25s var(--ease-out);
  }
  @media (max-width: 360px) { .site-nav__link { gap: 12px; } }
  .site-nav__link:hover::after,
  .site-nav__link[aria-current="true"]::after { opacity: 1; transform: translateX(3px) rotate(45deg); }
  .site-nav__link[aria-current="true"] { font-weight: var(--fw-medium); }

  .site-nav__cta-mobile,
  .site-nav__meta {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .site-header.is-open .site-nav__cta-mobile,
  .site-header.is-open .site-nav__meta { opacity: 1; transition: opacity 0.5s ease 0.38s; }
  .site-nav__cta-mobile { display: flex; min-height: 52px; margin: auto 0 0; padding-top: 14px; padding-bottom: 14px; }
  .site-nav__list { margin-bottom: 32px; }
  .site-nav__meta {
    display: grid;
    gap: 6px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--menu-line);
    font-size: 13px;
    line-height: 1.5;
  }
  .site-nav__meta-title {
    margin: 0 0 4px;
    color: var(--c-accent);
    font-size: 11px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .site-nav__meta a { color: rgba(255, 255, 255, 0.78); text-decoration: none; justify-self: start; }
  .site-nav__meta a:hover { color: #fff; }
  html:not(.js) .site-nav { display: none; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-header__cta { display: inline-flex; }
  /* Keep the preference controls in the bar beside the menu button. */
  .site-header__actions { margin-left: auto; }
  .site-header__actions .site-header__cta { order: 1; margin: 0 10px 0 0; }
  .lang-switch { order: 2; }
  .theme-switch { order: 3; }
  .menu-toggle { margin-left: 0; }
}
@media (max-width: 480px) {
  .lang-switch__toggle { justify-content: center; padding: 0; }
  .lang-switch__code,
  .lang-switch__chevron { display: none; }
}
@media (min-width: 640px) and (max-width: 960px) {
  .site-header__cta { display: inline-flex; }
  .site-nav__cta-mobile { display: none; }
  /* room for the longer Serbian and German CTA labels */
  .lang-switch__toggle { gap: 6px; padding: 0 8px; }
  .lang-switch__code { display: none; }
  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (min-width: 961px) {
  .site-nav__meta { display: none; }
  /* brand | links (centred) | pickers + CTA */
  .site-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; padding-inline: 13px; }
  .site-header__brand { justify-self: start; }
  .site-header__actions { justify-self: end; }
  .site-nav__list { display: flex; align-items: center; }
  .site-nav__cta-mobile { display: none; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .site-nav__link { padding: 0 12px; white-space: nowrap; }
}
/* narrow desktop: keep links, language switch and CTA on one line in every language */
@media (min-width: 961px) and (max-width: 1199px) {
  .site-header__bar { gap: 10px; }
  .site-nav__link { padding: 0 9px; }
  .lang-switch__toggle { gap: 6px; padding: 0 8px; }
  .lang-switch__code { display: none; }
  .site-header__cta { padding-left: 14px; padding-right: 14px; }
}

.portfolio-signature {
  flex: none;
  width: 42px;
  height: 34px;
  object-fit: cover;
  /* Crop the sparkle and suppress the faint rule while retaining the signature. */
  clip-path: inset(9.5% 0 0);
  filter: grayscale(1) contrast(1.8) brightness(1.35);
  mix-blend-mode: screen;
}
.portfolio-badge:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 45;
  right: var(--portfolio-right);
  bottom: var(--portfolio-bottom);
  width: var(--portfolio-size);
  height: var(--portfolio-size);
  gap: 2px;
  padding: 0 0 2px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--c-accent);
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 14%,
    color-mix(in srgb, var(--c-ink) 80%, var(--c-accent)) 0%,
    var(--c-ink) 55%,
    color-mix(in srgb, var(--c-ink) 60%, #000) 100%);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.38),
    inset 0 0 0 3px var(--c-ink),
    inset 0 0 0 4px color-mix(in srgb, var(--c-accent) 48%, var(--c-ink));
  color: var(--c-accent-light);
  font: var(--fw-bold) 9px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.portfolio-badge:hover {
  border-color: var(--c-accent-light);
  box-shadow: 0 5px 24px rgba(0, 0, 0, 0.46),
    inset 0 0 0 3px var(--c-ink),
    inset 0 0 0 4px var(--c-accent);
}
html.is-loading .portfolio-badge { visibility: hidden; }

.portfolio-dialog {
  position: fixed;
  inset: auto var(--portfolio-right) var(--portfolio-dialog-bottom) auto;
  width: min(414px, calc(100% - var(--portfolio-right) - max(14px, env(safe-area-inset-left))));
  max-width: none;
  max-height: calc(100dvh - var(--portfolio-dialog-bottom) - max(14px, env(safe-area-inset-top)));
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid color-mix(in srgb, var(--c-accent) 60%, var(--c-ink));
  border-radius: 12px;
  background: radial-gradient(ellipse at top right,
    color-mix(in srgb, var(--c-ink) 84%, var(--c-accent)),
    var(--c-ink) 58%);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.42);
  color: var(--c-paper);
}
.portfolio-dialog::backdrop {
  background: rgba(var(--ink-rgb), 0.52);
  backdrop-filter: blur(3px);
}
.portfolio-dialog__content { padding: clamp(21px, 5vw, 30px); }
.portfolio-dialog__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid color-mix(in srgb, var(--c-accent) 42%, transparent);
}
.portfolio-dialog h2 {
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.portfolio-dialog h2:focus { outline: none; }
.portfolio-dialog p {
  margin-top: 13px;
  color: var(--c-accent-light);
  font-size: 14px;
  line-height: 1.62;
}
.portfolio-dialog form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 18px;
}
.portfolio-dialog__contact {
  border-width: 1px;
  border-radius: 5px;
  white-space: normal;
  text-align: center;
}
.portfolio-dialog__close {
  margin-inline-start: auto;
  padding-inline: 20px;
  border: 1px solid var(--c-accent);
  border-radius: 5px;
  color: var(--c-accent-light);
}
.portfolio-dialog__close:hover {
  background: var(--c-accent-light);
  border-color: var(--c-accent-light);
  color: var(--c-ink);
}
@media (max-height: 400px) {
  .portfolio-dialog { --portfolio-dialog-bottom: var(--portfolio-bottom); }
  .portfolio-dialog__content { padding: 18px 22px; }
  .portfolio-dialog p { line-height: 1.5; }
}

/* --------------------------------------------------------------------------
   6.3 Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--c-ink);
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  background: var(--c-ink) url("../assets/img/hero-poster.webp") 50% 50% / cover no-repeat;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero__video.is-playing { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(24, 23, 22, 0.86) 0%, rgba(24, 23, 22, 0.42) 34%, rgba(24, 23, 22, 0) 62%),
    linear-gradient(to right, rgba(24, 23, 22, 0.72) 0%, rgba(24, 23, 22, 0.3) 38%, rgba(24, 23, 22, 0) 62%);
}
html.js .hero__scrim { opacity: 0; transition: opacity 1.4s ease; }
html.js .hero.is-text-in .hero__scrim { opacity: 1; }

.hero__content {
  position: absolute;
  left: max(var(--gutter), env(safe-area-inset-left));
  bottom: max(56px, 10vh);
  width: min(560px, calc(100% - 2 * var(--gutter)));
}
.hero__kicker {
  color: var(--c-accent);
  font-size: var(--fs-ui);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.hero__title {
  margin-top: 14px;
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: var(--fw-bold);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__text {
  margin-top: 18px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: var(--lh-text);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* entrance: the only entrance animation on the page */
html.js .hero__content > * {
  opacity: 0;
  transform: translateY(18px);
}
html.js .hero.is-text-in .hero__content > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.js .hero.is-text-in .hero__content > :nth-child(2) { transition-delay: 0.12s; }
html.js .hero.is-text-in .hero__content > :nth-child(3) { transition-delay: 0.24s; }
html.js .hero.is-text-in .hero__content > :nth-child(4) { transition-delay: 0.36s; }

@media (min-width: 1200px) {
  .hero__content { left: max(48px, calc((100vw - 1240px) / 2 + 18px)); }
}

/* portrait: video in the top 64%, text below on the solid colour */
@media (max-aspect-ratio: 1/1) {
  .hero__media {
    bottom: auto;
    height: 64%;
    background-image: url("../assets/img/hero-poster-mobile.webp");
    background-position: 50% 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  }
  .hero__video { object-position: 50% 0; }
  .hero__scrim { display: none; }
  .hero__content {
    left: var(--gutter);
    right: var(--gutter);
    bottom: max(28px, env(safe-area-inset-bottom));
    width: auto;
    max-width: 640px;
  }
  .hero__kicker { display: none; }
  .hero__title { margin-top: 0; font-size: clamp(26px, 7vw, 46px); }
  .hero__text { margin-top: 12px; font-size: 15px; line-height: 1.6; }
  .hero__actions { margin-top: 20px; }
}
@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
  .hero__actions { flex-direction: column; gap: 10px; }
  html.js .hero__actions {
    max-width: calc(100% + var(--gutter) - var(--portfolio-right) - var(--portfolio-size) - 8px);
  }
  .hero__actions .btn { width: 100%; }
}
@media (max-aspect-ratio: 1/1) and (max-height: 700px) {
  .hero__title { font-size: 24px; }
  .hero__text { font-size: 14px; line-height: 1.5; }
  .hero__actions .btn { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
}

/* short landscape (phone on its side) */
@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
  .hero__content { bottom: 18px; width: min(540px, calc(100% - 2 * var(--gutter))); }
  .hero__kicker { display: none; }
  .hero__title { margin-top: 0; font-size: clamp(22px, 6.2vh, 30px); }
  .hero__text { margin-top: 8px; font-size: 13px; line-height: 1.5; max-width: 500px; }
  .hero__actions { margin-top: 14px; gap: 10px; }
  .hero__actions .btn { min-height: 44px; padding: 10px 18px; }
}

/* --------------------------------------------------------------------------
   6.4 Building reveal
   -------------------------------------------------------------------------- */
.reveal {
  position: relative;
  height: calc(100vh + 190vh);
  height: calc(100svh + 190vh);
  background: var(--c-ink);
  color: #fff;
}
.reveal__stage {
  --p: 0;
  --fade: clamp(0, calc(1 - var(--p) * 3), 1);
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.reveal__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
}
.reveal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 50% 46%, rgba(255, 238, 220, 0.2) 0%, rgba(255, 238, 220, 0.06) 45%, rgba(255, 238, 220, 0) 75%),
    linear-gradient(to bottom, var(--c-ink-3), var(--c-ink-2) 60%, var(--c-ink));
}
/* 16:9 box that covers the frame exactly like object-fit: cover does for the photo */
.reveal__viewer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%);
}
.reveal__viewer canvas { display: block; width: 100%; height: 100%; outline: none; }
.reveal.is-unlocked .reveal__viewer canvas { cursor: grab; }
.reveal.is-unlocked .reveal__viewer canvas:active { cursor: grabbing; }
.reveal__viewer canvas:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -4px; }

.reveal__photo {
  --L: calc(var(--p) * 124%);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, transparent calc(var(--L) - 24%), #000 var(--L));
  mask-image: linear-gradient(to top, transparent calc(var(--L) - 24%), #000 var(--L));
}
.reveal.is-unlocked .reveal__photo { visibility: hidden; }

.reveal__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--fade);
  background: linear-gradient(to top, rgba(24, 23, 22, 0.82) 0%, rgba(24, 23, 22, 0.5) 24%, rgba(24, 23, 22, 0) 52%);
}

.reveal__title {
  position: absolute;
  left: 50%;
  bottom: calc(max(5vh, 22px) + 96px);
  width: min(calc(100% - 2 * var(--gutter)), 880px);
  transform: translateX(-50%);
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  opacity: var(--fade);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.reveal__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(5vh, 22px);
  display: grid;
  grid-template-areas: "hint" "act";
  justify-items: center;
  align-items: center;
  row-gap: 14px;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.reveal__foot > * { pointer-events: auto; }
.scroll-cue, .reveal__cta { grid-area: act; }
.reveal__hint { grid-area: hint; }

.reveal__hint {
  padding: 8px 16px;
  background: rgba(var(--ink-rgb), 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.reveal.is-unlocked:not(.hint-dismissed) .reveal__hint {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease 0.6s;
}

.reveal__cta {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.reveal.is-unlocked .reveal__cta,
.reveal.is-static .reveal__cta {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease 0.3s;
}

/* scroll cue: mouse outline + wheel dot (fine pointers), falling chevron (touch) */
.scroll-cue { position: relative; width: 26px; height: 42px; opacity: var(--fade); pointer-events: none; }
.scroll-cue__mouse {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
}
.scroll-cue__wheel {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--c-accent);
  animation: cue-wheel 1.8s var(--ease-out) infinite;
}
.scroll-cue__chevron {
  display: none;
  position: absolute;
  left: 50%;
  top: 6px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: cue-chevron 1.6s var(--ease-out) infinite;
}
@media (hover: none) and (pointer: coarse) {
  .scroll-cue__mouse { display: none; }
  .scroll-cue__chevron { display: block; }
}
@keyframes cue-wheel {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes cue-chevron {
  0% { transform: translateY(-6px) rotate(45deg); opacity: 0; }
  30% { opacity: 1; }
  80% { transform: translateY(12px) rotate(45deg); opacity: 0; }
  100% { transform: translateY(12px) rotate(45deg); opacity: 0; }
}

/* lower landscape screens: hint and button share one row, keeping the model clear */
@media (min-aspect-ratio: 1/1) and (max-height: 760px) {
  .reveal__foot {
    bottom: max(3.5vh, 14px);
    grid-template-areas: "hint act";
    grid-template-columns: auto auto;
    justify-content: center;
    column-gap: 16px;
  }
  .reveal__title { bottom: calc(max(3.5vh, 14px) + 76px); }
}
/* short landscape (phone on its side) */
@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
  :root { --header-h: 48px; --header-inset: 8px; }
  .reveal__title { bottom: calc(14px + 64px); font-size: clamp(22px, 7vh, 32px); }
  .reveal__cta { min-height: 44px; padding: 10px 20px; }
}

/* portrait: full-width 4:5 band, heading above, cue / button below */
@media (max-aspect-ratio: 1/1) {
  .reveal {
    height: calc(100vh + 150vh);
    height: calc(100svh + 150vh);
  }
  .reveal__stage {
    display: grid;
    grid-template-areas: "head" "band" "foot";
    grid-template-rows: auto auto auto;
    align-content: center;
    row-gap: 18px;
    padding: calc(var(--header-offset) + 10px) 0 max(16px, env(safe-area-inset-bottom));
  }
  .reveal__frame {
    position: relative;
    inset: auto;
    grid-area: band;
    width: 100%;
    height: min(125vw, calc(100svh - 270px));
  }
  .reveal__shade { display: none; }
  .reveal__title {
    position: static;
    grid-area: head;
    width: auto;
    padding: 0 var(--gutter);
    transform: none;
    font-size: clamp(24px, 6.4vw, 40px);
    text-shadow: none;
  }
  .reveal__foot { display: contents; }
  .reveal__hint { grid-area: head; justify-self: center; align-self: center; margin: 0 var(--gutter); }
  .scroll-cue, .reveal__cta { grid-area: foot; justify-self: center; align-self: start; }
  .scroll-cue { margin-top: 4px; }
}

/* static mode: no WebGL2, the viewer failed, or JavaScript is off */
.reveal.is-static,
html:not(.js) .reveal { height: auto; }
.reveal.is-static .reveal__stage,
html:not(.js) .reveal__stage { position: relative; height: 100vh; height: 100svh; }
.reveal.is-static .reveal__title,
.reveal.is-static .scroll-cue,
.reveal.is-static .reveal__hint,
.reveal.is-static .reveal__shade,
html:not(.js) .reveal__title,
html:not(.js) .scroll-cue,
html:not(.js) .reveal__hint,
html:not(.js) .reveal__shade { display: none; }
.reveal.is-static .reveal__photo,
html:not(.js) .reveal__photo { -webkit-mask-image: none; mask-image: none; visibility: visible; }
html:not(.js) .reveal__cta { opacity: 1; visibility: visible; }
@media (max-aspect-ratio: 1/1) {
  .reveal.is-static .reveal__stage,
  html:not(.js) .reveal__stage { height: auto; min-height: 100svh; }
}

/* --------------------------------------------------------------------------
   6.5 Residence picker
   -------------------------------------------------------------------------- */
.picker {
  position: relative;
  background: var(--c-ink);
  color: #fff;
}
.picker__intro { padding: calc(var(--header-offset) + 36px) var(--gutter) 24px; }
.picker__title {
  font-size: clamp(26px, 3.2vw, 44px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.picker__lead { margin-top: 10px; color: rgba(255, 255, 255, 0.86); font-size: 15px; line-height: 1.6; }

.picker__stage { position: relative; }
.picker__frame {
  position: relative;
  height: clamp(56.25vw, 64svh, 125vw);
  overflow: hidden;
  background: var(--c-ink-2);
}
.picker__img,
.picker__svg,
.picker__leader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.picker__img { object-fit: cover; object-position: 50% 50%; }
.picker__svg { overflow: hidden; -webkit-tap-highlight-color: transparent; }
.picker__leader { pointer-events: none; overflow: visible; z-index: 2; }

/* hotspots */
.hs { cursor: pointer; outline: none; }
.hs__shape {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: fill;
  transition: fill 0.25s ease, stroke 0.25s ease;
}
.hs.is-selected .hs__shape {
  fill: rgba(250, 239, 228, 0.32);
  stroke: var(--c-accent-light);
  stroke-width: 2px;
}
.hs:focus-visible .hs__shape { stroke: #fff; }
.hs__marker { transition: opacity 0.25s ease; pointer-events: none; }
.hs.is-selected .hs__marker { opacity: 0; }
.hs__dot { fill: #fff; }
.hs__ring {
  fill: none;
  stroke: #fff;
  transform-box: fill-box;
  transform-origin: center;
  animation: hs-pulse 2.6s var(--ease-out) infinite;
}
.hs--sold .hs__dot { fill: rgba(255, 255, 255, 0.6); }
@keyframes hs-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}
.picker--debug .hs__shape { fill: rgba(250, 239, 228, 0.5); stroke: #ffde59; }

/* leader line (wide layout only) */
.picker__leader { display: none; }
#leader-line { fill: none; stroke: var(--c-accent-light); stroke-width: 1.5; }
#leader-dot { fill: var(--c-accent-light); }
.picker__leader.is-drawing #leader-line { animation: leader-draw 0.6s var(--ease-out) both; }
.picker__leader.is-drawing #leader-dot { animation: leader-dot 0.3s ease both; }
@keyframes leader-draw { from { stroke-dashoffset: var(--len, 400); } to { stroke-dashoffset: 0; } }
@keyframes leader-dot { from { opacity: 0; } to { opacity: 1; } }

/* residence card */
.res-card {
  position: relative;
  z-index: 3;
  margin: -44px var(--gutter) 0;
  scroll-margin-top: calc(var(--header-offset) + 12px);
  max-width: 520px;
  padding: 24px 24px 22px;
  background: var(--glass-card);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: #fff;
}
@media (min-width: 600px) { .res-card { margin-left: auto; margin-right: auto; } }
.picker__stage { padding-bottom: 56px; }
.res-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.res-card__floor {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
}
.res-card__name {
  margin-top: 14px;
  font-size: 26px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.res-card__type { margin-top: 4px; color: var(--c-accent); font-size: 14px; font-weight: var(--fw-medium); }
.res-card__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.fact { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.fact__icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--c-accent); }
.fact__label {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.fact__value { display: block; margin-top: 2px; font-size: 14px; font-weight: var(--fw-semibold); line-height: 1.35; }
.res-card__price {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
}
.res-card__price small { font-family: var(--font-body); font-size: 12px; font-weight: var(--fw-medium); color: rgba(255, 255, 255, 0.75); }
.res-card .btn { margin-top: 16px; }
.res-card__ask {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: var(--c-accent);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.res-card__ask:hover { color: #fff; }
.res-card__noscript { font-size: 15px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-available); flex: none; }
.pill--reserved .pill__dot { background: var(--c-reserved); }
.pill--sold .pill__dot { background: var(--c-sold); }

/* wide layout: photo anchored right, card floats over the sea */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .picker__stage { height: max(100vh, 46vw); height: max(100svh, 46vw); padding-bottom: 0; }
  .picker__frame { position: absolute; inset: 0; height: auto; }
  .picker__img { object-position: 100% 50%; }
  .picker__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(to top, rgba(24, 23, 22, 0.78) 0%, rgba(24, 23, 22, 0.32) 22%, rgba(24, 23, 22, 0) 42%),
      linear-gradient(to right, rgba(24, 23, 22, 0.5) 0%, rgba(24, 23, 22, 0) 34%);
  }
  .picker__svg, .picker__leader { z-index: 1; }
  .picker__leader { display: block; z-index: 2; }
  .picker__intro {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    max-width: 520px;
    padding: 0 0 40px max(var(--gutter), calc((100vw - 1240px) / 2 + 18px));
    pointer-events: none;
  }
  .picker__title { font-size: clamp(26px, 2.6vw, 44px); }
  .picker__lead { font-size: 14px; }
  .res-card {
    position: absolute;
    top: 50%;
    right: max(24px, calc((100vw - 1240px) / 2));
    width: 320px;
    max-width: none;
    margin: 0;
    padding: 22px 22px 18px;
    transform: translateY(-50%);
  }
  .res-card__name { font-size: 24px; }
}

/* --------------------------------------------------------------------------
   6.6 Availability
   -------------------------------------------------------------------------- */
.availability { background: var(--c-paper); }
.cards {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 16px;
  margin: 40px calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter) 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
@media (min-width: 640px) {
  .cards {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 48px 0 0;
    padding: 0;
    overflow: visible;
  }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: 0 16px 40px rgba(var(--ink-rgb), 0.12); }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--c-ink-2);
  background-image: var(--building-img, none);
  background-repeat: no-repeat;
  background-size: 310% auto;
}
.card__media .pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(var(--ink-rgb), 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card__floor {
  color: var(--c-grey);
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.card__title {
  margin-top: 8px;
  font-size: 22px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.card__type { margin-top: 2px; color: var(--c-accent-deep); font-size: 14px; font-weight: var(--fw-medium); }
.card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.card__facts dt { color: var(--c-grey); font-size: 11px; font-weight: var(--fw-medium); letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; }
.card__facts dd { margin: 3px 0 0; font-size: 15px; font-weight: var(--fw-semibold); line-height: 1.3; }
.card__price { margin-top: 16px; font-family: var(--font-heading); font-size: 19px; font-weight: var(--fw-semibold); }
.card__price small { font-family: var(--font-body); font-size: 12px; font-weight: var(--fw-medium); color: var(--c-grey); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--c-ink);
  font-size: var(--fs-ui);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  text-decoration: none;
}
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link svg { width: 16px; height: 16px; color: var(--c-accent-deep); transition: transform 0.2s ease; }
.card:hover .card__link { color: var(--c-accent-deep); }
.card:hover .card__link svg { transform: translateX(4px); }
.card:focus-within { outline: 2px solid var(--c-accent-deep); outline-offset: 3px; }
.card__link:focus-visible { outline: none; }

/* Residence comparison */
.res-card__actions,
.card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 10px;
}
.card__actions { margin-top: auto; padding-top: 10px; }
.card__actions .card__link { margin: 0; padding-top: 0; }
.compare-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-accent-deep);
  font: var(--fw-semibold) 0.875rem / 1.25 var(--font-body);
  cursor: pointer;
}
.compare-toggle::before {
  content: "";
  display: grid;
  place-items: center;
  flex: none;
  width: 17px;
  height: 17px;
  border: 1px solid currentColor;
}
.compare-toggle[aria-pressed="true"]::before {
  content: "✓";
  background: var(--c-accent);
  color: var(--c-ink);
  border-color: var(--c-accent);
}
.res-card .compare-toggle { color: var(--c-accent-light); }
.compare-toggle:disabled { opacity: 0.55; cursor: default; }
.compare-jump:not([hidden]) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-weight: var(--fw-semibold);
}
.comparison {
  padding-block: clamp(48px, 7vw, 96px);
  scroll-margin-top: var(--header-offset);
  background: var(--c-paper);
  border-block: 1px solid var(--c-plan-border);
}
.comparison__header .section-title { margin-top: 0; }
.comparison__header .section-title::before {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  margin-bottom: 14px;
  background: var(--c-accent);
}
.comparison__lead { margin-top: 10px; color: var(--c-text-muted); }
.comparison__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 24px;
}
.comparison__controls [hidden] { display: none; }
.comparison__share:not([hidden]) {
  display: grid;
  max-width: 38rem;
  gap: 4px;
  margin-top: 10px;
}
.comparison__share label,
.comparison__share-status {
  color: var(--c-text-muted);
  font-size: 0.875rem;
}
.comparison__share input {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--c-field-border);
  background: var(--c-paper);
  color: var(--c-ink);
  font: inherit;
}
.comparison__share-status:not(:empty) { margin-top: 6px; }
.comparison__select-wrap {
  min-width: 0;
  width: min(100%, 330px);
}
.comparison__select {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--c-field-border);
  background: var(--c-light);
  color: var(--c-ink);
  font: inherit;
  font-size: 0.875rem;
}
.comparison__controls .btn:disabled {
  background: var(--c-light);
  border-color: var(--c-plan-border);
  color: var(--c-grey);
  cursor: default;
}
.comparison__text-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-accent-deep);
  font: var(--fw-semibold) 0.875rem / 1.25 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.comparison__empty,
.comparison__note,
.comparison__hint {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--c-text-muted);
}
.comparison__table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  margin-top: 10px;
}
.comparison__table-tools .comparison__note { margin-top: 0; }
.comparison__differences:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--c-ink);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  cursor: pointer;
}
.comparison__differences input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--c-accent-deep);
}
.comparison__hint { margin-top: 4px; }
@media (min-width: 386px) {
  .comparison:has(.comparison__table[data-count="2"]) .comparison__hint { display: none; }
}
@media (min-width: 510px) { .comparison__hint { display: none; } }
.comparison__scroll {
  margin-top: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--c-plan-border);
}
.comparison__table {
  --value-column: 1;
  width: 100%;
  min-width: calc(6rem + var(--value-column) * 7.75rem);
  table-layout: fixed;
  border-spacing: 0;
  background: var(--c-paper);
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.45;
}
.comparison__table[data-count="2"] { --value-column: 2; }
.comparison__table[data-count="3"] { --value-column: 3; }
.comparison__table th,
.comparison__table td {
  padding: 12px clamp(8px, 2vw, 24px);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.comparison__table th:first-child {
  position: sticky;
  left: 0;
  width: clamp(6rem, 26vw, 13rem);
}
.comparison__table thead th {
  background: var(--c-ink);
  color: var(--c-paper);
}
.comparison__residence {
  color: var(--c-accent-light);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.375rem);
  text-decoration-thickness: 1px;
}
.comparison__residence:hover { color: var(--c-paper); }
.comparison__type {
  display: block;
  margin-top: 4px;
  font-weight: var(--fw-regular);
}
.comparison__table thead .comparison__text-button { color: var(--c-accent-light); }
.comparison__table thead :focus-visible { outline-color: var(--c-accent-light); }
.comparison__table tbody th {
  background: var(--c-light);
  font-weight: var(--fw-semibold);
}
.comparison__table tbody tr + tr > * { border-top: 1px solid var(--c-plan-border); }
.comparison__table td { border-left: 1px solid var(--c-plan-border); }
.comparison__table [data-compare-field="compare.price"] td { font-weight: var(--fw-bold); }
.comparison-dock[hidden] { display: none; }
.comparison-dock {
  position: fixed;
  z-index: 44;
  bottom: var(--portfolio-bottom);
  left: max(var(--gutter), env(safe-area-inset-left));
  min-height: 44px;
  border-color: var(--c-ink);
  box-shadow: 0 4px 16px rgba(var(--ink-rgb), 0.22);
}
.comparison-dock:hover { background: var(--c-ink); color: var(--c-paper); }

/* --------------------------------------------------------------------------
   6.7 Contact
   -------------------------------------------------------------------------- */
.contact { background: var(--c-light); }
.contact__grid { display: grid; gap: 44px; }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
}
.section-title--left { text-align: left; }
.contact__lead { margin-top: 18px; color: var(--c-text-muted); line-height: var(--lh-body); max-width: 460px; }
.contact__details { margin: 32px 0 0; display: grid; gap: 20px; }
.contact__details dt {
  color: var(--c-grey);
  font-size: var(--fs-ui);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contact__details dd { margin: 4px 0 0; font-size: 16px; line-height: 1.6; }
.contact__details a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-ink); font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.contact__details dd:has(a) { margin-top: -6px; margin-bottom: -6px; }
.contact__details a:hover { color: var(--c-accent-deep); }

.contact__form-wrap {
  background: var(--c-paper);
  padding: 28px 20px;
  border: 1px solid var(--c-line);
}
@media (min-width: 640px) { .contact__form-wrap { padding: 40px 40px 36px; } }

.form:not([hidden]) { display: grid; gap: 20px; }
.form__intent,
.form__viewing {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.form__intent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--c-plan-border);
  background: var(--c-plan-border);
}
.form__intent label { position: relative; display: grid; }
.form__intent label span {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 8px 10px;
  background: var(--c-light);
  color: var(--c-ink);
  text-align: center;
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  cursor: pointer;
}
.form__intent input:checked + span { background: var(--c-ink); color: var(--c-paper); }
.form__intent input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: -3px; }
.form__viewing:not([hidden]) { display: grid; gap: 16px; }
@media (min-width: 580px) {
  .form__viewing:not([hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.form__viewing .field__input { min-width: 0; }
.form__demo-note {
  padding: 12px 14px;
  border-left: 3px solid var(--c-accent-deep);
  background: var(--c-light);
  font-size: 14px;
  line-height: 1.55;
}
.field { display: grid; gap: 8px; }
.field__label {
  font-size: var(--fs-ui);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field__req, .field__opt { color: var(--c-grey); font-weight: var(--fw-regular); letter-spacing: 0.04em; text-transform: none; }
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--c-field-border);
  border-radius: var(--radius);
  background: var(--c-paper);
  color: var(--c-ink);
  font: var(--fw-regular) 16px/1.4 var(--font-body);
  appearance: none;
  -webkit-appearance: none;
}
.field__input:focus { outline: 2px solid var(--c-accent-deep); outline-offset: 0; border-color: var(--c-accent-deep); }
.field__input, .form-done { scroll-margin-top: calc(var(--header-offset) + 48px); }
.field__input--area { min-height: 120px; resize: vertical; }
.field__input[aria-invalid="true"] { border-color: var(--c-error); box-shadow: inset 3px 0 0 var(--c-error); }
.field__select { position: relative; }
.field__select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.field__select .field__input { padding-right: 44px; }
.field__error { color: var(--c-error); font-size: 14px; font-weight: var(--fw-medium); line-height: 1.45; }
.form .btn { margin-top: 6px; }
.form .btn[disabled] { opacity: 0.7; cursor: not-allowed; }

.form-done { outline: none; }
.form-done__title { margin-top: 8px; font-size: 26px; text-transform: uppercase; }
.form-done__text { margin-top: 14px; color: var(--c-text-muted); line-height: var(--lh-text); }
.form-done .btn { margin-top: 24px; }
.form-done:focus-visible { outline: 2px solid var(--c-accent-deep); outline-offset: 8px; }

/* --------------------------------------------------------------------------
   Footer — reference .site-footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-ink);
  color: #fff;
  padding: 64px 0 max(28px, var(--portfolio-dialog-bottom));
}
.site-footer__portfolio { margin-bottom: clamp(32px, 5vw, 60px); }
.portfolio-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid color-mix(in srgb, var(--c-accent) 42%, var(--c-ink));
  border-inline-start: 3px solid var(--c-accent);
  background: linear-gradient(115deg, var(--c-ink-2), var(--c-ink));
}
.portfolio-contact__credit {
  margin-bottom: 6px;
  color: var(--c-accent-light);
  font-size: 0.875rem;
}
.portfolio-contact h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.portfolio-contact__action {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
}
.portfolio-contact__link { max-width: 100%; white-space: normal; text-align: center; }
.site-footer .portfolio-contact__link:hover { color: var(--c-paper); text-decoration: none; }
.portfolio-contact__domain { color: var(--c-accent-light); font-size: 0.8125rem; }
.site-footer__top { display: grid; gap: 36px; }
@media (min-width: 640px) { .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: 2fr 1fr 1.3fr 1fr; } .site-footer__brand { grid-column: auto; } }
.wordmark--footer .wordmark__name { font-size: 20px; }
.site-footer__line { margin-top: 18px; max-width: 340px; color: rgba(255, 255, 255, 0.78); font-size: 14px; line-height: var(--lh-text); }
.site-footer__demo { margin-top: 14px; max-width: 340px; color: var(--c-accent-light); font-size: 13px; line-height: var(--lh-text); }
.site-footer__title {
  color: var(--c-accent);
  font-family: var(--font-body);
  font-size: var(--fs-footer-title);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 14px 0 0; padding: 0; }
.site-footer li { font-size: var(--fs-footer); line-height: 1.4; color: rgba(255, 255, 255, 0.78); }
.site-footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer__col li[data-contact] { padding: 10px 0; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer a:hover { color: var(--c-accent); text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  position: relative;
  margin-top: 48px;
  padding-top: 22px;
}
.site-footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer__copy { color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0 !important; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, 0.86); font-size: 13px; text-decoration: none; }
.site-footer__col a[href^="mailto:"] { text-transform: none; letter-spacing: 0.02em; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .hs__ring, .scroll-cue__wheel, .scroll-cue__chevron { animation: none !important; }
  .hs__ring { opacity: 0.6; }
  .scroll-cue__wheel { opacity: 1; }
  .scroll-cue__chevron { opacity: 1; }
}
