/* WYLD demo — page-specific: home */

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.hero__fig { position: absolute; inset: -6% 0; }
.hero__fig img { width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.hero__veil { position: absolute; inset: 0; background:
  linear-gradient(to bottom, rgba(10,11,10,.62) 0%, rgba(10,11,10,.12) 34%, rgba(10,11,10,.14) 56%, rgba(10,11,10,.8) 100%); }
.hero__in { position: relative; height: 100%; display: grid; align-content: end; padding-bottom: clamp(28px, 6vh, 62px); }
.hero__eyebrow { padding-bottom: clamp(18px, 4vh, 40px); }
.hero__h { will-change: transform; max-width: 15ch; }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--colgap); padding-top: clamp(26px, 5vh, 56px); }
.hero__strip { display: flex; flex-wrap: wrap; gap: 6px clamp(20px, 3vw, 52px); }
.hero__strip div { display: grid; gap: 5px; }
.hero__cue { display: grid; justify-items: center; gap: 10px; }
.hero__cue i { display: block; width: 1px; height: clamp(38px, 7vh, 64px); background: rgba(241,237,228,.5); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  42%  { transform: scaleY(1); transform-origin: top; }
  43%  { transform: scaleY(1); transform-origin: bottom; }
  92%, 100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 640px) { .hero__cue { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__fig img { animation: none !important; transform: none !important; }
  .hero__cue i { animation: none; transform: none; }
}
.js .hero__fig img { animation: ken 20s ease-out infinite alternate; }
@keyframes ken { from { transform: scale(1); } to { transform: scale(1.12); } }

/* ---------- statement ---------- */
.stmt { padding-block: clamp(110px, 20vh, 260px); }
.stmt__col { grid-column: 3 / span 8; }
.stmt__p { font-size: var(--fs-state); line-height: 1.24; font-family: var(--f-display); font-weight: 300; letter-spacing: -.02em; max-width: 34ch; }
.stmt__sig { padding-top: clamp(30px, 5vh, 60px); }
@media (max-width: 900px) { .stmt__col { grid-column: 1 / -1; } }

/* ---------- dark to light transition ----------
   The image bleeds out of the dark ground; the ground changes exactly at its
   lower edge; the display line straddles the boundary and reads on both
   grounds by blend mode. */
.shift { position: relative; background: var(--ink); padding-top: clamp(40px, 8vh, 110px); overflow: visible; }
.shift__fig { position: relative; overflow: hidden; aspect-ratio: 2/1; }
.shift__fig img { width: 100%; height: 100%; object-fit: cover; }
.shift__cap {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; z-index: 3;
  transform: translateY(50%); color: var(--bone); mix-blend-mode: difference;
  max-width: 18ch;
}
.shift__meta { position: absolute; right: var(--gutter); bottom: 0; z-index: 3; transform: translateY(calc(100% + 26px)); color: var(--moss); text-align: right; }
@media (max-width: 640px) { .shift__fig { aspect-ratio: 4/3; } .shift__meta { display: none; } }

/* ---------- section head ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px clamp(24px, 4vw, 70px); padding-bottom: clamp(30px, 5vh, 62px); }
.head__l { display: grid; gap: clamp(14px, 2.4vh, 26px); }
.link-u { position: relative; display: inline-block; }
.link-u::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(1); transform-origin: left; transition: transform .45s var(--ease); }
.link-u:hover::after { transform: scaleX(0); transform-origin: right; }

/* ---------- enquire ---------- */
.enq { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 90px); align-items: end; }
.enq__lines { display: grid; gap: 14px; }
.enq__lines a { position: relative; display: inline-block; font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.02em; }
.enq__lines a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.enq__lines a:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .enq { grid-template-columns: 1fr; } }

/* ---------- trust ---------- */
.trust__top { display: grid; grid-template-columns: minmax(0,.42fr) minmax(0,1fr); gap: clamp(26px, 5vw, 84px); align-items: end; }
.trust__fig { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.trust__fig img { width: 100%; height: 100%; object-fit: cover; }
.trust__quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 56px); padding-top: clamp(44px, 7vh, 92px); }
@media (max-width: 900px) {
  .trust__top { grid-template-columns: 1fr; }
  .trust__quotes { grid-template-columns: 1fr; }
  .trust__fig { max-width: 320px; }
}

