/* Shared mechanics for all five directions. Look and feel live in v1–v5.css. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:var(--fs-body,17px);line-height:1.55;-webkit-font-smoothing:antialiased}
img,video{display:block;max-width:100%}
h1,h2,h3,p,figure,blockquote,ol,ul{margin:0}
ol,ul{padding:0;list-style:none}
a{color:inherit}
h1,h2,h3{font-family:var(--font-display);text-wrap:balance}
p{text-wrap:pretty}

.skip{position:absolute;left:-9999px;top:8px;z-index:100;background:var(--ink);color:var(--bg);padding:10px 14px}
.skip:focus{left:8px}
:focus-visible{outline:2px solid var(--focus,currentColor);outline-offset:3px}

.wrap{width:min(100% - 2*var(--gutter), var(--max,1280px));margin-inline:auto}
:root{--gutter:clamp(16px,4vw,48px)}

/* Header */
.hdr{position:fixed;inset:0 0 auto;z-index:50;transition:background .3s,color .3s,box-shadow .3s}
.hdr-in{display:flex;align-items:center;justify-content:space-between;gap:24px;width:min(100% - 2*var(--gutter), var(--max-hdr,1440px));margin-inline:auto;height:var(--hdr-h,72px)}
.logo{text-decoration:none;display:flex;flex-direction:column;justify-content:center;line-height:1.1;flex:none;white-space:nowrap;min-height:24px}
.nav{display:flex;align-items:center;gap:clamp(12px,1.1vw,20px)}
.nav a{text-decoration:none;white-space:nowrap}
/* Text links get a 24 px tall hit area (WCAG 2.5.8 AA; lesson 04) without changing how they look */
.nav a:not(.btn),.ftr a:not(.logo),.link-hero{display:inline-flex;align-items:center;min-height:24px}
.menu{display:none;position:relative}
.menu summary{list-style:none;cursor:pointer}
/* Menu button = a drawn burger, a cross when open (2 Nov: the word "Menu" looked clumsy); 44 px hit area, name for
   screen readers in aria-label. Same in all five directions, it takes the header's text colour. */
.menu summary{display:grid;place-items:center;width:44px;height:44px;margin-right:-10px;color:inherit}
.menu summary svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.menu .i-close,.menu[open] .i-burger{display:none}
.menu[open] .i-close{display:block}
.menu summary::-webkit-details-marker{display:none}
.menu:not([open]) .menu-panel{display:none}
.menu-panel{position:absolute;right:0;top:calc(100% + 12px);display:flex;flex-direction:column;gap:4px;min-width:240px;padding:12px;background:var(--bg);color:var(--ink);box-shadow:0 12px 40px rgb(0 0 0 / .18)}
.menu-panel a{padding:10px 8px;text-decoration:none}
.menu-panel .btn{margin-top:8px;text-align:center}
@media (max-width:1080px){.nav{display:none}.menu{display:block}}

.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;min-height:44px;white-space:nowrap}
/* Two doors at the end of the header (1 Nov): travellers get the filled button, travel agents its outlined twin, set
   apart from the travel links. Same shape and type as each direction's .btn, so it reads as a door, not a link. */
.btn-trade{background:transparent;color:inherit;border-color:transparent;box-shadow:inset 0 0 0 1.5px currentColor}
.btn-trade:hover{background:color-mix(in srgb,currentColor 12%,transparent)}
.nav .btn-trade{margin-left:clamp(0px,1.2vw,20px)}
/* Header buttons a step lighter than page buttons (2 Nov: they read heavy): 40 px tall, slimmer sides */
.hdr .btn{min-height:40px;padding-inline:18px}
.menu-panel .btn-trade{margin-top:12px}
.menu-panel .btn-trade + .btn{margin-top:8px}

