/* SΞNSE — one stylesheet. Navy dominates; brass is hairline and marker only; limestone carries Act II. */

:root {
  --navy: #12293C;
  --azure: #2F6B9B;
  --limestone: #F4F2EC;
  --brass: #A9803E;
  --island-top: #183650;
  --island-side: #1F4A6C;
  --ink: #12293C;
  --ink-muted: #4A5B6A;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --s1: 0.8125rem; --s2: 0.9375rem; --s3: 1.0625rem; --s4: 1.25rem;
  --s5: 1.625rem; --s6: 2.25rem; --s7: 3.25rem; --s8: 4.5rem;
  --measure: 68ch;
  --hairline: 1px solid var(--brass);
  --vh: 100vh;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy); color: var(--limestone);
  font-family: var(--sans); font-size: var(--s3); line-height: 1.6;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  background: var(--limestone); color: var(--ink); padding: 0.5rem 0.75rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.button {
  display: inline-block; font-family: var(--sans); font-size: var(--s2); font-weight: 500;
  padding: 0.85rem 1.4rem; border: 1px solid var(--brass); color: var(--limestone);
  background: transparent; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.button:hover { background: var(--brass); color: var(--navy); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button:disabled:hover { background: transparent; color: inherit; }
.button--dark { color: var(--ink); }
.button--dark:hover { background: var(--navy); border-color: var(--navy); color: var(--limestone); }
.button--dark:disabled:hover { background: transparent; color: var(--ink); border-color: var(--brass); }
.button--small { padding: 0.6rem 1rem; }

/* Loading */
.loading {
  position: fixed; inset: 0; z-index: 100; background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.3, 1);
}
.loading--done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loading__mark svg { height: 40px; width: auto; display: block; }
.loading__count { font-variant-numeric: tabular-nums; color: var(--brass); font-size: var(--s2); }
html:not(.js) .loading, html.reduced .loading { display: none; }

/* Masthead */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem 1.75rem;
  color: var(--limestone); transition: color 0.2s;
}
.masthead--on-light { color: var(--ink); background: linear-gradient(to bottom, var(--limestone) 0%, rgba(244, 242, 236, 0.94) 55%, rgba(244, 242, 236, 0) 100%); }
.masthead--on-dark { background: linear-gradient(to bottom, var(--navy) 0%, rgba(18, 41, 60, 0.94) 55%, rgba(18, 41, 60, 0) 100%); }
.masthead__mark { display: block; line-height: 0; }
.masthead__mark svg { height: 28px; width: auto; display: block; }
.masthead__menu { background: none; border: 0; padding: 0.25rem; margin: -0.25rem; color: inherit; cursor: pointer; line-height: 0; transition: color 0.2s; }
.masthead__menu svg { height: 22px; width: auto; display: block; }
.masthead__menu[aria-expanded="true"] { color: var(--brass); }
.site-menu {
  position: absolute; top: calc(100% - 0.25rem); right: 1.5rem; min-width: 15rem;
  display: flex; flex-direction: column; padding: 0.75rem 0;
  background: rgba(18, 41, 60, 0.94); color: var(--limestone); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(169, 128, 62, 0.6);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
}
.site-menu--open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.2s; }
.site-menu a { color: inherit; text-decoration: none; font-size: var(--s2); padding: 0.55rem 1.5rem; }
.site-menu a:hover { color: var(--brass); }
.site-menu__cta { margin-top: 0.5rem; padding-top: 0.9rem !important; border-top: 1px solid rgba(244, 242, 236, 0.15); font-family: var(--serif); font-size: var(--s3) !important; }
html.reduced .site-menu { transition: none; }

/* Act I */
.act-one { position: relative; }
.stage { position: sticky; top: 0; height: var(--vh); overflow: hidden; background: var(--navy); }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stage__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(18, 41, 60, 0.88) 0%, rgba(18, 41, 60, 0.5) 32%, rgba(18, 41, 60, 0) 62%);
}
.chapters { position: relative; margin-top: calc(-1 * var(--vh)); z-index: 2; }
/* Chapters are runway spacers. With JavaScript the copy blocks move into the sticky stage, so
   they never scroll and only cross-fade; without it they stay here in flow. */
