/* ==========================================================================
   Sea Heights Maritime — design system
   Chart-room palette: night water, hull navy, signal blue, beacon amber, port red.
   Type: Archivo (variable width + weight). Expanded widths for display, normal for text.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --abyss: #050f1f;
  --night: #071629;
  --deep: #0b2140;
  --deep-2: #10294d;
  --hull: #16297a;
  --signal: #2f6bff;
  --signal-2: #6f9bff;
  --beacon: #ffc13b;
  --beacon-2: #ffd36e;
  --port: #e8412f;
  --stbd: #23c26b;
  --wa: #25d366;
  --foam: #f5f8fc;
  --shoal: #e9f0f8;
  --ink: #0c1830;
  --ink-2: #3b4b67;
  --ink-3: #66779a;
  --mist: #9aafcf;
  --mist-2: #c5d3ea;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --status-h: 34px;
  --chrome-h: calc(var(--header-h) + var(--status-h));
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* theme slots (dark by default) */
  --bg: var(--night);
  --fg: #eaf1fb;
  --fg-2: var(--mist);
  --fg-3: #7088ad;
  --line: rgba(154, 175, 207, .16);
  --line-2: rgba(154, 175, 207, .28);
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --field: rgba(255, 255, 255, .04);
  --focus: var(--signal-2);
  color-scheme: dark;
}

