/* Hallmark · shape: Narrative Workflow · genre: editorial · theme: Specimen (deal 3/3, seed dubai-travel-agency-bur-fc1c·c138a586·2026-12-03·r0) · job: book · draw: 51c22d
 * hero: Poster (swapped from Index: the film leads, the head on an oat plate at its foot) · nav: masthead · footer: mast · imagery: two films (Dubai at dusk in the hero, the owner's Dubai Frame film below), photographs, library 8, natural colour by request · signature: Downtown Dubai lighting up behind a Bodoni line set on an oat plate
 * axes: light/high-contrast-serif/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V5 · weakest: S, the library has no Dubai frames; every caption names the real place shown and the slots take the agency's own photos */
/* Hallmark · dismissed 25 · the stage and frame lines are two short sentences beside a photograph, set as captions at 34 to 36ch */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- shared ---------- */
body { font-size: 1.0625rem; }
h1, h2 { font-variation-settings: "opsz" var(--display-optical); line-height: 1.02; }
h3 { font-optical-sizing: auto; line-height: 1.15; letter-spacing: -0.01em; }
.lead { color: var(--color-ink-2); }
.num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }
a { text-decoration-color: var(--color-accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--ink { background: var(--color-ink); color: var(--color-paper); }
.btn--ink:hover { background: var(--color-ink-2); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } .btn:active { transform: none; } }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

[data-slot] { margin: 0; }
.caption { margin-top: var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }

/* ---------- masthead ---------- */
.mast { border-bottom: var(--rule-hair) solid var(--color-rule); }
.mast__top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-lg); padding-block: var(--space-sm); }
.mast__place { font-size: var(--text-sm); color: var(--color-muted); }
.mast__logo { justify-self: center; display: block; }
.mast__logo img { width: auto; height: 76px; }
.mast__cta { justify-self: end; min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.mast__nav { border-top: var(--rule-hair) solid var(--color-rule); }
.mast__nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-xl); margin: 0; padding: var(--space-sm) 0; list-style: none; }
.mast__nav a { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); text-decoration: none; }
.mast__nav a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }

/* ---------- hero: the film fills the screen, the head rests on an oat plate at its foot ---------- */
.hero__film { position: relative; margin: 0; height: clamp(520px, calc(100svh - 150px), 960px); background: var(--color-ink); color: var(--color-paper); overflow: hidden; }
.hero__plate { color: var(--color-ink); }
.hero__film video, .frame__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__film video { object-position: 50% 62%; }
.hero__plate-wrap { position: absolute; inset-inline: 0; bottom: 0; z-index: var(--z-raised); pointer-events: none; }
.hero__plate { display: grid; gap: var(--space-md); width: min(100%, 720px); padding: var(--space-xl) var(--space-xl) var(--space-lg); background: var(--color-paper); pointer-events: auto; }
.hero__plate h1 { font-size: clamp(2.5rem, 3.4vw + 0.75rem, 4.25rem); max-width: 16ch; }
.hero__plate .actions { margin-top: var(--space-xs); }
.film__toggle { position: absolute; right: var(--space-md); bottom: var(--space-md); z-index: var(--z-raised); min-height: 36px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-paper); background: color-mix(in oklab, var(--color-ink) 55%, transparent); color: var(--color-paper); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.film__toggle:hover { background: var(--color-ink); }
.film__toggle:focus-visible { outline: 2px solid var(--color-paper); outline-offset: 2px; }
html:not(.js) .film__toggle { display: none; }
@media (prefers-reduced-motion: reduce) { .film__toggle { display: none; } }
/* ---------- the Dubai Frame film beside its line ---------- */
.frame { padding-block: var(--section-gap-s) 0; }
.frame__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); align-items: end; }
.frame__text { display: grid; gap: var(--space-md); justify-items: start; padding-bottom: var(--space-xs); }
.frame__text p { color: var(--color-ink-2); max-width: 34ch; }
.frame__link { font-weight: 500; color: var(--color-ink); }
.frame__film { position: relative; margin: 0; aspect-ratio: 16 / 9; min-height: 420px; background: var(--color-paper-3); overflow: hidden; }
.frame__film video { object-position: 50% 40%; }

