/* Sunship Electronic Services — production stylesheet
   Fonts: system stack by default. To use IBM Plex, drop the woff2 files into
   assets/fonts/ and uncomment the @font-face blocks below (see README.txt). */

/*
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/ibm-plex-sans-condensed-600.woff2") format("woff2"); }
*/

:root {
  --navy-900: #001b33;
  --navy-800: #002d56;
  --navy-700: #003d6b;
  --deep-navy: #001f3f;
  --teal-700: #007f5c;
  --teal-500: #00a878;
  --teal-400: #20c997;
  --teal-200: #a8e6d5;
  --nf-green: #0f9e42;
  --nf-green-light: #44cf61;
  --nf-bg: #f2f7f9;
  --fg-1: #0f2233;
  --fg-2: #4c5f6e;
  --fg-3: #7a8b99;
  --steel-500: #757575;
  --white: #fff;
  --surface: #f4f8fa;
  --border: #e1e8ed;
  --border-strong: #c9d5dd;

  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 32px);
  --sec: clamp(48px, 7vw, 96px);
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--teal-700); }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--sec) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--sunken { background: var(--surface); }
.section--navy { background: var(--deep-navy); color: var(--white); }

.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-700);
  margin: 0 0 16px;
}
.eyebrow--light { color: var(--teal-200); }
.eyebrow--steel { color: var(--steel-500); }

.h1 { font-size: clamp(32px, 5.2vw, 60px); line-height: 1.04; }
.h2 { font-size: clamp(26px, 3.6vw, 42px); }
.h3 { font-size: clamp(19px, 2.1vw, 24px); }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--fg-2); line-height: 1.6; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.muted { color: var(--fg-3); font-size: 14px; }


/* ---------- utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- decorative animations ----------
   All motion here is deliberately slow: nothing in a hero completes a cycle
   in less than ~15s, so decoration never competes with reading. */
@keyframes ss-sweep { to { transform: rotate(360deg); } }
@keyframes ss-ping { 0% { transform: scale(0.2); opacity: 0.5; } 100% { transform: scale(1); opacity: 0; } }
@keyframes ss-drift { from { background-position: 0 0; } to { background-position: 240px 0; } }
@keyframes ss-driftback { from { background-position: 0 0; } to { background-position: -180px 90px; } }
@keyframes ss-kenburns { from { transform: scale(1.04); } to { transform: scale(1.13); } }
@keyframes ss-scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(900%); } }
@keyframes ss-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ss-railflow { from { background-position: 0 0; } to { background-position: 0 100%; } }
@keyframes ss-sweepdown { 0% { transform: translateY(-40%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(300%); opacity: 0; } }

.hero-media img.ken { animation: ss-kenburns 48s ease-in-out infinite alternate; }
.rise { animation: ss-rise 0.9s cubic-bezier(0.22,0.7,0.3,1) both; }
.rise--2 { animation-delay: 0.1s; }
.rise--3 { animation-delay: 0.2s; }
.rise--4 { animation-delay: 0.3s; }

.grid-veil {
  position: absolute; inset: 0; opacity: 0.13; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 120px 120px;
  animation: ss-drift 80s linear infinite;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 60%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0, #000 60%, transparent 100%);
}
/* particle field — the shared texture of every blue banner on the site.
   Two layers at different scales and speeds give the depth without motion noise. */
.dot-veil {
  position: absolute; inset: 0; opacity: 0.15; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 26px 26px; animation: ss-drift 90s linear infinite;
}
.dot-veil--lg {
  opacity: 0.09; background-size: 62px 62px;
  background-image: radial-gradient(circle at 2px 2px, rgba(168,230,213,0.9) 1.6px, transparent 0);
  animation: ss-driftback 150s linear infinite;
}
.beam { position: absolute; inset: 0; opacity: 0.18; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 0%, rgba(60,170,215,0.5) 42%, transparent 78%); }

/* radar */
.radar {
  position: absolute; top: -14%; right: -8%; width: min(600px, 62vw); aspect-ratio: 1;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.14);
  display: grid; place-items: center; pointer-events: none;
}
.radar-ring { border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); display: grid; place-items: center; width: 68%; height: 68%; }
.radar-ring--in { width: 52%; height: 52%; border-color: rgba(255,255,255,0.1); }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(120,205,235,0.26) 0deg, transparent 62deg);
  animation: ss-sweep 22s linear infinite; }
