/* =========================================================
   DynaByte — Site stylesheet
   Brand navy sampled directly from the company logo.
   Copper = Secure Identity & Critical Infrastructure pillar.
   Teal   = Smart Water Management pillar.
   ========================================================= */

/* ---- Fonts (self-hosted, IBM Plex family) ---- */
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plex-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plex-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-serif-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Serif';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plex-serif-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plex-serif-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plex-mono-500.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #eaf0ef;
  --ink: #131f2b;
  --ink-soft: #4c5d67;
  --ink-faint: #86969d;
  --border: #d7dfdd;
  --border-strong: #b9c6c5;

  --navy: #213144;          /* sampled directly from the logo file */
  --navy-deep: #111c27;
  --navy-tint: #e7ecf0;

  --accent: #b3742c;       /* copper — identity pillar / primary CTA */
  --accent-dark: #8f5b21;
  --accent-tint: #f5e9d9;

  --water: #2f7f8a;        /* teal — water pillar */
  --water-tint: #dcedee;

  --shadow-sm: 0 1px 2px rgba(16, 28, 39, 0.06);
  --shadow-md: 0 6px 24px rgba(16, 28, 39, 0.08);

  --maxw: 1160px;
  --maxw-narrow: 780px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1317;
    --surface: #111c22;
    --surface-2: #16232a;
    --ink: #e9f1f0;
    --ink-soft: #a9bcbe;
    --ink-faint: #718488;
    --border: #223038;
    --border-strong: #2e4148;

    --navy: #16222d;
    --navy-deep: #0b131b;
    --navy-tint: #1a2731;

    --accent: #d99a52;
    --accent-dark: #b3742c;
    --accent-tint: #2a2013;

    --water: #59b7bf;
    --water-tint: #12262a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

/* Explicit toggle (assets/js/main.js sets data-theme on <html>) wins over
   both the bare light defaults and the prefers-color-scheme block above. */
:root[data-theme="dark"] {
  --bg: #0b1317;
  --surface: #111c22;
  --surface-2: #16232a;
  --ink: #e9f1f0;
  --ink-soft: #a9bcbe;
  --ink-faint: #718488;
  --border: #223038;
  --border-strong: #2e4148;

  --navy: #16222d;
  --navy-deep: #0b131b;
  --navy-tint: #1a2731;

  --accent: #d99a52;
  --accent-dark: #b3742c;
  --accent-tint: #2a2013;

  --water: #59b7bf;
  --water-tint: #12262a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Theme-relevant properties cross-fade smoothly on toggle. */
html, body, .site-header, .site-footer, .card, .spec, .pillar-card, .hero,
.page-header, .nav-main, .dropdown, .form-status, .bento .tile, .benefit-col,
.footprint-map .spot, input, textarea, select, .btn-ghost {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  html, body, .site-header, .site-footer, .card, .spec, .pillar-card, .hero,
  .page-header, .nav-main, .dropdown, .form-status, .bento .tile, .benefit-col,
  .footprint-map .spot, input, textarea, select, .btn-ghost {
    transition: none;
  }
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plex Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-family: 'Plex Serif', Georgia, serif; font-weight: 600; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
::selection { background: var(--accent); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 76px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--surface); }
.section-border-top { border-top: 1px solid var(--border); }

.eyebrow {
  font-family: 'Plex Mono', ui-monospace, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 12px;
}
.eyebrow.copper { color: var(--accent); }
.eyebrow.teal { color: var(--water); }
.eyebrow.navy { color: var(--navy); }
@media (prefers-color-scheme: dark) {
  .eyebrow.navy { color: var(--ink-soft); }
}

h1.page-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2.section-title {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.15;
  margin-bottom: 14px;
}
h3.card-title { font-size: 18px; margin-bottom: 8px; }

.lede {
  font-family: 'Plex Serif', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
}
.section-intro {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 36px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-on-navy {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-on-navy:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ---- Header / nav ---- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }
.brand span {
  color: #fff;
  font-family: 'Plex Serif', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-main > li { position: relative; }
.nav-main a.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.nav-main a.nav-link:hover,
.nav-main li.active > a.nav-link {
  color: #fff;
  border-bottom-color: var(--accent);
}
.nav-main .caret { font-size: 10px; opacity: 0.7; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-main li:hover .dropdown,
.nav-main li.dropdown-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  color: var(--ink);
}
.dropdown a:hover { background: var(--surface-2); }
.dropdown a b { font-size: 14px; font-weight: 600; }
.dropdown a small { font-size: 12px; color: var(--ink-faint); font-weight: 400; }
.dropdown a b .tag {
  font-family: 'Plex Mono', monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  margin-left: 7px;
  vertical-align: middle;
  font-weight: 500;
}
.tag-copper { background: var(--accent-tint); color: var(--accent-dark); }
.tag-teal { background: var(--water-tint); color: var(--water); }

.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta .phone {
  color: rgba(255,255,255,0.75);
  font-family: 'Plex Mono', monospace;
  font-size: 12.5px;
  display: none;
  transition: color 0.15s ease;
}
.nav-cta .phone:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 1000px) {
  .nav-cta .phone { display: inline; }
}

@media (max-width: 940px) {
  .nav-main {
    position: absolute;
    top: 84px;
    right: 24px;
    width: 250px;
    max-height: calc(100vh - 90px);
    background: var(--navy-deep);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 6px 16px;
    overflow-y: auto;
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-6px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
  }
  body.nav-open .nav-main { opacity: 1; visibility: visible; transform: scale(1) translateY(0); }
  .nav-main a.nav-link { padding: 14px 2px; border-bottom: 1px solid rgba(255,255,255,0.12); border-radius: 0; font-size: 14px; }
  .nav-main li.active > a.nav-link { border-bottom-color: rgba(255,255,255,0.12); }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.15);
    margin-bottom: 8px;
  }
  li.dropdown-open .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,0.85); }
  .dropdown a:hover { background: rgba(255,255,255,0.06); }
  .dropdown a small { color: rgba(255,255,255,0.5); }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* ---- Hero ---- */
