/* Allentown Factory Lofts — "art deco meets loft"
   Deco: symmetry, sunbursts, stepped crowns, double rules, Roman numerals, tracked capitals.
   Loft: the steel-window grid underneath everything.
   Brand tokens are fixed; derived tints use the same hues with alpha only. */

:root {
  --navy: #16263F;
  --navy-2: #1E334F;
  --red: #8A1F1F;
  --paper: #F6F3EE;
  --card: #FFFCF7;
  --ink: #1A1A1A;
  --muted: #5C6570;
  --border: #D5D0C6;

  --on-dark: #F6F3EE;
  --on-dark-muted: color-mix(in srgb, var(--on-dark) 74%, transparent);
  --on-dark-line: color-mix(in srgb, var(--on-dark) 18%, transparent);
  --on-dark-faint: color-mix(in srgb, var(--on-dark) 10%, transparent);

  /* colour roles (each scheme re-points these) */
  --accent: var(--red);            /* primary button fill */
  --on-accent: var(--on-dark);     /* text on the primary button */
  --accent-ink: var(--red);        /* accent used as text/ornament on light grounds */
  --accent-on-dark: var(--on-dark);/* section numerals on dark grounds */
  --orn: var(--on-dark);           /* hero/footer ornaments on dark grounds */
  --orn-boost: 1;                  /* multiplies ornament opacity (gold schemes run near full strength) */

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(88px, 10vw, 136px);
  --header-h: 84px;
  --notch: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* octagonal "deco" corners */
  --notched: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% calc(100% - var(--notch)),
                     calc(100% - var(--notch)) 100%, var(--notch) 100%, 0 calc(100% - var(--notch)), 0 var(--notch));
}

/* ---------- Colour schemes ----------
   Same layout, different palette. Default (no attribute) is the brand scheme above.
   Preview with ?theme=ultra or ?theme=deco; the attribute is set before first paint. */

/* Ultra luxury (DEFAULT): onyx and graphite, champagne gold, ivory.
   Applies with no attribute at all, so it also holds without JavaScript. */
:root, :root[data-theme="ultra"] {
  --navy: #0F0F10;
  --navy-2: #1C1B19;
  --paper: #F5F2EC;
  --card: #FBF9F5;
  --ink: #151515;
  --muted: #5E5A53;
  --border: #D9D2C5;
  --on-dark: #F3EFE7;
  --accent: #C2A36B;
  --on-accent: #0F0F10;
  --accent-ink: #876631;
  --accent-on-dark: #C9AD78;
  --orn: #E3CB98;
  --orn-boost: 1.7;
}

/* Brand (preview only, ?theme=brand): navy, red, paper */
:root[data-theme="brand"] {
  --navy: #16263F;
  --navy-2: #1E334F;
  --paper: #F6F3EE;
  --card: #FFFCF7;
  --ink: #1A1A1A;
  --muted: #5C6570;
  --border: #D5D0C6;
  --on-dark: #F6F3EE;
  --accent: #8A1F1F;
  --on-accent: #F6F3EE;
  --accent-ink: #8A1F1F;
  --accent-on-dark: #F6F3EE;
  --orn: #F6F3EE;
  --orn-boost: 1;
}

/* Art deco: deep emerald, polished brass, cream */
:root[data-theme="deco"] {
  --navy: #0B3430;
  --navy-2: #134940;
  --paper: #F2EBDC;
  --card: #FAF5E9;
  --ink: #1B1A16;
  --muted: #565A52;
  --border: #D7CAAE;
  --on-dark: #F4EEDF;
  --accent: #C9A24A;
  --on-accent: #0B2A26;
  --accent-ink: #80601A;
  --accent-on-dark: #D9B865;
  --orn: #EBCD82;
  --orn-boost: 1.9;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 1px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; } /* no single-word last lines in headings */
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
.hero :focus-visible, .site-header :focus-visible, .section--navy2 :focus-visible,
.site-footer :focus-visible { outline-color: var(--on-dark); }

.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: 16px; top: -100px; z-index: 100;
  background: var(--card); color: var(--ink);
  padding: 12px 18px; font-weight: 600; border: 1px solid var(--border);
}
.skip-link:focus { top: 16px; }
.sprite { position: absolute; }

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

