/* =========================================================
   Maison Forth — landing page styles
   Palette: midnight navy #14263D · white #FFFFFF · off-white #F7F7F5
   ========================================================= */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/jost-latin-wght-normal.woff2") format("woff2");
}

:root {
  --navy: #14263d;
  --navy-deep: #0f1e31;
  --white: #ffffff;
  --paper: #f7f7f5;

  --ink: #14263d;
  --ink-soft: #3d4b5e;          /* 8.6:1 on white */
  --ink-muted: #56637a;         /* 6.0:1 on white */
  --line: rgba(20, 38, 61, 0.14);
  --line-strong: rgba(20, 38, 61, 0.32);
  --line-light: rgba(255, 255, 255, 0.2);
  --light-soft: rgba(255, 255, 255, 0.82);

  --error: #9b1c1c;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section: clamp(5.5rem, 12vw, 10.5rem);
  --header-h: 5rem;
  --max: 82rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}
.eyebrow--light { color: var(--light-soft); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}

p { text-wrap: pretty; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.9rem 2rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--navy:focus-visible { outline-color: var(--navy); }

.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--light:focus-visible { outline-color: var(--white); }

.btn--small { min-height: 2.75rem; padding: 0.6rem 1.5rem; font-size: 0.75rem; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

.text-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.5rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease);
}
.text-link:hover { background-size: 40% 1px; }
.text-link--light { color: var(--white); }

.inline-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.inline-link--light { color: var(--light-soft); }
.inline-link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-header__brand { display: block; flex: none; text-decoration: none; }
.wordmark { width: clamp(9.5rem, 16vw, 12rem); height: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.site-nav__list a:not(.btn) {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.5rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease);
}
.site-nav__list a:not(.btn):hover,
.site-nav__list a:not(.btn)[aria-current="true"] { background-size: 100% 1px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 0;
  padding: 0.75rem 0;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-toggle__bars { display: grid; gap: 6px; width: 22px; }
.nav-toggle__bars span {
  display: block; height: 1px; background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 47.99rem) {
  :root { --header-h: 4.25rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 2rem;
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--line); }
  .site-nav__list li:last-child { border-bottom: 0; padding-top: 1.5rem; }
  .site-nav__list a:not(.btn) {
    display: block;
    padding-block: 1.1rem;
    font-size: 0.875rem;
    background-image: none;
  }
  .site-nav__list .btn { width: 100%; min-height: 3.25rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keeps the Burj Khalifa (≈47% across the frame) centred in every crop */
  object-position: 47% 40%;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 38, 61, 0.5);
  z-index: -1;
}
.hero__content {
  padding-block: clamp(4rem, 12vh, 8rem) clamp(3.5rem, 11vh, 7rem);
}
.hero__content > * { max-width: 40rem; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.25rem, 9vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  max-width: 12ch;
}
.hero__lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34rem;
}
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-light);
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2.75rem;
}

@media (max-width: 47.99rem) {
  .hero__image { object-position: 47% 30%; }
  .hero__overlay { background: rgba(20, 38, 61, 0.58); }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Editorial two-column ---------- */
.editorial {
  display: grid;
  gap: 3rem;
}
@media (min-width: 60rem) {
  .editorial {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(4rem, 8vw, 9rem);
    align-items: start;
  }
}
.editorial__body > * + * { margin-top: 1.5rem; }
.editorial__body p:not(.lead):not(.signature) { color: var(--ink-soft); max-width: 36rem; }

/* About */
.about .display { max-width: 11ch; }
.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.3;
  margin-top: 3rem !important;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* ---------- Services ---------- */
.services { background: var(--paper); border-block: 1px solid var(--line); }
.services__intro {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.services__intro .eyebrow { margin-bottom: 0.5rem; }
.services__intro .display { max-width: 14ch; }
.services__summary { color: var(--ink-soft); max-width: 34rem; font-size: 1.125rem; }
@media (min-width: 60rem) {
  .services__intro {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: clamp(4rem, 8vw, 9rem);
  }
  .services__intro .eyebrow { grid-column: 1 / -1; }
}

.service-list { border-top: 1px solid var(--line-strong); }
.service {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding-block: clamp(2rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.service__number {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-muted);
  font-variant-numeric: lining-nums;
}
.service__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  line-height: 1.15;
}
.service__text {
  grid-column: 2;
  color: var(--ink-soft);
  max-width: 38rem;
}
@media (min-width: 60rem) {
  .service {
    grid-template-columns: 6rem minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: baseline;
  }
  .service__text { grid-column: 3; }
}
.services__cta { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* ---------- Dubai split ---------- */
.dubai {
  display: grid;
  background: var(--white);
}
.dubai__media { position: relative; overflow: hidden; background: var(--navy); }
.dubai__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* Burj Khalifa sits ≈34% across the frame */
  object-position: 34% 50%;
}
.dubai__text {
  display: flex;
  align-items: center;
  padding: var(--section) var(--gutter);
}
.dubai__inner { max-width: 34rem; }
.dubai__inner .display { margin-bottom: 2.25rem; max-width: 11ch; }
.dubai__inner p + p { margin-top: 1.25rem; }
.dubai__inner p:not(.lead):not(.eyebrow) { color: var(--ink-soft); }
.dubai__inner .lead { margin-bottom: 2rem; }

@media (min-width: 40rem) and (max-width: 59.99rem) {
  .dubai__image { aspect-ratio: 4 / 3; }
}
@media (min-width: 60rem) {
  .dubai { grid-template-columns: 1fr 1fr; min-height: 44rem; }
  .dubai__image { position: absolute; inset: 0; aspect-ratio: auto; }
  .dubai__text { padding-inline: clamp(3rem, 7vw, 8rem); }
}

/* ---------- Community ---------- */
.community { background: var(--navy); color: var(--white); }
.community .display { margin-bottom: 2.5rem; max-width: 12ch; }
.community .lead { color: var(--white); margin-bottom: 1.5rem; }
.community .editorial__head p:not(.lead):not(.eyebrow) { color: var(--light-soft); max-width: 32rem; }
.community__subhead {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--light-soft);
  padding-bottom: 1.25rem;
}
.community__list { border-top: 1px solid var(--line-light); margin-top: 0 !important; }
.community__list li {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.3;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line-light);
}
.community__note {
  color: var(--light-soft) !important;
  margin-top: 2.5rem !important;
  max-width: 32rem;
}
.community .btn { margin-top: 2.5rem; }

