/* Dual Seas Technologies Group — site styles
   Dark operations-room direction. Palette from the Dual Seas mark:
   deep navy ground, royal blue signal, white, blue-grey instrumentation. */

:root {
  --bg: #0A1420;
  --bg-2: #0E1E2F;
  --bg-3: #122740;
  --line: #1E3650;
  --line-bright: #2B4A6B;
  --fg: #E9F1F9;
  --muted: #8FA9C2;
  --blue: #2F7FD0;
  --blue-bright: #4D9BE8;
  --error: #E26D5A;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Saira", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  font-size: 1.0313rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
}
/* faint current-flow field behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../assets/flow.svg") center / cover no-repeat;
  pointer-events: none;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blue-bright); text-underline-offset: 3px; }
a:hover { color: #7FB9F2; }

:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }

::selection { background: var(--blue); color: #fff; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }

h1, h2, h3 { font-family: var(--display); }

/* Header */
.site-header {
  background: rgba(10, 20, 32, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
}
.brand img { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.015em;
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-weight: 400;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--fg); }
.site-nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--blue); }
.nav-cta {
  border: 1px solid var(--blue);
  color: var(--fg) !important;
  padding: 9px 16px !important;
  border-bottom: 1px solid var(--blue) !important;
  background: rgba(47, 127, 208, 0.12);
}
.nav-cta:hover { background: var(--blue); color: #fff !important; }

.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue-bright);
  padding: 12px 26px;
  border-radius: 2px;
  cursor: pointer;
}
.btn:hover { background: var(--blue-bright); border-color: #6FB0F0; color: #fff; box-shadow: 0 0 18px rgba(77, 155, 232, 0.35); }
.btn-ghost, .btn-quiet {
  background: transparent;
  border: 1px solid var(--line-bright);
  color: var(--fg);
}
.btn-ghost:hover, .btn-quiet:hover { border-color: var(--blue-bright); color: #fff; background: rgba(47,127,208,0.1); box-shadow: none; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-kicker {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.01em;
  max-width: 18ch;
  text-wrap: balance;
}
.hero p {
  margin-top: 20px;
  max-width: 54ch;
  font-size: 1.08rem;
  color: var(--muted);
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Radar plot */
.hero-radar { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%; }
.hero-radar svg { width: 100%; height: 100%; }
.sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* beam trails the leading edge; rotation driven from main.js so the
     contact paint stays in sync with the beam */
  background: conic-gradient(from 0deg, transparent 270deg, rgba(77, 155, 232, 0.05) 290deg, rgba(77, 155, 232, 0.3) 360deg);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Capability data strip */
.data-strip {
  border-top: 1px solid var(--line);
  background: rgba(14, 30, 47, 0.6);
}
.data-strip .wrap {
  display: flex;
  flex-wrap: wrap;
}
.data-strip span {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 12px 22px 12px 0;
  margin-right: 22px;
  border-right: 1px solid var(--line);
}
.data-strip span:last-child { border-right: none; margin-right: 0; }

/* Sections */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 36px;
}
.rule h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* One practice, several aspects: plain rows, no card chrome */
.practice-lede { font-size: 1.12rem; max-width: 58ch; margin-bottom: 30px; }
.aspects { border-top: 1px solid var(--line); }
.aspect {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 10px 36px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.aspect h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em; }
.aspect p { color: var(--muted); font-size: 0.98rem; max-width: 62ch; }
@media (max-width: 720px) {
  .aspect { grid-template-columns: 1fr; gap: 4px; }
}

/* Capability cards with reticle corners */
.svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.svc {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 26px 26px 28px;
}
.svc::before, .svc::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.svc::before { top: -1px; left: -1px; border-top: 2px solid var(--blue); border-left: 2px solid var(--blue); }
.svc::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--blue); border-right: 2px solid var(--blue); }
.svc:hover { border-color: var(--line-bright); }
.svc h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 9px; letter-spacing: 0.01em; }
.svc p { color: var(--muted); font-size: 0.98rem; max-width: 56ch; }
.svc-page .svc { margin-bottom: 20px; }
.svc-page .svc:last-of-type { margin-bottom: 0; }

/* Credentials strip */
.creds { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
.cred {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  padding-left: 18px;
  position: relative;
}
.cred::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 7px; height: 7px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--blue);
}