.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 88px 0 76px;
}
.hero h1 {
  color: #fff;
  max-width: 760px;
}
.hero .lede { color: rgba(255,255,255,0.72); max-width: 620px; margin-top: 16px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-plate {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,0.14);
  position: relative;
}
.hero-plate .cell {
  padding: 18px 20px;
  border-left: 1px solid rgba(255,255,255,0.14);
}
.hero-plate .cell:first-child { border-left: none; }
.hero-plate .k {
  font-family: 'Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.hero-plate .v { font-size: 14.5px; font-weight: 600; line-height: 1.4; color: #fff; }
@media (max-width: 760px) {
  .hero-plate { grid-template-columns: 1fr 1fr; }
  .hero-plate .cell:nth-child(3) { border-left: none; }
}

/* smaller page header (non-home) */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 58px 0 52px;
  position: relative;
  overflow: hidden;
}
.page-header .fingerprint-mark {
  top: 50%;
  right: -60px;
  width: 360px;
  height: 384px;
  transform: translateY(-50%);
}
.page-header h1 { color: #fff; }
.page-header .lede { color: rgba(255,255,255,0.72); margin-top: 14px; }
.breadcrumb {
  font-family: 'Plex Mono', monospace;
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: #fff; }

/* ---- Grids & cards ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 26px 24px;
}
.card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  border-top: 3px solid var(--border-strong);
}
.pillar-card.copper { border-top-color: var(--accent); }
.pillar-card.teal { border-top-color: var(--water); }
.pillar-card h3 { font-size: 21px; margin-bottom: 10px; }
.pillar-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; margin-bottom: 18px; }
.pillar-card .more { font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.pillar-card.copper .more { color: var(--accent); }
.pillar-card.teal .more { color: var(--water); }
.more .arrow { display: inline-block; transition: transform 0.2s ease; }
.more:hover .arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .more:hover .arrow { transform: none; } }
.pillar-card .preview-strip { display: flex; gap: 8px; margin-bottom: 20px; }
.pillar-card .preview-strip img {
  width: 76px; height: 76px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: transform 0.25s ease;
}
.pillar-card .preview-strip img:hover { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .pillar-card .preview-strip img:hover { transform: none; } }

/* competency / product grid item */
.feature {
  border-left: 2px solid var(--border-strong);
  padding: 4px 0 4px 18px;
  transition: border-left-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-left-color: var(--accent); transform: translateX(3px); }
.feature h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; font-family: 'Plex Sans'; }
.feature p { font-size: 13.8px; color: var(--ink-soft); line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .feature:hover { transform: none; } }

/* spec panel — used on solution detail pages */
.spec {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  margin-bottom: 20px;
}
.spec-head {
  padding: 16px 22px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.spec-head .name { font-weight: 600; font-size: 17px; }
.spec-head .code {
  font-family: 'Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-faint);
}
.spec-body { padding: 20px 22px 22px; }
.spec-body p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }
.spec-body ul { margin-top: 10px; }
.spec-body li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}
.spec-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  background: var(--accent);
}
.spec.teal .spec-body li::before { background: var(--water); }