.chapters { padding-bottom: var(--vh); } /* the stage stays pinned until the last frame */
.chapter { position: relative; }
.chapter__poster { display: none; }
.chapter__copy {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0 1.5rem 9vh; max-width: min(44rem, 100%); pointer-events: none;
}
.stage .chapter__copy { position: absolute; left: 0; bottom: 0; z-index: 3; }
.chapter__copy > * { pointer-events: auto; }
.chapter__copy h1, .chapter__copy h2 {
  font-size: clamp(var(--s6), 5vw, var(--s8)); max-width: 14ch; text-wrap: balance;
}
.chapter__copy p { font-size: var(--s4); color: rgba(244, 242, 236, 0.88); margin: 1rem 0 0; max-width: 36ch; }
.chapter__copy .button { margin-top: 1.5rem; }

/* Reduced motion and no-JS: posters and copy in flow, no stage */
html:not(.js) .stage, html.reduced .stage { display: none; }
html:not(.js) .chapters, html.reduced .chapters { margin-top: 0; padding-bottom: 0; }
html:not(.js) .chapter, html.reduced .chapter { height: auto !important; padding-top: 4rem; }
html:not(.js) .chapter__poster, html.reduced .chapter__poster { display: block; width: 100%; height: auto; }
html:not(.js) .chapter__copy, html.reduced .chapter__copy {
  position: static; padding: 2rem 1.5rem 3rem; opacity: 1 !important;
}