/* ---------- Ornaments ---------- */
.orn { color: currentColor; overflow: visible; }
.orn-divider { width: 160px; height: 20px; margin: 28px auto; }
.orn-divider path { stroke-width: 1; vector-effect: non-scaling-stroke; }
.orn--left { margin-left: 0; }
.orn-fan { width: 96px; height: 52px; margin-inline: auto; }
.orn-fan path { stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- Type ---------- */
.label {
  display: flex; align-items: center; gap: 14px;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
/* numeral set in a small double-ruled plaque, so a lone "I" never reads as a stray bar */
.label-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 26px; padding: 0 8px;
  border: 3px double currentColor;
  font-family: var(--font-display); font-weight: 600;
  font-size: .7rem; letter-spacing: .12em; line-height: 1;
  color: var(--accent-ink);
}
.label--light { color: var(--on-dark-muted); }
.label--light .label-num { color: var(--accent-on-dark); }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--navy);
}
.section--navy2 .h2 { color: var(--on-dark); }
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lead {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.42;
  letter-spacing: -.005em; color: var(--ink);
}
.section-lede { color: var(--muted); max-width: 52ch; }
.section-lede p + p { margin-top: 1em; }

/* side-ruled sub-label:  ——— TEXT ——— */
.sublabel {
  display: flex; align-items: center; gap: 22px;
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.sublabel::before, .sublabel::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 34px;
  border: 0; border-radius: 0;
  font-family: var(--font-body); font-weight: 600;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
}
/* double-framed, like a deco plaque */
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: inset 0 0 0 4px var(--accent), inset 0 0 0 5px color-mix(in srgb, var(--on-accent) 40%, transparent);
}
/* hover stays on-brand: the inner rule brightens and thickens instead of tinting the red */
.btn-primary:hover { box-shadow: inset 0 0 0 4px var(--accent), inset 0 0 0 6px var(--on-accent); }
.btn-line {
  background: transparent; color: var(--on-dark);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-dark) 55%, transparent), inset 0 0 0 4px transparent, inset 0 0 0 5px color-mix(in srgb, var(--on-dark) 20%, transparent);
}
.btn-line:hover { background: color-mix(in srgb, var(--on-dark) 8%, transparent); box-shadow: inset 0 0 0 1px var(--on-dark), inset 0 0 0 4px transparent, inset 0 0 0 5px color-mix(in srgb, var(--on-dark) 40%, transparent); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .7rem; }
.btn-block { width: 100%; }

.arrow { position: relative; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; transition: width .3s var(--ease); }
.arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
a:hover > .arrow { width: 40px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  color: var(--on-dark);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-solid { background: var(--navy); box-shadow: 0 1px 0 var(--on-dark-line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  position: relative; z-index: 2; /* stays above the mobile nav overlay */
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none;
  font-family: var(--font-display); font-weight: 600;
  font-size: .76rem; letter-spacing: .3em; text-transform: uppercase;
  white-space: nowrap;
  min-height: 44px; /* tap target */
}
/* factory-window mark: 3×3 panes */
.wordmark-mark {
  width: 22px; height: 22px; flex: none;
  border: 1.5px solid currentColor;
  background-image:
    linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 1.5px 100%, 1.5px 100%, 100% 1.5px, 100% 1.5px;
  background-position: 33.3% 0, 66.6% 0, 0 33.3%, 0 66.6%;
  background-repeat: no-repeat;
}
.site-nav ul { display: flex; align-items: center; gap: 34px; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--on-dark-muted);
  transition: color .2s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--accent-on-dark); }