/* ---------- Application ---------- */
.apply { background: var(--paper); }
.apply__grid { display: grid; gap: 3.5rem; }
@media (min-width: 64rem) {
  .apply__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(4rem, 7vw, 8rem);
    align-items: start;
  }
  .apply__intro { position: sticky; top: calc(var(--header-h) + 3rem); }
}
.apply__intro .display { margin-bottom: 2.25rem; max-width: 10ch; }
.apply__intro .lead { margin-bottom: 1.25rem; }
.apply__intro p:not(.lead):not(.eyebrow) { color: var(--ink-soft); }

.apply__panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 5vw, 4rem);
}

.form__required-note {
  font-size: 0.875rem;
  color: var(--ink-muted);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.form__row + .form__row { margin-top: 1.75rem; }
.form__row--split { display: grid; gap: 1.75rem; }
@media (min-width: 40rem) {
  .form__row--split { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.field { display: flex; flex-direction: column; }
.field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 0.65rem;
  padding: 0;
}
.field__optional { text-transform: none; letter-spacing: 0.02em; color: var(--ink-muted); font-weight: 400; }
.field__input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0;
  font-size: 1.0625rem; /* ≥16px prevents iOS zoom */
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
  appearance: none;
}
.field__input::placeholder { color: #6b7688; }
.field__input:hover { border-bottom-color: var(--ink-muted); }
.field__input:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 0 var(--navy); }
.field__input--area {
  resize: vertical;
  min-height: 6rem;
  padding: 0.75rem;
  border: 1px solid var(--line-strong);
  line-height: 1.6;
}
.field__input--area:focus { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.field__input[aria-invalid="true"] { border-color: var(--error); }

.field__error {
  font-size: 0.875rem;
  color: var(--error);
  margin-top: 0.5rem;
  line-height: 1.4;
}
.field__error:empty { display: none; }

.choice-group legend { margin-bottom: 1rem; }
.choice-group__options { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.choice { position: relative; cursor: pointer; }
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  line-height: 1.3;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.choice:hover span { border-color: var(--navy); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }
.choice-group[data-invalid="true"] .choice span { border-color: var(--error); }

.consent {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.9rem;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  border: 1px solid var(--line-strong);
  background: var(--white);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.consent input::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: var(--navy);
  transform: scale(0);
  transition: transform 0.15s var(--ease);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.consent input:checked { border-color: var(--navy); }
.consent input:checked::before { transform: scale(1); }
.consent input:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.consent input[aria-invalid="true"] { border-color: var(--error); }

.form__status {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--error);
  border-left-width: 3px;
  color: var(--error);
  font-size: 0.9375rem;
  line-height: 1.55;
  background: #fdf7f7;
}
.form__status a { color: inherit; }

.form__submit {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.form__footnote {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
  text-align: center;
}

.form-success { padding-block: clamp(2rem, 6vw, 4rem); outline: none; }
.form-success__message {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  line-height: 1.3;
  max-width: 30rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-top: clamp(4.5rem, 9vw, 7rem);
  border-top: 1px solid var(--line-light);
}
.site-footer__inner {
  display: grid;
  gap: 3.5rem;
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
@media (min-width: 48rem) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .site-footer__contact { justify-self: end; text-align: right; }
  .social { justify-content: flex-end; }
}
.wordmark--footer { width: clamp(11rem, 20vw, 15rem); margin-bottom: 2rem; }
.site-footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  margin-bottom: 1.25rem;
}
.site-footer__meta { font-size: 0.875rem; letter-spacing: 0.06em; color: var(--light-soft); }
.site-footer__heading {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--light-soft);
  margin-bottom: 1rem;
}
.site-footer__email {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.15rem;
  overflow-wrap: anywhere;
}
.site-footer__email:hover { background-size: 0 1px; }
.social { display: flex; gap: 0.75rem; margin-top: 2rem; }
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.social a:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.social a:focus-visible { outline-color: var(--white); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--light-soft);
}
.site-footer__base .inline-link:focus-visible { outline-color: var(--white); }

/* ---------- Privacy dialog ---------- */
.privacy {
  width: min(44rem, calc(100% - 2rem));
  max-height: min(85vh, 52rem);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}
.privacy[open] { display: flex; flex-direction: column; }
.privacy::backdrop { background: rgba(20, 38, 61, 0.62); }
.privacy__inner { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.privacy__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.privacy__title { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.1; }
.privacy__close {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; color: var(--ink); flex: none;
}
.privacy__close:hover { border-color: var(--navy); }
.privacy__body {
  padding: 1.75rem clamp(1.5rem, 4vw, 2.5rem);
  overflow-y: auto;
  font-size: 0.9875rem;
  color: var(--ink-soft);
}
.privacy__body h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.privacy__footer {
  padding: 1.25rem clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
body.has-dialog { overflow: hidden; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* Sections receive programmatic focus after anchor navigation; no outline needed */
[tabindex="-1"]:focus { outline: none; }