/* ---------- one entrance: the stages settle in as they arrive ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- how: the narrative ---------- */
.how { padding-block: var(--section-gap); }
.how h2 { margin-bottom: var(--space-2xl); }
.stages { display: grid; gap: var(--space-3xl); margin: 0; padding: 0; list-style: none; counter-reset: stage; }
.stage { counter-increment: stage; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.stage__photo { aspect-ratio: 3 / 2; min-height: 440px; }
.stage__photo--tall { aspect-ratio: 4 / 5; max-height: 640px; }
.stage__text { display: grid; gap: var(--space-md); align-content: center; }
.stage__text::before { content: counter(stage, decimal-leading-zero); font: 400 var(--text-display-s)/1 var(--font-outlier); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; color: var(--color-accent); }
.stage__text h3 { font-size: var(--text-2xl); }
.stage__text p { color: var(--color-ink-2); max-width: 36ch; }

/* ---------- statement, the ink band ---------- */
.statement { padding-block: var(--section-gap-s); background: var(--color-ink); color: var(--color-paper); }
.statement__line { font: 500 var(--text-section)/1.08 var(--font-display); font-variation-settings: "opsz" var(--display-optical); letter-spacing: -0.02em; max-width: 24ch; text-wrap: balance; }

/* ---------- ideas: a switcher by mood ---------- */
.ideas { padding-block: var(--section-gap-l) var(--section-gap); }
.ideas__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.seg { display: flex; flex-wrap: wrap; border: var(--rule-hair) solid var(--color-ink); }
.seg [role="tab"] { min-height: 44px; padding: 0 var(--space-lg); border: 0; border-left: var(--rule-hair) solid var(--color-ink); background: transparent; color: var(--color-ink-2); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.seg [role="tab"]:first-child { border-left: 0; }
.seg [role="tab"]:hover { background: var(--color-paper-2); color: var(--color-ink); }
.seg [role="tab"]:active { background: var(--color-paper-3); }
.seg [role="tab"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -3px; }
.seg [role="tab"][aria-selected="true"] { color: var(--color-ink); box-shadow: inset 0 -2px 0 var(--color-ink); }
.seg [role="tab"]:disabled { opacity: 0.55; cursor: not-allowed; }
html:not(.js) .seg { display: none; }
.idea { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-2xl); align-items: end; }
html:not(.js) .idea + .idea { margin-top: var(--space-3xl); }
.idea__photo { aspect-ratio: 16 / 10; min-height: 480px; }
.idea__text { display: grid; gap: var(--space-md); justify-items: start; padding-bottom: var(--space-xs); }
.idea__text h3 { font-size: var(--text-2xl); }
.idea__where { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }

/* ---------- plan: the booking beside one last photograph ---------- */
.plan { padding-block: var(--section-gap-s); background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); }
.plan__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: stretch; }
.plan__photo { min-height: 520px; }
.plan__form { display: grid; gap: var(--space-md); align-content: start; }
.plan__note { color: var(--color-muted); font-size: var(--text-sm); max-width: 52ch; margin-bottom: var(--space-sm); }
#trip { display: grid; gap: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: 0; background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-md)/1.4 var(--font-body); outline: 2px solid transparent; outline-offset: -3px; }
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--color-ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline-color: var(--color-focus); }
.field input[aria-invalid], .field textarea[aria-invalid] { border-color: var(--color-error); }
.field input:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-ink-2); }

/* ---------- visit: ruled rows ---------- */
.visit { padding-block: var(--section-gap); }
.visit__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.visit__rows { margin: 0; border-top: 3px double var(--color-rule-2); }
.visit__rows > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: var(--gap-columns); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.visit__rows dt { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.visit__rows dd { margin: 0; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink); }

/* ---------- footer: mast ---------- */
.foot { padding-block: var(--space-3xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__mark { font: 500 clamp(3rem, 9vw, 8.5rem)/0.95 var(--font-display); font-variation-settings: "opsz" var(--display-optical); letter-spacing: -0.03em; overflow-wrap: break-word; min-width: 0; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.foot__links a { color: var(--color-ink-2); }
.foot__small { color: var(--color-muted); }

/* ---------- photo credits page ---------- */
.credits { padding-block: var(--space-2xl) var(--section-gap-s); display: grid; gap: var(--space-lg); justify-items: start; }
.credits__home img { width: auto; height: 72px; }
.credits h1 { font-size: var(--text-section); }
.credits__lead { color: var(--color-ink-2); max-width: 60ch; }
.credits__list { width: 100%; max-width: 860px; margin: 0; border-top: 3px double var(--color-rule-2); }
.credits__list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.credits__list dt { font-weight: 500; }
.credits__list dd { margin: 0; color: var(--color-ink-2); }
@media (max-width: 40rem) { .credits__list > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); } }

/* ---------- sticky booking bar ---------- */
.stick { position: fixed; right: var(--space-lg); bottom: var(--space-lg); z-index: var(--z-sticky); display: flex; align-items: center; gap: var(--space-md); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); background: var(--color-paper); border: var(--rule-hair) solid var(--color-ink); }
.stick__line { font: 500 var(--text-lg)/1 var(--font-display); }
.stick[hidden] { display: none; }

/* ---------- under 60rem ---------- */
@media (max-width: 60rem) {
  .mast__top { grid-template-columns: minmax(0, 1fr) auto; }
  .mast__place { display: none; }
  .mast__logo { justify-self: start; }
  .mast__logo img { height: 64px; }
  .mast__nav ul { justify-content: flex-start; gap: var(--space-lg); overflow-x: auto; flex-wrap: nowrap; }
  .hero__film { height: auto; min-height: 0; background: var(--color-paper); }
  .hero__film video { position: relative; height: 56svh; }
  .hero__plate-wrap { position: static; }
  .hero__plate { width: 100%; padding: var(--space-lg) 0 var(--space-md); }
  .film__toggle { bottom: auto; top: var(--space-md); }
  .frame__film { min-height: 0; }
  .hero__text, .stage, .idea, .plan__in, .visit__in, .frame__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .stage__photo, .idea__photo { min-height: 0; }
  .stage__photo--tall { aspect-ratio: 3 / 2; }
  .plan__photo { min-height: 280px; aspect-ratio: 3 / 2; }
}
@media (max-width: 40rem) {
  .visit__rows > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .stick { left: var(--space-sm); right: var(--space-sm); bottom: var(--space-sm); justify-content: space-between; }
  .ideas__head .seg { width: 100%; }
  .seg [role="tab"] { flex: 1; padding: 0 var(--space-sm); }
}
