/* ==========================================================================
   NCC TN, P & AN Directorate — Sailing Expedition
   Shared stylesheet.  Design reference: 1376 x 719 CSS px viewport.
   ========================================================================== */

/* --------------------------------------------------------------- fonts --- */
@font-face{
  font-family:"Anton";
  src:url("../fonts/anton-400.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Barlow SC";
  src:url("../fonts/barlow-sc-400.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Barlow SC";
  src:url("../fonts/barlow-sc-500.woff2") format("woff2");
  font-weight:500; font-style:normal; font-display:swap;
}

/* --------------------------------------------------------------- tokens -- */
:root{
  /* palette */
  --sky:#4192C7;            /* home nav active */
  --cyan:#58AEE8;
  --navy:#00163B;           /* About ground */
  --navy-2:#04204C;
  --teal:#16D0C6;           /* About accent */
  --slate:#657595;          /* chip */
  --ink-hair:rgba(255,255,255,.18);

  --footer-slate:#364B5E;   /* Vision + About footer */
  --footer-black:#000000;   /* Home footer */

  /* structure (design reference) */
  --nav-h:75px;
  --footer-h:52px;
  --shell:948px;            /* centred content measure for nav + footer */

  /* type */
  --display:"Anton","Oswald","Arial Narrow",sans-serif;
  --ui:"Barlow SC","Barlow Semi Condensed",system-ui,-apple-system,"Segoe UI",sans-serif;
}

/* ---------------------------------------------------------------- reset -- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--ui);
  color:#fff;
  background:var(--navy);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}

/* keyboard users get a visible ring everywhere (Nielsen H1 / WCAG 2.4.7) */
:focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:2px}

.skip-link{
  position:absolute;left:8px;top:-60px;z-index:100;
  background:#fff;color:var(--navy);padding:10px 16px;border-radius:4px;
  font-size:14px;font-weight:500;letter-spacing:1px;transition:top .15s ease;
}
.skip-link:focus{top:8px}

.visually-hidden{
  position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ====================================================== masthead / nav === */
.masthead{
  position:relative;z-index:20;
  height:var(--nav-h);
}
.masthead__inner{
  height:100%;
  display:flex;align-items:center;justify-content:center;
  gap:104px;
  padding:0 24px;
}
.crest{height:65px;width:auto;flex:none}

.nav__list{display:flex;align-items:center;gap:27.5px}
.nav__link{
  display:inline-block;
  font-size:19px;line-height:1;
  letter-spacing:.055em;
  text-transform:uppercase;
  white-space:nowrap;
  padding:6px 0 5px;
  border-bottom:2px solid transparent;
  transition:color .16s ease,border-color .16s ease;
}

/* light bar — Vision, About and every inner page */
.masthead--light{
  background:linear-gradient(to bottom,#939395 0%,#c3c3c4 42%,#e4e4e4 74%,#fdfeff 100%);
}
.masthead--light .nav__link{color:#000}
.masthead--light .nav__link:hover{color:var(--sky)}
.masthead--light .nav__link[aria-current="page"]{
  color:#4981ac;border-bottom-color:#4981ac;
}

/* transparent bar over the hero photograph — Home */
.masthead--overlay{
  position:absolute;inset:0 0 auto 0;
  background:none;
}
.masthead--overlay::before{
  content:"";position:absolute;inset:0;height:210%;pointer-events:none;
  background:linear-gradient(to bottom,rgba(4,20,30,.74) 0%,rgba(4,20,30,.34) 46%,rgba(4,20,30,0) 100%);
}
.masthead--overlay .masthead__inner{position:relative}
.masthead--overlay .nav__link{color:#fff}
.masthead--overlay .nav__link:hover{color:var(--cyan)}
.masthead--overlay .nav__link[aria-current="page"]{
  color:var(--sky);border-bottom-color:var(--sky);
}

/* ============================================================== footer === */
.site-footer{
  height:var(--footer-h);
  display:flex;align-items:center;
  position:relative;z-index:20;
}
.site-footer--black{background:var(--footer-black)}
.site-footer--slate{background:var(--footer-slate)}

.site-footer__inner{
  width:var(--shell);max-width:100%;
  margin:0 auto;padding:0 24px;
  display:flex;align-items:center;justify-content:center;gap:20px;
}
.site-footer p{margin:0;font-size:16.5px;color:#f2f2f2}
.socials{display:flex;align-items:center;gap:15.5px}
.socials a{display:grid;place-items:center;padding:4px;margin:-4px;color:#f2f2f2;transition:color .16s ease}
.socials a:hover{color:var(--cyan)}
.socials svg{width:19px;height:19px;fill:currentColor}

/* decorative four-point mark shared by Home and Vision */
.sparkle{
  position:absolute;right:96px;bottom:44px;width:48px;height:48px;
  z-index:5;opacity:.85;pointer-events:none;
}

/* ================================================================ HOME === */
.page-home{background:#0b1f2a}
.hero{
  position:relative;
  height:calc(100vh - var(--footer-h));
  min-height:520px;
  overflow:hidden;
}
.hero__media{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:50% 52%;
  z-index:0;
}
.hero__scrim{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(6,26,38,.24) 0%,rgba(6,26,38,.03) 42%,rgba(6,26,38,.16) 100%);
}
.hero__copy{
  position:absolute;z-index:2;
  left:137px;top:150px;width:700px;
  text-align:center;
}
.hero__title{margin:0;font-family:var(--display);font-weight:400;text-transform:uppercase;
  text-shadow:0 4px 26px rgba(0,20,32,.55),0 1px 3px rgba(0,20,32,.42);}
.hero__title .line-1{display:block;font-size:53.5px;line-height:1}
.hero__title .line-2{display:block;font-size:89.5px;line-height:1;margin-top:8px}
/* Dark plate under the tagline gives all three crest colours a fair fight
   against the water photo. Sized to text; each word wears its own colour band. */
.hero__plate{
  display:inline-block;
  margin-top:22px;
  padding:12px 20px 14px;
  border-radius:6px;
  background:rgba(3,12,28,.55);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 6px 20px rgba(0,10,25,.35);
}

/* Brand mark: three coloured word-columns, each with its own crest-colour band
   below.  gap:0 keeps the bands touching, mimicking the shield's three fields. */
.hero__brand{
  display:flex;align-items:stretch;gap:0;
  font-size:22px;line-height:1.2;font-weight:500;
  letter-spacing:3px;text-transform:uppercase;
  text-shadow:0 1px 2px rgba(0,10,25,.55);
}
.brand-col{display:flex;flex-direction:column;align-items:center;padding:0 14px}
.brand-col::after{
  content:"";display:block;height:4px;margin:12px -14px 0;
  /* extend into the column's own padding so adjacent bars meet as one strip */
  width:calc(100% + 28px);
}
.brand-col--red { color:#FF6B78 }
.brand-col--red::after { background:#E63A2A }
.brand-col--navy{ color:#8FA8FF }
.brand-col--navy::after{ background:#1A0D76 }
.brand-col--sky { color:#9FD1F2 }
.brand-col--sky::after { background:#518BBB }
/* tri-band mark echoing the NCC crest (red / navy / sky-blue) */
.hero__tricolor{
  display:flex;justify-content:center;margin:14px 0 0;height:5px;
  filter:drop-shadow(0 2px 10px rgba(0,10,25,.45));
}
.hero__tricolor span{width:76px;height:100%}
.hero__tricolor span:nth-child(1){background:#E63A2A}
.hero__tricolor span:nth-child(2){background:#1A0D76}
.hero__tricolor span:nth-child(3){background:#518BBB}

/* ============================================================== VISION === */
.page-vision{background:var(--navy)}
.vision{
  position:relative;
  min-height:calc(100vh - var(--nav-h) - var(--footer-h));
  background:var(--navy);
  display:flex;align-items:flex-start;
}
.vision__panel{
  position:relative;z-index:2;
  margin:41px auto 0 102px;
  width:1058px;max-width:calc(100% - 48px);height:511px;
  display:flex;border-radius:16px;overflow:hidden;
  background:var(--navy-2);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 22px 55px rgba(0,10,25,.42),inset 0 1px 0 rgba(255,255,255,.06);
}
.vision__figure{width:352px;flex:none;position:relative;margin:0}
.vision__figure img{width:100%;height:100%;object-fit:cover;object-position:50% 45%}
.vision__figure::after{content:"";position:absolute;inset:0;box-shadow:inset -1px 0 0 rgba(255,255,255,.30)}
.vision__copy{flex:1;padding:44px 60px 44px 58px;display:flex;flex-direction:column;justify-content:center}
.vision__copy h1{
  margin:0;font-family:var(--display);font-weight:400;font-size:37px;line-height:1;
  text-transform:uppercase;
  letter-spacing:.6px;color:#fff;
}
.vision__rule{width:70px;height:3px;border-radius:2px;margin:15px 0 27px;
  background:linear-gradient(90deg,var(--teal),var(--sky))}
.vision__copy p{margin:0 0 21px;font-size:19px;line-height:1.63;color:rgba(255,255,255,.94)}
.vision__copy p:last-child{margin-bottom:0}
.vision__copy .lead{font-weight:500}

/* =============================================================== ABOUT === */
/* Editorial layout: sticky media panel on the left, scrolling long-form
   article on the right.  The section grows with the article, and the media
   pins to the viewport top while the reader scrolls.

   Fluid across the full desktop range (1024px → 4K).  clamp() drives every
   axis (column width, paddings, typography), so the layout scales smoothly
   without waypoint jumps.  Below 860px the columns stack; that breakpoint
   sits in the responsive block further down. */
.page-about{background:var(--navy)}
.about{
  display:grid;
  /* Media col grows with viewport but never exceeds 720px so the article
     always has a reasonable measure to fill; on ultra-wide, the whole
     section centres inside a max-width guard. */
  grid-template-columns:clamp(420px, 40vw, 720px) minmax(0, 1fr);
  background:var(--navy);
  max-width:2100px;
  margin:0 auto;
  min-height:calc(100vh - var(--nav-h) - var(--footer-h));
}
/* Vignette outside the max-width guard on ultra-wide screens */
.page-about main{background:var(--navy)}

/* thin reading-progress bar at the top of the page (H1: visibility of status) */
.reading-progress{
  position:fixed;top:0;left:0;right:0;height:3px;z-index:60;
  background:rgba(255,255,255,.05);pointer-events:none;
}
.reading-progress span{display:block;height:100%;width:0;background:var(--teal);
  transition:width .1s linear}

/* ---- left column: sticky media ---- */
.about__media{
  position:sticky;top:0;
  /* Viewport-relative height, but clamped so it never gets too short
     (small landscape laptops) or awkwardly tall (ultra-wide 4K panels). */
  height:clamp(560px, 100vh, 900px);
  align-self:start;
  background:#01102c;
  display:flex;
}
.about__media > .slideshow{width:100%;height:100%}

/* ---- slideshow ---- */
.slideshow{width:640px;flex:none;display:flex;flex-direction:column;min-width:0}
.slideshow__stage{position:relative;flex:1;overflow:hidden;background:#01102c;min-height:0}
.slideshow__stage>figure{margin:0;position:absolute;inset:0}
.slideshow__stage img{width:100%;height:100%;object-fit:cover;object-position:50% 42%}
.slideshow__stage::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:190px;z-index:2;pointer-events:none;
  background:linear-gradient(to top,rgba(0,10,30,.95) 0%,rgba(0,10,30,.78) 34%,
                                    rgba(0,10,30,.30) 68%,rgba(0,10,30,0) 100%);
}
/* H1 visibility of system status — autoplay progress */
.slideshow__progress{position:absolute;top:0;left:0;right:0;height:4px;
  background:rgba(255,255,255,.28);z-index:4}
.slideshow__progress span{display:block;height:100%;width:34%;background:var(--teal);
  transition:width .25s linear}
.slideshow__count{
  position:absolute;top:18px;left:18px;z-index:4;
  font-family:var(--display);font-size:14px;letter-spacing:1.6px;color:#fff;
  background:var(--slate);padding:6px 12px 5px;border-radius:3px;
}
.slideshow__count i{font-style:normal;opacity:.7}
/* H3 user control — stop the moving content */
.slideshow__pause{
  position:absolute;top:16px;right:18px;z-index:4;
  display:flex;align-items:center;gap:8px;height:34px;padding:0 15px;border-radius:18px;
  color:#fff;background:rgba(0,12,34,.62);border:1px solid rgba(255,255,255,.55);
  font-size:12px;font-weight:500;letter-spacing:1.6px;
}
.slideshow__pause svg{width:10px;height:11px;fill:#fff}
/* H5 error prevention — 48px targets, well separated */
.slideshow__nav{
  position:absolute;top:calc(50% - 34px);z-index:4;
  width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
}
.slideshow__nav--prev{left:18px;border:1px solid rgba(255,255,255,.8);background:rgba(0,14,38,.35)}
.slideshow__nav--next{right:18px;background:var(--teal)}
.slideshow__nav svg{width:16px;height:16px;fill:none;stroke-width:2.4}
.slideshow__nav--prev svg{stroke:#fff}
.slideshow__nav--next svg{stroke:var(--navy)}

.slideshow__caption{
  position:absolute;left:22px;right:22px;bottom:18px;z-index:4;
  display:flex;align-items:flex-end;justify-content:center;gap:20px;
}
.slideshow__caption b{display:block;font-size:16px;font-weight:500;color:#fff}
.slideshow__caption em{display:block;margin-bottom:5px;font-style:normal;
  color:var(--teal);letter-spacing:1.8px;font-size:11.5px}
.slideshow__hint{flex:none;font-size:11.5px;letter-spacing:.8px;color:rgba(255,255,255,.7);white-space:nowrap}
.slideshow__hint kbd{font-family:inherit;border:1px solid rgba(255,255,255,.45);
  border-radius:3px;padding:1px 5px;margin:0 1px}

/* H6 recognition over recall — every photo stays visible */
.slideshow__rail{
  height:98px;flex:none;display:flex;align-items:center;gap:9px;padding:0 16px;
  background:var(--navy-2);border-top:1px solid rgba(255,255,255,.16);
}
.slideshow__rail button{flex:1;min-width:0;height:66px;border-radius:3px;overflow:hidden;
  border:1px solid rgba(255,255,255,.20);opacity:.55;transition:opacity .16s ease}
.slideshow__rail button:hover{opacity:.85}
.slideshow__rail button[aria-current="true"]{opacity:1;border-color:var(--teal);
  box-shadow:0 0 0 2px var(--teal)}
.slideshow__rail img{width:100%;height:100%;object-fit:cover}

/* Rail variant for many photos: horizontal-scroll strip with snap points.
   Keeps all thumbnails browsable without shrinking any of them into
   unrecognisable slivers. Scrollbar hidden; keyboard/arrow keys still work
   because focus ring stays visible. */
.slideshow__rail--scroll{
  gap:9px;padding:12px 16px;
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-mask-image:linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image:linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  scrollbar-width:none;
}
.slideshow__rail--scroll::-webkit-scrollbar{display:none}
.slideshow__rail--scroll button{flex:0 0 96px;height:66px;scroll-snap-align:center}

/* ---- right column: article ---- */
/* All paddings, type sizes and column widths scale with viewport width
   via clamp().  Reading measure is capped at 62-66ch so lines never get too
   long, regardless of screen size. */
.about__article{
  min-width:0;
  padding-block:clamp(32px, 3vw + 12px, 72px) clamp(48px, 4vw + 20px, 96px);
  padding-inline:clamp(24px, 3.8vw, 88px) clamp(24px, 4.4vw, 96px);
  max-width:none;
  color:rgba(255,255,255,.92);
}
/* Reading measure — applied to every direct child, so text and non-text
   elements share a consistent left/right rail. */
.about__article > *{max-width:66ch}

.chip{align-self:flex-start;display:inline-block;background:var(--slate);color:#fff;
  font-size:clamp(11px, .55vw + 8px, 13px);font-weight:500;
  letter-spacing:2.2px;padding:6px 12px 5px;border-radius:3px}
.about__article h1{
  margin:14px 0 0;font-family:var(--display);font-weight:400;
  font-size:clamp(36px, 2.7vw + 16px, 60px);
  line-height:1;letter-spacing:.5px;color:#fff;text-transform:uppercase;
}
.about__rule{
  width:clamp(58px, 3vw + 24px, 88px);height:3px;border-radius:2px;
  margin:clamp(14px, 1vw + 8px, 22px) 0 clamp(18px, 1.2vw + 10px, 26px);
  background:var(--teal);
}

.about__article .lede{
  margin:0 0 clamp(24px, 1.6vw + 14px, 40px);
  font-size:clamp(15.5px, .55vw + 12px, 20px);
  line-height:1.35;font-weight:500;
  letter-spacing:2px;text-transform:uppercase;color:var(--teal);
}
.about__article p{
  margin:0 0 clamp(16px, .7vw + 10px, 22px);
  font-size:clamp(16px, .4vw + 12px, 19px);
  line-height:1.72;color:rgba(255,255,255,.92);
}
.about__article p strong{color:#fff;font-weight:500}
.about__article p em{font-style:italic;color:#fff}

.about__article h2{
  margin-top:clamp(38px, 2.8vw + 12px, 58px);
  margin-bottom:clamp(14px, 1vw + 6px, 22px);
  padding-top:clamp(20px, 1.4vw + 8px, 30px);
  font-family:var(--ui);
  font-weight:500;
  font-size:clamp(21px, 1.1vw + 12px, 30px);
  line-height:1.2;
  letter-spacing:.4px;color:#fff;
  border-top:1px solid rgba(255,255,255,.14);
  position:relative;
}
.about__article h2::before{
  content:"";position:absolute;top:-1px;left:0;
  width:clamp(38px, 2vw + 16px, 56px);height:3px;background:var(--teal);
}

/* SWARNUM framework — big letter + title per row, hairlines between */
.framework{
  list-style:none;margin:14px 0 6px;padding:0;
  border-top:1px solid rgba(255,255,255,.10);
}
.framework__item{
  display:grid;
  grid-template-columns:clamp(56px, 4vw + 8px, 90px) 1fr;
  align-items:center;gap:clamp(14px, 1vw + 8px, 26px);
  padding:clamp(12px, .8vw + 6px, 20px) 4px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.framework__letter{
  font-family:var(--display);
  font-size:clamp(34px, 2.8vw + 8px, 58px);
  line-height:1;color:var(--teal);
  text-align:center;letter-spacing:1px;
}
.framework__title{
  font-family:var(--ui);font-weight:500;
  font-size:clamp(13.5px, .55vw + 9px, 18px);
  line-height:1.25;letter-spacing:1.8px;
  text-transform:uppercase;color:#fff;
}

/* Pull-quote — teal side-rule, display-face treatment */
.about__article blockquote.pull{
  margin:8px 0 24px;
  padding:6px 0 6px clamp(18px, 1.4vw + 8px, 32px);
  border-left:4px solid var(--teal);
}
.about__article blockquote.pull p{
  margin:0;font-family:var(--display);font-weight:400;
  font-size:clamp(22px, 1.4vw + 14px, 34px);
  line-height:1.28;letter-spacing:.3px;
  color:#fff;text-transform:none;
}

.about__article p.close{
  margin-top:clamp(24px, 1.8vw + 12px, 40px);
  padding:clamp(18px, 1.2vw + 10px, 28px) clamp(20px, 1.6vw + 10px, 30px);
  border-radius:6px;
  background:rgba(22,208,198,.08);
  border:1px solid rgba(22,208,198,.22);
  font-size:clamp(17px, .5vw + 12px, 20px);
  line-height:1.6;
}
.about__article p.close strong{color:#fff}

.btn-primary{
  align-self:flex-start;margin-top:36px;
  display:inline-flex;align-items:center;gap:11px;height:46px;padding:0 24px;
  border-radius:23px;background:var(--teal);color:var(--navy);
  font-size:14px;font-weight:500;letter-spacing:1.4px;
  transition:filter .16s ease,transform .16s ease;
}
.btn-primary:hover{filter:brightness(1.08);transform:translateY(-1px)}
.btn-primary svg{width:15px;height:15px;fill:none;stroke:var(--navy);stroke-width:2.4}

/* ============================================================ ROUTE MAP === */
/* The map is portrait-tall. Layout: title + subtitle strip on top;
   two-column stage below — map on the left, itinerary + controls on right.
   Everything scales with clamp() so it works from 1024px up to 4K. */
.page-routemap{background:var(--navy)}
.routemap{
  max-width:2100px;margin:0 auto;
  padding:clamp(28px, 2.4vw + 8px, 56px) clamp(20px, 3vw, 64px) clamp(40px, 3vw + 12px, 72px);
  color:#fff;
}
.routemap__header{margin:0 auto clamp(20px, 1.6vw + 8px, 36px)}
.routemap__header .chip{align-self:auto;margin-bottom:14px}
.routemap__header h1{
  margin:0;font-family:var(--display);font-weight:400;text-transform:uppercase;
  font-size:clamp(36px, 3vw + 14px, 60px);line-height:1;letter-spacing:.4px;color:#fff;
}
.routemap__sub{
  margin:14px 0 0;font-size:clamp(14.5px, .55vw + 11px, 18px);
  letter-spacing:1.4px;text-transform:uppercase;font-weight:500;
  color:rgba(255,255,255,.72);
}

.routemap__stage{
  display:grid;
  grid-template-columns:minmax(0, 1.7fr) minmax(300px, 1fr);
  gap:clamp(20px, 2vw + 8px, 44px);
  align-items:start;
}

/* --- MAP + BOAT --- */
.routemap__map{
  position:relative;margin:0;
  border-radius:12px;overflow:hidden;
  background:#eddfbf;                            /* map paper edge fill */
  box-shadow:0 20px 60px rgba(0,10,25,.35), 0 2px 0 rgba(255,255,255,.06) inset;
}
.routemap__base{
  display:block;width:100%;height:auto;
}
.routemap__svg{
  position:absolute;inset:0;width:100%;height:100%;
  pointer-events:auto;                           /* waypoints are clickable */
}
/* The full path — a subtle dashed guide showing the upcoming route.
   Kept understated so it doesn't fight the map's own dashed line. */
.route__guide{
  stroke:#ffffff;stroke-width:8;stroke-opacity:.32;
  stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:16 22;
}
/* The trail behind the boat — warm gold reads clearly on the teal sea,
   matches the current-waypoint highlight, and echoes the crest's wreath.
   Growing dash length is driven by JS. */
.route__trail{
  stroke:#FFCE3D;stroke-width:20;
  stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:0 100000;
  filter:drop-shadow(0 3px 12px rgba(255,190,40,.75));
}

/* Waypoint pulse — invisible until JS adds .is-firing, then a single
   ripple radiates outward.  Purely decorative celebration; no state. */
.pulse{
  fill:none;stroke:#FFCE3D;stroke-width:6;
  opacity:0;transform-box:fill-box;transform-origin:center;
}
.pulse.is-firing{animation:pulse 1s ease-out forwards}
@keyframes pulse{
  0%   { opacity:.95; r:14; stroke-width:8; }
  100% { opacity:0;   r:80; stroke-width:2; }
}

/* boat sprite (crest colours: red hull, blue main, red jib, red pennant).
   Stroke widths defined in image-coord units so they scale with the map. */
.boat{transition:none}                           /* JS drives transforms */
.boat__hull{fill:#C4392B;stroke:#3c1a12;stroke-width:2.5}
.boat__deck{fill:#8f2a20;opacity:.9}
.boat__mast{stroke:#2e1a10;stroke-width:3.5;stroke-linecap:round}
.boat__sail-main{fill:#21367C;stroke:#0f1c47;stroke-width:2}
.boat__sail-jib {fill:#C4392B;stroke:#3c1a12;stroke-width:2}
.boat__roundel{fill:#ffe27a;stroke:#3c1a12;stroke-width:1.6}
.boat__ncc{font-family:var(--display);font-size:14px;font-weight:400;
  fill:#8b1a1a;letter-spacing:.5px}
.boat__pennant{fill:#C4392B;stroke:#3c1a12;stroke-width:1.4}
.boat__wake{fill:#ffffff}

/* Watch-again button — fades in only after the animation ends. */
.routemap__replay{
  position:absolute;bottom:16px;left:50%;
  transform:translateX(-50%) translateY(6px);
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 18px 8px;border-radius:20px;
  background:rgba(3,12,28,.72);color:#fff;
  border:1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  font-size:12px;font-weight:500;letter-spacing:1.6px;text-transform:uppercase;
  opacity:0;pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;
  cursor:pointer;
}
.routemap__replay[hidden]{display:none}
.routemap__replay.is-visible{opacity:1;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.routemap__replay:hover{background:rgba(3,12,28,.9)}
.routemap__replay svg{width:14px;height:14px}

/* --- static itinerary --- */
.routemap__side{
  position:sticky;top:16px;
  display:flex;flex-direction:column;gap:20px;
}
.itinerary{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.itinerary__leg{
  display:grid;grid-template-columns:auto 1fr;align-items:start;gap:14px;
  padding:14px 16px;border-radius:10px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.85);
}
.itinerary__idx{
  font-family:var(--display);font-size:22px;line-height:1;color:var(--teal);
  min-width:34px;text-align:center;letter-spacing:.5px;padding-top:2px;
}
.itinerary__body b{
  display:block;font-family:var(--display);font-weight:400;
  font-size:20px;letter-spacing:.4px;color:#fff;text-transform:uppercase;
}
.itinerary__body em{
  display:block;font-style:normal;color:var(--teal);letter-spacing:1.6px;
  font-size:11px;text-transform:uppercase;margin-top:4px;
}
.itinerary__body span{
  display:block;margin-top:6px;font-size:13.5px;line-height:1.5;color:rgba(255,255,255,.78);
}

.routemap__note{
  margin:0;font-size:12.5px;color:rgba(255,255,255,.55);line-height:1.5;
  border-top:1px solid rgba(255,255,255,.12);padding-top:14px;
}
.routemap__note a{color:var(--teal);border-bottom:1px solid rgba(22,208,198,.4)}

@media (max-width:960px){
  .routemap__stage{grid-template-columns:1fr}
  .routemap__side{position:static}
  .routemap__map{border-radius:8px}
}

/* ========================================================== responsive === */
@media (max-width:1180px){
  :root{--nav-h:68px}
  .masthead__inner{gap:40px;justify-content:space-between}
  .nav__list{gap:18px}
  .nav__link{font-size:16px}
  .crest{height:52px}
  .hero__copy{left:6vw;width:min(640px,74vw);top:120px}
  .hero__title .line-1{font-size:4.2vw}
  .hero__title .line-2{font-size:7vw}
  .hero__tagline{font-size:2vw}
  .vision__panel{margin-left:24px;margin-right:24px;width:auto;height:auto;min-height:460px}
  .facts{gap:28px}
  /* About page: fluid tokens handle this range on their own — no overrides. */
}

/* Ultra-wide desktop: media column tops out at 720px via clamp(), section
   centres via max-width — no rule needed, kept for documentation. */

@media (max-width:860px){
  html,body{overflow-x:hidden}
  .masthead__inner{justify-content:flex-start;gap:20px;padding:0 16px}
  .nav{margin-left:auto;min-width:0;flex:1 1 auto;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .nav::-webkit-scrollbar{display:none}
  .hero{height:auto;min-height:82vh}
  .hero__copy{position:static;padding:22vh 6vw 12vh;width:auto;left:auto;top:auto}
  .hero__title .line-1{font-size:26px}
  .hero__title .line-2{font-size:44px}
  .hero__tagline{font-size:16px;line-height:1.35}
  .vision{display:block;min-height:0}
  .vision__panel{flex-direction:column;height:auto}
  .vision__figure{width:100%;height:320px}
  .vision__copy{padding:32px 26px}

  /* About: sticky-side becomes a stacked top; the article scrolls beneath.
     Everything else (typography, paddings, framework) inherits from the
     fluid clamp() rules above, which stay legible well below 860px. */
  .about{display:block;max-width:none;margin:0}
  .about__media{position:relative;top:auto;height:64vh;min-height:340px}
  .about__media > .slideshow{width:100%;height:100%}
  .slideshow__hint{display:none}
  .slideshow__rail--scroll{padding:8px 12px}
  .facts{flex-wrap:wrap;gap:22px}
  .sparkle{display:none}
  .site-footer{height:auto;padding:14px 0}
  .site-footer__inner{flex-direction:column;gap:12px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}

.hero__eyebrow{margin:0 0 14px;display:flex;justify-content:center}

/* ============================================================ MEDIA PAGE === */
/* Newspaper-clipping grid: all five tiles fit in one viewport row.  Same
   navy ground and slate/teal accents as the About page. */
.page-media{background:var(--navy)}
.media{
  max-width:2100px;margin:0 auto;
  min-height:calc(100vh - var(--nav-h) - var(--footer-h));
  padding:clamp(24px, 2.2vw + 8px, 44px) clamp(20px, 3vw, 56px);
  color:#fff;display:flex;flex-direction:column;
}
.media__header{margin:0 0 clamp(18px, 1.6vw + 6px, 30px)}
.media__header .chip{margin-bottom:14px}
.media__header h1{
  margin:0;font-family:var(--display);font-weight:400;text-transform:uppercase;
  font-size:clamp(32px, 2.6vw + 10px, 52px);line-height:1;letter-spacing:.4px;color:#fff;
}
.media__header .about__rule{margin:14px 0 18px}
.media__sub{
  margin:0;font-size:clamp(14px, .55vw + 10px, 18px);
  color:rgba(255,255,255,.72);letter-spacing:.4px;
}

/* Grid: 5 tiles in a row, filling the remaining vertical space.
   Tiles have a fixed portrait aspect so newspaper columns stay readable. */
.media__grid{
  list-style:none;margin:0;padding:0;
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:clamp(10px, 1vw + 4px, 22px);
  flex:1;min-height:0;
  align-content:stretch;
}
.media__tile{margin:0;min-width:0;min-height:0}

.media__btn{
  position:relative;display:block;width:100%;height:100%;
  border-radius:8px;overflow:hidden;
  background:#0a1a35;border:1px solid rgba(255,255,255,.10);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.media__btn:hover,.media__btn:focus-visible{
  transform:translateY(-3px);
  border-color:rgba(22,208,198,.5);
  box-shadow:0 12px 30px rgba(0,10,25,.55), 0 0 0 1px rgba(22,208,198,.4);
}
.media__btn img{
  display:block;width:100%;height:100%;
  object-fit:cover;object-position:top center;
  transition:transform .35s ease;
}
.media__btn:hover img{transform:scale(1.04)}

/* Scrim + meta strip at the bottom of each tile so the paper name and
   date read cleanly against varied newspaper backgrounds. */
.media__meta{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  padding:22px 14px 12px;
  display:flex;flex-direction:column;gap:2px;
  background:linear-gradient(to top,
              rgba(0,10,25,.94) 0%,
              rgba(0,10,25,.78) 40%,
              rgba(0,10,25,0) 100%);
  color:#fff;text-align:left;
}
.media__meta em{
  font-style:normal;color:var(--teal);
  font-size:10.5px;font-weight:500;letter-spacing:1.8px;
}
.media__meta b{
  display:block;margin-top:4px;
  font-family:var(--display);font-weight:400;
  font-size:15px;line-height:1.15;letter-spacing:.3px;
  text-transform:uppercase;
}
.media__meta .media__date{
  margin-top:4px;font-size:11px;letter-spacing:.4px;color:rgba(255,255,255,.72);
}

/* Small "zoom" affordance top-right of each tile so it's obvious the
   tile is clickable to enlarge (Nielsen H1 / H6: visibility + affordance). */
.media__btn::after{
  content:"";
  position:absolute;top:10px;right:10px;z-index:2;
  width:26px;height:26px;border-radius:50%;
  background:rgba(3,12,28,.6) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='10.5' cy='10.5' r='5.5' fill='none' stroke='%2316D0C6' stroke-width='2'/><line x1='14.5' y1='14.5' x2='19' y2='19' stroke='%2316D0C6' stroke-width='2.4' stroke-linecap='round'/><line x1='10.5' y1='8' x2='10.5' y2='13' stroke='%2316D0C6' stroke-width='2'/><line x1='8' y1='10.5' x2='13' y2='10.5' stroke='%2316D0C6' stroke-width='2'/></svg>") center/16px 16px no-repeat;
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  border:1px solid rgba(255,255,255,.22);
  opacity:.85;transition:opacity .18s ease, transform .18s ease;
}
.media__btn:hover::after,.media__btn:focus-visible::after{opacity:1;transform:scale(1.06)}

.media__note{
  margin:clamp(16px, 1.2vw + 6px, 26px) 0 0;
  font-size:12.5px;color:rgba(255,255,255,.55);
  letter-spacing:.2px;line-height:1.5;
}

/* ====================================================== LIGHTBOX (modal) === */
.lightbox{
  position:fixed;inset:0;z-index:100;
  display:flex;align-items:center;justify-content:center;
  background:rgba(2,8,20,.94);
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
  padding:clamp(48px, 4vw + 16px, 80px) clamp(16px, 3vw, 60px) clamp(72px, 5vw, 96px);
  opacity:0;pointer-events:none;
  transition:opacity .22s ease;
}
.lightbox[hidden]{display:none}
.lightbox.is-open{opacity:1;pointer-events:auto}

.lightbox__close{
  position:absolute;top:18px;right:18px;z-index:3;
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;color:#fff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.28);
  transition:background .16s ease, transform .16s ease;
}
.lightbox__close:hover{background:rgba(255,255,255,.14);transform:rotate(90deg)}
.lightbox__close svg{width:20px;height:20px}

.lightbox__nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:52px;height:52px;border-radius:50%;
  display:grid;place-items:center;color:#fff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.28);
  transition:background .16s ease, transform .16s ease;
}
.lightbox__nav svg{width:20px;height:20px}
.lightbox__nav:hover{background:rgba(255,255,255,.14)}
.lightbox__nav--prev{left:20px} .lightbox__nav--prev:hover{transform:translateY(-50%) translateX(-2px)}
.lightbox__nav--next{right:20px} .lightbox__nav--next:hover{transform:translateY(-50%) translateX(2px)}

.lightbox__figure{
  margin:0;max-width:1080px;width:100%;height:100%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
}
.lightbox__stage{
  flex:1;min-height:0;width:100%;
  display:flex;align-items:center;justify-content:center;
  overflow:auto;                            /* very tall clippings scroll */
  border-radius:6px;
}
.lightbox__stage img{
  display:block;max-width:100%;
  border-radius:6px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  background:#fff;
}
.lightbox__caption{
  display:grid;grid-template-columns:auto 1fr auto auto;align-items:baseline;gap:14px;
  padding:0 4px;font-size:13px;color:rgba(255,255,255,.85);letter-spacing:.3px;
}
.lightbox__paper{color:var(--teal);letter-spacing:1.6px;font-weight:500;font-size:11px;text-transform:uppercase}
.lightbox__title{color:#fff;font-weight:500}
.lightbox__date{color:rgba(255,255,255,.6);white-space:nowrap}
.lightbox__count{color:rgba(255,255,255,.6);font-family:var(--display);font-size:14px;letter-spacing:.6px}

/* Small viewports */
@media (max-width:1000px){
  .media__grid{grid-template-columns:repeat(3,1fr);grid-auto-rows:minmax(0,1fr)}
  .media__tile:nth-child(4),.media__tile:nth-child(5){grid-column:span 1}
  .media{min-height:auto}
  .media__grid{flex:0 1 auto;min-height:min(72vh,720px)}
  .lightbox__caption{grid-template-columns:1fr;text-align:left;gap:2px}
}
@media (max-width:640px){
  .media__grid{grid-template-columns:repeat(2,1fr)}
  .lightbox__nav{width:44px;height:44px}
  .lightbox__nav--prev{left:10px} .lightbox__nav--next{right:10px}
}

/* --- Media Coverage: video section below the grid --- */
.media-video{
  max-width:2100px;margin:0 auto;
  padding:clamp(32px, 3vw + 8px, 68px) clamp(20px, 3vw, 56px) clamp(56px, 4vw + 20px, 96px);
  color:#fff;
}
.media-video__header{margin:0 auto clamp(20px, 1.6vw + 6px, 34px);max-width:960px;text-align:left}
.media-video__header .chip{margin-bottom:12px}
.media-video__header h2{
  margin:0;font-family:var(--display);font-weight:400;text-transform:uppercase;
  font-size:clamp(26px, 2vw + 10px, 42px);line-height:1;letter-spacing:.4px;color:#fff;
}
.media-video__header .about__rule{margin:14px 0 14px}
.media-video__sub{
  margin:0;font-size:clamp(14px, .5vw + 10px, 17px);
  color:rgba(255,255,255,.72);letter-spacing:.3px;
}

.media-video__frame{
  position:relative;margin:0 auto;
  max-width:1024px;                        /* matches source video width */
  aspect-ratio:16/9;
  background:#000;
  border-radius:10px;overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 22px 60px rgba(0,10,25,.45);
}
.media-video__frame video{
  display:block;width:100%;height:100%;object-fit:cover;background:#000;
}

/* Play overlay: soft dark scrim, big teal-ringed play button, "Watch" hint */
.media-video__play{
  position:absolute;inset:0;z-index:2;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  background:linear-gradient(180deg, rgba(0,10,25,.15) 0%, rgba(0,10,25,.35) 100%);
  color:#fff;transition:opacity .2s ease;
  cursor:pointer;
}
.media-video__play:hover{background:linear-gradient(180deg, rgba(0,10,25,.05) 0%, rgba(0,10,25,.25) 100%)}
.media-video__play-ring{
  position:relative;display:grid;place-items:center;
  width:88px;height:88px;border-radius:50%;
  background:rgba(3,12,28,.55);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  border:2px solid var(--teal);
  box-shadow:0 0 0 6px rgba(22,208,198,.18), 0 12px 30px rgba(0,10,25,.6);
  transition:transform .2s ease, box-shadow .2s ease;
}
.media-video__play:hover .media-video__play-ring{
  transform:scale(1.06);
  box-shadow:0 0 0 10px rgba(22,208,198,.22), 0 14px 34px rgba(0,10,25,.65);
}
.media-video__play svg{
  position:absolute;width:34px;height:34px;color:var(--teal);
  margin-left:5px;                            /* optical centring of the triangle */
}
.media-video__play-hint{
  font-family:var(--ui);font-size:12px;font-weight:500;
  letter-spacing:2.4px;text-transform:uppercase;
  padding:6px 14px 5px;border-radius:14px;
  background:rgba(3,12,28,.55);
  border:1px solid rgba(255,255,255,.20);
}

/* Once playback begins, JS toggles this class to hide the overlay. */
.media-video__frame.is-playing .media-video__play{opacity:0;pointer-events:none}

/* ============================================================ CADETS PAGE === */
.page-cadets{background:var(--navy)}
.cadets{
  max-width:2100px;margin:0 auto;
  min-height:calc(100vh - var(--nav-h) - var(--footer-h));
  padding:clamp(24px, 2.2vw + 8px, 44px) clamp(20px, 3vw, 56px);
  color:#fff;
}
.cadets__header{margin:0 0 clamp(28px, 2vw + 12px, 48px)}
.cadets__header .chip{margin-bottom:14px}
.cadets__header h1{
  margin:0;font-family:var(--display);font-weight:400;text-transform:uppercase;
  font-size:clamp(32px, 2.6vw + 10px, 52px);line-height:1;letter-spacing:.4px;color:#fff;
}
.cadets__header .about__rule{margin:14px 0 18px}
.cadets__sub{
  margin:0;font-size:clamp(14px, .55vw + 10px, 18px);
  color:rgba(255,255,255,.72);letter-spacing:.4px;
}

/* ───────────────────────────────── Testimonial Marquee (infinite scroll) ─── */
.testimonials{
  position:relative;margin:clamp(20px, 1.6vw + 8px, 34px) 0;
  width:100%;overflow:hidden;
}
.testimonials__viewport{
  position:relative;width:100%;overflow:hidden;
  background:transparent;
  /* The track will translate inside this viewport, creating the scrolling effect */
}
.testimonials__track{
  display:flex;gap:clamp(16px, 1.2vw + 4px, 28px);
  /* Animation paused by default; JavaScript toggles 'is-playing' */
  animation:testimonials-scroll linear infinite;
  animation-play-state:running;
  /* Will-change hints the browser to optimize this transform */
  will-change:transform;
  /* Padding ensures cards don't clip at edges */
  padding-right:clamp(16px, 1.2vw + 4px, 28px);
}
.testimonials__track.is-paused{animation-play-state:paused}

/* Individual testimonial card */
.testimonial-card{
  flex:0 0 auto;
  width:clamp(240px, 20vw + 20px, 340px);
  height:auto;min-height:420px;
  display:flex;flex-direction:column;
  gap:14px;
  background:#fff;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 4px 12px rgba(0,10,25,.08);
  padding:clamp(16px, 1.2vw, 24px);
  transition:box-shadow .2s ease, transform .2s ease;
}
.testimonial-card:hover{
  box-shadow:0 8px 24px rgba(0,10,25,.12);
  transform:translateY(-2px);
}

.testimonial-card__photo{
  width:100%;aspect-ratio:1;
  border-radius:10px;
  background:#e8e8e8;
  object-fit:cover;
  object-position:center;
}
.testimonial-card__header{
  display:flex;flex-direction:column;gap:2px;
}
.testimonial-card__rank{
  font-size:11.5px;color:var(--teal);font-weight:500;letter-spacing:1.6px;
  text-transform:uppercase;
}
.testimonial-card__name{
  margin:0;font-family:var(--display);font-weight:400;
  font-size:18px;line-height:1.1;letter-spacing:.3px;color:#000;
}

.testimonial-card__text{
  flex:1;font-size:13.5px;line-height:1.6;color:rgba(0,0,0,.78);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;
  overflow:hidden;
  /* Ensure consistent card height regardless of text length */
}
.testimonial-card__read-more{
  font-size:12.5px;color:var(--teal);font-weight:500;letter-spacing:.5px;
  text-transform:uppercase;cursor:pointer;
  transition:color .16s ease;
  background:none;border:none;padding:0;text-align:left;
  font-family:inherit;
}
.testimonial-card__read-more:hover{color:#0db3aa}

.testimonial-card__stars{
  display:flex;gap:4px;align-items:center;
}
.testimonial-card__star{
  width:14px;height:14px;color:#FFCE3D;display:block;
  /* Filled star: ★  Empty star: ☆ */
}

/* Marquee animation: slides the track left by the total width of 9 cards
   (the first set). The duplicated second set fills in seamlessly. */
@keyframes testimonials-scroll{
  0%{transform:translateX(0)}
  100%{transform:translateX(calc(-9 * (clamp(240px, 20vw + 20px, 340px) + clamp(16px, 1.2vw + 4px, 28px))))}
}

/* Duration tuned for 9 cards at a comfortable reading speed */
.testimonials__track{animation-duration:54s}

/* Pause hint text */
.testimonials__hint{
  position:absolute;bottom:-28px;right:clamp(20px, 3vw, 56px);
  font-size:11px;color:rgba(255,255,255,.48);letter-spacing:.8px;
  text-transform:uppercase;margin:0;
}

/* ───────────────────────────────── Testimonial Modal ─────────────────────── */
.testimonial-modal{
  position:fixed;inset:0;z-index:100;
  display:flex;align-items:center;justify-content:center;
  background:rgba(2,8,20,.94);
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
  padding:clamp(48px, 4vw + 16px, 80px) clamp(16px, 3vw, 60px);
  opacity:0;pointer-events:none;
  transition:opacity .22s ease;
}
.testimonial-modal[hidden]{display:none}
.testimonial-modal.is-open{opacity:1;pointer-events:auto}

.testimonial-modal__close{
  position:absolute;top:18px;right:18px;z-index:3;
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;color:#fff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.28);
  transition:background .16s ease, transform .16s ease;
  cursor:pointer;font:inherit;
}
.testimonial-modal__close:hover{background:rgba(255,255,255,.14);transform:rotate(90deg)}
.testimonial-modal__close svg{width:20px;height:20px}

.testimonial-modal__content{
  background:#fff;border-radius:12px;
  max-width:520px;width:100%;
  padding:clamp(32px, 4vw, 48px);
  display:grid;grid-template-columns:auto 1fr;gap:clamp(24px, 3vw, 32px);
  align-items:start;
}

.testimonial-modal__photo{
  width:clamp(120px, 20vw, 160px);aspect-ratio:1;
  border-radius:10px;background:#e8e8e8;
  object-fit:cover;object-position:center;
  flex:0 0 auto;
}

.testimonial-modal__text{display:flex;flex-direction:column;gap:12px}
.testimonial-modal__name{
  margin:0;font-family:var(--display);font-weight:400;
  font-size:clamp(20px, 3vw, 28px);line-height:1.1;
  letter-spacing:.4px;color:#000;text-transform:uppercase;
}
.testimonial-modal__rank{
  margin:0;font-size:12px;color:var(--teal);font-weight:500;
  letter-spacing:1.8px;text-transform:uppercase;
}
.testimonial-modal__review{
  font-size:14px;line-height:1.7;color:rgba(0,0,0,.78);
  margin:8px 0;max-height:50vh;overflow-y:auto;
}
.testimonial-modal__review p{margin:0 0 12px}
.testimonial-modal__review p:last-child{margin-bottom:0}
.testimonial-modal__rating{
  display:flex;gap:6px;align-items:center;margin-top:4px;
}
.testimonial-modal__rating .testimonial-card__star{width:16px;height:16px}

/* Mobile: stack modal content vertically */
@media (max-width:600px){
  .testimonial-modal__content{
    grid-template-columns:1fr;gap:clamp(16px, 2vw, 24px);
  }
  .testimonial-modal__photo{width:100%}
}

/* Responsive: smaller cards on smaller viewports */
@media (max-width:1000px){
  .testimonial-card{
    width:clamp(220px, 22vw, 300px);
    min-height:380px;
  }
  .testimonials__track{animation-duration:48s}
}

/* ============================================================ CONTACT PAGE === */
.page-contact{background:var(--navy)}
.contact{
  max-width:1400px;margin:0 auto;
  min-height:calc(100vh - var(--nav-h) - var(--footer-h));
  padding:clamp(32px, 2.4vw + 12px, 60px) clamp(20px, 3vw, 56px);
  color:#fff;
}
.contact__header{margin:0 0 clamp(32px, 2vw + 12px, 52px)}
.contact__header .chip{margin-bottom:14px}
.contact__header h1{
  margin:0;font-family:var(--display);font-weight:400;text-transform:uppercase;
  font-size:clamp(32px, 2.6vw + 10px, 52px);line-height:1;letter-spacing:.4px;color:#fff;
}
.contact__header .about__rule{margin:14px 0 18px}
.contact__sub{
  margin:0;font-size:clamp(14px, .55vw + 10px, 18px);
  color:rgba(255,255,255,.72);letter-spacing:.4px;
}
.contact__grid{
  display:grid;grid-template-columns:repeat(2,1fr);
  gap:clamp(24px, 2vw + 8px, 42px);
  max-width:900px;
}
.contact__block{
  padding:clamp(20px, 1.4vw + 8px, 28px);
  border:1px solid rgba(255,255,255,.12);border-radius:8px;
  background:rgba(255,255,255,.04);
}
.contact__label{
  margin:0 0 8px;font-size:11px;color:var(--teal);font-weight:500;
  letter-spacing:1.8px;text-transform:uppercase;
}
.contact__value{
  margin:0;font-size:15px;line-height:1.7;color:rgba(255,255,255,.88);
}
.contact__value a{color:var(--teal);border-bottom:1px solid rgba(22,208,198,.4);transition:border-color .16s ease}
.contact__value a:hover{border-bottom-color:var(--teal)}

@media (max-width:700px){
  .contact__grid{grid-template-columns:1fr}
}

/* ============================================================ ROUTE MAP · PORT STORIES === */
/* Below the animated route map, four full-width sections tell the story
   of what happened at each port.  Layout: slideshow on the left, note
   panel on the right — the same pattern the About page uses, tuned for
   the route-map page's palette. */

.port-story{
  padding:clamp(56px, 5vw + 16px, 100px) clamp(20px, 3vw, 56px);
  background:var(--navy);
  color:#fff;
  border-top:1px solid rgba(255,255,255,.06);
}
/* Alternating background so the four ports read as distinct chapters */
.port-story--alt{background:#04204c}

.port-story__inner{
  max-width:1400px;margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0, 640px) minmax(280px, 1fr);
  gap:clamp(32px, 3vw + 8px, 72px);
  align-items:start;
}

.port-story__media{min-width:0}
/* The .slideshow class ships with a hard 640px width; on smaller viewports
   let it shrink to fit the grid column. */
.port-story__media .slideshow{width:100%;max-width:640px}

/* Placeholder background for each slide while photos are still being added.
   The ::before renders the port name + slide number behind the image; when
   a real image loads it fades in over the placeholder via inline onload. */
.port-story__media .slideshow__stage figure{
  background:linear-gradient(135deg,#1a2540 0%,#253860 60%,#1e2f4e 100%);
  min-height:clamp(280px, 30vw, 400px);
  position:relative;overflow:hidden;
}
.port-story__media .slideshow__stage figure::before{
  content:attr(data-placeholder);
  position:absolute;inset:0;z-index:0;
  display:grid;place-items:center;
  padding:20px;text-align:center;
  color:rgba(255,255,255,.4);
  font-family:var(--display);font-size:14px;
  letter-spacing:2.4px;text-transform:uppercase;
}
.port-story__media .slideshow__stage figure img,
.port-story__media .slideshow__stage figure video{
  position:relative;z-index:1;                 /* covers the placeholder when loaded */
  width:100%;height:100%;object-fit:cover;
  background:#000;
}

.port-story__note{min-width:0}
.port-story__note .chip{margin-bottom:14px}
.port-story__note h2{
  margin:0;font-family:var(--display);font-weight:400;
  text-transform:uppercase;
  font-size:clamp(30px, 2.6vw + 10px, 52px);
  line-height:1;letter-spacing:.4px;color:#fff;
}
.port-story__rule{
  width:52px;height:3px;background:var(--teal);
  margin:16px 0 22px;
}
.port-story__lead{
  margin:0 0 22px;
  font-size:clamp(15px, .5vw + 12px, 18px);
  color:var(--teal);
  font-weight:500;letter-spacing:.3px;
}
.port-story__body p{
  margin:0 0 16px;
  font-size:15px;line-height:1.75;
  color:rgba(255,255,255,.78);
}
.port-story__body p:last-child{margin-bottom:0}
.port-story__body em{color:rgba(255,255,255,.55);font-style:italic}

/* Responsive: stack on smaller screens */
@media (max-width:900px){
  .port-story__inner{grid-template-columns:1fr}
  .port-story__media .slideshow{margin:0 auto}
}

/* ============================================================ MOTION LAYER ===
   Progressive enhancement inspired by the scroll-driven motion language of
   modern maritime sites (Lenis-style deceleration, reveal-on-scroll cascades,
   page transitions, telemetry HUD).  Everything here is additive: with JS off
   or reduced-motion on, the site renders exactly as before, fully visible.
   Colours come only from the existing palette variables. */
:root{
  --ease-out:cubic-bezier(.215,.61,.355,1);   /* seasats' dominant reveal ease (easeOutCubic) */
  --ease-expo:cubic-bezier(.19,1,.22,1);        /* long premium deceleration */
  --reveal-dur:.85s;
}

/* --- scroll-reveal: hidden state applies ONLY once JS has flagged html.motion,
       so no-JS visitors and crawlers always see fully-rendered content. ------- */
html.motion [data-reveal]{
  opacity:0;transform:translateY(26px);
  transition:opacity var(--reveal-dur) var(--ease-out),
             transform var(--reveal-dur) var(--ease-out);
  transition-delay:var(--reveal-delay,0ms);
  will-change:opacity,transform;
}
html.motion [data-reveal].is-revealed{opacity:1;transform:none}
/* clear the compositor hint once settled to keep scrolling cheap */
html.motion [data-reveal].is-settled{will-change:auto}

/* --- masthead entrance: the bar eases down on first paint ------------------- */
html.motion .masthead__inner{
  animation:mast-in .9s var(--ease-expo) both;
}
@keyframes mast-in{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}

/* --- hero entrance: title + brand plate rise and settle -------------------- */
html.motion .hero__copy > *{
  animation:hero-rise 1.1s var(--ease-expo) both;
}
html.motion .hero__title{animation-delay:.15s}
html.motion .hero__plate{animation-delay:.34s}
@keyframes hero-rise{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}

/* --- hero image: slow cinematic drift (Ken-Burns) + JS parallax offset ----- */
html.motion .hero__media{
  animation:hero-drift 26s var(--ease-out) alternate infinite;
}
/* translateY carries the live JS parallax offset (--par); scale supplies the
   slow Ken-Burns drift.  Both keyframes hold the same --par so the parallax
   stays constant across the drift while updating in real time on scroll. */
@keyframes hero-drift{
  from{transform:translateY(var(--par,0px)) scale(1.04)}
  to{transform:translateY(var(--par,0px)) scale(1.11)}
}

/* --- animated nav underline: a teal/sky rule sweeps in from the left -------- */
.nav__link{position:relative}
.nav__link::after{
  content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;
  background:linear-gradient(90deg,var(--teal),var(--sky));
  transform:scaleX(0);transform-origin:left;
  transition:transform .32s var(--ease-out);
}
.nav__link:hover::after{transform:scaleX(1)}
.nav__link[aria-current="page"]::after{display:none} /* keep the current-page rule as-is */

/* --- micro-interaction: media / info cards lift and lighten on hover ------- */
.clipping,.contact__block,.vision__panel{
  transition:transform .28s var(--ease-out),box-shadow .28s var(--ease-out);
}
@media (hover:hover){
  .clipping:hover,.contact__block:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 30px rgba(0,10,25,.22);
  }
  /* gentle zoom on figure images that sit inside a hoverable card */
  .clipping img{transition:transform .5s var(--ease-out)}
  .clipping:hover img{transform:scale(1.045)}
}

/* --- page-transition overlay (injected by JS) ------------------------------ */
.pt{
  position:fixed;inset:0;z-index:2000;
  display:grid;place-items:center;
  background:var(--navy);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .45s var(--ease-out),visibility 0s linear .45s;
}
.pt.is-on{
  opacity:1;visibility:visible;pointer-events:auto;
  transition:opacity .34s var(--ease-out);
}
.pt__mark{
  width:78px;height:auto;
  opacity:0;transform:scale(.86);
  filter:drop-shadow(0 8px 24px rgba(0,0,0,.4));
}
.pt.is-on .pt__mark{
  opacity:1;transform:scale(1);
  transition:opacity .4s var(--ease-out),transform .7s var(--ease-expo);
}
.pt__bar{
  position:absolute;left:0;bottom:0;height:3px;width:0;
  background:linear-gradient(90deg,var(--teal),var(--sky));
}
.pt.is-on .pt__bar{width:100%;transition:width .55s var(--ease-out)}

/* --- global scroll-progress bar (top) + telemetry ring (corner) ------------ */
.scroll-line{
  position:fixed;top:0;left:0;height:3px;width:0;z-index:1500;
  background:linear-gradient(90deg,var(--teal),var(--sky));
  pointer-events:none;
}
.scroll-ring{
  position:fixed;right:20px;bottom:20px;z-index:1500;
  width:52px;height:52px;pointer-events:none;
  opacity:0;transform:translateY(10px);
  transition:opacity .4s var(--ease-out),transform .4s var(--ease-out);
}
.scroll-ring.is-on{opacity:1;transform:none}
.scroll-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.scroll-ring__track{fill:none;stroke:rgba(255,255,255,.16);stroke-width:3}
.scroll-ring__val{fill:none;stroke:url(#ringGrad);stroke-width:3;stroke-linecap:round;
  stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .1s linear}
.scroll-ring__icon{
  position:absolute;inset:0;display:grid;place-items:center;
  color:var(--teal);pointer-events:none;
}
.scroll-ring__icon svg{width:16px;height:16px;transform:none}
/* on light-masthead inner pages the corner ring sits over dark ground anyway
   (page bodies are navy), so the light text stays legible */
@media (max-width:640px){ .scroll-ring{display:none} }

/* --- honour reduced-motion: strip every optional animation ------------------ */
@media (prefers-reduced-motion:reduce){
  html.motion [data-reveal]{opacity:1;transform:none;transition:none}
  html.motion .masthead__inner,
  html.motion .hero__copy > *,
  html.motion .hero__media{animation:none}
  .nav__link::after{transition:none}
  .pt{transition:opacity .001s linear}
  .scroll-ring{display:none}
}
