/* =========================================================
   Aqua Logistics — homepage prototype
   Palette anchored to the logo cobalt (#0030D0). Dark sections
   are a deep marine navy rather than black, so the whole page
   sits in the blue family with one warm accent for actions.
   ========================================================= */

:root{
  /* Palette */
  --ink:          #0a2440;   /* deep marine navy — base dark  */
  --ink-2:        #0f3054;   /* raised dark surface           */
  --ink-3:        #164067;   /* card surface                  */
  --paper:        #eef3f8;   /* cool light section base       */
  --paper-2:      #dde6f0;
  --line:         rgba(214,231,247,.18);
  --line-dark:    rgba(10,36,64,.16);
  --text-dark:    #0a2440;
  --text-light:   #edf3f9;
  --muted-light:  rgba(237,243,249,.62);
  --muted-dark:   rgba(10,36,64,.60);
  --brand:        #0030d0;   /* logo cobalt                   */
  --accent:       #ff6b1a;   /* action orange                 */
  --accent-soft:  rgba(255,107,26,.14);

  /* Type */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --wrap: 1440px;
  --gut:  clamp(20px, 5vw, 80px);
  --head-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }

/* The horizontal clip lives on the root, not on the body. overflow-x:hidden on
   the body forces its overflow-y to auto, which turns the body into a scroll
   container — and then in-page anchor links and scrollIntoView() silently stop
   working, because the browser scrolls that box instead of the viewport. */
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; overflow-x:hidden; }

body{
  margin:0;
  background:var(--ink);
  color:var(--text-light);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  /* clip, not hidden — clip does not create a scroll container, so the body
     stays out of the way of anchor scrolling. */
  overflow-x:clip;
}

img,svg,video{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
address{ font-style:normal; }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:600; margin:0; letter-spacing:-.025em; line-height:1.03; }
p{ margin:0; }

.wrap{ max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gut); }

.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--accent); color:#fff; padding:12px 20px;
}
.skip:focus{ left:0; }

/* ---------------- Type scale ---------------- */
.h2{
  font-size:clamp(2rem, 4.6vw, 4.25rem);
  letter-spacing:-.035em;
}
.lede{
  font-size:clamp(1rem, 1.25vw, 1.2rem);
  line-height:1.65;
  max-width:52ch;
  color:var(--muted-light);
}
.section-tag{
  font-family:var(--font-body);
  font-size:.72rem; font-weight:600;
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--accent);
  margin-bottom:1.6rem;
}
.eyebrow{
  font-size:.72rem; font-weight:600;
  letter-spacing:.28em; text-transform:uppercase;
  color:rgba(255,255,255,.78);
  margin-bottom:1.4rem;
}
.note{
  margin-top:3rem; font-size:.8rem; letter-spacing:.04em;
  color:var(--muted-dark); font-style:italic;
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; gap:.6em;
  font-family:var(--font-body); font-size:.86rem; font-weight:600;
  letter-spacing:.04em;
  padding:.95em 1.6em;
  border:1px solid transparent;
  transition:background .4s var(--ease), color .4s var(--ease),
             border-color .4s var(--ease), transform .4s var(--ease);
  white-space:nowrap;
}
.btn .chev{ transition:transform .4s var(--ease); font-size:1.15em; line-height:0; }
.btn:hover .chev{ transform:translateX(5px); }