/* ---------- 1680+ ---------- */
@media (min-width: 1680px) {
  :root { --fs-body: 1.125rem; }
  .stmt__col { grid-column: 3 / span 7; }
}

/* ---------- how it works ---------- */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: auto minmax(0, 22ch) minmax(0, 1fr);
  gap: clamp(14px, 2.6vw, 48px); align-items: baseline;
  padding-block: clamp(20px, 3.4vh, 38px);
  border-bottom: 1px solid var(--line);
}
.step__n { color: var(--stone); }
@media (max-width: 700px) {
  .step { grid-template-columns: auto 1fr; row-gap: 10px; }
  .step__b { grid-column: 2; }
}

/* ---------- day in the field ---------- */
.day { position: relative; display: grid; gap: 0; }
.day__row {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3.4vw, 56px);
  padding-block: clamp(20px, 3.2vh, 36px);
  border-bottom: 1px solid var(--line-d);
  position: relative;
}
.day__row:first-child { border-top: 1px solid var(--line-d); }
.day__t { font-variant-numeric: tabular-nums; color: var(--bone); padding-top: .35em; }
.day__c { display: grid; gap: 10px; max-width: 56ch; }
.day__light { color: var(--stone); }
@media (max-width: 560px) {
  .day__row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- what you learn ---------- */
.learn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(28px, 5vw, 92px); align-items: start; }
.learn__fig { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.learn__fig img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .learn { grid-template-columns: 1fr; } .learn__fig { aspect-ratio: 3/2; } }

/* ---------- guest gallery ---------- */
.gcap { display: grid; gap: 4px; }



/* =========================================================
   INNER PAGES
   ========================================================= */

/* ---------- year tabs ---------- */
[role="tab"] { color: var(--stone); position: relative; transition: color .3s ease; }
[role="tab"]:hover { color: var(--ink); }
[role="tab"]::after { content: ''; position: absolute; inset: auto 0 -1px 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
[role="tab"][aria-selected="true"] { color: var(--ink); }
[role="tab"][aria-selected="true"]::after { transform: scaleX(1); }

/* ---------- sortable headers ---------- */
[data-sort] { transition: color .3s ease; cursor: pointer; }
[data-sort]:hover { color: var(--ink); }
th[aria-sort="ascending"] [data-sort],
th[aria-sort="descending"] [data-sort] { color: var(--ink); }
th[aria-sort="ascending"] [data-sort]::after { content: ' ↑'; }
th[aria-sort="descending"] [data-sort]::after { content: ' ↓'; }

/* ---------- page hero (shorter than the home hero) ---------- */
.phero { position: relative; height: 74vh; min-height: 440px; overflow: hidden; }
.phero__fig { position: absolute; inset: -5% 0; }
.phero__fig img { width: 100%; height: 112%; object-fit: cover; }
.phero__veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,11,10,.66) 0%, rgba(10,11,10,.1) 40%, rgba(10,11,10,.78) 100%); }
.phero__in { position: relative; height: 100%; display: grid; align-content: end; padding-bottom: clamp(26px, 5vh, 54px); }
.phero__h { max-width: 20ch; padding-top: clamp(16px, 3vh, 34px); }
.phero__strip { display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 3vw, 48px); padding-top: clamp(22px, 4vh, 44px); }

/* ---------- sticky sub-nav ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 400; background: var(--bone); border-bottom: 1px solid var(--line); }
.subnav__in { display: flex; gap: clamp(14px, 2.4vw, 40px); overflow-x: auto; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { padding-block: 18px; color: var(--moss); white-space: nowrap; position: relative; transition: color .3s ease; }
.subnav a::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.subnav a.is-on, .subnav a:hover { color: var(--ink); }
.subnav a.is-on::after { transform: scaleX(1); }

/* ---------- editorial two-column ---------- */
.edit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 96px); }
.pull { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2.125rem); line-height: 1.16; letter-spacing: -.022em; font-style: italic; font-weight: 300; max-width: 26ch; }
@media (max-width: 900px) { .edit { grid-template-columns: 1fr; } }