.light {
  --bg: #ffffff;
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --line: #dde6f1;
  --line-2: #c7d5e6;
  --panel: var(--foam);
  --panel-2: #eef3fa;
  --field: #ffffff;
  --focus: var(--signal);
  color-scheme: light;
}
.shoal { --bg: var(--shoal); }
.dark { color-scheme: dark; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--chrome-h) + 16px); }
.chrome { position: sticky; top: 0; z-index: 55; }
@media (max-width: 640px) { :root { --header-h: 64px; --chrome-h: var(--header-h); } .statusbar { display: none; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-weight: 400;
  color: var(--fg);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
::selection { background: var(--beacon); color: #1b1300; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--beacon); color: #1b1300; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 650; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
.display, h1, .h1 {
  font-stretch: 118%;
  font-weight: 790;
  letter-spacing: -0.028em;
  line-height: .98;
  font-size: clamp(2.6rem, 5.4vw, 5.1rem);
  text-wrap: balance;
}
h2, .h2 {
  font-stretch: 114%;
  font-weight: 750;
  letter-spacing: -0.022em;
  line-height: 1.03;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  text-wrap: balance;
}
h3, .h3 { font-stretch: 106%; font-weight: 680; font-size: 1.3125rem; line-height: 1.22; letter-spacing: -0.008em; }
h4, .h4 { font-stretch: 104%; font-weight: 660; font-size: 1.0625rem; line-height: 1.3; }
.lead { font-size: clamp(1.125rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--fg-2); max-width: 58ch; }
.muted { color: var(--fg-2); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.narrow { font-stretch: 88%; }
.wide { font-stretch: 116%; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 66ch; }
.label {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .875rem; font-weight: 600; font-stretch: 104%;
  color: var(--signal-2);
}
.light .label { color: var(--signal); }
.label .light-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { background: var(--bg); color: var(--fg); padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section.tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 32px 64px; }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack-s > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 18px; }
.stack-l > * + * { margin-top: 32px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
@media (max-width: 980px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head.split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* ---------- icons ---------- */
.i { width: 1.25em; height: 1.25em; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i.fill { fill: currentColor; stroke: none; }
.i-lg { width: 28px; height: 28px; }

/* ---------- buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: var(--h); padding: 0 22px; border-radius: 12px;
  font-weight: 650; font-stretch: 106%; font-size: 1rem; letter-spacing: -.005em; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .25s var(--ease);
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .i { width: 1.15em; height: 1.15em; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .9375rem; border-radius: 10px; }
.btn-lg { --h: 58px; padding: 0 28px; font-size: 1.0625rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--beacon); color: #1b1300; box-shadow: 0 12px 32px -14px rgba(255, 193, 59, .7); }
.btn-primary:hover { background: var(--beacon-2); box-shadow: 0 16px 40px -14px rgba(255, 193, 59, .85); }
.btn-signal { background: var(--signal); color: #fff; box-shadow: 0 12px 30px -14px rgba(47, 107, 255, .8); }
.btn-signal:hover { background: #4579ff; }
.btn-ghost { background: rgba(255, 255, 255, .05); color: var(--fg); border-color: rgba(255, 255, 255, .16); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.light .btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.light .btn-ghost:hover { border-color: var(--hull); }
.btn-navy { background: var(--hull); color: #fff; }
.btn-navy:hover { background: #1d3497; }
.btn-wa { background: var(--wa); color: #05301a; }
.btn-wa:hover { background: #3fe07b; }
.btn-text { height: auto; padding: 0; border: 0; color: var(--signal-2); font-weight: 650; }
.light .btn-text { color: var(--signal); }
.btn-text:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
  font-size: .9rem; font-weight: 560; color: var(--fg-2); transition: .2s var(--ease);
}
.chip:hover { color: var(--fg); border-color: var(--fg-3); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .count { font-variant-numeric: tabular-nums; opacity: .7; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot.hub { background: var(--port); box-shadow: 0 0 10px var(--port); }
.dot.major { background: var(--beacon); box-shadow: 0 0 10px rgba(255, 193, 59, .8); }
.dot.minor { background: #e9f2ff; box-shadow: 0 0 8px rgba(233, 242, 255, .8); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 620; line-height: 1.5; white-space: nowrap; background: var(--panel-2); color: var(--fg-2); }
.status { --c: var(--signal); display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .8rem; font-weight: 620; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.status[data-s="new"] { --c: #3b82f6; }
.status[data-s="in_review"] { --c: #d99a06; }
.status[data-s="quoted"] { --c: #0ea5a4; }
.status[data-s="confirmed"] { --c: #7c5cff; }
.status[data-s="completed"] { --c: #16a34a; }
.status[data-s="closed"] { --c: #64748b; }
.status[data-s="cancelled"] { --c: #dc2626; }

/* ---------- status bar + header ---------- */
.statusbar {
  position: relative; z-index: 60; height: var(--status-h);
  background: var(--abyss); color: var(--mist); font-size: .8125rem;
  border-bottom: 1px solid rgba(154, 175, 207, .1);
}
.statusbar .container { height: 100%; display: flex; align-items: center; gap: 22px; }
.statusbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.statusbar a:hover { color: #fff; }
.statusbar .i { width: 14px; height: 14px; }
.ops-live { display: inline-flex; align-items: center; gap: 8px; color: #d8e4f7; font-weight: 560; }
.ops-live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--stbd); box-shadow: 0 0 0 0 rgba(35, 194, 107, .6); animation: livepulse 2.4s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(35, 194, 107, .55); } 70% { box-shadow: 0 0 0 7px rgba(35, 194, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(35, 194, 107, 0); } }
.statusbar .clock { font-variant-numeric: tabular-nums; }
.statusbar .clock-wrap { display: inline-flex; align-items: center; gap: 7px; }
.statusbar .sb-right { margin-left: auto; display: flex; gap: 20px; }
@media (max-width: 860px) { .statusbar .sb-hide { display: none; } .statusbar .sb-right { gap: 14px; } }
@media (max-width: 520px) { .statusbar .clock-wrap { display: none; } }

.site-header {
  position: relative; z-index: 55; height: var(--header-h);
  background: rgba(7, 22, 41, .9);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(154, 175, 207, .08);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
  color: #eaf1fb;
}
.site-header.is-scrolled { background: rgba(5, 15, 31, .97); border-color: rgba(154, 175, 207, .16); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand svg { width: 42px; height: 42px; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font-stretch: 118%; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-word span { font-size: .76rem; font-weight: 560; color: var(--signal-2); letter-spacing: .14em; margin-top: 4px; font-stretch: 106%; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav a { position: relative; padding: 10px 12px; border-radius: 10px; font-size: .95rem; font-weight: 560; color: #c9d6ea; transition: color .2s, background-color .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--beacon); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kbd-search {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 12px;
  border-radius: 10px; border: 1px solid rgba(154, 175, 207, .22); background: rgba(255, 255, 255, .04);
  color: #b8c8e2; font-size: .9rem; transition: .2s;
}
.kbd-search:hover { border-color: rgba(154, 175, 207, .45); color: #fff; }
kbd, .kbd { font-family: var(--font); font-size: .72rem; font-weight: 650; padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(154, 175, 207, .3); color: #9fb2d2; background: rgba(255, 255, 255, .04); }
.header-login { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; color: #dbe6f6; }
.header-login:hover { background: rgba(255, 255, 255, .06); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; color: #fff; border: 1px solid rgba(154, 175, 207, .22); }
@media (max-width: 1180px) { .nav a.nav-x { display: none; } }
@media (max-width: 1060px) {
  .nav, .kbd-search .kbd-label, .header-login span { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions .btn-quote { display: none; }
}
@media (max-width: 520px) { .kbd-search { display: none; } .brand-word b { font-size: 1.05rem; } }

/* mobile nav sheet */
.mnav { position: fixed; inset: 0; z-index: 90; background: rgba(3, 9, 20, .6); opacity: 0; pointer-events: none; transition: opacity .3s; }
.mnav.is-open { opacity: 1; pointer-events: auto; }
.mnav-panel {
  position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--night);
  border-left: 1px solid var(--line); padding: 20px var(--gutter) 32px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .45s var(--ease-out); overflow-y: auto;
}
.mnav.is-open .mnav-panel { transform: none; }
.mnav-panel .mnav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mnav-panel nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.25rem; font-weight: 640; font-stretch: 110%; }
.mnav-panel .btn { margin-top: 12px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--night); color: var(--fg);
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(111, 155, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 155, 255, .07) 1px, transparent 1px);
  background-size: 96px 96px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, #000 30%, transparent 75%);
}
.page-hero .contours { position: absolute; right: -6%; top: -10%; width: 62%; height: 130%; opacity: .5; pointer-events: none; }
.page-hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: end; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.page-hero .lead { margin-top: 20px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--fg-3); margin-bottom: 22px; }
.crumbs a:hover { color: var(--fg); }
.page-hero .hero-aside { justify-self: end; width: min(460px, 100%); }
.page-hero .hero-aside .row { justify-content: flex-end; }
.page-hero.has-photo .hero-photo { position: relative; width: 100%; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5/4; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.page-hero .hero-photo .photo { position: absolute; inset: 0; aspect-ratio: auto; border-radius: inherit; }
.page-hero.compact { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.page-hero.compact h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
@media (max-width: 900px) { .page-hero .container { grid-template-columns: 1fr; } .page-hero .hero-aside { justify-self: start; } .page-hero .hero-aside .row { justify-content: flex-start; } }

/* ---------- photos ---------- */
.photo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #12305e, #0a1b36); border-radius: var(--r-lg); isolation: isolate; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .6s; }
.photo img.is-broken { opacity: 0 !important; }
.photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 22, 41, 0) 45%, rgba(7, 22, 41, .55)); }
.photo.graded img { filter: saturate(.86) contrast(1.04); }
.photo .ph-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .18); z-index: 0; }
.photo .ph-fallback svg { width: 38%; height: 38%; }
.photo figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; font-size: .82rem; font-weight: 560; opacity: .9; }

/* ---------- panels/cards ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 32px); }
.panel.raised { background: var(--bg); box-shadow: 0 30px 70px -40px rgba(6, 20, 45, .45); }
.light .panel.raised { border-color: var(--line); }
.tile { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); transition: border-color .25s, transform .25s var(--ease); }
.tile:hover { border-color: var(--line-2); }
.tile .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--signal) 12%, transparent); color: var(--signal-2); }
.light .tile .ico { color: var(--signal); }
.tile p { color: var(--fg-2); font-size: .96rem; }
a.tile:hover { transform: translateY(-2px); }

/* ---------- HOME: chart hero ---------- */
.hero { position: relative; background: var(--abyss); color: #eaf1fb; }
.hero-stage { position: relative; height: calc(100vh - var(--chrome-h)); height: calc(100svh - var(--chrome-h)); min-height: 600px; overflow: hidden; }
.hero-stage canvas.chart-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 15, 31, .92) 0%, rgba(5, 15, 31, .72) 30%, rgba(5, 15, 31, .0) 62%),
    linear-gradient(0deg, rgba(5, 15, 31, .9) 0%, rgba(5, 15, 31, 0) 26%);
}
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.hero-content .container { position: relative; }
.hero-steps { position: relative; max-width: 780px; min-height: 420px; }
.hero-step { position: absolute; inset: 0 auto auto 0; width: 100%; pointer-events: none; }
.hero-step.is-active { pointer-events: auto; }
.hero-step .label { margin-bottom: 22px; color: #9fbcff; }
.hero-step h1, .hero-step h2 { font-size: clamp(2.5rem, 4.8vw, 4.6rem); font-stretch: 118%; font-weight: 790; letter-spacing: -.03em; line-height: .98; }
.hero-step p { margin-top: 22px; font-size: clamp(1.05rem, 1.3vw, 1.22rem); color: #b9c9e3; max-width: 36em; }
.hero-step .row { margin-top: 32px; }
.hero-step .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-step .line > span { display: block; }
.readout {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 28px;
  display: grid; grid-template-columns: repeat(4, auto);
  border: 1px solid rgba(154, 175, 207, .2); border-radius: 16px; overflow: hidden;
  background: rgba(5, 15, 31, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.readout > div { padding: 14px 20px 13px; border-left: 1px solid rgba(154, 175, 207, .16); }
.readout > div:first-child { border-left: 0; }
.readout b { display: block; font-size: 1.55rem; font-stretch: 112%; font-weight: 760; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
.readout span { font-size: .8rem; color: var(--mist); }
.hero-legend { position: absolute; z-index: 3; right: var(--gutter); bottom: 118px; display: flex; gap: 18px; font-size: .82rem; color: #a9bbd8; }
.hero-legend span { display: inline-flex; align-items: center; gap: 8px; }
.hero-coords { position: absolute; z-index: 3; top: 18px; right: var(--gutter); font-size: .78rem; color: #7f96bb; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.5; }
.hero-coords b { color: #c9d7ee; font-weight: 600; }
.ticks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ticks .tk { position: absolute; font-size: .7rem; color: rgba(159, 188, 255, .55); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticks .tk.x { top: 6px; transform: translateX(-50%); }
.ticks .tk.y { right: 8px; transform: translateY(-50%); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: none; }
.hero-progress { position: absolute; z-index: 3; left: var(--gutter); top: 50%; transform: translateY(-50%); display: none; }
@media (max-width: 1100px) {
  .readout { grid-template-columns: repeat(2, auto); }
  .readout > div:nth-child(3) { border-left: 0; }
  .readout > div:nth-child(n+3) { border-top: 1px solid rgba(154, 175, 207, .16); }
}
@media (max-width: 760px) {
  .hero-stage { min-height: 620px; }
  .hero-vignette { background: linear-gradient(0deg, rgba(5, 15, 31, .96) 0%, rgba(5, 15, 31, .82) 48%, rgba(5, 15, 31, .25) 100%); }
  .hero-content { justify-content: flex-end; padding-bottom: 100px; }
  .d-only { display: none; }
  .hero-steps { min-height: 300px; }
  .hero-step .label { margin-bottom: 12px; font-size: .82rem; }
  .hero-step h1, .hero-step h2 { font-size: clamp(2rem, 9.4vw, 2.6rem); }
  .hero-step p { margin-top: 12px; font-size: .98rem; line-height: 1.5; }
  .hero-step .row { margin-top: 18px; flex-wrap: nowrap; }
  .hero-step .btn-lg { --h: 50px; padding: 0 18px; font-size: 1rem; }
  .hero-step .btn-wa-icon span.t { display: none; }
  .readout { left: var(--gutter); right: var(--gutter); bottom: 14px; grid-template-columns: repeat(4, 1fr); }
  .readout > div { padding: 9px 8px 8px; border-top: 0 !important; border-left: 1px solid rgba(154, 175, 207, .16) !important; }
  .readout > div:first-child { border-left: 0 !important; }
  .readout b { font-size: 1.05rem; }
  .readout span { font-size: .64rem; white-space: nowrap; }
  .hero-legend, .hero-coords, .ticks { display: none; }
}

/* trust strip */
.values { background: var(--night); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.values .v { display: flex; align-items: center; gap: 14px; padding: 22px 20px; border-left: 1px solid var(--line); font-weight: 600; font-stretch: 106%; color: #dbe6f6; }
.values .v:first-child { border-left: 0; padding-left: 0; }
.values .v .i { width: 22px; height: 22px; color: var(--beacon); }
@media (max-width: 860px) { .values .container { grid-template-columns: repeat(2, 1fr); } .values .v { border-left: 0; padding-left: 0; } }

/* ---------- services master/detail ---------- */
.svc { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.svc-list { border-top: 1px solid var(--line); }
.svc-tab {
  width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 14px; text-align: left;
  padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--fg-3);
  font-size: 1.2rem; font-weight: 640; font-stretch: 108%; letter-spacing: -.01em; transition: color .25s;
}
.svc-tab .i { width: 22px; height: 22px; transition: color .25s; }
.svc-tab .lamp { width: 9px; height: 9px; border-radius: 50%; background: transparent; border: 1.5px solid var(--line-2); transition: .3s; }
.svc-tab:hover { color: var(--fg-2); }
.svc-tab[aria-selected="true"] { color: var(--fg); }
.svc-tab[aria-selected="true"] .i { color: var(--signal); }
.svc-tab[aria-selected="true"] .lamp { background: var(--beacon); border-color: var(--beacon); box-shadow: 0 0 0 4px rgba(255, 193, 59, .2), 0 0 14px rgba(255, 193, 59, .8); }
.svc-panels { position: relative; }
.svc-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.svc-panel[hidden] { display: none !important; }
.svc-panel .photo { aspect-ratio: 4 / 5; }
.svc-panel h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-stretch: 114%; font-weight: 740; letter-spacing: -.02em; line-height: 1.05; }
.svc-panel .lead { margin-top: 14px; font-size: 1.12rem; }
.ticklist { display: grid; gap: 10px; margin-top: 26px; }
.ticklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--fg); }
.ticklist li .i { width: 20px; height: 20px; color: var(--signal); margin-top: 2px; }
.svc-panel .row { margin-top: 30px; }
.svc-panel.is-entering .svc-copy > * { animation: rise .55s var(--ease-out) both; }
.svc-panel.is-entering .svc-copy > *:nth-child(2) { animation-delay: .05s; }
.svc-panel.is-entering .svc-copy > *:nth-child(3) { animation-delay: .1s; }
.svc-panel.is-entering .svc-copy > *:nth-child(4) { animation-delay: .15s; }
.svc-panel.is-entering .photo { animation: wipe .8s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(0 0 100% 0 round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
@media (max-width: 980px) {
  .svc { grid-template-columns: 1fr; }
  .svc-list { display: flex; overflow-x: auto; gap: 8px; border: 0; padding-bottom: 6px; scrollbar-width: none; }
  .svc-list::-webkit-scrollbar { display: none; }
  .svc-tab { flex: 0 0 auto; width: auto; grid-template-columns: auto auto; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .95rem; }
  .svc-tab .lamp { display: none; }
  .svc-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .svc-tab[aria-selected="true"] .i { color: var(--beacon); }
  .svc-panel { grid-template-columns: 1fr; }
  .svc-panel .photo { aspect-ratio: 16 / 10; }
}

/* ---------- fleet (vessel types) ---------- */
.fleet-pin { min-height: calc(100vh - var(--chrome-h)); display: flex; flex-direction: column; justify-content: center; padding-block: 24px; }
.fleet-wrap { position: relative; overflow: hidden; }
.fleet-track { display: flex; gap: 0; will-change: transform; }
.vessel { flex: 0 0 clamp(280px, 30vw, 400px); padding: 30px 28px 34px; border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.vessel:first-child { border-left: 0; }
.vessel .ga { height: 132px; width: 100%; color: #8fb1ff; }
.vessel .ga path, .vessel .ga rect, .vessel .ga line, .vessel .ga circle, .vessel .ga polyline { vector-effect: non-scaling-stroke; }
.vessel h3 { font-size: 1.25rem; }
.vessel p { color: var(--fg-2); font-size: .95rem; }
.vessel .needs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.vessel .needs span { font-size: .78rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); }
.waterline { height: 1px; background: linear-gradient(90deg, transparent, rgba(111, 155, 255, .45), transparent); margin-top: -6px; }
@media (max-width: 860px) { .fleet-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .vessel { scroll-snap-align: start; flex-basis: 82vw; } }

/* ---------- port call timeline ---------- */
.callline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 12px; }
.callline .rail { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--line); }
.callline .rail i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, var(--signal), var(--beacon)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.callstep { position: relative; padding-right: 22px; }
.callstep .tmark { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); font-weight: 680; font-stretch: 108%; font-variant-numeric: tabular-nums; font-size: .92rem; color: var(--fg); }
.callstep .tmark b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .85rem; }
.callstep.is-lit .tmark { border-color: var(--signal); }
.callstep.is-lit .tmark b { background: var(--signal); }
.callstep h3 { margin-top: 22px; font-size: 1.15rem; }
.callstep p { margin-top: 8px; color: var(--fg-2); font-size: .96rem; }
@media (max-width: 980px) {
  .callline { grid-template-columns: 1fr; gap: 26px; padding-left: 0; }
  .callline .rail { left: 21px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .callline .rail i { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .callstep { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 0; }
  .callstep .tmark { grid-row: span 2; align-self: start; padding: 0 6px; }
  .callstep .tmark span { display: none; }
  .callstep h3 { margin-top: 0; }
  .callstep .tlabel { display: block; }
}
.tlabel { display: none; font-size: .8rem; font-weight: 650; color: var(--signal); font-variant-numeric: tabular-nums; }

/* ---------- surplus band ---------- */
.band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--deep); color: #eaf1fb; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 440px; }
.band .band-copy { padding: clamp(32px, 5vw, 64px); display: grid; align-content: center; gap: 20px; position: relative; z-index: 2; }
.band .photo { border-radius: 0; height: 100%; aspect-ratio: auto; min-height: 300px; }
.band .photo::after { background: linear-gradient(90deg, var(--deep) 0%, rgba(11, 33, 64, .2) 40%, rgba(11, 33, 64, 0) 100%); }
.band ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.band ul li { font-size: .88rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(154, 175, 207, .2); color: #d5e1f3; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } .band .photo { height: 260px; min-height: 0; order: -1; } .band .photo::after { background: linear-gradient(0deg, var(--deep), transparent 60%); } }

/* ---------- feedback ---------- */
.fb-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.fb-card { position: relative; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); min-height: 280px; display: grid; align-content: space-between; gap: 26px; }
.fb-card blockquote { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.45; font-stretch: 102%; font-weight: 460; }
.fb-card .who { display: flex; align-items: center; gap: 12px; }
.fb-card .who .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--hull); color: #fff; font-weight: 700; }
.fb-card .who small { display: block; color: var(--fg-2); }
.stars { display: inline-flex; gap: 3px; color: var(--beacon); }
.stars .i { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.stars .i.off { fill: var(--line-2); }
.fb-nav { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); color: var(--fg); background: var(--panel); transition: .2s; }
.icon-btn:hover { border-color: var(--fg-3); }
.icon-btn .i { width: 20px; height: 20px; }
.rate-input { display: inline-flex; gap: 6px; }
.rate-input button { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--line-2); border: 1px solid var(--line); background: var(--field); transition: .15s; }
.rate-input button .i { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.rate-input button.on { color: var(--beacon); border-color: color-mix(in srgb, var(--beacon) 50%, var(--line)); }
@media (max-width: 900px) { .fb-wrap { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: #fff; background: var(--abyss); }
.cta .cta-bg { position: absolute; inset: 0; }
.cta .cta-bg .photo { height: 100%; aspect-ratio: auto; border-radius: 0; background: var(--abyss); }
.cta .cta-bg .photo::after { display: none; }
.cta .cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta .cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 15, 31, .95) 10%, rgba(5, 15, 31, .55) 60%, rgba(5, 15, 31, .3)); }
.cta .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; padding-block: clamp(80px, 10vw, 140px); }
.contact-card { border-radius: var(--r-lg); padding: 28px; background: rgba(7, 22, 41, .72); border: 1px solid rgba(154, 175, 207, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; gap: 18px; }
.contact-card .person { display: flex; gap: 14px; align-items: center; }
.contact-card .person .av { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--beacon); color: #1b1300; font-weight: 800; font-stretch: 115%; font-size: 1.15rem; }
.contact-lines { display: grid; gap: 10px; }
.contact-lines a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(154, 175, 207, .14); transition: .2s; font-weight: 560; }
.contact-lines a:hover { border-color: rgba(154, 175, 207, .4); background: rgba(255, 255, 255, .07); }
.contact-lines a small { display: block; font-weight: 450; color: var(--mist); font-size: .8rem; }
.contact-lines .i { width: 20px; height: 20px; color: var(--beacon); }
@media (max-width: 900px) { .cta .container { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--abyss); color: #c5d3ea; border-top: 1px solid rgba(154, 175, 207, .12); }
.site-footer .f-top { display: grid; grid-template-columns: 1.25fr .85fr .95fr .85fr 1.5fr; gap: 36px; padding-block: 72px 48px; }
.f-contact { font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul li + li { margin-top: 10px; }
.site-footer a { color: #a9bbd8; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer .f-brand p { margin-top: 16px; color: #8ea3c4; max-width: 34ch; font-size: .95rem; }
.site-footer .slogan { margin-top: 18px; font-stretch: 112%; font-weight: 700; color: var(--beacon); font-size: 1.02rem; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(154, 175, 207, .2); color: #c5d3ea; }
.socials a:hover { color: #fff; border-color: rgba(154, 175, 207, .5); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact .i { width: 18px; height: 18px; margin-top: 3px; color: var(--signal-2); }
.f-bottom { border-top: 1px solid rgba(154, 175, 207, .12); padding-block: 22px 28px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; font-size: .86rem; color: #7f93b5; }
.f-bottom .links { display: flex; gap: 18px; margin-left: auto; }
.f-ports { font-size: .82rem; color: #6f84a7; line-height: 1.8; padding-bottom: 28px; }
.f-ports b { color: #9fb2d2; font-weight: 600; }
@media (max-width: 1060px) { .site-footer .f-top { grid-template-columns: 1fr 1fr 1fr; } .site-footer .f-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .site-footer .f-top { grid-template-columns: 1fr 1fr; } .f-bottom .links { margin-left: 0; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; height: 58px; min-width: 58px; padding: 0 17px;
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; background: var(--wa); color: #04331b;
  font-weight: 700; box-shadow: 0 18px 40px -14px rgba(37, 211, 102, .7), 0 2px 8px rgba(0, 0, 0, .25);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease-out); }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 220px; }
.wa-float:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .wa-float { right: 14px; bottom: 14px; height: 54px; min-width: 54px; } }
.hero-in-view .wa-float { transform: translateY(150%); opacity: 0; pointer-events: none; }
.wa-float { transition: transform .35s var(--ease), opacity .35s, box-shadow .25s; }

/* ---------- command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 120; background: rgba(3, 9, 20, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.palette.is-open { display: flex; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.palette-box { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #0c1d38; border: 1px solid rgba(154, 175, 207, .24); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8); color: #eaf1fb; animation: pop .22s var(--ease-out); }
@keyframes pop { from { transform: translateY(-8px) scale(.985); opacity: .4; } to { transform: none; opacity: 1; } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid rgba(154, 175, 207, .16); }
.palette-input input { flex: 1; height: 60px; border: 0; outline: 0; background: transparent; font-size: 1.08rem; color: #fff; }
.palette-input input::placeholder { color: #7088ad; }
.palette-list { overflow-y: auto; padding: 8px; }
.palette-group { padding: 10px 12px 6px; font-size: .76rem; font-weight: 650; color: #7088ad; }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px; text-align: left; color: #d8e3f4; font-size: .97rem; }
.palette-item .i { width: 18px; height: 18px; color: #7f9bd0; }
.palette-item small { margin-left: auto; color: #6c84aa; font-size: .8rem; }
.palette-item[aria-selected="true"] { background: rgba(47, 107, 255, .18); color: #fff; }
.palette-item[aria-selected="true"] .i { color: var(--beacon); }
.palette-empty { padding: 28px 16px; text-align: center; color: #7088ad; }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid rgba(154, 175, 207, .14); font-size: .78rem; color: #6c84aa; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 130; display: grid; gap: 10px; width: min(460px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #0f2342; color: #eaf1fb; border: 1px solid rgba(154, 175, 207, .25); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); animation: toastin .35s var(--ease-out); font-size: .95rem; }
.toast .i { width: 20px; height: 20px; margin-top: 1px; color: var(--stbd); }
.toast.err .i { color: var(--port); }
.toast.out { animation: toastout .3s ease-in forwards; }
@keyframes toastin { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastout { to { transform: translateY(10px); opacity: 0; } }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; align-content: start; }
.field > label, .field > .flabel { font-size: .9rem; font-weight: 620; color: var(--fg); }
.field .opt { font-weight: 450; color: var(--fg-3); }
.field .hint { font-size: .82rem; color: var(--fg-3); }
.field .err { font-size: .82rem; color: #e5484d; font-weight: 560; display: none; }
.field.has-err .err { display: block; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--field); color: var(--fg);
  font-size: 1rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 120px; resize: vertical; }
.select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f86ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); opacity: .8; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--fg-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(47, 107, 255, .16); }
.field.has-err .input, .field.has-err .select, .field.has-err .textarea { border-color: #e5484d; }
.input.ok { border-color: #22a95e; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; height: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--fg-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--signal); flex: 0 0 auto; }

/* choice cards (persona, services) */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.choices.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.choice { position: relative; display: grid; gap: 6px; align-content: start; text-align: left; padding: 16px 16px 15px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--field); transition: border-color .2s, box-shadow .2s, background-color .2s, transform .15s; cursor: pointer; color: var(--fg); }
.choice:hover { border-color: var(--fg-3); }
.choice .i { width: 24px; height: 24px; color: var(--signal); }
.choice b { font-weight: 660; font-stretch: 104%; font-size: 1rem; }
.choice small { color: var(--fg-3); font-size: .84rem; line-height: 1.4; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .tickmark { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: #fff; transition: .2s; }
.choice .tickmark .i { width: 14px; height: 14px; color: #fff; opacity: 0; }
.choice:has(input:checked), .choice.is-on { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(47, 107, 255, .12); background: color-mix(in srgb, var(--signal) 5%, var(--field)); }
.choice:has(input:checked) .tickmark, .choice.is-on .tickmark { background: var(--signal); border-color: var(--signal); }
.choice:has(input:checked) .tickmark .i, .choice.is-on .tickmark .i { opacity: 1; }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--field); font-size: .92rem; font-weight: 560; cursor: pointer; transition: .15s; color: var(--fg); }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:hover { border-color: var(--fg-3); }
.pill:has(input:checked) { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 10%, var(--field)); color: var(--fg); }
.pill:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

/* dropzone */
.dropzone { display: grid; place-items: center; gap: 8px; text-align: center; padding: 26px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--panel); color: var(--fg-2); cursor: pointer; transition: .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 6%, var(--panel)); }
.dropzone .i { width: 28px; height: 28px; color: var(--signal); }
.files { display: grid; gap: 8px; margin-top: 10px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: .9rem; }
.files li small { color: var(--fg-3); margin-left: auto; }
.files li button { color: var(--fg-3); }

/* wizard */
.wizard { display: grid; gap: 28px; }
.wiz-steps { display: flex; gap: 6px; counter-reset: ws; }
.wiz-steps li { flex: 1; display: grid; gap: 8px; font-size: .82rem; font-weight: 620; color: var(--fg-3); }
.wiz-steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); transition: background-color .4s; }
.wiz-steps li.done::before, .wiz-steps li.current::before { background: var(--signal); }
.wiz-steps li.current { color: var(--fg); }
@media (max-width: 640px) { .wiz-steps li span { display: none; } .wiz-steps li.current span { display: inline; } }
.wiz-pane { display: none; }
.wiz-pane.is-active { display: grid; gap: 22px; animation: rise .45s var(--ease-out); }
.wiz-pane h3 { font-size: 1.45rem; font-stretch: 110%; }
.wiz-nav { display: flex; gap: 12px; align-items: center; padding-top: 6px; border-top: 1px solid var(--line); padding-top: 20px; }
.svc-block { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 16px; background: var(--panel); }
.svc-block > header { display: flex; align-items: center; gap: 10px; font-weight: 680; font-stretch: 106%; }
.svc-block > header .i { color: var(--signal); }
.review { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.review div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.review div:first-child { border-top: 0; }
.review dt { color: var(--fg-3); }
.review dd { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 640px) { .review div { grid-template-columns: 1fr; gap: 2px; } }
.success { text-align: center; display: grid; justify-items: center; gap: 16px; padding: 28px 0; }
.success .seal { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--stbd) 16%, transparent); color: var(--stbd); }
.success .seal .i { width: 38px; height: 38px; }
.refno { font-size: 1.6rem; font-weight: 760; font-stretch: 112%; letter-spacing: .02em; font-variant-numeric: tabular-nums; padding: 8px 18px; border-radius: 12px; background: var(--panel-2); border: 1px dashed var(--line-2); }

/* ---------- tables (portal/admin) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th { text-align: left; font-weight: 620; color: var(--fg-3); font-size: .8rem; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
table.data td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background-color .15s; }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr.clickable:hover { background: var(--panel); }
.empty { text-align: center; padding: 48px 20px; color: var(--fg-2); display: grid; gap: 10px; justify-items: center; }
.empty > .i { width: 34px; height: 34px; color: var(--fg-3); }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 110; background: rgba(3, 9, 20, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(560px, 100%); background: var(--bg); color: var(--fg); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .4s var(--ease-out); display: flex; flex-direction: column; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px; display: grid; gap: 22px; align-content: start; }
.drawer-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
.timeline { display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline small { color: var(--fg-3); display: block; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: .93rem; }
.kv dt { color: var(--fg-3); }
.kv dd { word-break: break-word; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }

/* ---------- view transitions (multi-page app feel) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease-in both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
.chrome { view-transition-name: chrome; }

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

/* ---------- dialog ---------- */
dialog { color: var(--fg); }
.fb-dialog { border: 0; padding: 0; border-radius: var(--r-lg); width: min(640px, calc(100% - 28px)); max-height: calc(100vh - 40px); background: var(--bg); box-shadow: 0 50px 120px -30px rgba(3, 9, 20, .75); }
.fb-dialog[open] { animation: pop .3s var(--ease-out); }
.fb-dialog::backdrop { background: rgba(3, 9, 20, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.fb-form { padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; }
.fb-stage { min-height: 280px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.subnav { position: sticky; top: var(--chrome-h); z-index: 40; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 14px 14px; font-size: .92rem; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; transition: .2s; }
.subnav a .i { width: 18px; height: 18px; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--beacon); }

.svc-sec { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--chrome-h) + 50px); }
.svc-sec:first-of-type { border-top: 0; }
.svc-sec:nth-of-type(even) .photo { order: 2; }
.svc-sec .photo { aspect-ratio: 5 / 4; }
.svc-sec h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.svc-sec .lead { margin-top: 16px; }
.svc-sec .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.svc-sec .cols h4 { font-size: .9rem; color: var(--fg-3); font-weight: 620; margin-bottom: 12px; }
.svc-sec .ticklist { margin-top: 0; }
.svc-sec .row { margin-top: 30px; }
.svc-num { font-size: .85rem; font-weight: 650; color: var(--signal); font-variant-numeric: tabular-nums; display: inline-flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.svc-num .i { width: 20px; height: 20px; }
@media (max-width: 900px) { .svc-sec { grid-template-columns: 1fr; } .svc-sec:nth-of-type(even) .photo { order: 0; } .svc-sec .cols { grid-template-columns: 1fr; } }

.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.more-grid .tile h3 { font-size: 1.05rem; }
@media (max-width: 1060px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .more-grid { grid-template-columns: 1fr; } }

/* about */
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.facts > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--fg-3); font-size: .92rem; }
.facts dd { font-weight: 600; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }
.hub-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hub-card { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); padding: 26px; display: grid; gap: 14px; align-content: start; }
.hub-card .coord { font-size: .82rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.hub-card h3 { font-size: 1.5rem; font-stretch: 112%; }
.hub-card .lamp { position: absolute; right: 24px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--port); box-shadow: 0 0 0 5px rgba(232, 65, 47, .18), 0 0 18px var(--port); animation: oc 6s infinite; }
@keyframes oc { 0%, 82%, 100% { opacity: 1; } 86%, 94% { opacity: .15; } }
@media (max-width: 900px) { .hub-cards { grid-template-columns: 1fr; } }
.value-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.value-list > div { padding: 28px 24px 8px 0; display: grid; gap: 10px; align-content: start; }
.value-list > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.value-list .i { width: 28px; height: 28px; color: var(--beacon); }
.light .value-list .i { color: var(--hull); }
.value-list p { color: var(--fg-2); font-size: .96rem; }
@media (max-width: 980px) { .value-list { grid-template-columns: 1fr 1fr; } .value-list > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .value-list { grid-template-columns: 1fr; } .value-list > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; font-weight: 640; font-stretch: 104%; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .3s var(--ease); color: var(--fg-3); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details > div { padding: 0 2px 22px; color: var(--fg-2); max-width: 70ch; }

/* steps list (surplus etc.) */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.steps li { position: relative; padding: 22px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); display: grid; gap: 8px; align-content: start; }
.steps li b { font-weight: 660; font-stretch: 104%; }
.steps li span { color: var(--fg-2); font-size: .94rem; }
.steps li::before { counter-increment: st; content: counter(st); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--hull); color: #fff; font-weight: 700; font-size: .85rem; }
@media (max-width: 1060px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- ports app ---------- */
.ports-app { display: grid; grid-template-columns: 390px minmax(0, 1fr); height: calc(100vh - var(--chrome-h)); height: calc(100svh - var(--chrome-h)); min-height: 620px; background: var(--abyss); color: #eaf1fb; border-bottom: 1px solid var(--line); }
.ports-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--night); }
.ports-side .ps-head { padding: 24px 22px 16px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.ports-side h1 { font-size: 1.9rem; font-stretch: 116%; letter-spacing: -.02em; line-height: 1.05; }
.ports-side .ps-sub { color: var(--mist); font-size: .95rem; }
.ps-search { position: relative; }
.ps-search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-3); width: 18px; height: 18px; }
.ps-search input { padding-left: 42px; }
.ps-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-filters .chip { height: 32px; font-size: .84rem; padding: 0 11px; }
.ps-list { flex: 1; overflow-y: auto; padding: 6px 10px 20px; overscroll-behavior: contain; }
.ps-group { padding: 14px 10px 6px; font-size: .78rem; font-weight: 650; color: var(--fg-3); display: flex; justify-content: space-between; }
.port-row { width: 100%; display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; text-align: left; color: #d7e2f3; font-size: .94rem; transition: background-color .15s; }
.port-row:hover { background: rgba(255, 255, 255, .05); }
.port-row[aria-current="true"] { background: rgba(47, 107, 255, .18); color: #fff; }
.port-row small { color: #6f86ab; font-size: .76rem; font-variant-numeric: tabular-nums; }
.ports-map { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.ports-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-tools { position: absolute; z-index: 3; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; }
.map-tools .tool { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(7, 22, 41, .85); border: 1px solid rgba(154, 175, 207, .22); color: #dbe6f6; transition: .2s; }
.map-tools .tool:hover { border-color: rgba(154, 175, 207, .55); color: #fff; }
.map-views { position: absolute; z-index: 3; top: 16px; left: 16px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 90px); }
.map-views .chip { background: rgba(7, 22, 41, .85); height: 34px; font-size: .84rem; }
.map-legend { position: absolute; z-index: 3; left: 16px; bottom: 16px; display: flex; gap: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(7, 22, 41, .82); border: 1px solid rgba(154, 175, 207, .16); font-size: .8rem; color: #a9bbd8; }
.map-legend span { display: inline-flex; gap: 7px; align-items: center; }
.map-tip { position: absolute; z-index: 4; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: rgba(4, 13, 28, .94); border: 1px solid rgba(154, 175, 207, .25); font-size: .85rem; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); }
.map-tip small { display: block; color: var(--mist); font-size: .76rem; }
.port-card { position: absolute; z-index: 5; right: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); border-radius: 18px; background: rgba(7, 22, 41, .94); border: 1px solid rgba(154, 175, 207, .24); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 20px; display: grid; gap: 14px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); animation: rise .35s var(--ease-out); }
.port-card h2 { font-size: 1.35rem; font-stretch: 110%; line-height: 1.15; }
.port-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.port-card .kv { grid-template-columns: 110px 1fr; font-size: .9rem; }
.port-card .row .btn { flex: 1; }
@media (max-width: 960px) {
  .ports-app { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .ports-map { height: 62vh; min-height: 440px; order: -1; }
  .ports-side { border-right: 0; }
  .ps-list { max-height: 60vh; }
  .map-legend { display: none; }
}
.world-list { display: flex; flex-wrap: wrap; gap: 8px; }
.world-list span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; color: var(--fg-2); }

/* ---------- products catalogue ---------- */
.cat-toolbar { position: sticky; top: var(--chrome-h); z-index: 30; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cat-toolbar .container { display: flex; align-items: center; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.cat-toolbar .ps-search { flex: 1 1 260px; max-width: 360px; }
.cat-toolbar .depts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 400px; }
.cat-toolbar .depts::-webkit-scrollbar { display: none; }
.cat-toolbar .depts .chip { flex: 0 0 auto; }
.req-btn { position: relative; }
.req-btn .count { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--port); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.prod { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.prod:hover { border-color: var(--line-2); box-shadow: 0 20px 40px -30px rgba(6, 20, 45, .4); }
.prod header { display: flex; align-items: center; gap: 12px; }
.prod header .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--shoal); color: var(--hull); flex: 0 0 auto; }
.prod h3 { font-size: 1.06rem; line-height: 1.25; }
.prod small { color: var(--fg-3); font-size: .8rem; }
.prod ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--fg-2); font-size: .92rem; }
.prod ul li { display: flex; gap: 8px; }
.prod ul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); margin-top: .6em; flex: 0 0 auto; }
.prod .add { justify-self: start; }
.prod.in-req { border-color: color-mix(in srgb, var(--signal) 45%, var(--line)); }
.prod.in-req .add { background: var(--signal); color: #fff; border-color: var(--signal); }
.cat-empty { grid-column: 1 / -1; }
.req-lines { display: grid; gap: 10px; }
.req-line { display: grid; grid-template-columns: 1fr 84px 92px 36px; gap: 8px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.req-line .input, .req-line .select { min-height: 40px; padding: 8px 10px; font-size: .9rem; border-radius: 9px; }
.req-line .name { font-weight: 600; font-size: .93rem; grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; }
.req-line .name small { color: var(--fg-3); font-weight: 500; }
.req-line .remark { grid-column: 1 / 2; }
@media (max-width: 480px) { .req-line { grid-template-columns: 1fr 70px 80px 36px; } }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-side { position: sticky; top: calc(var(--chrome-h) + 24px); display: grid; gap: 18px; }
.wizard-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg); padding: clamp(20px, 3.2vw, 40px); box-shadow: 0 40px 80px -60px rgba(6, 20, 45, .5); }
.track-card { display: grid; gap: 14px; }
.track-result { display: grid; gap: 14px; }
@media (max-width: 1060px) { .contact-layout { grid-template-columns: 1fr; } .contact-side { position: static; } }

/* ---------- legal ---------- */
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 12px; font-stretch: 108%; }
.legal p, .legal li { color: var(--fg-2); }
.legal ul { padding-left: 1.2em; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal p + p { margin-top: 12px; }
.notice { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--beacon) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--beacon) 40%, var(--line)); color: var(--fg); font-size: .93rem; display: flex; gap: 10px; }
.notice .i { color: #b67a00; margin-top: 2px; }
.notice.info { background: color-mix(in srgb, var(--signal) 8%, var(--bg)); border-color: color-mix(in srgb, var(--signal) 30%, var(--line)); }
.notice.info .i { color: var(--signal); }
.notice.err { background: color-mix(in srgb, #e5484d 8%, var(--bg)); border-color: color-mix(in srgb, #e5484d 35%, var(--line)); }
.notice.err .i { color: #e5484d; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - var(--chrome-h)); display: grid; place-items: center; text-align: center; padding: 60px var(--gutter); }
.lost .big { font-size: clamp(5rem, 16vw, 11rem); font-stretch: 125%; font-weight: 800; line-height: .9; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(150, 186, 255, .55); }

/* ==========================================================================
   App shell: login, client portal, admin console
   ========================================================================== */
.auth { min-height: calc(100vh - var(--chrome-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; background: var(--abyss); color: #eaf1fb; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-art > *:not(canvas) { position: relative; z-index: 2; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(5, 15, 31, .95) 10%, rgba(5, 15, 31, .2) 60%); pointer-events: none; }
.auth-art ul { display: grid; gap: 10px; color: #c3d2ea; }
.auth-art li { display: flex; gap: 10px; }
.auth-art li .i { color: var(--beacon); }
.auth-main { background: #fff; color: var(--ink); display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) var(--gutter); }
.auth-box { width: min(440px, 100%); display: grid; gap: 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--shoal); }
.tabs button { height: 42px; border-radius: 11px; font-weight: 620; color: var(--ink-3); transition: .2s; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 10px -4px rgba(6, 20, 45, .3); }
.pw-meter { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 5px; transition: width .3s, background-color .3s; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { min-height: 280px; } }

.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - var(--chrome-h)); background: #f3f6fb; color: var(--ink); }
.app-side { background: var(--night); color: #c9d6ea; padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); position: sticky; top: var(--chrome-h); height: calc(100vh - var(--chrome-h)); }
.app-side .who { display: flex; gap: 12px; align-items: center; padding: 6px 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.app-side .who .av { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--beacon); color: #1b1300; font-weight: 800; }
.app-side .who b { display: block; color: #fff; font-size: .98rem; line-height: 1.2; }
.app-side .who small { color: var(--mist); font-size: .8rem; }
.app-nav { display: grid; gap: 2px; }
.app-nav button, .app-nav a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px; color: #b8c8e2; font-weight: 560; font-size: .95rem; text-align: left; transition: .15s; }
.app-nav button:hover, .app-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.app-nav [aria-current="page"] { background: rgba(47, 107, 255, .2); color: #fff; }
.app-nav [aria-current="page"] .i { color: var(--beacon); }
.app-nav .badge { margin-left: auto; background: var(--port); color: #fff; }
.app-side .spacer { flex: 1; }
.app-main { padding: clamp(20px, 3vw, 40px); display: grid; gap: 24px; align-content: start; min-width: 0; --bg: #fff; --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3); --line: #dde6f1; --line-2: #c7d5e6; --panel: var(--foam); --panel-2: #eef3fa; --field: #fff; --focus: var(--signal); color-scheme: light; }
.app-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.app-head h1 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-stretch: 112%; }
.app-head p { color: var(--ink-3); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; }
.kpi span { color: var(--ink-3); font-size: .85rem; }
.kpi b { font-size: 2rem; font-stretch: 110%; font-weight: 760; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi small { color: var(--ink-3); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 16px; }
.card > header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card > header h2 { font-size: 1.2rem; font-stretch: 106%; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .input, .toolbar .select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; width: auto; }
.bars { display: grid; gap: 10px; }
.bars div { display: grid; grid-template-columns: 150px 1fr 40px; gap: 12px; align-items: center; font-size: .9rem; }
.bars i { display: block; height: 10px; border-radius: 10px; background: var(--signal); }
.bars em { font-style: normal; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.app-mobilebar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .app-side .who { border: 0; padding: 4px; margin: 0; flex: 1 1 100%; }
  .app-nav { display: flex; overflow-x: auto; gap: 4px; flex: 1 1 100%; scrollbar-width: none; }
  .app-nav button, .app-nav a { width: auto; flex: 0 0 auto; }
  .app-side .spacer { display: none; }
}
.gate { min-height: 60vh; display: grid; place-items: center; text-align: center; }

.cline { display: flex; gap: 12px; align-items: flex-start; }
.cline .i { margin-top: 3px; }
[data-auth-forms] { display: grid; gap: 24px; }
.app-body .chrome .header-login span { display: inline; }

@media (max-width: 760px) and (max-height: 760px) {
  .hero-step h1, .hero-step h2 { font-size: clamp(1.8rem, 8.4vw, 2.2rem); }
  .hero-step p { font-size: .92rem; }
  .hero-step .label { display: none; }
}

/* ---------- small-screen fixes ---------- */
body { overflow-x: clip; }
.site-footer .f-top > *, .cta .container > *, .contact-layout > *, .grid > *, .svc-panel > *, .svc-sec > * { min-width: 0; }
.site-footer a, .f-contact span, .contact-lines a span, .cline span, .kv dd, .facts dd { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .choices, .choices.wide { grid-template-columns: 1fr 1fr; gap: 10px; }
  .choice { padding: 13px 12px 12px; }
  .choice b { font-size: .93rem; }
  .choice small { font-size: .78rem; }
  .choice .tickmark { top: 9px; right: 9px; width: 20px; height: 20px; }
  .wizard-card { padding: 18px 14px; border-radius: 18px; }
  .map-views { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: calc(100% - 76px); }
  .map-views::-webkit-scrollbar { display: none; }
  .map-views .chip { flex: 0 0 auto; }
  .cat-toolbar .req-btn { width: 100%; }
}
.ports-page .wa-float { display: none; }