/* Hero */
.hero{position:relative;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;color:#fff}
.hero-media,.hero-shade{position:absolute;inset:0}
.hero-media video,.yacht-media video,.story-media video{width:100%;height:100%;object-fit:cover;background:center/cover no-repeat var(--poster)}
@media (max-width:760px){.hero-media video,.yacht-media video,.story-media video{background-image:var(--poster-sm)}}
.vctl[hidden]{display:none}
.hero-copy{position:relative;z-index:2}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px}
/* Hero composition, shared by all five directions (1 Nov 2026). Rules in HERO_RULES.md, measured on reference travel sites
   with _build/hero-layout-bench.cjs: one left-aligned group (headline, lead, actions) on the logo's edge, sitting in the
   lower third, never spread across the width; the centre of the video stays clear. Directions set type, not position. */
:root{--hero-h1:clamp(40px,4.3vw,62px);--hero-lead:clamp(17px,1.3vw,19px)}
.hero{align-items:flex-end;justify-content:stretch;text-align:left;padding:calc(var(--hdr-h,72px) + 32px) 0 clamp(72px,19vh,200px)}
.hero-copy{width:min(100% - 2*var(--gutter), var(--max-hdr,1440px));margin-inline:auto;display:block}
.hero h1{font-size:calc(var(--hero-h1) * var(--hero-k,1));max-width:14em}
.hero-lead{font-size:var(--hero-lead);line-height:1.5;max-width:none;text-wrap:wrap;margin:clamp(16px,1.6vw,24px) 0 0;padding:0;border:0}
.hero-actions{margin-top:clamp(28px,2.8vw,40px);justify-content:flex-start;gap:16px 32px}
.hero-shade{background:
  linear-gradient(180deg,var(--hero-scrim-top,rgb(0 0 0 / .3)) 0,transparent calc(var(--hdr-h,72px) + var(--hero-scrim-top-h,80px))),
  radial-gradient(95% 85% at 0% 100%,var(--hero-scrim,rgb(0 0 0 / .55)) 0,var(--hero-scrim,rgb(0 0 0 / .55)) var(--hero-scrim-hold,0%),transparent 100%)}
.hero h1,.hero-lead{text-shadow:0 1px 2px rgb(0 0 0 / .18),0 2px 28px rgb(0 0 0 / .28)}
@media (max-width:760px){
  :root{--hero-h1:clamp(34px,9.6vw,42px);--hero-lead:16px}
  .hero-lead{max-width:none}
  .hero:has(.vctl){padding-bottom:max(84px,10svh)}
  .hero-lead br{display:none}
  .hero{padding-bottom:max(48px,7svh)}
  .hero-shade{background:
    linear-gradient(180deg,var(--hero-scrim-top,rgb(0 0 0 / .3)) 0,transparent calc(var(--hdr-h,72px) + 60px)),
    linear-gradient(0deg,var(--hero-scrim,rgb(0 0 0 / .55)) 0,var(--hero-scrim,rgb(0 0 0 / .55)) var(--hero-scrim-hold,0%),transparent 55%)}
}
/* Video control (v3 only): Aman-style, a small glyph and a hairline that fills with the loop, on the copy's left edge */
.vctl{position:absolute;z-index:3;left:max(var(--gutter),(100% - var(--max-hdr,1440px))/2);right:max(var(--gutter),(100% - var(--max-hdr,1440px))/2);bottom:clamp(16px,3vh,28px);display:flex;align-items:center;gap:12px;color:#fff}
.vctl .pause{flex:none;display:grid;place-items:center;width:32px;height:32px;margin-left:-8px;padding:0;border:0;background:none;color:inherit;cursor:pointer;opacity:.8;transition:opacity .2s}
.vctl .pause:hover,.vctl .pause:focus-visible{opacity:1}
.vctl svg{width:14px;height:14px;fill:currentColor}
.vctl .i-play,.vctl .pause[aria-pressed="true"] .i-pause{display:none}
.vctl .pause[aria-pressed="true"] .i-play{display:block}
.vctl-line{flex:1;height:1px;background:rgb(255 255 255 / .28);overflow:hidden}
.vctl-line i{display:block;height:100%;background:rgb(255 255 255 / .85);transform-origin:0 50%;transform:scaleX(0)}

/* Sections */
section{position:relative}
.dest{display:block;text-decoration:none}
.dest-media{overflow:hidden}
.dest-media img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.dest:hover .dest-media img{transform:scale(1.04)}
.dest-meta{display:flex;flex-wrap:wrap;gap:6px 18px}
.yacht,.story,.cta{overflow:hidden}
.yacht-media,.story-media,.cta-media{position:absolute;inset:0}
.cta-media img{width:100%;height:100%;object-fit:cover}
.yacht-copy,.story-copy,.cta-in{position:relative;z-index:2}
/* Copy over full-bleed media (yacht, story, CTA) sits low and left in every design, on the hero's line: one rhythm per page,
   the subject of the picture stays clear (2 Nov) */
/* Yachts on the home page: title, price, button over the video; the regions and crew live on the yachts page (2 Nov) */
.yacht-copy h2 + .yacht-price{margin-top:14px}
.gallery-row{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.3fr;grid-auto-rows:clamp(220px,30vw,440px);gap:var(--g-gap,8px)}
.g{overflow:hidden}
.g img{width:100%;height:100%;object-fit:cover}
.btns{display:flex;flex-wrap:wrap;gap:12px}
.ftr-cols{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px}
.ftr ul{display:grid;gap:8px}
.ftr a{text-decoration:none}
.ftr-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}
.ftr-bottom a{text-decoration:underline}