.radar-blip { position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal-400); box-shadow: 0 0 14px var(--teal-400); animation: pulse 7s ease-in-out infinite; }
.radar-blip--a { top: 34%; left: 62%; }
.radar-blip--b { top: 66%; left: 31%; width: 7px; height: 7px; animation-duration: 9s; animation-delay: 2.5s; }
.radar-ping { position: absolute; top: 33%; left: 61%; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--teal-400); animation: ss-ping 11s ease-out infinite; }
.radar--sm { top: -42%; right: -5%; width: min(500px, 56vw); }

/* screenshot scan line */
.shot { position: relative; }
.shot .scanline { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shot .scanline > span { display: block; height: 11%; width: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0,168,120,0.14), transparent);
  animation: ss-scan 18s linear infinite; }

.timeline::before { background-size: 100% 220%; animation: ss-railflow 30s ease-in-out infinite alternate; }
.nf-panel .sweepdown { position: absolute; left: 0; right: 0; top: 0; height: 34%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(68,207,97,0), rgba(68,207,97,0.10), rgba(68,207,97,0));
  animation: ss-sweepdown 20s ease-in-out infinite; }
.nf-panel { position: relative; overflow: hidden; }


/* per-page hero accents (radar stays on the home page only).
   Every cycle is 15s or longer — slow, continuous, never attention-grabbing. */
@keyframes ss-bar { 0%,100% { transform: scaleY(0.32); } 50% { transform: scaleY(1); } }
@keyframes ss-sonar { 0% { transform: scale(0.25); opacity: 0.45; } 100% { transform: scale(1); opacity: 0; } }

.signal { position: absolute; top: 50%; right: clamp(24px, 6vw, 96px); transform: translateY(-50%);
  display: flex; align-items: flex-end; gap: clamp(8px, 1.2vw, 14px); height: min(320px, 34vw); pointer-events: none; opacity: 0.44; }
.signal span { display: block; width: clamp(8px, 1vw, 14px); height: 100%; border-radius: 3px;
  background: linear-gradient(to top, rgba(32,201,151,0.15), rgba(32,201,151,0.85));
  transform-origin: bottom; animation: ss-bar 19s ease-in-out infinite; }
.signal span:nth-child(2) { animation-duration: 23s; animation-delay: 1.6s; }
.signal span:nth-child(3) { animation-duration: 27s; animation-delay: 3.2s; }
.signal span:nth-child(4) { animation-duration: 21s; animation-delay: 4.8s; }
.signal span:nth-child(5) { animation-duration: 31s; animation-delay: 6.4s; }
.signal span:nth-child(6) { animation-duration: 25s; animation-delay: 8s; }
@media (max-width: 900px) { .signal { opacity: 0.3; height: min(220px, 40vw); } }

.sonar { position: absolute; bottom: -18%; right: -6%; width: min(520px, 60vw); aspect-ratio: 1; pointer-events: none; }
.sonar span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(32,201,151,0.45);
  animation: ss-sonar 18s ease-out infinite; }
.sonar span:nth-child(2) { animation-delay: 6s; }
.sonar span:nth-child(3) { animation-delay: 12s; }
.sonar em { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 14px var(--teal-400); }

/* scroll reveal (history timeline, metrics) */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22,0.7,0.3,1); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .tl-item.reveal::before { transition: transform 380ms ease 160ms; transform: scale(0.4); }
html.js .tl-item.reveal.is-in::before { transform: scale(1); }

/* ---------- NAUTiFy landing sections ---------- */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(16px, 2.4vw, 22px); }
.role-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 2.8vw, 30px); text-align: center;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
.role-card:hover { transform: translateY(-3px); border-color: var(--teal-200); box-shadow: 0 14px 30px rgba(0,31,63,0.08); }
.role-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(0,168,120,0.10); color: var(--teal-700); display: grid; place-items: center; }
.role-card h3 { font-size: 19px; color: var(--deep-navy); margin-bottom: 8px; }
.role-card p { color: var(--fg-2); font-size: 15px; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.metric-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 46px); color: var(--white); line-height: 1; }
.metric-label { font-size: 14px; color: rgba(255,255,255,0.66); margin-top: 6px; }

