/* Baltic Aquadrones — site styles
   Palette taken from the trial photographs: slate water, cool overcast sky,
   gunmetal hull, one warm low-sun accent. */

:root {
  --sky: #e1e6ea;        /* page background: overcast Baltic sky, cool grey */
  --paper: #eef1f3;      /* raised surfaces */
  --water: #16222b;      /* dark sections */
  --water-2: #1f2e39;
  --hull: #97a2ac;       /* gunmetal tint, secondary text on dark (4.6:1 on --water) */
  --hull-dim: #7c8690;   /* decorative only, never for text */
  --ink: #10171d;        /* primary text */
  --ink-2: #4a545c;      /* secondary text on light */
  --line: #c4ccd2;
  --line-dark: #2c3a45;
  --sun: #d99a4e;        /* accent — used sparingly */
  --sun-ink: #8a5a1e;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: var(--measure); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }
h1 { font-size: clamp(40px, 6.2vw, 84px); font-variation-settings: "wdth" 112; }
h2 { font-size: clamp(30px, 3.8vw, 52px); font-variation-settings: "wdth" 110; max-width: 22ch; }
h3 { font-size: clamp(20px, 2vw, 26px); font-variation-settings: "wdth" 105; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--ink-2); }
h1 + .lede, h2 + .lede { margin-top: 18px; }
.dark .lede { color: #b7c0c8; }

:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
::selection { background: var(--sun); color: var(--ink); }
input, textarea { caret-color: var(--sun); }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
html { scrollbar-color: var(--hull-dim) var(--sky); }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 50; background: var(--sun); color: var(--ink); padding: 10px 14px; border-radius: 3px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  color: #fff;
}
.site-header.solid { position: static; background: var(--water); }
.wordmark { text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: 0.01em; font-variation-settings: "wdth" 112; white-space: nowrap; }
.wordmark small { display: block; font-weight: 400; font-size: 12px; letter-spacing: 0.02em; color: var(--hull); font-variation-settings: "wdth" 100; }
.site-nav { display: flex; gap: clamp(14px, 2.4vw, 34px); align-items: center; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
@media (max-width: 860px) { .site-nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; } }
.site-nav a { text-decoration: none; font-size: 15px; color: rgba(255,255,255,0.78); white-space: nowrap; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--sun); }
.button {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 12px 20px; border-radius: 3px; border: 1px solid transparent; white-space: nowrap;
}
.button.primary { background: var(--sun); color: var(--ink); }
.button.primary:hover { background: #e2a85f; }
.button.ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.button.ghost:hover { border-color: #fff; }
.button.outline { border-color: var(--ink); color: var(--ink); }
.button.outline:hover { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92svh; display: grid; align-items: end;
  background: var(--water); color: #fff; overflow: hidden;
}
.hero video, .hero > img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,22,0.35) 0%, rgba(10,16,22,0) 35%, rgba(10,16,22,0.25) 60%, rgba(10,16,22,0.78) 100%);
}
.hero-body {
  position: relative; z-index: 1; padding: 0 var(--gutter) clamp(40px, 6vw, 80px);
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; gap: 22px;
}
.hero h1 { max-width: 14ch; }
.hero .lede { color: rgba(255,255,255,0.86); max-width: 48ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note {
  position: absolute; right: var(--gutter); bottom: clamp(40px, 6vw, 80px); z-index: 1;
  font-size: 13px; color: rgba(255,255,255,0.7); max-width: 26ch; text-align: right; line-height: 1.4;
}
@media (max-width: 860px) {
  .hero-note { position: relative; z-index: 1; right: auto; bottom: auto; text-align: left; max-width: none; margin: -14px 0 0; padding: 0 var(--gutter) 28px; }
  .site-header { flex-wrap: wrap; row-gap: 10px; padding-bottom: 12px; background: linear-gradient(180deg, rgba(10,16,22,0.55), rgba(10,16,22,0)); }
  .site-header.solid { background: var(--water); }
  .site-nav { order: 3; width: 100%; gap: 20px; }
  .hero { min-height: 100svh; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-body > * { animation: rise 900ms cubic-bezier(.2,.7,.2,1) both; }
  .hero-body > *:nth-child(2) { animation-delay: 90ms; }
  .hero-body > *:nth-child(3) { animation-delay: 180ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) var(--gutter); }
.section.dark { background: var(--water); color: #fff; }
.section.paper { background: var(--paper); }
.section.tight { padding-block: clamp(40px, 6vw, 80px); }
.wrap { max-width: var(--max); margin: 0 auto; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { max-width: var(--measure); }
.dark p { color: #c3cbd2; }
.dark .muted, .muted { color: var(--ink-2); }
.dark .muted { color: var(--hull); }

.two-col { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.two-col > .c-5 { grid-column: span 5; }
.two-col > .c-6 { grid-column: span 6; }
.two-col > .c-7 { grid-column: span 7; }
.two-col > .c-4 { grid-column: span 4; }
.two-col > .c-8 { grid-column: span 8; }
@media (max-width: 900px) { .two-col > [class^="c-"] { grid-column: 1 / -1; } }

/* proof band under hero */
.proof { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.proof .text { grid-column: span 5; }
.proof .photo { grid-column: span 7; }
.proof figure { margin: 0; }
.proof figcaption, figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; line-height: 1.4; }
.dark figcaption { color: var(--hull); }
@media (max-width: 900px) { .proof .text, .proof .photo { grid-column: 1 / -1; } }

/* ---------- product sections ---------- */
.product { position: relative; overflow: hidden; }
.designation {
  position: absolute; right: -0.04em; top: 0.02em; z-index: 0; pointer-events: none; user-select: none;
  font-size: clamp(120px, 24vw, 340px); font-weight: 700; line-height: 0.8; letter-spacing: -0.04em;
  font-variation-settings: "wdth" 125; color: transparent;
  -webkit-text-stroke: 1px var(--line);
}
.dark .designation { -webkit-text-stroke: 1px var(--line-dark); }
.product .wrap { position: relative; z-index: 1; }
.product-title { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.product-title .model { font-weight: 700; font-variation-settings: "wdth" 120; }
.product-title .name { font-weight: 400; font-size: max(16px, 0.55em); color: var(--ink-2); font-variation-settings: "wdth" 100; letter-spacing: 0; }
.dark .product-title .name { color: var(--hull); }
.status { display: inline-block; font-size: 14px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-2); margin-top: 14px; }
.dark .status { border-color: var(--line-dark); color: #b7c0c8; }
.status.live { border-color: var(--sun); color: var(--sun-ink); }
.dark .status.live { color: var(--sun); }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: clamp(32px, 4vw, 56px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; object-fit: cover; border-radius: 3px; background: var(--water-2); }
.gallery .g-8 { grid-column: span 8; } .gallery .g-4 { grid-column: span 4; }
.gallery .g-6 { grid-column: span 6; } .gallery .g-12 { grid-column: 1 / -1; }
.gallery .g-3 { grid-column: span 3; }
.gallery figure.tall img { aspect-ratio: 4 / 3; }
.gallery figure.wide img { aspect-ratio: 16 / 8; }
.gallery figure.plan img { aspect-ratio: 16 / 9; object-fit: cover; background: #fff; }
.dark .gallery figure.plan img { background: #eef1f3; }
@media (max-width: 900px) { .gallery [class^="g-"] { grid-column: span 6; } .gallery .g-12 { grid-column: 1 / -1; } }
@media (max-width: 560px) { .gallery [class^="g-"] { grid-column: 1 / -1; } }

/* spec table — rows are information, hairlines separate facts */
.specs { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.dark .specs th, .dark .specs td { border-bottom-color: var(--line-dark); }
.specs th { font-weight: 400; color: var(--ink-2); width: 42%; padding-right: 16px; }
.dark .specs th { color: var(--hull); }
.specs td { font-variant-numeric: tabular-nums; font-weight: 500; }
.specs tr.target td { font-weight: 400; }
.specs tr.target td::after { content: " target"; color: var(--sun-ink); font-size: 13px; }
.dark .specs tr.target td::after { color: var(--sun); }
.specs caption { caption-side: bottom; text-align: left; font-size: 14px; color: var(--ink-2); padding-top: 12px; }
.dark .specs caption { color: var(--hull); }

/* ---------- autonomy capabilities ---------- */
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 64px); margin: 0; }
.caps > div { padding: 22px 0; border-top: 1px solid var(--line); }
.caps dt { font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); font-variation-settings: "wdth" 106; margin-bottom: 8px; letter-spacing: -0.01em; }
.caps dd { margin: 0; max-width: 52ch; color: var(--ink-2); }
.caps-close { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--ink); font-weight: 500; max-width: 60ch; }
@media (max-width: 760px) { .caps { grid-template-columns: 1fr; } }

/* ---------- engineering strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.strip figure { margin: 0; }
.strip img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 3px; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr; } }

/* ---------- applications ---------- */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.apps ul { margin: 14px 0 0; padding: 0; list-style: none; }
.apps li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.dark .apps li { border-bottom-color: var(--line-dark); }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; } }

/* ---------- timeline (a real sequence, so dates lead) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 34px 28px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); border: 1px solid var(--ink); }
.timeline li.now::before { background: var(--sun); border-color: var(--sun); }
.timeline time { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { margin: 0; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 64px); }
.contact .intro { grid-column: span 5; }
.contact form { grid-column: span 7; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.contact form .full { grid-column: 1 / -1; }
@media (max-width: 900px) { .contact .intro, .contact form { grid-column: 1 / -1; } }
@media (max-width: 560px) { .contact form { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 14px; color: #b7c0c8; }
input, select, textarea {
  font: inherit; font-size: 16px; color: #fff; background: var(--water-2);
  border: 1px solid var(--line-dark); border-radius: 3px; padding: 12px 14px; width: 100%;
}
input::placeholder, textarea::placeholder { color: #93a0aa; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #b7c0c8 50%), linear-gradient(135deg, #b7c0c8 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--sun); outline: none; }
.contact button { justify-self: start; cursor: pointer; }
.contact-email { font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; text-decoration: none; display: inline-block; margin: 12px 0 6px; border-bottom: 1px solid var(--sun); font-variation-settings: "wdth" 108; }
.contact-email:hover { color: var(--sun); }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--hull); margin: 0; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--water); color: #fff; padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(48px, 6vw, 88px); }
.page-hero h1 { max-width: 16ch; font-size: clamp(36px, 5vw, 68px); }
.page-hero .lede { color: #c3cbd2; margin-top: 18px; }

/* ---------- support ---------- */
.support-list { display: grid; gap: 0; }
.support-list article { padding: 26px 0; border-top: 1px solid var(--line); }
.support-list article:last-child { border-bottom: 1px solid var(--line); }
.support-list h2 { margin-bottom: 8px; font-size: clamp(20px, 2vw, 26px); font-variation-settings: "wdth" 105; }
.support-list p { margin: 0; }
.support-card { background: var(--water); color: #fff; padding: clamp(28px, 4vw, 44px); border-radius: 4px; }
.support-card p { color: #c3cbd2; }
.support-card .contact-email { color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #9aa5ae; padding: 40px var(--gutter); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.site-footer a { color: #d7dde2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .legal { width: 100%; margin-top: 18px; color: #8a96a0; }