/* benefits split */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .benefits { grid-template-columns: 1fr; } }
.benefit-col {
  border: 1px solid var(--border);
  padding: 22px 24px;
}
.benefit-col .who {
  font-family: 'Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.benefit-col li { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; padding-left: 15px; position: relative; }
.benefit-col li::before { content: "—"; position: absolute; left: 0; color: var(--ink-faint); }

/* footprint / project cards */
.footprint-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (max-width: 760px) { .footprint-map { grid-template-columns: 1fr 1fr; } }
.footprint-map .spot {
  background: var(--surface);
  padding: 24px 22px;
}
.footprint-map .spot .town {
  font-family: 'Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.footprint-map .spot h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.footprint-map .spot p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.footprint-map .spot.hq { background: var(--navy); }
.footprint-map .spot.hq .town { color: rgba(255,255,255,0.6); }
.footprint-map .spot.hq h4, .footprint-map .spot.hq p { color: #fff; }
.footprint-map .spot.hq p { color: rgba(255,255,255,0.72); }

/* quote / statement band */
.statement {
  background: var(--navy);
  color: #fff;
  padding: 64px 0;
}
.statement blockquote {
  font-family: 'Plex Serif', Georgia, serif;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.5;
  font-weight: 500;
  max-width: 780px;
  margin: 0;
  text-wrap: balance;
}
.statement cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-family: 'Plex Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* CTA band */
.cta-band {
  background: var(--accent-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 10px; }
.cta-band p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 26px; font-size: 15px; }
.cta-band .btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* table of standards / partners list */
.partner-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 20px;
  margin: 0 -20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  transition: background-color 0.15s ease;
}
.partner-row:hover { background: var(--surface-2); }
.partner-row:last-child { border-bottom: none; }
.partner-row .label {
  font-family: 'Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  min-width: 160px;
}
.partner-row .txt { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; flex: 1; min-width: 240px; }
.partner-row .txt b { color: var(--ink); }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 11px 13px;
  font-size: 14.5px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }
.form-status {
  margin-bottom: 18px;
  padding: 14px 16px;
  font-size: 14px;
  border: 1px solid;
}
.form-status.ok { background: var(--water-tint); border-color: var(--water); color: var(--ink); }
.form-status.err { background: #fbeae7; border-color: #b3402c; color: var(--ink); }
@media (prefers-color-scheme: dark) { .form-status.err { background: #2a1712; } }

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.contact-line:last-child { border-bottom: none; }
.contact-line .ico { color: var(--accent); font-family: 'Plex Mono', monospace; font-size: 13px; width: 20px; flex-shrink: 0; }
.contact-line a:hover { color: var(--accent); }

/* conditional / note box */
.note-box {
  border: 1px dashed var(--border-strong);
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.note-box b { color: var(--ink); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.65); }
.footer-top {
  padding-top: 56px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
.footer-top .brand { margin-bottom: 14px; }
.footer-top p { font-size: 13.5px; line-height: 1.7; max-width: 320px; }
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  color: rgba(255,255,255,0.72);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-social svg { width: 22px; height: 22px; }
.footer-social:hover,
.footer-social:focus-visible { color: #fff; border-color: rgba(255,255,255,0.5); }
.footer-col h5 {
  font-family: 'Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color 0.15s ease, background-size 0.2s ease;
}
.footer-col a:hover { color: #fff; background-size: 100% 1px; }
@media (prefers-reduced-motion: reduce) { .footer-col a { transition: color 0.15s ease; } }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 42px;
  padding-top: 18px;
  padding-bottom: 18px;
  color: rgba(255,255,255,0.4);
  font-family: 'Plex Mono', monospace;
}
.footer-bottom > p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* "Developed by" credit */
.footer-bottom .footer-dev-link {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}
.footer-dev-link:hover,
.footer-dev-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* =========================================================
   V2 — theme toggle, scroll reveal, bento grid, glass,
   asymmetric split, micro-feedback, photo hero, geo map.
   ========================================================= */

/* ---- Theme toggle button ---- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: rgba(255,255,255,0.5); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(.2,.7,.2,1), transform 0.65s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Glassmorphism (used on chrome sitting over photos/navy, both themes) ---- */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-color: rgba(255,255,255,0.16) !important;
}
.site-header.scrolled {
  background: rgba(16,28,39,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* ---- Micro-feedback ---- */
.btn { transform: translateZ(0); }
.btn:active { transform: scale(0.96); }
.pillar-card, .card, .spec, .bento .tile, .benefit-col { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.pillar-card:hover, .bento .tile:hover, .card:hover, .benefit-col:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) {
  .pillar-card:hover, .bento .tile:hover, .card:hover, .benefit-col:hover { transform: none; }
}

@media (min-width: 941px) {
  .nav-main a.nav-link { border-bottom-color: transparent; position: relative; }
  .nav-main a.nav-link::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 6px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }
  .nav-main a.nav-link:hover::after,
  .nav-main li.active > a.nav-link::after { transform: scaleX(1); }
}

.form-status.ok { animation: statusIn 0.35s ease; }
@keyframes statusIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .form-status.ok { animation: none; }
  .pillar-card:hover, .bento .tile:hover { transform: none; }
  .btn:active { transform: none; }
}

/* ---- Large typography (hero gets its own bigger scale) ---- */
.hero h1.page-title {
  font-size: clamp(38px, 6.2vw, 68px);
  letter-spacing: -0.015em;
}

/* ---- Asymmetric split layout ---- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split.reverse > *:first-child { order: 2; }
.split .imgwrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
}
.split .imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.split .imgwrap:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .split .imgwrap:hover img { transform: none; } }
.split .imgwrap .tag {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(16,28,39,0.72);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: 'Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 11px;
}
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > *:first-child { order: 0; }
}

/* ---- Bento grid ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento .tile {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.bento .tile.c2 { grid-column: span 2; }
.bento .tile.c3 { grid-column: span 3; }
.bento .tile.c4 { grid-column: span 4; }
.bento .tile.c6 { grid-column: span 6; }
.bento .tile.r2 { grid-row: span 2; }
.bento .tile h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 8px; }
.bento .tile p { font-size: 13.8px; color: var(--ink-soft); line-height: 1.6; }
.bento .tile .big-stat {
  font-family: 'Plex Serif', Georgia, serif;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--accent);
}
.bento .tile.photo { padding: 0; }
.bento .tile.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.bento .tile.photo:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .bento .tile.photo:hover img { transform: none; } }
/* Grid auto-row height is indefinite, so a plain height:100% on the image
   collapses unpredictably (it falls back to intrinsic aspect ratio at full
   width). Give every photo tile an explicit ratio instead — definite, no
   dependency on sibling row heights. */
.bento .tile.photo.ar-tall { aspect-ratio: 4 / 5; }
.bento .tile.photo.ar-standard { aspect-ratio: 4 / 3.2; }
.bento .tile.photo.ar-square { aspect-ratio: 1 / 1; }
.bento .tile.photo.ar-wide { aspect-ratio: 16 / 6; }
.bento .tile.photo.ar-tall img,
.bento .tile.photo.ar-standard img,
.bento .tile.photo.ar-square img,
.bento .tile.photo.ar-wide img { height: 100%; }
.bento .tile.photo .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(10,20,25,0.88));
  color: #fff;
}
.bento .tile.photo .cap h4 { color: #fff; margin-bottom: 4px; }
.bento .tile.photo .cap p { color: rgba(255,255,255,0.78); font-size: 13px; }

/* ---- Slideshow (image gallery with one consistent height) ---- */
.slideshow { border: 1px solid var(--border); background: var(--surface); }
.slideshow-viewport { position: relative; overflow: hidden; height: 480px; }
.slideshow-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}
.slide { position: relative; flex: 0 0 100%; height: 100%; background: var(--surface-2); }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide.contain img { object-fit: contain; padding: 40px; box-sizing: border-box; }
.slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 32px 24px;
  background: linear-gradient(transparent, rgba(10,20,25,0.86) 65%);
  color: #fff;
}
.slide.contain .slide-cap { background: linear-gradient(transparent, rgba(10,20,25,0.5) 85%); }
.slide-cap h4 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.slide-cap p { color: rgba(255,255,255,0.82); font-size: 14px; line-height: 1.55; max-width: 520px; }

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,28,39,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.32);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.slide-nav svg { width: 20px; height: 20px; }
.slide-nav:hover { background: rgba(16,28,39,0.8); border-color: #fff; }
.slide-nav.prev { left: 16px; }
.slide-nav.next { right: 16px; }

.slide-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--border);
}
.dot {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.dot:hover { background: var(--accent); }
.dot.is-active { background: var(--accent); transform: scale(1.35); }

@media (max-width: 700px) {
  .slideshow-viewport { height: 340px; }
  .slide-cap { padding: 20px 20px 18px; }
  .slide-cap h4 { font-size: 17px; }
  .slide-nav { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .slideshow-track { transition: none; }
  .dot.is-active { transform: none; }
}
.bento .tile.navy { background: var(--navy); border-color: var(--navy); }
.bento .tile.navy h4, .bento .tile.navy .big-stat { color: #fff; }
.bento .tile.navy p { color: rgba(255,255,255,0.68); }
.tile-sector-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tile-sector-list li {
  padding-left: 14px;
  border-left: 2px solid rgba(255,255,255,0.3);
}
.tile-sector-list li.copper { border-left-color: var(--accent); }
.tile-sector-list li.teal { border-left-color: var(--water); }
.tile-sector-list b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 3px;
}
.tile-sector-list span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .tile.c2, .bento .tile.c3, .bento .tile.c4, .bento .tile.c6 { grid-column: span 2; }
  /* Below this width every tile goes full-width and stacks into its own
     row, so a photo tile with no ar-* class (sized to match a sibling's
     height at wider widths — see .bento .tile.photo img above) no longer
     has a sibling to match. Give it a sane ratio of its own here instead. */
  .bento .tile.photo:not(.ar-tall):not(.ar-standard):not(.ar-square):not(.ar-wide) {
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .tile { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* ---- Photo hero ---- */
.hero.has-photo {
  background-size: cover;
  background-position: center;
}
.hero.has-photo::before {
  background:
    linear-gradient(175deg, rgba(11,19,26,0.94) 8%, rgba(16,28,39,0.86) 45%, rgba(11,19,26,0.96) 100%);
}

/* ---- Decorative fingerprint watermark ---- */
.fingerprint-mark {
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
}

/* ---- Geo / footprint map ---- */
.geo-map { position: relative; }
.geo-map svg { width: 100%; height: auto; display: block; }
.geo-map .geo-outline { fill: none; stroke: var(--border-strong); stroke-width: 2.5; stroke-dasharray: 5 5; }
.geo-map .geo-outline-real { fill: var(--border-strong); }
.geo-map .geo-pin-dot { fill: var(--accent); }
.geo-map .geo-pin-hq { fill: var(--water); }
.geo-map .geo-pin-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  transform-origin: center;
  transform-box: fill-box;
  animation: geoPulse 2.6s ease-out infinite;
}
.geo-map .geo-pin-pulse.hq { stroke: var(--water); }
.geo-map .geo-label {
  font-family: 'Plex Mono', monospace;
  font-size: 15px;
  fill: var(--ink);
}
.geo-map .geo-sub {
  font-family: 'Plex Sans', sans-serif;
  font-size: 12.5px;
  fill: var(--ink-faint);
}
.geo-point { cursor: default; }
.geo-point .geo-pin-dot, .geo-point .geo-pin-hq { transition: r 0.2s ease; }
.geo-point:hover .geo-pin-dot, .geo-point:hover .geo-pin-hq { r: 9; }
.geo-point .geo-label { transition: fill 0.2s ease; }
.geo-point:hover .geo-label { fill: var(--accent); }
.geo-point.hq:hover .geo-label { fill: var(--water); }
@media (prefers-reduced-motion: reduce) {
  .geo-point:hover .geo-pin-dot, .geo-point:hover .geo-pin-hq { r: 7; }
}
.geo-map-compact {
  max-width: 460px;
  margin: 0 auto;
}
.geo-map-credit {
  margin: 8px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink-faint);
}
.geo-map-credit a { color: var(--ink-faint); text-decoration: underline; }
.geo-map-credit a:hover { color: var(--accent); }
@keyframes geoPulse {
  0% { r: 8; opacity: 0.55; }
  100% { r: 24; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .geo-map .geo-pin-pulse { animation: none; opacity: 0; }
}