.seller { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 26px); display: flex; flex-direction: column; gap: 18px; }
.seller-head { display: flex; align-items: center; gap: 16px; }
.seller-head img { width: 64px; height: 64px; border-radius: 50%; background: var(--nf-bg); flex: none; }
.seller-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--deep-navy); }
.seller-role { font-size: 13px; color: var(--fg-3); }
.seller dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 15px; margin: 0; }
.seller dt { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); align-self: center; }
.seller dd { margin: 0; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-800); color: var(--white);
  padding: 12px 18px; border-radius: 0 0 6px 6px; font-weight: 600;
  transition: top 120ms ease;
}
.skip:focus { top: 0; color: var(--white); }

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--deep-navy); color: var(--white);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity 200ms ease;
}
html.loading-visible:not(.page-ready) #loader { opacity: 1; visibility: visible; }
html.page-ready #loader { display: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader-inner span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); }
.loader-ship { animation: ship-bob 1.6s ease-in-out infinite; }
.loader-wave { animation: wave-shift 2.2s linear infinite; }
@keyframes ship-bob { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-4px) rotate(1.2deg); } }
@keyframes wave-shift { to { transform: translateX(-24px); } }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
}
.header-bar { display: flex; align-items: center; gap: 20px; height: 84px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 60px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(4px, 1.2vw, 18px); }
.nav-list { display: flex; align-items: center; gap: clamp(2px, 1vw, 14px); list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--fg-2); padding: 10px 8px; border: 0; background: transparent;
  cursor: pointer; white-space: nowrap; border-radius: 4px;
}
.nav-link:hover { color: var(--navy-800); }
body[data-page="home"] .nav-link[data-nav="home"],
body[data-page="navcom"] .nav-link[data-nav="navcom"],
body[data-page="it"] .nav-link[data-nav="it"],
body[data-page="nautify"] .nav-link[data-nav="it"],
body[data-page="seslink"] .nav-link[data-nav="it"],
body[data-page="partners"] .nav-link[data-nav="partners"],
body[data-page="about"] .nav-link[data-nav="about"],
body[data-page="approvals"] .nav-link[data-nav="about"] { color: var(--navy-800); box-shadow: inset 0 -2px 0 var(--teal-500); }
.nav-caret { font-size: 9px; color: var(--teal-500); }

.has-drop { position: relative; }
.drop {
  position: absolute; top: 100%; left: -6px; min-width: 240px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,31,63,0.16);
  padding: 8px; display: none; flex-direction: column; gap: 2px;
}
.has-drop:hover .drop,
.has-drop:focus-within .drop,
.drop[data-open="true"] { display: flex; }
.drop a {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--navy-800); padding: 11px 12px; border-radius: 6px;
}
.drop a:hover { background: var(--surface); }
.drop a.drop-overview { font-weight: 600; color: var(--navy-800); }

.lang { display: flex; align-items: center; gap: 2px; border: 1px solid var(--border-strong); border-radius: 4px; padding: 2px; }
.lang button {
  border: 0; background: transparent; cursor: pointer; padding: 6px 9px; border-radius: 3px;
  font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; color: var(--fg-3);
}
.lang button[aria-pressed="true"] { background: var(--navy-800); color: var(--white); }

.nav-toggle {
  display: none; width: 46px; height: 46px; flex: none;
  border: 1px solid var(--border-strong); background: var(--white);
  border-radius: 6px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy-800); }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--white); padding: 8px var(--pad) 20px; }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav a {
  display: block; padding: 15px 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--fg-1);
  min-height: 48px;
}
.mobile-nav .sub a { padding-left: 18px; font-size: 15px; color: var(--fg-2); font-weight: 400; }
.mobile-nav .cta a { color: var(--teal-700); }

@media (max-width: 1179px) {
  .nav-list, .nav > .btn { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 24px; border-radius: 6px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  cursor: pointer; text-align: center;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--teal-500); color: var(--white); }
