/* District Flats at Webster Street — tour landing page
 * Layout: dark photographic hero with the form docked beside it; light paper body;
 * a pinned "day at District Flats" sequence (sun-arc) as the single signature moment.
 * Committed single look (light page, dark feature bands): colors set explicitly, not theme-switched.
 */
/* Self-hosted fonts (SIL Open Font License): no third-party requests, no layout shift from late loads */
@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-display: swap; src: url("../assets/fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("../assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("../assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("../assets/fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("../assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("../assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url("../assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #12222a;          /* night-slate: hero, sequence band, text */
  --ink-2: #1c3139;
  --paper: #f2f4f2;        /* cool limestone ground */
  --surface: #ffffff;
  --line: #d5dcdb;
  --muted: #56666c;
  --sun: #e3a53c;          /* late-sun brass: the CTA and the sun dot */
  --sun-deep: #b97a17;
  --pool: #3b5b83;         /* logo slate-blue, deepened for contrast: links, eyebrows */
  --pool-soft: #e3e9f2;
  --danger: #b3261e;
  --ok: #1d6b45;

  --f-display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem);
  --step-3: clamp(2.4rem, 1.7rem + 3.2vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--pool); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: .95; letter-spacing: .005em; text-wrap: balance; margin: 0; text-transform: uppercase; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 var(--step--1)/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pool); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--sun); color: var(--ink); padding: 10px 14px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--sun); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.35em; border: 0; border-radius: var(--radius); background: var(--bg); color: var(--fg); font: 700 1rem/1 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { --bg: #eeb552; transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(185,122,23,.7); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { --bg: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost.on-light:hover { --bg: rgba(18,34,42,.05); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .35em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Photo frames with graceful placeholder ---------- */
.ph { position: relative; overflow: hidden; background: var(--ink-2); isolation: isolate; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.is-missing img { display: none; }
.ph.is-missing::after {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center;
  font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55);
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0/28px 28px,
    radial-gradient(120% 90% at 70% 20%, #2a4a55, var(--ink) 70%);
}
.ph--light.is-missing::after { color: var(--muted); background:
    linear-gradient(rgba(18,34,42,.07) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg, rgba(18,34,42,.07) 1px, transparent 1px) 0 0/24px 24px, var(--surface); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { height: 52px; width: auto; }
.brand .wordmark { font: 800 1.35rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.brand .wordmark small { display: block; font: 500 .62rem/1.3 var(--f-mono); letter-spacing: .16em; color: var(--pool); }
.brand.has-logo .wordmark { display: none; }
.brand:not(.has-logo) img { display: none; }
.header-phone { color: var(--ink); text-decoration: none; font: 500 .95rem/1 var(--f-mono); display: inline-flex; align-items: center; gap: .45em; padding: .6em .4em; }
.header-phone:hover { color: var(--pool); }
.header-phone svg { width: 1.05em; height: 1.05em; }
.site-header .btn { min-height: 42px; padding-inline: 1.1em; }
@media (max-width: 640px) {
  .header-phone span { display: none; }
  .header-phone { padding: .65em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); }
  .site-header .btn { font-size: .92rem; padding-inline: .9em; }
  .brand img { height: 38px; }
  .brand .wordmark { font-size: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .ph { position: absolute; inset: 0; }
.hero-media picture { display: contents; }
.hero-media img { transform-origin: 60% 50%; object-position: 62% 40%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(18,34,42,.93) 0%, rgba(18,34,42,.8) 34%, rgba(18,34,42,.32) 62%, rgba(18,34,42,.18) 100%),
  linear-gradient(0deg, rgba(18,34,42,.7), transparent 40%); }
@media (max-width: 1020px) { .hero-media img { object-position: 50% 70%; } }
@media (max-width: 1020px) { .hero-media::after { background: linear-gradient(180deg, rgba(18,34,42,.62), rgba(18,34,42,.8) 45%, rgba(18,34,42,.7) 100%); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 440px); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.hero-copy { min-width: 0; display: grid; gap: 1.25rem; }
.hero-copy .eyebrow { color: var(--sun); }
.hero h1 { font-size: var(--step-3); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .accent { color: var(--sun); }
.hero .lede { font-size: var(--step-1); line-height: 1.45; max-width: 34ch; color: rgba(255,255,255,.86); }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.hero-points li { font: 500 .8rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: .6em .8em; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(18,34,42,.35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero-actions .mobile-only { display: none; }
.hero-note { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ---------- Form card ---------- */
.tour-card { background: var(--surface); color: var(--ink); border-radius: 10px; padding: clamp(1.25rem, 2.5vw, 1.75rem); box-shadow: 0 30px 60px -25px rgba(0,0,0,.55); scroll-margin-top: 84px; }
.tour-card h2 { font-size: var(--step-2); }
.tour-card .sub { color: var(--muted); font-size: .95rem; margin-top: .4rem; }
.tour-form { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem .75rem; margin-top: 1.1rem; align-items: start; }
.tour-form > .hint.full { grid-column: 1 / -1; margin: -.45rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: .6rem .7rem; font: 400 1rem/1.3 var(--f-body); color: var(--ink); background: #fbfcfc; border: 1.5px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pool); box-shadow: 0 0 0 3px var(--pool-soft); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .8rem; line-height: 1.35; min-height: 0; }
.field .hint { color: var(--muted); font-size: .78rem; line-height: 1.35; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; min-height: 44px; padding: .4rem; text-align: center; border: 1.5px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: .88rem; cursor: pointer; background: #fbfcfc; transition: border-color .15s, background .15s, color .15s; }
.seg input:checked + label { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--sun); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: grid; gap: .6rem; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { min-height: 0; }
.form-foot .btn { width: 100%; font-size: 1.05rem; min-height: 52px; }
.fine { font-size: .74rem; line-height: 1.45; color: var(--muted); }
.form-alert { grid-column: 1 / -1; padding: .75rem .9rem; border-radius: var(--radius); font-size: .9rem; line-height: 1.45; }
.form-alert.error { background: #fbeceb; color: #7d1b15; border: 1px solid #efc2bf; }
.form-alert.preview { background: #fdf4e3; color: #6b4a0e; border: 1px solid #efd7a6; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.spinner { width: 1.1em; height: 1.1em; border-radius: 50%; border: 2px solid rgba(18,34,42,.25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ---------- Tour date calendar ---------- */
.datepick { position: relative; }
.date-btn { width: 100%; min-width: 0; overflow: hidden; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .7rem; font: 400 1rem/1.3 var(--f-body); color: var(--ink); background: #fbfcfc; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.date-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-btn.is-empty span { color: var(--muted); }
.date-btn svg { width: 1.15rem; height: 1.15rem; flex: none; color: var(--pool); }
.date-btn:hover { border-color: #b9c4c6; }
.date-btn:focus-visible, .date-btn[aria-expanded="true"] { outline: none; border-color: var(--pool); box-shadow: 0 0 0 3px var(--pool-soft); }
.date-btn[aria-invalid="true"] { border-color: var(--danger); }
.cal { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(304px, calc(100vw - 2 * var(--gutter))); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -16px rgba(18,34,42,.4); padding: .75rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.cal-title { font: 600 .98rem/1 var(--f-body); }
.cal-nav { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cal-nav:hover:not(:disabled) { background: var(--paper); }
.cal-nav:disabled { color: var(--line); cursor: default; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { font: 500 .66rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .4rem 0; }
.cal-grid td { padding: 2px; text-align: center; }
.cal-day { width: 100%; aspect-ratio: 1; max-height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 500 .9rem/1 var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.cal-day:hover:not([aria-disabled="true"]) { background: var(--pool-soft); }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--line); }
.cal-day.is-selected { background: var(--ink); color: #fff; }
.cal-day[aria-disabled="true"] { color: #c3cbcd; font-weight: 400; cursor: not-allowed; }
.cal-day:not([aria-disabled="true"]):not(.is-selected) { color: var(--ink); font-weight: 600; background: #f1f4f6; }
.cal-day:focus-visible { outline: 2px solid var(--sun); outline-offset: 1px; }
.cal-foot { font-size: .74rem; color: var(--muted); margin-top: .35rem; }
@media (max-width: 640px) { .cal { width: 100%; } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 76px; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-head { display: grid; gap: .8rem; max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.45; max-width: 40ch; }

/* ---------- Floor plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(18,34,42,.45); }
.plan-img { aspect-ratio: 4 / 3; background: var(--surface); border-bottom: 1px solid var(--line); }
.plan-img img { object-fit: contain; padding: 1rem; transition: transform .6s var(--ease); }
.plan:hover .plan-img img { transform: scale(1.04); }
.plan-body { padding: clamp(1.1rem, 2.5vw, 1.6rem); display: grid; gap: .9rem; align-content: start; }
.plan-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.plan h3 { font-size: var(--step-2); }
.specs { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); }
.specs li { flex: 1; padding: .6rem .5rem; text-align: center; border-left: 1px solid var(--line); min-width: 0; }
.specs li:first-child { border-left: 0; }
.specs b { display: block; font: 600 1.15rem/1.1 var(--f-mono); font-variant-numeric: tabular-nums; }
.specs span { font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan-price { font-weight: 600; }
.plan-price small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; line-height: 1.4; margin-top: .2rem; }
.plan-actions { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.included { font-size: .88rem; color: var(--muted); }
.included b { color: var(--ink); font-weight: 600; }
.specials { margin-top: 1.25rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; font-size: .95rem; color: var(--ink); background: var(--pool-soft); border-radius: var(--radius); padding: .8rem 1rem; }
.specials .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--pool); flex: none; }

/* ---------- Signature: a day at District Flats ---------- */
.day { background: var(--ink); color: #fff; position: relative; }
.day-intro { padding-top: clamp(3.5rem, 8vw, 7rem); }
.day-intro .eyebrow { color: var(--sun); }
.day-intro p { color: rgba(255,255,255,.72); }
.day-track { position: relative; height: 420vh; }
.day-stage { position: sticky; top: 68px; height: calc(100vh - 68px); height: calc(100svh - 68px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(1rem, 3vh, 2.5rem); }
.day-text { position: relative; min-width: 0; display: grid; gap: 1.5rem; }
.sun { width: 100%; max-width: 360px; height: auto; overflow: visible; }
.sun .arc { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.5; stroke-dasharray: 2 6; }
.sun .arc-done { fill: none; stroke: var(--sun); stroke-width: 2; }
.sun .horizon { stroke: rgba(255,255,255,.3); stroke-width: 1; }
.sun .tick { fill: rgba(255,255,255,.35); }
.sun .tick.on { fill: var(--sun); }
.sun .dot { fill: var(--sun); filter: drop-shadow(0 0 10px rgba(227,165,60,.8)); }
.sun text { fill: rgba(255,255,255,.55); font: 500 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.scenes-text { display: grid; }
.scene-text { grid-area: 1 / 1; display: grid; gap: .8rem; align-content: start; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.scene-text:not(.is-active) { opacity: 0; transform: translateY(14px); pointer-events: none; }
.scene-text .when { font: 500 .8rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.scene-text h3 { font-size: clamp(2.2rem, 1.6rem + 3vw, 4.2rem); }
.scene-text p { color: rgba(255,255,255,.8); max-width: 36ch; font-size: var(--step-1); line-height: 1.45; }
.day-media { position: relative; height: min(72vh, 640px); min-width: 0; border-radius: 10px; overflow: hidden; }
.day-media .ph { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease); }
.day-media .ph.is-active, .day-media .ph.is-past { clip-path: inset(0 0 0 0); }
.day-media .ph img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.day-media .ph.is-active img { transform: scale(1); }
.day-media .ph:first-child { clip-path: inset(0 0 0 0); }
.day-media .caption { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(18,34,42,.7); padding: .5em .7em; border-radius: 4px; }
.day-chip { display: none; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); z-index: 5; align-items: center; gap: .7rem; width: max-content; max-width: 100%; margin: 0 auto 1rem; padding: .45rem .9rem .45rem .6rem; border-radius: 999px; background: rgba(18,34,42,.82); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 26px -14px rgba(0,0,0,.8); }
.chip-sun { width: 44px; height: 21px; overflow: visible; flex: none; }
.chip-sun .arc { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 2; stroke-dasharray: 2 4; }
.chip-sun .arc-done { fill: none; stroke: var(--sun); stroke-width: 2.5; }
.chip-sun .dot { fill: var(--sun); filter: drop-shadow(0 0 5px rgba(227,165,60,.9)); }
.chip-text { display: grid; line-height: 1.1; min-width: 0; }
.chip-when { font: 500 .62rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.chip-name { font: 700 1rem/1.15 var(--f-display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-text.swap { animation: chipSwap .45s var(--ease); }
@keyframes chipSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chip-count { font: 500 .7rem/1 var(--f-mono); color: rgba(255,255,255,.55); padding-left: .6rem; border-left: 1px solid rgba(255,255,255,.18); font-variant-numeric: tabular-nums; }
.chip-count b { color: #fff; font-weight: 600; }
.day-cta-m { display: none; }
.day-cta { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }

.more { padding-block: clamp(2.5rem, 6vw, 5rem); }
.more-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 1rem; }
.tile { border-radius: 10px; overflow: hidden; background: var(--ink-2); position: relative; min-height: 260px; display: flex; align-items: flex-end; }
.tile .ph { position: absolute; inset: 0; }
.tile .ph::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(18,34,42,.9), rgba(18,34,42,0) 60%); }
.tile-body { position: relative; z-index: 2; padding: 1.2rem; display: grid; gap: .3rem; }
.tile h3 { font-size: 1.7rem; }
.tile p { color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.45; }
.tile .ph img { transition: transform .8s var(--ease); }
.tile:hover .ph img { transform: scale(1.05); }
.tile--list, .tile--text { background: var(--ink-2); align-items: stretch; }
.tile--text { background: linear-gradient(160deg, var(--ink-2), #24404a); }
.tile--list .tile-body, .tile--text .tile-body { align-content: start; gap: .9rem; }
.tile-icon { width: 2.4rem; height: 2.4rem; color: var(--sun); }
.tile--text .tile-body { align-content: end; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.checks li { display: flex; gap: .6rem; align-items: baseline; color: rgba(255,255,255,.88); }
.checks li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sun); flex: none; transform: translateY(-.1em); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 40%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; overscroll-behavior-x: contain; scrollbar-width: thin; }
.gallery button { all: unset; cursor: zoom-in; scroll-snap-align: start; border-radius: 8px; overflow: hidden; display: block; position: relative; }
.gallery button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.gallery .ph { aspect-ratio: 3 / 2; }
.gallery .ph img { transition: transform .7s var(--ease); }
.gallery button:hover .ph img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: .75rem; bottom: .75rem; font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(18,34,42,.65); padding: .45em .6em; border-radius: 4px; }
.gallery-bar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
.gallery-nav { display: flex; gap: .5rem; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; }
.icon-btn:hover { background: var(--ink); color: #fff; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 90vh; }
dialog.lightbox::backdrop { background: rgba(10,18,22,.9); }
dialog.lightbox img { max-height: 84vh; width: auto; margin: auto; border-radius: 6px; }
dialog.lightbox .close { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; }
dialog.lightbox .icon-btn { border-color: #fff; color: #fff; }
dialog.lightbox .lb-cap { color: #fff; text-align: center; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin-top: .6rem; }

/* ---------- Location ---------- */
.loc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.address { font: 800 clamp(2rem, 1.4rem + 3vw, 4rem)/.95 var(--f-display); text-transform: uppercase; margin: .6rem 0 1.2rem; }
.address span { display: block; color: var(--pool); }
.near { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.near li { padding: .9rem 0; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; gap: .6rem; align-items: center; }
.near li:nth-child(odd) { padding-right: 1rem; }
.near svg { width: 1.2rem; height: 1.2rem; color: var(--pool); flex: none; }
.loc .ph { aspect-ratio: 16 / 10; border-radius: 10px; }
.loc-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }

/* ---------- Final CTA ---------- */
.final { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.final .ph { position: absolute; inset: 0; }
.final .ph::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18,34,42,.95), rgba(18,34,42,.7) 55%, rgba(18,34,42,.4)); }
.final .wrap { position: relative; z-index: 2; padding-block: clamp(4rem, 10vw, 8rem); display: grid; gap: 1.25rem; justify-items: start; }
.final h2 { font-size: var(--step-3); max-width: 14ch; }
.final p { font-size: var(--step-1); color: rgba(255,255,255,.82); max-width: 38ch; }
.final .hours { font: 500 .85rem/1.6 var(--f-mono); color: rgba(255,255,255,.7); letter-spacing: .04em; }

/* ---------- Footer ---------- */
.site-footer { background: #0c171c; color: rgba(255,255,255,.72); font-size: .88rem; padding-block: 2.5rem calc(2.5rem + 72px); }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem 2rem; }
.site-footer a { color: #fff; }
.site-footer h3 { font-size: 1.2rem; color: #fff; margin-bottom: .5rem; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .8rem; }
.eho { display: inline-flex; align-items: center; gap: .5rem; }
.eho svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 2.5rem; } }

/* ---------- Mobile action bar ---------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; gap: .5rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(18,34,42,.96); backdrop-filter: blur(8px); transform: translateY(0); transition: transform .3s var(--ease); }
.action-bar .btn { flex: 1; min-height: 48px; }
.action-bar .btn--ghost { color: #fff; flex: 0 0 auto; }
.action-bar.is-hidden { transform: translateY(110%); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 0; row-gap: 2.5rem; }
  .hero-media { bottom: auto; height: 100%; }
  .tour-card { margin-bottom: 0; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .tile--list { grid-column: 1 / -1; min-height: 0; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .action-bar { display: flex; }
  .hero-actions .mobile-only { display: inline-flex; }
  .hero-actions .desktop-only { display: none; }
  /* Mobile signature: photos open with the scroll; a pinned sun badge tracks the day */
  .day-track { height: auto; }
  .day-stage { position: relative; top: 0; height: auto; display: block; padding-block: 0 3.5rem; } /* block, not grid: lets the badge stay pinned across all four photos */
  .day-text { display: none; }
  .day-chip { display: flex; }
  .day-cta-m { display: flex; margin-top: 1.75rem; }
  .day-cta-m .btn { width: 100%; }
  .day-media { height: auto; display: grid; gap: 1.1rem; overflow: visible; border-radius: 0; }
  .day-media .ph {
    --p: 1;
    position: relative; inset: auto; aspect-ratio: 10 / 11; border-radius: 12px;
    clip-path: inset(calc((1 - var(--p)) * 12%) calc((1 - var(--p)) * 7%) round 12px) !important;
    transition: none;
  }
  .day-media .ph img { transform: scale(calc(1.18 - .18 * var(--p))) !important; transition: none; will-change: transform; }
  .day-media .caption { display: none; }
  .m-scene { display: block !important; }
  .m-scene > * { transform: translateY(calc((1 - var(--p)) * 22px)); }

  .loc { grid-template-columns: 1fr; }
}
.m-scene { display: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1rem 1rem 1.1rem; background: linear-gradient(0deg, rgba(18,34,42,.95), rgba(18,34,42,0)); }
.m-scene .when { font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.m-scene h3 { font-size: 1.9rem; margin: .3rem 0 .25rem; }
.m-scene p { font-size: .92rem; line-height: 1.4; color: rgba(255,255,255,.82); }
@media (max-width: 640px) {
  .tour-card { margin-inline: calc(var(--gutter) * -1); border-radius: 0; box-shadow: none; }
  .tour-form { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .near { grid-template-columns: 1fr; }
  .near li:nth-child(odd) { padding-right: 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: 86%; }
  .seg label { font-size: .82rem; }
}

/* ---------- Motion (progressive: page is complete without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .line > span { animation: rise .9s var(--ease) both; }
  .js .hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
  .js .hero h1 .line:nth-child(3) > span { animation-delay: .16s; }
  .js .hero-media img { animation: settle 2.4s var(--ease) both; }
  .js .reveal { transition: transform .8s var(--ease); }
  .js .reveal.pre { transform: translateY(22px); } /* movement only: content stays visible at rest */
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .day-track { height: auto; }
  .day-stage { position: relative; top: 0; height: auto; grid-template-columns: 1fr; }
  .day-text .sun, .scenes-text { display: none; }
  .day-media { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; overflow: visible; }
  .day-media .ph { position: relative; clip-path: none !important; aspect-ratio: 4 / 3; border-radius: 10px; }
  .day-media .caption { display: none; }
  .m-scene { display: block; }
  .day-chip { display: none !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) { .day-media { grid-template-columns: 1fr; } }

/* ---------- Thank-you page ---------- */
.ty { min-height: 70vh; display: grid; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.ty-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.5rem, 4vw, 3rem); max-width: 720px; display: grid; gap: 1.1rem; }
.ty-card h1 { font-size: var(--step-3); }
.ty-card .status { display: inline-flex; gap: .5rem; align-items: center; font: 500 .78rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }
.ty-card .status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ok); }
.ty-summary { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; padding: 1rem 1.2rem; background: var(--paper); border-radius: var(--radius); font-size: .95rem; }
.ty-summary dt { color: var(--muted); }
.ty-summary dd { margin: 0; font-weight: 600; }
.ty-steps { padding-left: 1.2rem; margin: 0; display: grid; gap: .4rem; }