.nav-cta-item { margin-left: 6px; }
.nav-footnote { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 11px; width: 22px; height: 1px;
  background: currentColor; transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0;
    background: var(--navy);
    background-image: repeating-linear-gradient(90deg, var(--on-dark-faint) 0 1px, transparent 1px 25%);
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 32px) var(--gutter) 40px;
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
    overflow-y: auto; text-align: center;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) {
    display: block; padding: 16px 0;
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: .18em;
    color: var(--on-dark);
  }
  .site-nav .nav-cta-item { margin: 28px 0 0; }
  .site-nav .btn { width: 100%; min-height: 56px; font-size: .74rem; }
  .nav-footnote {
    display: block; margin-top: 36px;
    font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; line-height: 2;
    color: var(--on-dark-muted);
  }
  .site-nav .nav-footnote a:not(.btn) {
    display: inline-block; padding: 11px 12px; margin: -11px -12px; /* 44px tap target, layout unchanged */
    font: inherit; letter-spacing: inherit;
    text-decoration: none; color: var(--on-dark);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--navy); color: var(--on-dark);
  overflow: hidden; isolation: isolate;
  text-align: center;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--navy); }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; animation: hero-settle 16s var(--ease) both; transform-origin: 50% 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--navy) 78%, transparent) 0%, color-mix(in srgb, var(--navy) 62%, transparent) 45%, color-mix(in srgb, var(--navy) 88%, transparent) 100%);
}
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: scale(1); } }

/* double-ruled frame with diamond keystones */
.deco-frame {
  position: absolute; z-index: 0; pointer-events: none;
  inset: calc(var(--header-h) + 8px) clamp(12px, 2.4vw, 32px) clamp(12px, 2.4vw, 32px);
  border: 1px solid var(--on-dark-line);
}
.deco-frame span { position: absolute; inset: 6px; border: 1px solid var(--on-dark-faint); }
.deco-frame::before, .deco-frame::after {
  content: ""; position: absolute; left: 50%;
  width: 9px; height: 9px; margin-left: -5px;
  background: var(--navy); border: 1px solid color-mix(in srgb, var(--orn) calc(40% * var(--orn-boost)), transparent);
  transform: rotate(45deg);
}
.deco-frame::before { top: -5px; }
.deco-frame::after { bottom: -5px; }

.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 96px;
}
.hero-orn { color: color-mix(in srgb, var(--orn) calc(50% * var(--orn-boost)), transparent); margin-bottom: 22px; }
.hero-kicker {
  font-size: .7rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 26px;
}
.hero-kicker span { font-size: .5rem; margin: 0 .8em; vertical-align: .25em; }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 10.5vw, 8.25rem);
  line-height: .92;
  letter-spacing: .05em;
  margin-right: -.05em; /* optical centring of tracked caps */
}
.hero-title > span { display: block; }
.hero-title-sub {
  margin-top: .42em;
  font-weight: 600;
  font-size: clamp(.95rem, 2.3vw, 1.7rem);
  letter-spacing: .5em;
  margin-right: -.5em;
  color: var(--on-dark);
}
.hero .orn-divider { color: color-mix(in srgb, var(--orn) calc(45% * var(--orn-boost)), transparent); margin: 34px auto 26px; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--on-dark-muted); text-wrap: balance; }
.hero-address {
  margin-top: 10px;
  font-size: .7rem; letter-spacing: .26em; text-transform: uppercase;
  color: color-mix(in srgb, var(--on-dark) 58%, transparent);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }

.ph-tag--hero {
  position: absolute; z-index: 1;
  left: calc(clamp(12px, 2.4vw, 32px) + 20px);
  bottom: calc(clamp(12px, 2.4vw, 32px) + 18px);
  font-size: .8rem; line-height: 1.5;
  color: color-mix(in srgb, var(--on-dark) 55%, transparent);
  max-width: 34ch; text-align: left;
}
.ph-tag-k { display: block; margin-bottom: 4px; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; }
.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: calc(clamp(12px, 2.4vw, 32px) + 14px);
  width: 44px; height: 60px; margin-left: -22px;
}
.scroll-cue::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--on-dark-line); }
.scroll-cue span {
  position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2.5px;
  background: var(--on-dark); transform: rotate(45deg);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: 54px; opacity: 0; } }