.btn--accent:hover { background: var(--teal-700); color: var(--white); }
.btn--primary { background: var(--navy-800); color: var(--white); }
.btn--primary:hover { background: var(--navy-900); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: var(--white); color: var(--deep-navy); border-color: var(--white); }
.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--teal-500); color: var(--teal-700); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--navy-700); }

/* ---------- hero / blue banner system ----------
   One gradient, one particle field, one veil — shared by every hero and every
   full-bleed blue band (.band-navy) so the pages read as one design. */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(150deg, #001f3f 0%, #00305c 58%, #003d6b 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(115% 85% at 76% 8%, rgba(60,170,215,0.20), transparent 60%);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(150deg, rgba(0,31,63,0.84) 0%, rgba(0,45,86,0.68) 52%, rgba(0,61,107,0.5) 100%); }
.hero-body { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 116px); }
.hero--tall .hero-body { padding-block: clamp(72px, 12vw, 150px) clamp(56px, 9vw, 96px); }
.hero h1 { color: var(--white); max-width: 20ch; }
.hero .lead { color: rgba(255,255,255,0.82); max-width: 58ch; margin-top: 22px; }
.hero .btn-row { margin-top: 34px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); display: inline-block; animation: pulse 5.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---------- stats ---------- */
.stats { background: var(--navy-800); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: clamp(20px, 3vw, 32px); padding-block: clamp(28px, 4vw, 40px); }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 38px); color: var(--white); line-height: 1; }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.64); margin-top: 6px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 22px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--top { align-items: start; }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 2.8vw, 30px); display: flex; flex-direction: column; gap: 12px;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--teal-200); box-shadow: 0 14px 30px rgba(0,31,63,0.08); }
.card h3 { color: var(--fg-1); }
.card p { color: var(--fg-2); font-size: 15px; }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--border); }
.card--row { flex-direction: row; gap: 18px; align-items: flex-start; }
.card-photo { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card-photo img { width: 100%; height: auto; }

.icon-box {
  width: 46px; height: 46px; flex: none; border-radius: 9px;
  background: rgba(0,168,120,0.10); color: var(--teal-700);
  display: grid; place-items: center;
}
.icon-box--navy { background: var(--deep-navy); color: var(--teal-400); }
.card-index { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em; }
/* form status message (web3forms response) */
.form-status { margin-top: 14px; font-size: 15px; display: none; }
.form-status[data-state="ok"] { display: block; color: var(--teal-700); font-weight: 600; }
.form-status[data-state="error"] { display: block; color: #a3271c; font-weight: 600; }
.form-status[data-state="sending"] { display: block; color: var(--fg-2); }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tile { background: var(--white); padding: clamp(20px, 2.6vw, 28px); }
.tile h3 { font-size: 17px; margin-bottom: 8px; }
.tile p { color: var(--fg-2); font-size: 14px; }
.tile-list { font-size: 15px; color: var(--fg-1); line-height: 1.9; list-style: none; }
.tile-maker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--teal-700); margin-bottom: 10px; }

.ticks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ticks li { font-size: 15px; color: var(--fg-2); display: flex; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--teal-500); flex: none; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--navy-800); border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 18px; white-space: nowrap; }
.pill--teal { color: var(--teal-700); border-color: var(--teal-500); font-family: var(--font-mono); font-weight: 400; font-size: 13px; }

.callout {
  border: 1px solid var(--teal-200); background: rgba(0,168,120,0.05);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 30px);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.callout--navy { background: var(--navy-800); border-color: var(--navy-800); }
.callout--navy p { color: rgba(255,255,255,0.82); }

/* ---------- statement callout (single prominent supporting sentence) ---------- */
.statement {
  display: flex; gap: clamp(16px, 2vw, 22px); align-items: center;
  border: 1px solid var(--teal-200); background: rgba(0,168,120,0.06);
  border-radius: var(--radius); padding: clamp(20px, 2.8vw, 30px);
}
.statement .icon-box { width: 52px; height: 52px; background: var(--white); border: 1px solid var(--teal-200); }
.statement p {
  font-family: var(--font-display); font-weight: 600; line-height: 1.28;
  font-size: clamp(17px, 1.9vw, 23px); color: var(--deep-navy); letter-spacing: -0.01em;
}