/* ---------- drag gallery ---------- */
.gal { display: flex; gap: clamp(14px, 2vw, 30px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; padding-inline: var(--gutter); }
.gal::-webkit-scrollbar { display: none; }
.gal.is-dragging { scroll-snap-type: none; }
.gal__i { flex: 0 0 auto; width: min(58vw, 700px); scroll-snap-align: start; }
/* The browser starts its own native image drag on pointerdown, which cancels
   the pointer sequence the gallery is listening for — so dragging worked on the
   gutters and died on the frames. Taking the images out of hit-testing hands
   every press to the track itself. */
.gal__i img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.gal { user-select: none; -webkit-user-select: none; }
.gal__i figcaption { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px clamp(14px, 2vw, 30px); }
.gal-hint { transition: opacity .5s ease; display: inline-flex; align-items: center; gap: 9px; }
.gal-hint.is-gone { opacity: 0; }
/* The arrow drifts on a loop: a static "drag" label reads as a caption, a
   moving one reads as an instruction. */
.gal-hint i { display: block; width: 22px; height: 1px; background: currentColor; position: relative; }
.gal-hint i::after {
  content: ''; position: absolute; right: 0; top: -2px;
  width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .gal-hint i { animation: hintNudge 1.9s var(--ease) infinite; }
}
@keyframes hintNudge {
  0%, 100% { transform: translateX(0); opacity: .55; }
  45%      { transform: translateX(7px); opacity: 1; }
}

/* A rail under the track: how far along the roll you are, and that there is
   more of it. The only always-visible affordance that survives the hint
   fading on first interaction. */
.gal-rail { height: 1px; background: var(--line); position: relative; margin-top: clamp(18px, 2.6vh, 30px); }
.gal-rail i { position: absolute; inset: 0 auto 0 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.g-dark .gal-rail { background: var(--line-d); }
.g-dark .gal-rail i { background: var(--bone); }

/* ---------- seasonality matrix ---------- */
.seas { display: grid; grid-template-columns: minmax(120px, 1.4fr) repeat(12, minmax(0, 1fr)); align-items: center; column-gap: 3px; }
.seas__h { padding-bottom: 12px; color: var(--stone); text-align: center; }
.seas__lbl { padding-block: 9px; padding-right: 14px; white-space: nowrap; }
.seas__cell { height: 8px; background: rgba(10,11,10,.07); }
.seas__cell.is-peak { background: var(--ink); }
.seas__cell.is-ok { background: rgba(10,11,10,.3); }
.seas__row { display: contents; }
.seas__row + .seas__row .seas__cell { margin-top: 0; }
@media (max-width: 640px) { .seas { grid-template-columns: minmax(88px, 1fr) repeat(12, minmax(0, 1fr)); font-size: 9px; } }

/* ---------- expedition: sticky rail ---------- */
.exp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.rail { position: sticky; top: calc(var(--header-h) + 26px); border: 1px solid var(--line); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 20px; background: var(--paper); }
.rail__price { display: flex; align-items: baseline; gap: 10px; }
.btn-line { display: block; text-align: center; padding: 15px 20px; background: var(--ink); color: var(--bone); transition: opacity .3s ease; }
.btn-line:hover { opacity: .84; }
@media (max-width: 900px) {
  .exp { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: auto 0 0 0; z-index: 420; border: 0; border-top: 1px solid var(--line); grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 12px var(--gutter); }
  .rail__hide { display: none; }
}

/* ---------- accordion ---------- */
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(14px, 2.4vw, 40px); align-items: baseline; width: 100%; padding-block: clamp(16px, 2.2vh, 24px); text-align: left; }
.acc__btn .d { transition: opacity .3s ease; }
.acc__btn:hover .d { opacity: .58; }
.acc__sign { width: 11px; height: 1px; background: currentColor; position: relative; }
.acc__sign::after { content: ''; position: absolute; inset: 0; background: currentColor; transform: rotate(90deg); transition: transform .4s var(--ease); }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel .body { padding-bottom: clamp(18px, 2.6vh, 30px); }

/* ---------- lists ---------- */
.hlist { border-top: 1px solid var(--line); }
.hlist li { display: grid; grid-template-columns: auto 1fr; gap: clamp(12px, 2vw, 28px); padding-block: 13px; border-bottom: 1px solid var(--line); }
.hlist li > .m { color: var(--stone); }

/* ---------- article ---------- */
.artbar { position: fixed; top: var(--header-h); left: 0; right: 0; height: 1px; z-index: 450; background: var(--line); }
.artbar i { display: block; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.art { max-width: 68ch; margin-inline: auto; }
.art p { margin-bottom: 1.35em; }
.art > p:first-of-type::first-letter {
  float: left; font-family: var(--f-display); font-weight: 300;
  font-size: 4.6em; line-height: .8; padding: .06em .12em 0 0;
}
.art h2 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.1vw, 1.875rem); line-height: 1.1; letter-spacing: -.02em; margin: 2.2em 0 .7em; }
.art blockquote { margin: 2em 0; padding-left: 0; }
.art blockquote p { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.18; letter-spacing: -.022em; }
.artfig { margin-block: clamp(36px, 6vh, 76px); }
.artfig img { width: 100%; }
.artfig figcaption { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px clamp(14px, 2vw, 32px); }
.artfig--bleed { max-width: none; margin-inline: calc(50% - 50vw); padding-inline: var(--gutter); }
.credit { border-top: 1px solid var(--line); padding-top: 16px; margin-top: clamp(36px, 5vh, 64px); display: grid; gap: 6px; }
/* =========================================================
   MOBILE — the layouts that need real attention below 900px
   ========================================================= */