@media (max-width: 480px) {
  .wordmark { font-size: .7rem; letter-spacing: .2em; gap: 10px; }
  .wordmark-mark { width: 18px; height: 18px; }
}
@media (max-width: 600px) {
  .hero-content { padding-inline: calc(var(--gutter) + 12px); }
  .hero-address { letter-spacing: .16em; line-height: 1.9; }
  .hero-address > span { display: block; } /* street / city on two lines */
  .hero-address .sep { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-content { padding-bottom: 150px; }
  .ph-tag--hero { max-width: 28ch; }
  .scroll-cue { left: auto; right: calc(12px + 8px); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--card { background: var(--card); border-block: 1px solid var(--border); }
.section--navy2 { background: var(--navy-2); color: var(--on-dark); }

.section-intro {
  text-align: center;
  max-width: 840px; margin: 0 auto clamp(56px, 7vw, 96px);
}
.section-intro .label { justify-content: center; }
.section-intro .orn-divider { color: var(--muted); opacity: .7; }
.section-intro .section-lede { margin-inline: auto; }

.section-intro--split {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: end;
  text-align: left; max-width: none;
}
.section-intro--split .label { justify-content: flex-start; }
.section-intro--split .section-lede { margin: 0; }
@media (max-width: 860px) { .section-intro--split { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Statement ---------- */
.statement { padding-top: clamp(88px, 11vw, 144px); text-align: center; }
.statement .orn-fan { color: var(--accent-ink); width: 120px; height: 64px; }
.statement-text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.55rem, 3.5vw, 2.75rem);
  line-height: 1.3; letter-spacing: -.01em;
  max-width: 28ch; margin: 36px auto 0;
  text-wrap: balance;
}
.figures {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px);
  border-block: 3px double var(--ink);
}
.figures > div {
  display: flex; flex-direction: column-reverse; align-items: center; gap: 4px;
  padding: 28px 12px;
}
.figures > div + div { border-left: 1px solid var(--border); }
.figures dt { font-size: .7rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.figures dd {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; letter-spacing: .02em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap; /* "2008–2009" stays on one line */
}
@media (max-width: 640px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures dd { font-size: 1.55rem; }
  .figures > div:nth-child(3) { border-left: 0; }
  .figures > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- Placeholders: loft window grid, deco frame ---------- */
.ph {
  --ph-bg: var(--navy-2);
  --ph-line: color-mix(in srgb, var(--on-dark) 8%, transparent);
  --ph-frame: color-mix(in srgb, var(--on-dark) 22%, transparent);
  --ph-sub: var(--on-dark-muted);
  position: relative;
  width: 100%; height: 100%; min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background-color: var(--ph-bg);
  background-image:
    linear-gradient(var(--ph-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ph-line) 1px, transparent 1px);
  background-size: 16.667% 25%;
  background-position: -1px -1px;
  overflow: hidden;
}
.ph::before, .ph::after { content: ""; position: absolute; pointer-events: none; border: 1px solid var(--ph-frame); }
.ph::before { inset: 12px; }
.ph::after { inset: 17px; opacity: .5; }
.ph--navy { --ph-bg: var(--navy-2); }
.ph--deep { --ph-bg: var(--navy); }
.ph--paper {
  --ph-bg: var(--paper);
  --ph-line: color-mix(in srgb, var(--ink) 6%, transparent);
  --ph-frame: var(--border);
  --ph-sub: var(--muted);
}
.ph-orn { width: 64px; height: 34px; color: var(--ph-sub); opacity: .75; }
.ph-orn path { stroke-width: 1; vector-effect: non-scaling-stroke; }
.ph-kicker {
  position: relative;
  font-size: .7rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ph-sub); text-align: center; padding: 0 32px; line-height: 1.8;
}
/* the exact shot the owner should supply; disappears when the photo replaces the placeholder */
.ph-spec {
  position: relative;
  max-width: 34ch; margin-top: -8px; padding: 0 32px;
  font-size: .86rem; line-height: 1.5; text-align: center;
  color: var(--ph-sub);
}
/* stepped ziggurat crown */
.ph--stepped {
  --s: clamp(9px, 1.1vw, 14px);
  clip-path: polygon(0 calc(var(--s) * 3), 14% calc(var(--s) * 3), 14% calc(var(--s) * 2), 26% calc(var(--s) * 2), 26% var(--s), 38% var(--s), 38% 0,
                     62% 0, 62% var(--s), 74% var(--s), 74% calc(var(--s) * 2), 86% calc(var(--s) * 2), 86% calc(var(--s) * 3), 100% calc(var(--s) * 3),
                     100% 100%, 0 100%);
}
.ph--stepped::before { top: calc(var(--s) * 3 + 12px); }
.ph--stepped::after { top: calc(var(--s) * 3 + 17px); }

.caption { margin-top: 16px; font-size: .86rem; color: var(--muted); line-height: 1.55; }
.caption strong {
  margin-right: 12px;
  font-family: var(--font-display); font-weight: 600;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
}

/* ---------- Photos ----------
   Images are pre-cropped and pre-sized (images/web, WebP + JPEG, 2 widths). In the slot they
   fill with object-fit: cover (crop, never stretch); object-position per image is set inline.
   The double hairline frame keeps the deco language. */
.photo { position: relative; overflow: hidden; background: var(--navy-2); }
.photo picture { display: block; width: 100%; height: 100%; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo::before, .photo::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--on-dark) 55%, transparent);
}
.photo::before { inset: 12px; }
.photo::after { inset: 17px; opacity: .5; }
.rooftop-media.photo { padding: 0; }
/* skyline + spire sit right of centre */
.photo--rooftop img { object-position: 70% 50%; }
/* stepped ziggurat crown on a photo */
.photo.stepped {
  --s: clamp(9px, 1.1vw, 14px);
  clip-path: polygon(0 calc(var(--s) * 3), 14% calc(var(--s) * 3), 14% calc(var(--s) * 2), 26% calc(var(--s) * 2), 26% var(--s), 38% var(--s), 38% 0,
                     62% 0, 62% var(--s), 74% var(--s), 74% calc(var(--s) * 2), 86% calc(var(--s) * 2), 86% calc(var(--s) * 3), 100% calc(var(--s) * 3),
                     100% 100%, 0 100%);
}
.photo.stepped::before { top: calc(var(--s) * 3 + 12px); }
.photo.stepped::after { top: calc(var(--s) * 3 + 17px); }

/* ---------- Residences ---------- */
.residence-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px); align-items: center;
}
.residence-media .photo { aspect-ratio: 5 / 6; height: auto; }
.residence-copy > p:not(.lead) { margin-top: 24px; color: var(--muted); }
.spec-table { margin-top: 44px; border-top: 3px double var(--ink); }
.spec-table > div {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline;
  padding: 17px 0; border-bottom: 1px solid var(--border);
}
.spec-table dt { font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.spec-table dd { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; }
.spec-table dd a {
  display: inline-block; padding-block: 12px; margin-block: -12px; /* 44px tap target, row height unchanged */
  font-family: var(--font-body); font-weight: 500; font-size: .98rem; letter-spacing: 0; color: var(--accent-ink);
}
@media (max-width: 860px) {
  .residence-feature { grid-template-columns: 1fr; }
  .residence-media .photo { aspect-ratio: 4 / 4.4; }
}
@media (max-width: 420px) { .spec-table > div { grid-template-columns: 1fr; gap: 4px; } }

.finishes { margin-top: clamp(88px, 11vw, 144px); }

/* numbered lists with Roman numerals */
.numbered { counter-reset: n; display: grid; column-gap: clamp(40px, 6vw, 96px); border-bottom: 1px solid var(--border); }
.numbered li {
  counter-increment: n;
  display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; row-gap: 8px;
  align-content: start; /* keep title + text together when grid rows stretch */
  padding: 30px 0; border-top: 1px solid var(--border);
}
/* the side-ruled sub-label already draws the top line */
.finishes .numbered li:first-child { border-top: 0; }
@media (min-width: 681px) { .finishes .numbered li:nth-child(2) { border-top: 0; } }
.numbered li::before {
  content: counter(n, upper-roman) ".";
  grid-row: span 2;
  font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .12em; color: var(--accent-ink);
  padding-top: .15em;
}
.numbered p { color: var(--muted); font-size: .98rem; }
.numbered--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.numbered--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .numbered--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .numbered--two, .numbered--three { grid-template-columns: 1fr; }
  .numbered li { grid-template-columns: 48px 1fr; padding: 24px 0; }
}