/* ---------- feature photo cards (About) ---------- */
.photo-card { position: relative; border-radius: 12px; overflow: hidden; min-height: clamp(260px, 32vw, 340px); display: flex; align-items: flex-end; isolation: isolate; }
.photo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,31,63,0.92) 8%, rgba(0,31,63,0.35) 58%, rgba(0,31,63,0.06) 100%); z-index: -1; }
.photo-card-body { padding: clamp(20px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 8px; }
.photo-card-body h3 { color: var(--white); font-size: clamp(18px, 2vw, 22px); }
.photo-card-body p { color: rgba(255,255,255,0.82); font-size: 14px; }
.photo-card img.focus-bridge { object-position: center 58%; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(24px, 3vw, 36px); }
.step { display: flex; flex-direction: column; gap: 10px; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-num { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--teal-500); color: var(--teal-700); display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; }
.step h3 { font-size: 18px; }
.step p { color: var(--fg-2); font-size: 15px; }

/* ---------- partner marquee ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { flex: none; width: clamp(190px, 20vw, 250px); height: 80px; display: grid; place-items: center; padding: 0 clamp(24px, 3vw, 40px); }
.marquee-item img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.62; }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.logo-cell { background: var(--white); min-height: clamp(120px, 14vw, 150px); display: grid; place-items: center; padding: 24px 28px; }
.logo-cell:hover { background: var(--surface); }
.logo-cell img { max-height: 62px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- comparison matrix ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.legend span { font-size: 14px; color: var(--fg-2); display: inline-flex; align-items: center; gap: 8px; }
.mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; line-height: 1; flex: none; }
.mark--yes { background: var(--teal-500); color: var(--white); }
.mark--opt { border: 1px solid var(--navy-700); color: var(--navy-700); }
.mark--no { background: var(--surface); border: 1px solid var(--border-strong); color: var(--fg-3); }

.matrix-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { padding: 14px 16px; text-align: left; vertical-align: top; }
.matrix thead th { background: var(--deep-navy); color: var(--white); font-family: var(--font-display); font-weight: 600; position: sticky; top: 0; }
.matrix thead th.is-top { color: var(--teal-400); }
.matrix thead th.tier-head { text-align: center; width: 96px; }
.matrix tbody tr { border-top: 1px solid var(--border); }
.matrix tbody tr:nth-child(even) { background: var(--surface); }
.matrix th[scope="row"] { font-family: var(--font-display); font-weight: 600; color: var(--fg-1); width: 22%; position: sticky; left: 0; background: var(--white); z-index: 1; }
.matrix tbody tr:nth-child(even) th[scope="row"] { background: var(--surface); }
/* state cells: the mark is a block box centred by auto margins — no text-align,
   no inline-box rounding, so every engine puts it in the same place. */
.matrix td.tier { width: 96px; padding: 12px 10px; }
.matrix td.tier .mark { margin-inline: auto; }
.matrix td.desc { color: var(--fg-2); }
.scroll-hint { font-size: 13px; color: var(--fg-3); margin-bottom: 10px; }
@media (min-width: 761px) { .scroll-hint { display: none; } }

/* mobile: one card per feature — the three service levels stay side by side as
   labelled rows, so the comparison survives without a horizontal scroll. */
@media (max-width: 760px) {
  .matrix-wrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .matrix { display: block; min-width: 0; width: 100%; font-size: 15px; }
  .matrix thead { display: none; }
  .matrix tbody { display: grid; gap: 12px; }
  .matrix tbody tr, .matrix tbody tr:nth-child(even) {
    display: flex; flex-direction: column; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(16px, 4vw, 20px);
  }
  .matrix th[scope="row"], .matrix tbody tr:nth-child(even) th[scope="row"] {
    order: 0; position: static; width: auto; padding: 0; font-size: 17px; background: transparent;
  }
  .matrix td.desc { order: 1; padding: 8px 0 14px; font-size: 14px; }
  .matrix td.tier {
    order: 2; width: auto; padding: 10px 0; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; border-top: 1px solid var(--border);
  }
  .matrix td.tier::before {
    content: attr(data-tier); font-family: var(--font-display); font-weight: 600;
    font-size: 14px; color: var(--fg-2);
  }
  .matrix td.tier .mark { margin-inline: 0; }
}

/* ---------- lightbox ---------- */
.zoom-btn { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 10px; cursor: zoom-in; position: relative; width: 100%; }
.zoom-btn:hover { border-color: var(--teal-500); }
.zoom-btn img { width: 100%; height: clamp(150px, 18vw, 200px); object-fit: contain; }
.zoom-tag { position: absolute; right: 14px; bottom: 14px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,31,63,0.75); display: none; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px); }
.lightbox[data-open="true"] { display: flex; }
.lightbox-panel { background: var(--white); border-radius: 12px; padding: clamp(16px, 2.4vw, 26px); max-width: 1000px; width: 100%; box-shadow: 0 30px 80px rgba(0,20,40,0.5); }
.lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.lightbox-head h2 { font-size: 18px; }
.lightbox-close { border: 1px solid var(--border-strong); background: var(--white); border-radius: 6px; min-width: 44px; min-height: 44px; cursor: pointer; font-size: 16px; color: var(--fg-2); }
.lightbox-close:hover { border-color: var(--teal-500); color: var(--teal-700); }
body.no-scroll { overflow: hidden; }