.btn-solid{ background:var(--accent); color:#fff; }
.btn-solid:hover{ background:#ff8340; }

.btn-line{ border-color:var(--line); color:var(--text-light); }
.btn-line:hover{ border-color:var(--text-light); background:rgba(255,255,255,.08); }

.btn-ghost{ color:var(--text-light); padding:.7em 1.1em; border-color:var(--line); }
.btn-ghost:hover{ border-color:currentColor; }

.btn-lg{ padding:1.15em 2rem; font-size:.92rem; }

.link{
  display:inline-flex; align-items:center; gap:.5em;
  font-size:.84rem; font-weight:600; letter-spacing:.04em;
  color:var(--accent);
}
.link .chev{ transition:transform .4s var(--ease); font-size:1.15em; line-height:0; }
a:hover .link .chev, .link:hover .chev{ transform:translateX(5px); }

/* ================= HEADER ================= */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  transition:background .5s var(--ease), border-color .5s var(--ease);
  border-bottom:1px solid transparent;
}
.site-header.solid{
  background:rgba(10,36,64,.90);
  backdrop-filter:saturate(1.6) blur(14px);
  border-bottom-color:var(--line);
}
.header-inner{
  max-width:var(--wrap); margin-inline:auto;
  padding-inline:var(--gut);
  height:var(--head-h);
  display:flex; align-items:center; gap:2rem;
}
.brand{ display:flex; align-items:center; gap:.9rem; margin-right:auto; color:var(--text-light); }
.brand-mark{ height:34px; width:auto; flex:none; }
.brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.brand-name{ font-family:var(--font-display); font-weight:600; font-size:.95rem; letter-spacing:.14em; }
.brand-sub{ font-size:.58rem; letter-spacing:.2em; text-transform:uppercase; color:var(--muted-light); }

.nav{ display:flex; gap:2.2rem; }
.nav a{
  position:relative; font-size:.82rem; font-weight:500;
  letter-spacing:.08em; text-transform:uppercase;
  color:rgba(237,243,249,.84);
  padding-block:.4rem;
  transition:color .3s var(--ease);
}
.nav a::after{
  content:''; position:absolute; left:0; bottom:0;
  width:100%; height:1px; background:var(--accent);
  transform:scaleX(0); transform-origin:left;
  transition:transform .45s var(--ease);
}
.nav a:hover{ color:#fff; }
.nav a:hover::after{ transform:scaleX(1); }

.header-actions{ display:flex; align-items:center; gap:1rem; }

.burger{
  display:none; width:44px; height:44px; background:none; border:0;
  cursor:pointer; padding:12px; flex-direction:column; justify-content:center; gap:6px;
}
.burger span{ display:block; height:1.5px; background:var(--text-light); transition:transform .4s var(--ease); }
.burger[aria-expanded="true"] span:first-child{ transform:translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child{ transform:translateY(-3.75px) rotate(-45deg); }

.mobile-nav{
  display:none; flex-direction:column;
  background:rgba(10,36,64,.98); backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  padding:1rem var(--gut) 2rem;
}
.mobile-nav.open{ display:flex; }
.mobile-nav a{
  padding:1.05rem 0; border-bottom:1px solid var(--line);
  font-family:var(--font-display); font-size:1.35rem; font-weight:500;
}

/* ================= HERO ================= */
.hero{
  position:relative; min-height:100svh;
  display:flex; align-items:flex-end;
  padding:calc(var(--head-h) + 4rem) 0 clamp(3rem,7vh,6rem);
  overflow:hidden;
}
.hero-media{ position:absolute; inset:0; z-index:0; background:var(--ink); }
.hero-video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover;
}
/* Keeps the headline legible over bright sky without flattening the footage. */
.hero-scrim{
  position:absolute; inset:0; z-index:2;
  background:
    linear-gradient(180deg, rgba(10,36,64,.62) 0%, rgba(10,36,64,.10) 30%, rgba(10,36,64,.52) 68%, rgba(6,24,44,.94) 100%),
    linear-gradient(90deg, rgba(10,36,64,.66) 0%, rgba(10,36,64,0) 66%);
}

.hero-content{
  position:relative; z-index:3;
  max-width:var(--wrap); width:100%;
  margin-inline:auto; padding-inline:var(--gut);
}
.hero-title{
  font-size:clamp(2.9rem, 8.2vw, 8.5rem);
  letter-spacing:-.045em; line-height:.95;
  margin-bottom:1.6rem;
  text-wrap:balance;
  text-shadow:0 2px 40px rgba(6,24,44,.4);
}
.hero-lede{
  font-size:clamp(1rem,1.35vw,1.28rem);
  line-height:1.6; max-width:46ch;
  color:rgba(237,243,249,.88);
  margin-bottom:2.6rem;
}
.hero-cta{ display:flex; flex-wrap:wrap; gap:.9rem; }

.hero-meta{
  position:absolute; z-index:3; inset:auto var(--gut) clamp(1.2rem,3vh,2rem) auto;
}
.scroll-cue{ display:block; width:1px; height:56px; position:relative; overflow:hidden; }
.scroll-line{ position:absolute; inset:0; background:rgba(255,255,255,.28); }
.scroll-line::after{
  content:''; position:absolute; inset:0; background:var(--accent);
  animation:cue 2.4s var(--ease) infinite;
}
@keyframes cue{ 0%{ transform:translateY(-100%); } 55%,100%{ transform:translateY(100%); } }

/* ================= STATEMENT ================= */
.statement{
  background:var(--paper); color:var(--text-dark);
  padding:clamp(5rem,13vh,10rem) 0;
}
.statement-text{
  font-size:clamp(1.6rem, 3.5vw, 3.4rem);
  font-weight:500; letter-spacing:-.03em; line-height:1.16;
  max-width:22ch; text-wrap:balance;
}
.statement-text em{ font-style:normal; color:var(--brand); }

.stats{
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:2rem; margin-top:clamp(3.5rem,8vh,6.5rem);
  border-top:1px solid var(--line-dark); padding-top:2.6rem;
}
.stat{ display:flex; flex-direction:column; gap:.6rem; }
.stat-num{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(2.1rem,4.2vw,3.6rem); letter-spacing:-.04em; line-height:1;
  color:var(--brand);
}
.stat-label{ font-size:.82rem; color:var(--muted-dark); letter-spacing:.02em; max-width:22ch; }

/* ================= IMAGE PLATE =================
   One shared treatment pulls the archive photography — shot over
   many years, in many conditions — into a single cool, consistent set. */
.plate{
  position:relative; aspect-ratio:4/3; overflow:hidden;
  background:var(--ink-2);
}
.plate img{
  width:100%; height:100%; object-fit:cover;
  filter:saturate(.68) contrast(1.06) brightness(.94);
  transition:transform .9s var(--ease), filter .7s var(--ease);
}
.plate::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(10,36,64,.26) 0%, rgba(10,36,64,.34) 45%, rgba(10,36,64,.66) 100%);
  transition:opacity .7s var(--ease);
}
.card:hover .plate img,
.news-card:hover .plate img{ transform:scale(1.05); filter:saturate(1) contrast(1.04) brightness(1); }
.card:hover .plate::after,
.news-card:hover .plate::after{ opacity:.55; }