/* ---------- Rooftop ---------- */
.rooftop { position: relative; background: var(--paper); }
.rooftop-media { height: clamp(520px, 84vh, 860px); justify-content: flex-start; padding-top: clamp(64px, 12vh, 140px); }
.rooftop-media::before { inset: clamp(12px, 2.4vw, 32px); }
.rooftop-media::after { inset: calc(clamp(12px, 2.4vw, 32px) + 6px); }
.rooftop-inner { position: relative; margin-top: calc(clamp(220px, 26vw, 360px) * -1); }
.rooftop-card {
  position: relative;
  max-width: 640px;
  background: var(--card);
  padding: clamp(36px, 5vw, 68px);
  clip-path: var(--notched);
}
/* inner frame: a plain rectangle whose corners sit just inside the outer notches */
.rooftop-card::before, .tour-form::before {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  border: 1px solid var(--border);
}
.rooftop-card .label { color: var(--muted); }
.rooftop-card .label-num { color: var(--accent-ink); }
.rooftop-card .orn-divider { color: var(--muted); opacity: .7; }
.rooftop-card > p:not(.label) { color: var(--muted); }
.rule-list { margin-top: 32px; border-top: 1px solid var(--border); }
.rule-list li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--border); font-size: .98rem; }
.rule-list li::before {
  content: ""; position: absolute; left: 2px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px;
  background: var(--accent-ink); transform: rotate(45deg);
}
@media (max-width: 600px) {
  .rooftop-inner { margin-top: -96px; }
  .rooftop-media { height: 440px; padding-top: 56px; }
}