/* ---------- NAUTiFy accents ---------- */
.nf-page { background: var(--nf-bg); }
/* NAUTiFy set as a wordmark rather than plain heading text */
.nf-word { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; text-transform: none; }
.nf-word i { font-style: normal; font-weight: 400; color: var(--nf-green); }
.nf-word--lg { font-size: 1.06em; letter-spacing: 0.005em; color: var(--deep-navy); }
.nf-word--light { color: var(--white); }
.nf-word--light i { color: var(--nf-green-light); }
/* feature cards — same geometry, border, shadow and hover as .card on the home page */
.nf-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 2.8vw, 30px); display: flex; flex-direction: column; gap: 12px;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.nf-card:hover { transform: translateY(-3px); border-color: var(--teal-200); box-shadow: 0 14px 30px rgba(0,31,63,0.08); }
.nf-card .tile-maker { color: var(--nf-green); }
.nf-card h3 { color: var(--deep-navy); }
.nf-card p { font-size: 15px; color: var(--fg-2); }
.nf-panel { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: clamp(20px, 2.6vw, 28px); box-shadow: 0 18px 44px rgba(0,31,63,0.08); display: flex; flex-direction: column; gap: 12px; }
.nf-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; }
.nf-row .name { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--deep-navy); }
.nf-row .item { font-size: 13px; color: var(--fg-3); }
.nf-row .date { font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); text-align: right; }
.badge { display: inline-block; margin-top: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; border-radius: 999px; padding: 3px 9px; }
.badge--ok { color: #0f7a3d; background: rgba(68,207,97,0.14); }
.badge--due { color: #8a6100; background: rgba(240,180,41,0.18); }
.badge--over { color: #a3271c; background: rgba(226,87,76,0.14); }
.shot { border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 18px 44px rgba(0,31,63,0.10); }
.shot img { width: 100%; height: auto; }

.band-navy { position: relative; overflow: hidden; background: linear-gradient(150deg, #001f3f 0%, #00305c 58%, #003d6b 100%); color: var(--white); }
.band-navy::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(115% 85% at 76% 8%, rgba(60,170,215,0.18), transparent 60%); }
.band-navy > .wrap { position: relative; z-index: 1; }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy p { color: rgba(255,255,255,0.8); }
.logo-plate { background: var(--white); border-radius: var(--radius); padding: 12px 18px; display: inline-flex; margin-bottom: 20px; }
.logo-plate img { height: clamp(32px, 4vw, 42px); width: auto; }

/* ---------- forms ---------- */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--fg-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px; min-height: 46px; border-radius: 4px;
  border: 1px solid var(--border-strong); font: inherit; font-size: 15px;
  color: var(--fg-1); background: var(--white); resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--teal-500); }

/* ---------- timeline ---------- */
/* Desktop: a 2px rail at x=6..8 and 14px markers at x=0..14 — both centred on 7px. */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(to bottom, var(--teal-500), var(--teal-200), var(--teal-500)); }
.tl-item { position: relative; padding: 0 0 clamp(24px, 3.4vw, 36px) clamp(30px, 3vw, 44px); }
.tl-item::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; background: var(--white); border: 3px solid var(--teal-500); }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.6vw, 27px); color: var(--deep-navy); line-height: 1; margin-bottom: 8px; }
.tl-item p { color: var(--fg-2); max-width: 68ch; }
.swipe-hint { display: none; font-size: 13px; color: var(--fg-3); margin-bottom: 8px; }