/* About */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.about-grid .lede { font-size: 1.12rem; max-width: 60ch; }
.about-grid p + p { margin-top: 16px; color: var(--muted); }
.about-grid p { color: var(--fg); }
.about-grid p + p, .about-grid .about-body { color: var(--muted); }
.fact-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 24px;
  position: relative;
}
.fact-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}
.fact-card dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
}
.fact-card dt:first-child { margin-top: 0; }
.fact-card dd { font-weight: 500; margin-top: 2px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-grid .lede { max-width: 46ch; font-size: 1.1rem; }
.contact-direct { margin-top: 22px; font-size: 1rem; color: var(--muted); }
.contact-direct a { font-weight: 500; }

form .field { margin-bottom: 18px; }
label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 7px;
}
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  background: var(--bg-2);
  color: var(--fg);
}
input:focus, textarea:focus { border-color: var(--blue-bright); outline: 1px solid var(--blue-bright); outline-offset: 0; }
textarea { min-height: 140px; resize: vertical; }
.field-error {
  display: none;
  color: var(--error);
  font-size: 0.88rem;
  margin-top: 5px;
}
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field.invalid .field-error { display: block; }
.form-status { margin-top: 14px; font-size: 0.95rem; display: none; padding: 12px 14px; }
.form-status.error { display: block; background: rgba(226, 109, 90, 0.12); color: var(--error); border: 1px solid rgba(226, 109, 90, 0.5); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.btn[disabled] { opacity: 0.65; cursor: wait; }
.btn .spinner {
  display: none;
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer {
  background: #081120;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 46px 0 92px;
  font-size: 0.92rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer strong { color: var(--fg); font-family: var(--display); letter-spacing: 0.01em; }
.site-footer a { color: #B9CDE2; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.92rem;
  text-decoration: none;
}
.footer-links a:hover { color: #fff; }
.footer-meta {
  width: 100%;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 0.82rem;
  color: #5F7A96;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(8, 17, 32, 0.96);
  border-top: 1px solid var(--blue);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
  backdrop-filter: blur(8px);
}
.sticky-cta .btn { width: 100%; text-align: center; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px;
  max-width: 420px;
  background: var(--bg-3);
  border: 1px solid var(--line-bright);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  padding: 18px;
  z-index: 50;
  font-size: 0.92rem;
}
.cookie-banner p { margin-bottom: 12px; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 9px 16px; font-size: 0.9rem; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: 1.9rem; margin-bottom: 8px; }
.legal .updated {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 30px;
}
.legal h2 { font-size: 1.12rem; margin: 30px 0 10px; letter-spacing: 0.03em; }
.legal p { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 10px 22px; color: var(--muted); }

/* 404 */
.notfound { padding: 110px 0 130px; }
.notfound .code {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--error);
  margin-bottom: 14px;
}
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; }
.notfound p { margin: 16px 0 28px; color: var(--muted); max-width: 48ch; }

/* Thank you */
.thanks { padding: 100px 0 120px; }
.thanks h1 { font-size: clamp(2rem, 5vw, 3rem); }
.thanks p { margin: 16px 0 28px; max-width: 52ch; color: var(--muted); }

/* Mobile */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-radar { justify-self: center; max-width: 320px; }
  .svc-list, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 28px; }
  .contact-grid { gap: 36px; }
}

@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--line-bright);
    color: var(--fg);
    font-size: 0.92rem;
    padding: 7px 14px;
    border-radius: 2px;
    cursor: pointer;
    margin-left: auto;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--blue-bright); }
  .nav-cta { margin-top: 12px; text-align: center; border: 1px solid var(--blue) !important; }
  .hero-grid { padding-top: 48px; padding-bottom: 48px; }
  .section { padding: 54px 0; }
  .sticky-cta { display: block; }
  .site-footer { padding-bottom: 136px; }
  .cookie-banner { left: 10px; right: 10px; bottom: 80px; max-width: none; }
}

/* Insights section */
.insights-lede { max-width: 62ch; }
.insights-list { margin-top: 36px; display: grid; gap: 30px; max-width: 760px; }
.insight-item { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.insight-item:last-child { border-bottom: 0; }
.insight-item h3 { font-family: var(--display); font-size: 1.25rem; line-height: 1.3; margin: 6px 0 10px; }
.insight-item h3 a { color: var(--fg); text-decoration: none; }
.insight-item h3 a:hover { color: var(--blue-bright); }
.insight-item p { color: var(--muted); max-width: 70ch; }
.article-meta { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; }
.article-meta a { color: var(--muted); }
.article-meta a:hover { color: var(--blue-bright); }
.article-head { max-width: 760px; }
.article-head h1 { font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.22; margin: 10px 0 12px; }
.article-kicker { font-family: var(--mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.article-kicker a { color: var(--blue-bright); text-decoration: none; }
.article-body { max-width: 72ch; margin-top: 30px; }
.article-body p { margin: 0 0 1.15em; line-height: 1.75; }
.article-body h2 { font-family: var(--display); font-size: 1.3rem; margin: 1.8em 0 0.6em; }
.article-body h3 { font-family: var(--display); font-size: 1.1rem; margin: 1.5em 0 0.5em; }
.article-body a { color: var(--blue-bright); }
.article-note { border-left: 3px solid var(--blue); padding: 10px 14px; background: var(--bg-2); color: var(--muted); font-style: italic; }
.article-back { margin-top: 40px; font-family: var(--mono); font-size: 0.9rem; }
.article-back a { color: var(--blue-bright); text-decoration: none; }