/* ================= PRODUCT RAIL ================= */
.products{ padding:clamp(5rem,13vh,10rem) 0; background:var(--ink); }
.rail-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:2rem; margin-bottom:clamp(2.5rem,6vh,4.5rem);
}
.rail-controls{ display:flex; gap:.6rem; }
.rail-btn{
  width:52px; height:52px; border-radius:50%;
  border:1px solid var(--line); background:none; color:var(--text-light);
  font-size:1.4rem; line-height:1; cursor:pointer;
  transition:background .35s var(--ease), border-color .35s var(--ease);
}
.rail-btn:hover{ background:var(--accent); border-color:var(--accent); }
.rail-btn:disabled{ opacity:.3; cursor:default; }
.rail-btn:disabled:hover{ background:none; border-color:var(--line); }

.rail{
  display:flex; gap:1.25rem;
  overflow-x:auto; scroll-snap-type:x mandatory;
  padding-inline:var(--gut); padding-bottom:1rem;
  scrollbar-width:none;
}
.rail::-webkit-scrollbar{ display:none; }
.rail:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; }

.card{
  flex:0 0 clamp(260px, 27vw, 380px);
  scroll-snap-align:start;
  background:var(--ink-2);
  display:flex; flex-direction:column;
  transition:transform .55s var(--ease), background .55s var(--ease);
}
.card:hover{ transform:translateY(-8px); background:var(--ink-3); }

.card-body{ padding:1.6rem 1.5rem 1.9rem; display:flex; flex-direction:column; gap:.7rem; flex:1; }
.card-body h3{ font-size:1.18rem; letter-spacing:-.02em; }
.card-body p{ font-size:.88rem; color:var(--muted-light); flex:1; }
/* Marks the cards that belong to a named principal's range. */
.card-brand{
  align-self:flex-start;
  font-size:.6rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  color:var(--accent); border:1px solid rgba(255,107,26,.42);
  padding:.32em .7em; margin-bottom:-.1rem;
}

.card-all{ background:var(--accent-soft); border:1px solid rgba(255,107,26,.42); justify-content:flex-end; }
.card-all:hover{ background:rgba(255,107,26,.22); }
.card-all .card-body{ padding-block:2.4rem; }

/* ================= TRACK RECORD ================= */
.record{ background:var(--ink-2); padding:clamp(5rem,13vh,10rem) 0; }
.record .lede{ margin-top:1.4rem; }

.record-stats{
  display:grid; grid-template-columns:repeat(4,1fr); gap:2rem;
  margin:clamp(3rem,7vh,5rem) 0 clamp(3rem,7vh,4.5rem);
  border-top:1px solid var(--line); padding-top:2.6rem;
}
.record-stats .stat-num{ color:var(--text-light); }
.record-stats .stat-label{ color:var(--muted-light); }

.record-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,4vw,4rem); }
.record-panel{ display:flex; flex-direction:column; }
.record-h{
  font-family:var(--font-body); font-size:.72rem; font-weight:600;
  letter-spacing:.2em; text-transform:uppercase; color:var(--accent);
  padding-bottom:1.4rem; border-bottom:1px solid var(--line); margin-bottom:1.6rem;
}
.record-foot{
  margin-top:1.6rem; font-size:.78rem; line-height:1.6;
  color:var(--muted-light); max-width:52ch;
}
.record-foot.dim{ margin-top:1.1rem; font-style:italic; color:rgba(237,243,249,.45); }

/* --- donut chart + legend --- */
.pie-wrap{
  display:grid; grid-template-columns:minmax(180px,240px) 1fr;
  gap:clamp(1.5rem,3vw,2.5rem); align-items:center;
}
.pie{ width:100%; height:auto; overflow:visible; }
.pie .seg{
  fill:none; stroke-width:30;
  opacity:0; transform-origin:100px 100px; transform:scale(.94);
  transition:opacity .7s var(--ease), stroke-width .3s var(--ease), transform .7s var(--ease);
}
.record-panel.in .pie .seg{ opacity:1; transform:none; }
.pie .seg:nth-child(1){ transition-delay:.05s } .pie .seg:nth-child(2){ transition-delay:.1s }
.pie .seg:nth-child(3){ transition-delay:.15s } .pie .seg:nth-child(4){ transition-delay:.2s }
.pie .seg:nth-child(5){ transition-delay:.25s } .pie .seg:nth-child(6){ transition-delay:.3s }
.pie .seg:nth-child(7){ transition-delay:.35s } .pie .seg:nth-child(8){ transition-delay:.4s }
.pie .seg:nth-child(9){ transition-delay:.45s } .pie .seg:nth-child(10){ transition-delay:.5s }
.pie .seg:nth-child(11){ transition-delay:.55s }
.pie-mid, .pie-sub{ text-anchor:middle; fill:var(--text-light); }
.pie-mid{ font-family:var(--font-display); font-weight:600; font-size:19px; letter-spacing:-.02em; }
.pie-sub{
  font-family:var(--font-body); font-size:9px; font-weight:600;
  letter-spacing:.18em; text-transform:uppercase; fill:var(--muted-light);
}