/* Mobile: the same rail turned horizontal, one snap point per year. Each item
   carries its own rail segment, so markers and content can never drift apart. */
@media (max-width: 700px) {
  .swipe-hint { display: block; }
  .timeline {
    display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 6px 0 14px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
    scrollbar-width: thin;
  }
  .timeline::before { display: none; }
  .tl-item {
    flex: 0 0 min(76%, 290px); scroll-snap-align: start;
    padding: 34px 0 0; border: 0;
  }
  .tl-item::before { top: 6px; left: 0; }
  .tl-item::after {
    content: ""; position: absolute; left: 0; right: -16px; top: 12px; height: 2px;
    background: linear-gradient(to right, var(--teal-500), var(--teal-200));
  }
  .tl-item:last-child::after { right: 0; background: linear-gradient(to right, var(--teal-500), rgba(168,230,213,0)); }
  .tl-item p { font-size: 15px; }
}

/* ---------- management ---------- */
.person { display: flex; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 24px); }
.person img { width: 96px; height: 96px; flex: none; border-radius: 50%; object-fit: cover; object-position: center top; }
.person .role { font-family: var(--font-mono); font-size: 12px; color: var(--teal-700); }
.person p { font-size: 14px; color: var(--fg-2); margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: clamp(44px, 7vw, 76px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(26px, 4vw, 44px); padding-bottom: clamp(30px, 4vw, 44px); border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-grid img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-head { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-400); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a, .footer-grid li { font-size: 14px; color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: var(--teal-400); }
.footer-grid p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 16px; max-width: 32ch; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.22); display: grid; place-items: center; color: rgba(255,255,255,0.8); }
.socials a:hover { border-color: var(--teal-400); color: var(--teal-400); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-legal a { color: rgba(255,255,255,0.72); font-weight: 600; }
.footer-legal a:hover { color: var(--teal-400); }
.footer-legal .spacer { margin-left: auto; }

/* ---------- legal pages ---------- */
.doc { max-width: 820px; }
.doc h2 { font-size: clamp(20px, 2.2vw, 25px); margin: 34px 0 12px; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--fg-2); font-size: 15px; margin-bottom: 10px; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; font-size: 15px; }
.doc dt { color: var(--fg-3); }
.doc dd { margin: 0; color: var(--fg-1); }
.notice { border: 1px solid #f0c05a; background: #fff9e9; border-radius: var(--radius); padding: 18px 20px; font-size: 14px; color: #6b4f00; margin-bottom: 28px; }

@media (max-width: 700px) {
  .header-bar { height: 72px; gap: 12px; }
  .logo img { height: 46px; }
  .footer-grid img { height: 48px; }
  .statement { flex-direction: column; align-items: flex-start; gap: 14px; }
  .legend { gap: 12px 20px; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

@media (max-width: 560px) {
  .card--row { flex-direction: column; }
  .person { flex-direction: column; align-items: flex-start; text-align: left; }
  .doc dl { grid-template-columns: 1fr; gap: 2px 0; }
  .doc dd { margin-bottom: 10px; }
  .footer-legal .spacer { margin-left: 0; }
  .marquee-item { width: 170px; height: 68px; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; }
  .radar-sweep, .radar-blip, .radar-ping, .grid-veil, .dot-veil, .hero-media img.ken, .shot .scanline > span, .nf-panel .sweepdown { animation: none !important; }
  .rise { animation: none !important; opacity: 1 !important; transform: none !important; }
  .signal span, .sonar span { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tl-item.reveal::before { transform: none !important; }
  .timeline { scroll-behavior: auto; }
  .timeline::before { animation: none !important; }
  .loader-ship, .loader-wave { animation: none; }
  .pulse-dot { animation: none !important; opacity: 1 !important; }
}