/* Act II */
.act-two { background: var(--limestone); color: var(--ink); position: relative; z-index: 3; }
.section { padding: 6rem 1.5rem; }
.section + .section { border-top: var(--hairline); }
.section__inner { max-width: 72rem; margin: 0 auto; }
.section h2 { font-size: clamp(var(--s6), 4vw, var(--s7)); margin-bottom: 1.5rem; max-width: 18ch; }
.lede { font-family: var(--serif); font-size: var(--s5); line-height: 1.35; max-width: 34ch; margin-bottom: 2rem; }
.prose p { margin-bottom: 1.25em; }
.section--navy { background: var(--navy); color: var(--limestone); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.payment { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(169, 128, 62, 0.5); font-family: var(--serif); font-size: var(--s4); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.step { border-top: var(--hairline); padding-top: 1.25rem; }
.step__n { font-family: var(--serif); color: var(--brass); font-size: var(--s5); display: block; margin-bottom: 0.5rem; }
.step h3 { font-size: var(--s5); margin-bottom: 0.5rem; }
.fine { font-size: var(--s1); color: var(--ink-muted); max-width: var(--measure); }
.section--navy .fine, .footer .fine { color: rgba(244, 242, 236, 0.7); }

/* Map */
/* Where we run is one screen: the card and the island are capped in viewport units and the
   content sits centred, with top padding that clears the masthead when the menu jumps here. */
#where-we-run { min-height: 100vh; box-sizing: border-box; padding: 5rem 1.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
#where-we-run .section__inner { width: 100%; }
.map { max-width: 56rem; margin: 0 auto; }
.map__stage svg { width: 100%; height: auto; max-height: 34vh; display: block; overflow: visible; }
@media (max-height: 820px) { .map__stage svg { max-height: 31vh; } }
.island-shadow { fill: #04090f; }
.island-shadow--soft { opacity: 0.6; }
.island-shadow--tight { opacity: 0.55; }
.island-side { /* fill set per layer in map.js */ }
.island-top { /* fill is the lit gradient from map.js */ }
.island-edge { fill: none; stroke: #5B98C6; stroke-width: 1.2; opacity: 0.85; }
.coast { fill: none; stroke: var(--brass); stroke-width: 0.75; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
/* The glow lengthens with the line, then settles to a faint permanent halo on the finished outline. */
.coast-glow { fill: none; stroke: var(--brass); stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; filter: blur(4px); transition: opacity 1.2s; }
.map__svg--drawing .coast-glow { opacity: 0.6; }
.map__svg--drawn .coast-glow { opacity: 0.22; }
.coast-head { fill: #FFF6E6; opacity: 0; transition: opacity 0.6s; }
.coast-head--halo { fill: var(--brass); filter: blur(6px); }
.map__svg--drawing .coast-head { opacity: 1; }
.map__svg--drawing .coast-head--halo { opacity: 0.7; }
.mk { opacity: 0; transition: opacity 0.5s; cursor: pointer; outline: none; pointer-events: none; }
.mk--shown { opacity: 1; pointer-events: auto; }
.mk circle { fill: var(--brass); transition: r 0.2s; }
.mk text { font-family: var(--serif); font-size: 24px; fill: var(--limestone); }
.mk:hover circle, .mk:focus-visible circle { r: 5.5; }
.mk[aria-pressed="true"] circle { stroke: var(--brass); stroke-width: 7; stroke-opacity: 0.3; }
.mk:focus-visible text { text-decoration: underline; text-decoration-color: var(--brass); }
/* Sparkle: a brass halo that swells and fades, and a brief brightening of the point, staggered
   per marker. Starts only after the reveal. Off under reduced motion. */
.mk__glow { fill: var(--brass); opacity: 0; transform-box: fill-box; transform-origin: center; }
.mk--lit .mk__glow { animation: mk-glow 1.6s ease-out 1; }
.mk--lit .mk__dot { animation: mk-dot 1.6s ease-in-out 1; }
.mk--current text { fill: #fff; }
.mk--current circle.mk__dot { stroke: var(--brass); stroke-width: 6; stroke-opacity: 0.35; }
@keyframes mk-glow { 0% { opacity: 0.55; transform: scale(0.3); } 70% { opacity: 0; transform: scale(2.2); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes mk-dot { 0%, 100% { fill: var(--brass); } 8% { fill: var(--limestone); } 30% { fill: var(--brass); } }
.map__stage { position: relative; }
/* The picture pane: the empty half beside the section's text. Frosted glass, no border, the photo in
   its full 4:3 frame, name and airport beneath. Turns as the runner passes each destination. */
.map__head { display: grid; grid-template-columns: minmax(0, 36ch) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; margin-bottom: 1rem; }
.map__card {
  justify-self: end; width: min(100%, 30rem);
}
.map__card-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.map__card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease; }
.map__card-img--on { opacity: 1; }
.map__card-name { display: block; font-family: var(--serif); font-size: var(--s5); line-height: 1.15; color: var(--limestone); margin-top: 0.8rem; padding: 0 5rem 0 0; }
.map__card-desc { display: block; font-size: var(--s2); line-height: 1.5; color: rgba(244, 242, 236, 0.78); padding: 0.3rem 5rem 0 0; max-width: 40ch; }
.map__card-nav { position: absolute; right: 0; bottom: 0; display: flex; gap: 0.35rem; }
.map__card { position: relative; width: min(100%, 40vh); justify-self: end; }
.map__card-btn {
  width: 2rem; height: 2rem; border: 1px solid rgba(169, 128, 62, 0.6); background: transparent; color: var(--limestone);
  font-family: var(--serif); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 0 0.2rem;
  transition: background-color 0.2s, border-color 0.2s;
}
.map__card-btn:hover { background: rgba(169, 128, 62, 0.25); border-color: var(--brass); }
.map__hint { font-size: var(--s1); color: rgba(244, 242, 236, 0.7); margin: -1rem 0 0; opacity: 0; transition: opacity 0.6s; }
.map__hint--on { opacity: 1; }
.map__hint--used { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coast, .coast-glow, .coast-head, .mk, .button, .map__hint, .map__card, .map__card-img { transition: none; }
  .mk__glow, .mk__dot { animation: none !important; }
}

/* Experiences: a name and one line per item, two columns per group, hairlines between groups */
.xp-group { border-top: var(--hairline); padding: 1.5rem 0 1.25rem; display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem 2rem; }
.xp-group h3 { font-size: var(--s4); padding-top: 0.15rem; }
.xp-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; }
.xp__name { font-family: var(--serif); font-size: var(--s5); line-height: 1.2; }
.xp__line { margin: 0.2rem 0 0; color: var(--ink-muted); font-size: var(--s2); max-width: 32ch; }

/* Inspection */
.inspection { max-width: 56rem; }
.inspection__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2rem; }
.inspection__wide { grid-column: 1 / -1; }
.inspection label { display: flex; flex-direction: column; gap: 0.35rem; font-size: var(--s1); color: var(--ink-muted); }
.inspection input, .inspection select {
  font: inherit; font-size: var(--s3); color: var(--ink); background: #fff;
  border: 1px solid rgba(18, 41, 60, 0.3); padding: 0.6rem 0.75rem; border-radius: 0;
}
.inspection input:disabled, .inspection select:disabled { background: transparent; border-color: rgba(18, 41, 60, 0.15); }
.inspection fieldset { border: 0; padding: 0; margin: 2rem 0; }
.inspection legend { font-family: var(--serif); font-size: var(--s4); margin-bottom: 0.75rem; padding: 0; color: var(--ink); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.slot { flex-direction: row !important; align-items: center; gap: 0.6rem !important; padding: 0.5rem 0; font-size: var(--s3) !important; color: var(--ink) !important; cursor: pointer; }
.slot input { accent-color: var(--brass); width: 1rem; height: 1rem; margin: 0; }
.inspection__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.inspection__hint { margin: 0; font-size: var(--s2); color: var(--ink-muted); }
.inspection--sent .inspection__hint { color: var(--ink); }
.inspection__fallback { margin-top: 1rem; }

/* Footer */
.footer { background: var(--navy); color: var(--limestone); padding: 4rem 1.5rem; border-top: var(--hairline); }
.footer__mark { margin-bottom: 1.5rem; }
.footer__mark svg { height: 32px; width: auto; display: block; }

/* Sticky bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.85rem 1.5rem; background: rgba(18, 41, 60, 0.92); color: var(--limestone);
  backdrop-filter: blur(8px); border-top: 1px solid rgba(169, 128, 62, 0.5);
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sticky-bar--on { transform: none; }
.sticky-bar p { margin: 0; font-size: var(--s2); }

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 4rem 1.25rem; }
  .two-col, .steps, .map, .inspection__grid, .slots { grid-template-columns: 1fr; }
  .steps { gap: 2rem; }
  .map { gap: 2rem; }
  .xp-group { grid-template-columns: 1fr; gap: 0.75rem; }
  .xp-list { grid-template-columns: 1fr; }
  /* Phones: the film is a 16:9 strip a fifth of the way down, navy above and below, copy under it. */
  .stage__canvas { top: 20vh; bottom: auto; height: 56.25vw; }
  .stage__scrim { display: none; }
  .stage .chapter__copy { top: calc(20vh + 56.25vw + 1.25rem); bottom: auto; }
  .chapter__copy { padding: 0 1.25rem 0; }
  .chapter__copy p { font-size: var(--s3); }
  .masthead { padding: 1rem 1.25rem; }
  .masthead__mark svg { height: 22px; }
  .masthead__menu svg { height: 18px; }
  /* Touch: the menu button, the carousel chevrons, the menu rows and the slot rows all reach 44px. */
  .masthead__menu { padding: 13px; margin: -13px; }
  .map__card-btn { width: 44px; height: 44px; }
  .site-menu a { padding: 0.8rem 1.5rem; }
  .slot { min-height: 44px; }
  .site-menu { right: 0; left: 0; min-width: 0; }
  .sticky-bar p { display: none; }
  .sticky-bar { justify-content: center; }
  .mk text { font-size: 40px; } /* the SVG is 1000 units wide; 40 reads as ~15px at 375px */
  .mk circle { r: 5; }
  .map__head { grid-template-columns: 1fr; gap: 1rem; }
  .map__card { justify-self: stretch; width: 100%; }
  .map__card-name { font-size: var(--s4); }
}