.legend{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.55rem; }
.legend li{ display:grid; grid-template-columns:auto 1fr auto; align-items:baseline; gap:.7rem; }
.legend i{ width:10px; height:10px; flex:none; align-self:center; }
.lg-label{ font-size:.8rem; color:rgba(237,243,249,.88); line-height:1.35; }
.lg-pct{
  font-family:var(--font-display); font-weight:600; font-size:.86rem;
  color:var(--text-light); font-variant-numeric:tabular-nums; white-space:nowrap;
}

/* --- vessel table --- */
.table-scroll{ overflow-x:auto; max-height:520px; overflow-y:auto; }
.vtable{ width:100%; border-collapse:collapse; font-size:.82rem; }
.vtable th{
  position:sticky; top:0; z-index:1; background:var(--ink-2);
  text-align:left; font-family:var(--font-body); font-weight:600;
  font-size:.66rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted-light); padding:0 1rem .8rem 0;
  border-bottom:1px solid var(--line);
}
.vtable td{
  padding:.72rem 1rem .72rem 0;
  border-bottom:1px solid rgba(237,243,249,.08);
  color:rgba(237,243,249,.88); vertical-align:top;
}
.vtable tbody tr{ transition:background .3s var(--ease); }
.vtable tbody tr:hover{ background:rgba(237,243,249,.05); }
.vtable td:first-child{ font-weight:600; color:var(--text-light); white-space:nowrap; }
.vtable .num{ text-align:right; padding-right:0; font-variant-numeric:tabular-nums; }
.vtable td.num{ color:var(--accent); font-weight:600; }
.vtable .sub{
  display:block; font-weight:400; font-size:.72rem;
  letter-spacing:.02em; color:var(--muted-light); margin-top:.2rem;
}