/* ---------- Neighborhood ---------- */
.address-line { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.45; letter-spacing: .02em; color: var(--navy); }
.map-link { margin-top: 12px !important; }
.map-link a {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px;
  font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.distance-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.distance-group .sublabel { margin-bottom: 14px; }
.distance-group .sublabel::before, .distance-group .sublabel::after { display: none; } /* double rule follows */
.distance-list { border-top: 3px double var(--ink); }
.distance-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--border);
}
.distance-list .place { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.7vw, 1.25rem); letter-spacing: .01em; }
.distance-list small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .88rem; color: var(--muted); margin-top: 2px; letter-spacing: 0; }
.distance-list .time { font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
@media (max-width: 760px) { .distance-groups { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .distance-list li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 0; }
}

/* ---------- Journal / article pages ---------- */
.article { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px)); }
.article-inner { max-width: calc(780px + var(--gutter) * 2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; list-style: none;
  font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--border); }
@media (max-width: 600px) { .crumbs li:last-child:not(:first-child):not(:nth-child(2)) { display: none; } } /* the page title sits right below */
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.article-head .label { margin-bottom: 18px; }
.article-title { font-size: clamp(1.9rem, 4.4vw, 3rem); }
@media (max-width: 480px) { .article-title { font-size: 1.5rem; } } /* long titles break into phrases, not stray words */
@media (max-width: 374px) { .article-title { font-size: 1.4rem; } }
.article-head .orn-divider { margin: 22px 0 26px; color: var(--muted); opacity: .7; }
.article-figure { margin: clamp(36px, 5vw, 56px) 0 0; }
.article-figure .photo { aspect-ratio: 16 / 10; }
.article-body { margin-top: clamp(40px, 5vw, 56px); }
.article-body > p { color: var(--muted); font-size: 1.06rem; line-height: 1.8; max-width: 68ch; }
.article-body > p + p { margin-top: 1.1em; }
.article-h2 {
  margin: clamp(40px, 5vw, 56px) 0 16px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: .08em; line-height: 1.3; color: var(--navy);
}
.article-body > .article-h2:first-child { margin-top: 0; }
.sources { margin-top: clamp(56px, 7vw, 80px); }
.sources ol { margin: 18px 0 0; padding-left: 1.4em; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.sources li { padding: 4px 0; }
.sources a { color: var(--ink); display: inline-block; padding: 11px 0; min-height: 44px; }
.article-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: clamp(56px, 7vw, 80px); padding: clamp(28px, 4vw, 40px) 0; border-block: 3px double var(--ink);
}
.article-cta p { margin: 0; color: var(--muted); max-width: 44ch; }
@media (max-width: 600px) { .article-cta .btn { width: 100%; } }
.journal-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 56px); }
.journal-card a { display: block; color: inherit; text-decoration: none; }
.journal-card .photo { margin-bottom: 22px; }
.journal-card .label { margin-bottom: 10px; }
.journal-card .article-h2 { margin: 0 0 10px; }
.journal-card p:not(.label) { color: var(--muted); }
.map-link-text { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 8px;
  font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.journal-card a:hover .arrow { width: 40px; }
.journal-card a:hover .article-h2 { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 760px) { .journal-list { grid-template-columns: 1fr; } }

/* ---------- FAQ (native <details>: keyboard and screen-reader friendly, works without JS) ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 3px double var(--ink); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 18px 0; margin-block: 4px; /* ≥8px between adjacent tap targets */
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: .92rem; line-height: 1.45; color: var(--navy); transition: color .2s var(--ease); }
.faq-item summary:hover h3 { color: var(--accent-ink); }
.faq-item summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 1.5px solid var(--accent-ink); border-bottom: 1.5px solid var(--accent-ink);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq-item summary:focus-visible { outline-offset: 2px; }
.faq-item p { padding: 0 48px 24px 0; color: var(--muted); max-width: 68ch; }
@media (max-width: 600px) { .faq-item p { padding-right: 0; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(14px, 2vw, 28px); row-gap: clamp(32px, 4vw, 48px); }
.gallery > li { min-width: 0; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.h-lg { height: clamp(300px, 36vw, 520px); }
.h-md { height: clamp(240px, 26vw, 380px); }
.h-wide { height: clamp(240px, 28vw, 420px); }
@media (max-width: 860px) {
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 6; }
  .gallery > li:nth-child(5) { grid-column: span 12; } /* odd one out on the 2-up grid */
}
@media (max-width: 600px) {
  .gallery > li, .gallery > li:nth-child(5) { grid-column: span 12; }
  .h-lg, .h-md, .h-wide { height: 280px; }
}

/* ---------- Contact ---------- */
.contact-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(48px, 7vw, 112px); align-items: start;
}
.contact-info .orn-divider { color: var(--on-dark-muted); opacity: .7; }
.contact-lede { color: var(--on-dark-muted); max-width: 42ch; }
.contact-list { margin-top: 48px; border-top: 3px double var(--on-dark-line); }
.contact-list > div {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--on-dark-line);
}
.contact-list dt { font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 5px; }
.contact-phone { display: inline-block; padding-block: 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: .05em; text-decoration: none; transition: color .2s var(--ease); }
.contact-phone:hover { color: var(--accent-on-dark); text-decoration: underline; }
@media (max-width: 960px) { .contact-inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-list > div { grid-template-columns: 1fr; gap: 6px; } }