@media (max-width:860px){
  .gallery-row{grid-template-columns:1fr 1fr}
  .ftr-cols{grid-template-columns:1fr 1fr}
  .ftr-brand{grid-column:1/-1}
}

/* Phone bottom bar: hidden over hero, CTA section and footer */
.mbar{display:none}
@media (max-width:760px){
  .mbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:40;padding:10px 16px calc(10px + env(safe-area-inset-bottom));transform:translateY(110%);transition:transform .3s}
  .mbar.on{transform:none}
  body{padding-bottom:0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}

/* Loading screen: holds the first view while the hero clip buffers (max ~5 s, see base.js).
   Without JS the class is never set; if JS stalls, the CSS animation still removes it after 7 s. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.loader{display:none}
.is-loading .loader{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:40px;position:fixed;inset:0;z-index:200;color:var(--loader-ink,var(--ink));animation:loader-out .6s 7s forwards;
  background:linear-gradient(color-mix(in srgb,var(--loader-bg) 62%,transparent),color-mix(in srgb,var(--loader-bg) 62%,transparent)),center/cover no-repeat var(--li),var(--loader-bg,var(--bg))}
@media (max-width:760px){.is-loading .loader{background-image:linear-gradient(color-mix(in srgb,var(--loader-bg) 62%,transparent),color-mix(in srgb,var(--loader-bg) 62%,transparent)),var(--li-sm)}}
.loader .logo{transform:scale(1.9);text-align:center;align-items:center;color:inherit}
.loader .logo-sub{color:inherit;opacity:.8}
@media (max-width:760px){.loader .logo{transform:scale(1.45)}}
.loader-bar{display:block;width:min(280px,60vw);height:2px;background:color-mix(in srgb,currentColor 18%,transparent);overflow:hidden}
.loader-bar i{display:block;height:100%;background:var(--loader-bar,currentColor);transform-origin:left;transform:scaleX(.06);transition:transform .4s ease-out}
.is-loaded .loader{opacity:0;visibility:hidden;transition:opacity .7s ease,visibility 0s .7s}
.is-loading:not(.is-loaded){overflow:hidden}
.is-loading .hero-copy{opacity:0;translate:0 18px}
.is-loaded .hero-copy{opacity:1;translate:0 0;transition:opacity .9s .2s ease,translate .9s .2s cubic-bezier(.2,.7,.2,1)}
@keyframes loader-out{to{opacity:0;visibility:hidden}}

/* Accordion gallery (v1, v2; desktop only, 2 Nov): the four photos share one row; the photo under the pointer opens and
   the others narrow to strips; click or Enter/Space opens one too (base.js sets .on). */