/* --- secondary reference list --- */
.record-h-sub{ margin-top:2.4rem; }
.chips{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem; }
.chips li{
  font-size:.76rem; letter-spacing:.01em;
  color:rgba(237,243,249,.82);
  border:1px solid var(--line); padding:.42em .85em;
  transition:border-color .35s var(--ease), color .35s var(--ease);
}
.chips li:hover{ border-color:var(--accent); color:#fff; }

/* --- credentials strip --- */
.credentials{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:2rem;
  margin-top:clamp(3rem,7vh,4.5rem); padding-top:2.4rem;
  border-top:1px solid var(--line);
}
.cred{ display:flex; flex-direction:column; gap:.5rem; }
.cred-k{
  font-size:.66rem; font-weight:600; letter-spacing:.2em;
  text-transform:uppercase; color:var(--muted-light);
}
.cred-v{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(1rem,1.5vw,1.28rem); letter-spacing:-.01em; color:var(--text-light);
}
.cred-n{ font-size:.78rem; line-height:1.55; color:var(--muted-light); max-width:34ch; }
.cred-v-sm{ font-size:clamp(.9rem,1.1vw,1.02rem); line-height:1.45; }

/* ================= PRINCIPALS ================= */
.principals{
  background:var(--paper); color:var(--text-dark);
  padding:clamp(5rem,13vh,10rem) 0;
}
.logo-grid{
  display:grid; grid-template-columns:repeat(5,1fr);
  border-top:1px solid var(--line-dark); border-left:1px solid var(--line-dark);
  margin-top:clamp(3rem,7vh,5rem);
}
.logo{
  border-right:1px solid var(--line-dark); border-bottom:1px solid var(--line-dark);
  padding:2.2rem 1.6rem 1.8rem; min-height:250px;
  display:flex; flex-direction:column; gap:1.4rem;
  transition:background .45s var(--ease);
}
.logo:hover{ background:#fff; }
.logo img{
  height:66px; width:auto; max-width:100%; object-fit:contain; object-position:left center;
  filter:grayscale(1); opacity:.66;
  transition:filter .5s var(--ease), opacity .5s var(--ease);
  margin-bottom:auto;
}
.logo:hover img{ filter:none; opacity:1; }
.logo em{ font-style:normal; font-size:.74rem; color:var(--muted-dark); line-height:1.5; }

/* ================= SERVICES ================= */
.services{
  background:var(--paper); color:var(--text-dark);
  padding:clamp(5rem,13vh,10rem) 0;
}
.lede-dark{ color:var(--muted-dark); margin-top:1.4rem; }

.svc-group{ margin-top:clamp(3rem,7vh,5rem); }
.svc-group-h{
  display:flex; align-items:center; gap:1.4rem;
  font-family:var(--font-body); font-size:.72rem; font-weight:600;
  letter-spacing:.2em; text-transform:uppercase; color:var(--brand);
  margin-bottom:2.4rem;
}
.svc-group-h::after{ content:''; flex:1; height:1px; background:var(--line-dark); }

.svc-grid{ display:grid; gap:2.8rem 2.5rem; }
.svc-grid-4{ grid-template-columns:repeat(4,1fr); }
.svc-grid-3{ grid-template-columns:repeat(3,1fr); }

.svc{ border-top:2px solid var(--brand); padding-top:1.6rem; display:flex; flex-direction:column; gap:.9rem; }
.svc-alt{ border-top-color:var(--accent); }
.svc-num{ font-family:var(--font-display); font-size:.78rem; font-weight:600; letter-spacing:.18em; color:var(--accent); }
.svc-alt .svc-num{ color:var(--brand); }
.svc h3{ font-size:1.28rem; }
.svc p{ font-size:.9rem; color:var(--muted-dark); }

/* ================= NEWS ================= */
.news{ background:var(--ink); padding:clamp(5rem,13vh,10rem) 0; }
.news .rail-head{ padding-inline:var(--gut); }
.news-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; }
.news-card{ display:flex; flex-direction:column; gap:1rem; }
.news-card .plate{ aspect-ratio:16/10; }
.news-date{ font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; color:var(--accent); }
.news-card h3{ font-size:1.24rem; letter-spacing:-.02em; transition:color .4s var(--ease); }
.news-card:hover h3{ color:var(--accent); }

/* ================= CTA ================= */
.cta{
  background:var(--accent); color:#fff;
  padding:clamp(4.5rem,11vh,8rem) 0;
}
.cta .section-tag{ color:rgba(255,255,255,.82); }
.cta .lede{ color:rgba(255,255,255,.92); margin-top:1.4rem; }
.cta-inner{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:3rem; flex-wrap:wrap;
}
.cta-actions{ display:flex; flex-direction:column; gap:.8rem; }
.cta .btn-solid{ background:#fff; color:var(--accent); }
.cta .btn-solid:hover{ background:var(--ink); color:#fff; }
.cta .btn-line{ border-color:rgba(255,255,255,.6); color:#fff; }
.cta .btn-line:hover{ background:rgba(255,255,255,.16); border-color:#fff; }

/* ================= FOOTER ================= */
.site-footer{ background:#061a2e; padding:clamp(4rem,9vh,6rem) 0 2.5rem; }
.footer-top{
  display:grid; grid-template-columns:1.6fr 1fr 1fr 1.4fr; gap:2.5rem;
  padding-bottom:3.5rem;
}
.footer-brand{ display:flex; flex-direction:column; gap:1.4rem; }
.footer-logo{ width:150px; height:auto; }
.footer-line{ font-size:.84rem; color:var(--muted-light); line-height:1.7; }
.footer-col{ display:flex; flex-direction:column; gap:.7rem; }
.footer-col h4{
  font-family:var(--font-body); font-size:.68rem; font-weight:600;
  letter-spacing:.2em; text-transform:uppercase; color:var(--accent);
  margin-bottom:.5rem;
}
.footer-col a, .footer-col span, .footer-col address{
  font-size:.86rem; color:rgba(237,243,249,.84); transition:color .3s var(--ease);
}
.footer-contact address{ line-height:1.75; color:var(--muted-light); margin-bottom:.4rem; }
.footer-col a:hover{ color:var(--accent); }
.muted{ color:var(--muted-light) !important; }
.footer-bottom{
  display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  border-top:1px solid var(--line); padding-top:1.8rem;
  font-size:.76rem; color:var(--muted-light);
}

/* ================= REVEAL ================= */
.reveal{
  opacity:0; transform:translateY(28px);
  transition:opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay:calc(var(--d,0) * 90ms);
}
.reveal.in{ opacity:1; transform:none; }

/* ================= RESPONSIVE ================= */
@media (max-width:1240px){
  .footer-top{ grid-template-columns:1fr 1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
  .record-grid{ grid-template-columns:1fr; gap:3.5rem; }
  .table-scroll{ max-height:none; }
}

@media (max-width:1100px){
  .stats,
  .record-stats{ grid-template-columns:repeat(2,1fr); gap:2.5rem 2rem; }
  .logo-grid{ grid-template-columns:repeat(3,1fr); }
  .svc-grid-4, .svc-grid-3{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:900px){
  .nav{ display:none; }
  .burger{ display:flex; }
  .header-actions .btn-ghost{ display:none; }
  .news-grid{ grid-template-columns:1fr; gap:2.5rem; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .credentials{ grid-template-columns:1fr; gap:1.6rem; }
}

@media (max-width:640px){
  :root{ --head-h:64px; }
  .brand-sub{ display:none; }
  .logo-grid{ grid-template-columns:repeat(2,1fr); }
  .svc-grid-4, .svc-grid-3{ grid-template-columns:1fr; gap:2rem; }
  .logo img{ height:56px; }
  .footer-top{ grid-template-columns:1fr; gap:2.5rem; }
  .card{ flex-basis:78vw; }
  .rail-controls{ display:none; }
  .statement-text{ max-width:none; }
  .cta-actions{ width:100%; }
  .cta-actions .btn{ justify-content:center; }
  .pie-wrap{ grid-template-columns:1fr; justify-items:center; }
  .pie{ max-width:230px; }
  .legend{ width:100%; }
  .vtable{ font-size:.78rem; }
  .vtable td:first-child{ white-space:normal; }
}

/* =========================================================
   WordPress inner pages (unused by the static prototype —
   these carry the archive, single and page templates).
   ========================================================= */
.inner-page{ padding-top:calc(var(--head-h) + clamp(3rem,8vh,6rem)); background:var(--ink); }
.page-head{ padding-bottom:clamp(2rem,5vh,3.5rem); }
.page-head .h2, .page-head h1{ max-width:20ch; text-wrap:balance; }
.page-body{ padding-bottom:clamp(4rem,10vh,7rem); }
/* Plugins wrap post content in their own containers, so match the elements
   themselves rather than the children of any one wrapper. */
.page-body > *,
.page-body p,
.page-body ul,
.page-body ol,
.page-body figure,
.page-body blockquote{ margin-block:1.2rem; }
.page-body h2{ font-size:clamp(1.5rem,2.6vw,2.2rem); margin-top:2.6rem; }
.page-body h3{ font-size:1.3rem; margin-top:2rem; }
.page-body p{ color:rgba(237,243,249,.84); }
.page-body .plate{ aspect-ratio:16/9; margin-block:2rem; }
.page-body img{ width:100%; height:auto; }
.page-body ul, .page-body ol{ color:rgba(237,243,249,.84); padding-left:1.15rem; }
.page-body li{ margin-bottom:.5rem; }

/* Shares the element with .wrap, so only touch the block axis — setting
   margin/padding outright would kill the wrap centring and gutters. */
.product-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:2.5rem 1.6rem;
  list-style:none; margin-block:0; padding-block:0 clamp(4rem,10vh,7rem);
}
.product-grid > li{ display:flex; flex-direction:column; gap:.9rem; }
.product-grid .plate{ aspect-ratio:4/3; }
.product-grid h3{ font-size:1.18rem; letter-spacing:-.02em; }
.product-grid p{ font-size:.88rem; color:var(--muted-light); }

.news-grid.wp-block-post-template{ list-style:none; margin:0; padding:0; }
.news-grid.wp-block-post-template > li{ display:flex; flex-direction:column; gap:.9rem; }

.wp-block-query-pagination{
  display:flex; gap:1rem; padding-bottom:clamp(4rem,10vh,7rem);
  font-size:.86rem; font-weight:600;
}

/* The logo grid falls back to the principal's name when no mark is uploaded. */
.logo-text{
  font-family:var(--font-display); font-weight:600; font-size:1.05rem;
  letter-spacing:.02em; margin-bottom:auto;
}

@media (max-width:900px){
  .product-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .product-grid{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .reveal{ opacity:1; transform:none; }
}

/* =========================================================
   Product detail pages (WordPress) — spec groups + gallery.
   Mirrors the CSS applied live via Site Editor → Additional CSS
   so the theme file stays the source of truth.
   ========================================================= */
.page-body .spec-h{
  font-family:var(--font-display); font-size:clamp(1.15rem,1.7vw,1.5rem);
  font-weight:600; letter-spacing:-.02em; color:var(--accent);
  margin:2.8rem 0 1.1rem; padding-bottom:.7rem; border-bottom:1px solid var(--line);
}
.page-body .spec-h:first-child{ margin-top:0; }

.spec-table{ margin:0 0 1.4rem; }
.spec-table table{ width:100%; border-collapse:collapse; font-size:.88rem; }
.wp-block-table.spec-table table,
.wp-block-table.spec-table td,
.wp-block-table.spec-table th{ border:0; }
.wp-block-table.spec-table th,
.wp-block-table.spec-table td{
  text-align:left; vertical-align:top; padding:.7rem 1.2rem .7rem 0;
  border-bottom:1px solid rgba(237,243,249,.10);
}
.spec-table th{ width:34%; font-weight:600; color:var(--text-light); }
.spec-table td{ color:rgba(237,243,249,.80); }
.spec-table td[colspan="2"]{ color:var(--muted-light); font-style:italic; }
.page-body figure.wp-block-table{ margin-left:0; margin-right:0; }

.product-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin:3rem 0 0; }
.product-gallery figure{ margin:0; aspect-ratio:4/3; overflow:hidden; background:var(--ink-2); }
.product-gallery img{
  width:100%; height:100%; object-fit:cover;
  filter:saturate(.68) contrast(1.06) brightness(.94);
  transition:transform .9s var(--ease), filter .7s var(--ease);
}
.product-gallery figure:hover img{ transform:scale(1.05); filter:saturate(1) brightness(1); }

@media (max-width:900px){ .product-gallery{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){
  .product-gallery{ grid-template-columns:1fr; }
  .spec-table th{ width:44%; }
}

/* =========================================================
   Product index — own range, then principals
   ========================================================= */
.products-index{ padding-top:0; }
.products-index .product-grid{ padding-bottom:0; margin-top:clamp(2rem,5vh,3.2rem); }
.products-index .card{ flex:none; }
.index-split{ margin-top:clamp(4rem,10vh,7rem); padding-top:clamp(3rem,7vh,4.5rem); border-top:1px solid var(--line); }

.brand-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.25rem;
  margin-top:clamp(2rem,5vh,3.2rem); padding-bottom:clamp(4rem,10vh,7rem);
}
.brand-card{
  background:var(--ink-2); padding:1.8rem 1.6rem 1.6rem;
  display:flex; flex-direction:column; gap:1.2rem;
  transition:transform .55s var(--ease), background .55s var(--ease);
}
.brand-card:hover{ transform:translateY(-6px); background:var(--ink-3); }
.brand-logo{
  display:grid; place-items:center; height:88px;
  background:#fff; border-radius:2px; padding:.9rem;
}
.brand-logo img{ width:auto; height:auto; max-width:100%; max-height:56px; object-fit:contain; }
.brand-logo .logo-text{
  font-family:var(--font-display); font-weight:600; font-size:1rem;
  color:var(--ink); text-align:center; letter-spacing:.02em;
}
.brand-meta{ display:flex; flex-direction:column; gap:.3rem; flex:1; }
.brand-name{ font-family:var(--font-display); font-weight:600; font-size:1.1rem; letter-spacing:-.02em; }
.brand-count{ font-size:.8rem; color:var(--muted-light); }

/* --- a principal's own page --- */
.brand-head{
  display:flex; align-items:center; gap:clamp(1.5rem,4vw,3rem);
  padding-top:clamp(1rem,3vh,2rem); flex-wrap:wrap;
}
.brand-head-logo{
  display:grid; place-items:center; width:190px; height:120px;
  background:#fff; padding:1.1rem; flex:none;
}
.brand-head-logo img{ width:auto; height:auto; max-width:100%; max-height:84px; object-fit:contain; }

/* --- breadcrumb --- */
.crumb-wrap{ padding-top:clamp(.5rem,2vh,1.2rem); }
.crumbs{
  display:flex; flex-wrap:wrap; align-items:center; gap:.55rem;
  font-size:.78rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--muted-light);
}
.crumbs a{ color:var(--muted-light); transition:color .3s var(--ease); }
.crumbs a:hover{ color:var(--accent); }
.crumbs [aria-current]{ color:var(--text-light); }
.crumb-sep{ opacity:.4; }

@media (max-width:1100px){ .brand-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:820px){  .brand-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){
  .brand-grid{ grid-template-columns:1fr; }
  .brand-head-logo{ width:150px; height:96px; }
}

/* Some cards carry a maker's mark or a studio shot on white rather than a
   photograph, so they want the opposite of the plate treatment: light ground,
   whole subject in frame, and none of the shared photo grade. */
.plate-plain{ background:#fff; }
.plate-plain img{ object-fit:contain; padding:9%; filter:none; }
.plate-plain::after{ display:none; }
.card:hover .plate-plain img{ transform:none; filter:none; }

/* Who made it, under a product title — and where to read more, on their site. */
.maker{
  display:flex; flex-wrap:wrap; align-items:baseline; gap:.4rem 1.2rem;
  margin-top:1.2rem; font-size:.86rem; color:var(--muted-light);
}
.maker .link{ font-size:.86rem; }

/* …and the same for that product's featured image at the top of its page. */
.has-plain-plate .page-body .plate{ background:#fff; aspect-ratio:4/3; }
.has-plain-plate .page-body .plate img{ object-fit:contain; padding:5%; filter:none; }
.has-plain-plate .page-body .plate::after{ display:none; }

/* A gallery of two or one should fill the column rather than leaving an empty
   cell in the three-up grid. */
.product-gallery:has(figure:nth-child(2):last-child){ grid-template-columns:repeat(2,1fr); }
.product-gallery:has(figure:only-child){ grid-template-columns:1fr; }

/* Contact map. Sized like the plates so it sits in the same rhythm as the rest
   of the page, and framed rather than floating on the navy. */
.map-embed{
  position:relative; aspect-ratio:16/9; overflow:hidden;
  margin-block:1.6rem; background:var(--ink-2);
  border:1px solid var(--line);
}
.map-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
@media (max-width:640px){ .map-embed{ aspect-ratio:4/3; } }

/* Accreditation marks in 01 — Who we are. The logos are supplied on white, so
   they are knocked out to transparency and sit straight on the paper ground. */
.accreditations{
  margin-top:clamp(2.6rem,6vh,4rem); padding-top:2.4rem;
  border-top:1px solid var(--line-dark);
}
.acc-label{
  font-size:.66rem; font-weight:600; letter-spacing:.2em;
  text-transform:uppercase; color:var(--muted-dark);
}
.acc-marks{
  display:flex; flex-wrap:wrap; align-items:center;
  gap:1.8rem 3rem; margin-top:1.5rem;
}
.acc-marks img{ height:58px; width:auto; max-width:100%; object-fit:contain; }
.acc-note{
  margin-top:1.5rem; font-size:.82rem; line-height:1.6;
  color:var(--muted-dark); max-width:68ch;
}
@media (max-width:640px){
  .acc-marks{ gap:1.4rem 2rem; }
  .acc-marks img{ height:44px; }
}

/* Doors, gangways and other tall subjects photograph portrait; the default 4:3
   cell crops the top and bottom off them. */
.product-gallery.gallery-tall figure{ aspect-ratio:3/4; }

/* A link that has to be found rather than read past — sits on its own line,
   with the rule above it doing the separating. */
.page-body .cta-link{ margin-top:1.6rem; }
.page-body .cta-link .link{
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.95rem; padding:.75rem 1.25rem;
  border:1px solid var(--accent); border-radius:2px;
  transition:background .35s var(--ease), color .35s var(--ease);
}
.page-body .cta-link .link:hover{ background:var(--accent); color:#fff; }

/* =========================================================
   LONG PRODUCT PAGES
   A page that runs to a dozen sub-systems needs a way in at the
   top and a picture under each heading, or it reads as a wall of
   tables. Both patterns live here so any product page can use them.
   ========================================================= */

/* Index of the sections. Each row is a link and is built to look
   like one: raised surface, accent edge, chevron, and it moves
   under the cursor. */
.page-body .jump-index{
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:.55rem; list-style:none; margin:1.4rem 0 2.8rem; padding:0;
}
.page-body .jump-index li{ margin:0; }
.page-body .jump-index a{
  display:flex; align-items:center; gap:1rem; height:100%;
  padding:.8rem 1rem .8rem 1.1rem;
  background:var(--ink-2);
  border:1px solid var(--line);
  border-left:3px solid var(--accent);
  color:var(--text-light);
  font-size:.9rem; line-height:1.35;
  transition:background .35s var(--ease), border-color .35s var(--ease),
             transform .35s var(--ease);
}
.page-body .jump-index a:hover,
.page-body .jump-index a:focus-visible{
  background:var(--ink-3); border-color:var(--accent); transform:translateX(3px);
}
.page-body .jump-index .chev{
  margin-left:auto; color:var(--accent); font-size:1.15em; line-height:1;
}
@media (max-width:760px){ .page-body .jump-index{ grid-template-columns:1fr; } }

/* The fixed header would otherwise cover the heading a jump link
   lands on. */
.page-body h2[id],
.page-body h3[id]{ scroll-margin-top:calc(var(--head-h) + 28px); }

/* One picture under a sub-heading. It keeps its own proportions and
   stops short of the column width, so it breaks the text up without
   taking the page over. */
.page-body .section-figure{ margin:1.5rem 0 2.2rem; max-width:560px; }
.page-body .section-figure img{ width:100%; height:auto; background:#fff; }
.page-body .section-figure figcaption{
  margin-top:.65rem; font-size:.78rem; letter-spacing:.01em;
  color:var(--muted-light);
}

/* A head image that is a shipboard schematic rather than a photograph. It runs
   about three times as wide as it is tall, so the 16:9 frame strands it in a
   band of empty white and grades it like a photo. Show it on the light ground
   it was drawn on, with none of the grade; the drawing carries its own margin,
   so let the plate take the drawing's height rather than impose a ratio. */
.has-wide-plate .page-body .plate{ background:#fff; aspect-ratio:auto; }
.has-wide-plate .page-body .plate img{ filter:none; }
.has-wide-plate .page-body .plate::after{ display:none; }

/* ---- Head image at full size ----
   A schematic carries labels that are unreadable at column width, so the head
   image opens over the page. A second click takes it to actual size, which is
   the only way those labels can be read. */
.page-body .plate.zoomable{ cursor:zoom-in; }

/* The cue sits under the plate rather than on it. A badge in the corner of a
   schematic covers exactly the labels the reader opened it to read. */
.page-body .plate-hint{
  display:inline-flex; align-items:center; gap:.5rem;
  margin:.7rem 0 0; padding:0;
  font-family:var(--font-body); font-size:.78rem; letter-spacing:.02em;
  color:var(--muted-light); background:none; border:0; cursor:zoom-in;
  transition:color .3s var(--ease);
}
.page-body .plate-hint:hover{ color:var(--accent); }
.page-body .plate-hint .pz-icon{
  display:inline-grid; place-items:center;
  width:1.5em; height:1.5em;
  border:1px solid currentColor; font-size:.92em; line-height:1;
}

.plate-zoom{ position:fixed; inset:0; z-index:2000; display:none; background:rgba(6,20,36,.95); }
.plate-zoom.open{ display:block; }
.plate-zoom .pz-scroll{
  position:absolute; inset:0; overflow:auto;
  display:flex; align-items:center; justify-content:center;
  padding:clamp(14px,3vw,52px);
}
.plate-zoom img{
  display:block; background:#fff; max-width:100%; height:auto;
  cursor:zoom-in; margin:auto;
}
/* Actual size: the scroll box takes over and the drawing can be panned. */
.plate-zoom.at-full .pz-scroll{ display:block; }
.plate-zoom.at-full img{ max-width:none; width:var(--pz-w,100%); cursor:zoom-out; margin:0 auto; }
.plate-zoom .pz-close{
  position:absolute; top:14px; right:16px; z-index:2;
  width:46px; height:46px; padding:0;
  font-family:var(--font-body); font-size:1.5rem; line-height:1;
  color:var(--text-light); background:rgba(10,36,64,.8);
  border:1px solid var(--line); cursor:pointer;
  transition:background .3s var(--ease);
}
.plate-zoom .pz-close:hover{ background:var(--accent); border-color:var(--accent); }
.plate-zoom .pz-hint{
  position:absolute; left:0; right:0; bottom:14px; z-index:2;
  text-align:center; font-size:.76rem; color:var(--muted-light);
  pointer-events:none;
}
@media (max-width:640px){
  .page-body .plate-hint{ font-size:.74rem; }
  .plate-zoom .pz-hint{ font-size:.7rem; }
}