.tour-form {
  position: relative;
  background: var(--card); color: var(--ink);
  padding: clamp(36px, 5vw, 60px);
}
.form-title {
  display: flex; align-items: center; gap: 20px;
  font-size: .78rem; letter-spacing: .3em;
  margin-bottom: 36px;
}
.form-title::before, .form-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.field { position: relative; margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend {
  display: block; padding: 0; margin-bottom: 4px; line-height: 20px;
  font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}
.optional { margin-left: 6px; font-weight: 400; letter-spacing: .04em; text-transform: none; font-size: .78rem; line-height: 1; opacity: .85; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px;
  padding: 10px 0;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  font-size: 1rem; /* ≥16px prevents iOS zoom-on-focus */
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 9px) 52%, calc(100% - 4px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 28px;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 var(--navy);
}
.field input:user-invalid { border-bottom-color: var(--accent-ink); box-shadow: 0 1px 0 var(--accent-ink); }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.choice { position: relative; display: inline-flex !important; margin: 0 !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--border);
  font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.choice:hover span { border-color: var(--navy); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.tour-form .btn-block { margin-top: 8px; }
.form-note { margin-top: 18px; font-size: .84rem; color: var(--muted); line-height: 1.6; text-align: center; }
.form-note a, .form-status a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.form-status:not(:empty) {
  margin-top: 16px; padding: 12px 14px;
  border-left: 2px solid var(--navy); background: var(--paper); font-size: .9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: var(--on-dark);
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  font-size: .95rem;
}
/* deco pinstripe band */
.deco-band {
  height: 22px;
  border-block: 1px solid var(--on-dark-line);
  background: repeating-linear-gradient(90deg, var(--on-dark-faint) 0 1px, transparent 1px 7px);
}
.footer-crest { text-align: center; padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 72px); }
.footer-crest .orn-fan { color: color-mix(in srgb, var(--orn) calc(45% * var(--orn-boost)), transparent); margin-bottom: 26px; }
.footer-wordmark {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.3rem, 4.6vw, 3.4rem);
  letter-spacing: .18em; margin-right: -.18em; line-height: 1.15;
}
@media (max-width: 600px) { .footer-wordmark > span { display: block; } }
.footer-est { margin-top: 16px; font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer-est span { font-size: .5rem; margin: 0 .8em; vertical-align: .2em; }
.footer-inner {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
  padding: 44px 0 52px;
  border-top: 3px double var(--on-dark-line);
}
.footer-label { font-size: .7rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.site-footer address, .footer-inner p:not(.footer-label) { font-style: normal; color: var(--on-dark-muted); }
.footer-inner a { color: var(--on-dark); text-decoration: none; transition: color .2s var(--ease); }
.footer-inner a:hover { color: var(--accent-on-dark); text-decoration: underline; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 32px; }
.footer-nav a { display: inline-block; min-width: 44px; padding: 9px 0; color: var(--on-dark-muted) !important; }
.footer-nav a:hover { color: var(--accent-on-dark) !important; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 24px; border-top: 1px solid var(--on-dark-line);
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-muted);
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found-links { margin-top: clamp(36px, 5vw, 56px); border-top: 3px double var(--ink); }
.not-found-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 16px 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--navy); transition: color .2s var(--ease);
}
.not-found-links a:hover { color: var(--accent-ink); }
.article-cta p a { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------- Phones (portrait or sideways): tracked caps never drop below 12.8px ---------- */
@media (max-width: 600px), (orientation: landscape) and (max-height: 500px) {
  .label, .sublabel, .label-num, .hero-kicker, .hero-address, .crumbs ol,
  .figures dt, .spec-table dt, .contact-list dt, .distance-list .time, .caption strong,
  .map-link a, .map-link-text, .nav-footnote, .field label, .field legend, .choice span,
  .form-title, .optional, .footer-est, .footer-label, .footer-base { font-size: .8rem; }
  .hero-kicker { letter-spacing: .24em; }
  .hero-address { letter-spacing: .12em; }
  .btn, .btn-sm, .site-nav .btn { font-size: .8125rem; letter-spacing: .18em; }
}

/* ---------- Phones held sideways: keep the tour CTA on the first screen ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 0; }
  .hero-content { padding-top: calc(var(--header-h) + 16px); padding-bottom: 40px; }
  .hero-orn, .hero .orn-divider, .scroll-cue { display: none; }
  .hero-kicker { margin-bottom: 10px; }
  .hero-title { font-size: clamp(2.2rem, 7vw, 4rem); }
  .hero-sub { margin-top: 14px; }
  .hero-actions { margin-top: 18px; }
}

/* ---------- Scheme preview switcher (only rendered when ?theme= is in the URL) ---------- */
/* bottom-right, clear of the hero's photo note and the footer's left column;
   the page gets matching bottom padding so its last line is never hidden */
.has-scheme-switch .site-footer { padding-bottom: calc(28px + 88px + env(safe-area-inset-bottom)); }
.scheme-switch {
  position: fixed; z-index: 60;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--navy);
  border: 1px solid var(--on-dark-line);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--navy) 35%, transparent);
  font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.scheme-switch span { padding: 0 10px; color: var(--on-dark-muted); }
.scheme-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px;
  color: var(--on-dark); text-decoration: none;
}
.scheme-switch a:hover { background: var(--on-dark-faint); }
.scheme-switch a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
@media (max-width: 480px) {
  .scheme-switch { left: 12px; right: 12px; }
  .scheme-switch { letter-spacing: .08em; }
  .scheme-switch span { display: none; }
  .scheme-switch a { flex: 1 1 auto; padding: 0 8px; white-space: nowrap; }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

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