@media (min-width:761px){
  .gallery-row[data-accordion="all"]{display:flex;height:clamp(360px,40vw,600px);grid-template-columns:none}
  .gallery-row[data-accordion="all"] .g{flex:1 1 0;min-width:0;cursor:pointer;transition:flex-grow .7s cubic-bezier(.2,.7,.2,1)}
  .gallery-row[data-accordion="all"] .g.on{flex-grow:5;cursor:default}
  .gallery-row[data-accordion="all"] .g img{transition:transform .7s cubic-bezier(.2,.7,.2,1),filter .4s}
  .gallery-row[data-accordion="all"] .g:not(.on) img{filter:saturate(.75) brightness(.85)}
  .gallery-row[data-accordion="all"] .g:not(.on):hover img{filter:none;transform:scale(1.03)}
}
/* Phones, every design (2 Nov: the accordion looked poor on a phone): the gallery is a swipe rail, the next photo peeks in,
   dots below (base.js) show the position */
@media (max-width:760px){
  body .gallery-row{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 var(--gutter);scroll-padding-inline:var(--gutter);scrollbar-width:none;overscroll-behavior-x:contain;height:auto}
  body .gallery-row::-webkit-scrollbar{display:none}
  body .gallery-row>.g{flex:0 0 84%;height:min(56svh,440px);scroll-snap-align:start}
}
@media (prefers-reduced-motion:reduce){.gallery-row[data-accordion] .g,.gallery-row[data-accordion] .g img{transition:none}}
/* Phone carousels (directions with data-rails on body, v4 and v5; 2 Nov): destinations, the four steps and reviews become
   swipe rails; the next card peeks in, dots below show the position and jump to a card (WCAG 1.4.10 rails rule, lesson 3).
   Dots are 24 px targets with an 8 px mark; base.js builds them. */
.rail-dots{display:none}
@media (max-width:760px){
  [data-rails] .dest-grid,[data-rails] .steps,[data-rails] .rev-grid{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);scroll-padding-inline:var(--gutter);scrollbar-width:none;overscroll-behavior-x:contain}
  [data-rails] .dest-grid::-webkit-scrollbar,[data-rails] .steps::-webkit-scrollbar,[data-rails] .rev-grid::-webkit-scrollbar{display:none}
  [data-rails] .dest-grid>*,[data-rails] .steps>*,[data-rails] .rev-grid>*{flex:0 0 84%;scroll-snap-align:start;margin:0}
  .rail-dots{display:flex;justify-content:center;gap:2px;margin-top:16px}
  .rail-dots button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;background:none;color:inherit;cursor:pointer}
  .rail-dots button::before{content:"";width:8px;height:8px;border-radius:4px;background:currentColor;opacity:.3;transition:opacity .25s,transform .25s}
  .rail-dots button[aria-current="true"]::before{transform:scaleX(2.4);opacity:1}
}


/* Icons (v4 only, 2 Nov): Lucide line icons at 1.5 stroke and Simple Icons brand marks, sized to sit with the text */
.step-ic{line-height:0}
.step-ic .ic{width:clamp(34px,2.8vw,42px);height:auto}
.ftr-contact a{gap:10px}
.ftr-contact .ic{width:20px;height:20px;flex:none;opacity:.9}
.btn-ic{gap:10px}
.btn-ic .ic{width:20px;height:20px;flex:none}

/* Destinations dropdown in the header (v1 trial, 2 Nov): opens on hover, focus or click; a bridge keeps it open while
   the pointer crosses the gap */