@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero__h { max-width: none; }
  .phero { height: 66vh; height: 66svh; min-height: 400px; }
  .stmt { padding-block: clamp(70px, 12vh, 120px); }
  .subnav { top: var(--header-h); }
  .trust__quotes { gap: 26px; }
  .enq__lines a { font-size: clamp(1.15rem, 5vw, 1.5rem); }
}

@media (max-width: 640px) {
  .gal__i { width: min(82vw, 460px); }
  .gal { padding-inline: var(--gutter); }
  .panel--img { width: 88vw; }
  .panel--data { width: 92vw; grid-template-columns: 1fr; }
  .panel--data .panel__fig { display: none; }
  .panel--type { width: 88vw; }
  .pin__pad--start { width: 88vw; }
  .pin__pad--end { width: 60vw; }
  .dl-m { grid-template-columns: 1fr auto; }
  .art > p:first-of-type::first-letter { font-size: 3.6em; }
  .jrow { grid-template-columns: 1fr; }
  .jrow img { width: 100%; }
  .learn__fig { aspect-ratio: 4/3; }
  .seas { column-gap: 2px; }
  .rail { grid-template-columns: 1fr; }
  .rail .btn-line { width: 100%; }
}

/* The departures table is the one place a phone genuinely needs a different
   shape: rows become stacked records with their column names as labels. */
@media (max-width: 620px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tbody tr { display: block; padding-block: 18px; }
  .tbl tbody td {
    display: grid; grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px; align-items: baseline;
    height: auto; padding: 3px 0; text-align: left;
  }
  .tbl tbody td::before {
    content: attr(data-label);
    font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--stone);
  }
  .tbl tbody td:last-child { text-align: left; padding-top: 8px; }
  .tbl tbody td.c-exp { font-size: 1.2rem; padding-bottom: 6px; }
  .tbl .c-sm { display: grid; }
  .tbl tbody td[colspan] { display: block; }
  .tbl tbody td[colspan]::before { content: none; }
}

/* ---------- touch targets ----------
   Anything tapped by a thumb gets 44px, which is larger than the visual weight
   the design wants. The box grows, the ink does not: padding on the control,
   not a bigger type size. */
@media (pointer: coarse), (max-width: 940px) {
  .burger { width: 44px; height: 44px; margin-right: -7px; }
  .burger i { left: 11px; right: 11px; }
  .burger i:first-child { top: 20px; }
  .burger i:last-child { top: 26px; }
}
@media (pointer: coarse) {
  .chip { padding: 13px 15px; }
  [role="tab"] { padding-block: 15px; }
  .soc a { width: 44px; height: 44px; }
  .subnav a { padding-block: 15px; }
  .spx__row { padding-block: 16px; }
  .pbar__toggle { padding: 14px; }
  .pbar__opt { padding: 12px 8px; }
}

/* The sticky rail becomes a fixed bottom bar below 900px. Two consequences:
   the last section needs clearance so the bar never covers it, and the palette
   switcher has to sit above the bar rather than on top of it. */
@media (max-width: 900px) {
  body.has-rail { padding-bottom: 84px; }
  body.has-rail .pbar { bottom: calc(84px + clamp(10px, 2vw, 18px)); }
}

/* Below the stacked-table breakpoint the column heads are gone, so the sort
   controls inside them must leave the tab order too rather than sit invisible
   and focusable. Sorting is a desktop affordance here; the filter chips are
   the mobile equivalent and stay fully usable. */
@media (max-width: 620px) {
  .tbl thead { display: none; }
}