.nav-drop{position:relative}
.nav-drop-btn{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;white-space:nowrap}
.nav-drop .chev{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.nav-drop-panel{position:absolute;left:-16px;top:calc(100% + 14px);display:flex;flex-direction:column;min-width:220px;padding:8px;background:var(--bg);color:var(--ink);box-shadow:0 12px 40px rgb(0 0 0 / .18);opacity:0;visibility:hidden;translate:0 -4px;transition:opacity .2s,translate .2s,visibility 0s .2s}
.nav-drop-panel::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
.nav-drop-panel a{padding:10px 12px}
.nav-drop:hover .nav-drop-panel,.nav-drop:focus-within .nav-drop-panel,.nav-drop.open .nav-drop-panel{opacity:1;visibility:visible;translate:0 0;transition:opacity .2s,translate .2s}
.nav-drop:hover .chev,.nav-drop.open .chev{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){.nav-drop-panel,.nav-drop .chev{transition:none}}

/* Destination cards on phones (v1-v3; v4 already lays text over the photo, v5 is a rail; 2 Nov): name, line and price sit
   on the bottom of a 3:2 photo, so both cards fit on one phone screen */
@media (max-width:760px){
  body:not([data-rails]) .dest{position:relative;display:block;margin:0;color:#fff;overflow:hidden;border-radius:inherit}
  body:not([data-rails]) .dest-media{aspect-ratio:3/2;margin:0}
  body:not([data-rails]) .dest-body{position:absolute;inset:auto 0 0 0;display:block;margin:0;padding:72px 16px 16px;border:0;background:linear-gradient(rgb(0 0 0 / 0),rgb(0 0 0 / .62) 45%,rgb(0 0 0 / .82));color:#fff;text-shadow:0 1px 2px rgb(0 0 0 / .35),0 2px 18px rgb(0 0 0 / .35)}
  body:not([data-rails]) .dest-body :not(.price){color:inherit}
  body:not([data-rails]) .dest-tag{margin:2px 0 6px}
  body:not([data-rails]) .dest-meta{margin:0;display:block;text-align:left}
  body:not([data-rails]) .dest-grid{gap:12px}
}

/* Yachts on phones (2 Nov): the picture is the point, so the section is taller and the copy sits low, under the ship */
@media (max-width:760px){body .yacht{min-height:92svh;padding-bottom:28px}}


/* Final pass (2 Nov): every control answers the pointer, and the keyboard ring shows on whatever it sits on.
   Shared states here; each direction colours its own buttons in vN.css. */
.link-hero{transition:text-underline-offset .2s,text-decoration-thickness .2s,opacity .2s}
.link-hero:hover{text-underline-offset:3px;text-decoration-thickness:2px}
.ftr a:not(.logo){transition:opacity .2s}
.ftr a:not(.logo):hover{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.menu summary{transition:opacity .2s}
.menu summary:hover{opacity:.7}
.menu-panel a:not(.btn){border-radius:8px;transition:background-color .2s}
.menu-panel a:not(.btn):hover{background:color-mix(in srgb,currentColor 8%,transparent)}
.btn{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}
.menu-panel{--focus:var(--ink)}
/* Independent review (2 Nov): "Travel agents" fills on hover in the phone menu (each direction fills it in its header);
   one ring only (the 1px .btn border of v1/v5 doubled it); phone header fits at 320; the v3 pause glyph gets a disc on hover */
.btn.btn-trade{border-color:transparent}
.menu-panel .btn-trade:hover{background:var(--ink);color:var(--bg)}
.vctl .pause{border-radius:50%;transition:opacity .2s,background-color .2s}
.vctl .pause:hover{background:rgb(255 255 255 / .16)}
@media (max-width:359px){body .hdr .logo-name{font-size:16px;letter-spacing:.05em}}

/* Back to the Stage 1 mockup (2 Nov): no gallery; story gets "All guest stories", reviews "Read on Google",
   the final CTA the person who answers, the footer its four columns and legal links */
.btns.with-link{align-items:center;gap:16px 28px}
.text-link{display:inline-flex;align-items:center;min-height:24px;color:inherit;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px;transition:text-decoration-thickness .2s}
.text-link:hover{text-decoration-thickness:2px;text-underline-offset:3px}
.cta-person{display:flex;align-items:center;gap:16px;margin:32px 0 0}
.cta-person-ph{flex:none;width:64px;height:64px;border-radius:50%;background:color-mix(in srgb,currentColor 14%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 35%,transparent)}
.cta-person figcaption{display:flex;flex-direction:column;gap:2px;font-size:16px;line-height:1.4}
.ftr-cols{grid-template-columns:1.6fr repeat(4,1fr)}
.ftr-brand p{margin-top:16px;max-width:28ch}
@media (max-width:860px){.ftr-cols{grid-template-columns:1fr 1fr}}
