@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&text=%26&display=swap");
/* ============================================================
   North Country Data Works, design system
   Palette per dataviz skill reference (light mode).
   Industrial/technical aesthetic: sharp corners, hairline+hard
   shadow cards, monospace spec-labels, section/card numbering.
   ============================================================ */

:root {
  --page-plane:      #f9f9f7;
  --surface-1:       #fcfcfb;
  --surface-2:       #ffffff;
  --surface-3:       #eef2f6;
  --ink-primary:     #0b0b0b;
  --ink-secondary:   #52514e;
  --ink-muted:       #898781;
  --hairline:        #e1e0d9;
  --baseline:        #c3c2b7;
  --border-ring:      rgba(11,11,11,0.10);

  --series-blue:     #3b6ea8;
  --series-orange:   #c8553d;
  --series-aqua:     #0e9f8e;
  --series-yellow:   #e8a33d;

  --accent:          var(--series-blue);
  --accent-dark:     #2a5283;

  --ink-on-dark:     #ffffff;
  --dark-plane:      #1e2a36;
  --dark-surface:    #14171c;
  --dark-secondary:  #c3c2b7;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --max-width: 1180px;

  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Source Serif 4", "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-plane);
  color: var(--ink-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top accent rule ---------- */

.accent-rule {
  height: 4px;
  background: linear-gradient(90deg,
    var(--series-blue) 0%, var(--series-blue) 33.33%,
    var(--series-orange) 33.33%, var(--series-orange) 66.66%,
    var(--series-aqua) 66.66%, var(--series-aqua) 100%);
}

/* ---------- Header / nav ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    radial-gradient(120% 180% at 6% 0%, rgba(59,110,168,0.09) 0%, rgba(59,110,168,0) 55%),
    radial-gradient(80% 160% at 92% 0%, rgba(200,85,61,0.08) 0%, rgba(200,85,61,0) 55%),
    rgba(249,249,247,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--ink-primary);
  box-shadow: 0 8px 18px -14px rgba(11,11,11,0.35);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand .brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav.primary-nav a { white-space: nowrap; }
.brand .brand-text { white-space: nowrap; }

nav.primary-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 8px 1px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

nav.primary-nav a:hover,
nav.primary-nav a.active {
  color: var(--ink-primary);
  border-bottom-color: var(--series-orange);
}

nav.primary-nav a.nav-cta {
  background: var(--ink-primary);
  color: #fff !important;
  padding: 12px 48px;
  min-width: max-content;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: none !important;
  margin-left: 14px;
  margin-right: 6px;
  box-shadow: 3px 3px 0 rgba(11,11,11,0.12);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.nav-cta:hover {
  background: var(--series-orange);
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 rgba(11,11,11,0.16);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink-primary);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-primary);
  margin: 4px 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 60px 0 68px;
  background-color: var(--dark-plane);
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--ink-on-dark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 140%;
  background:
    radial-gradient(circle at 60% 30%, rgba(59,110,168,0.35), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(200,85,61,0.28), transparent 55%);
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
}
.hero h1 .hl {
  color: var(--series-orange);
}

/* faint real physics/engineering notation, texture, not decoration */
.formula-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.16);
  letter-spacing: 0.01em;
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--series-orange);
  margin-bottom: 14px;
}
.hero .eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--series-orange);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}

.hero p.lead {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--dark-secondary);
  max-width: 46ch;
  margin: 0 0 26px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, background .15s, border-color .15s;
}
.btn-primary {
  background: var(--series-orange); color: #fff;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.35);
}
.btn-primary:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 rgba(0,0,0,0.35); }
.btn-ghost {
  background: var(--series-blue);
  border-color: var(--series-blue);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.35);
}
.btn-ghost:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 rgba(0,0,0,0.35); background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-dark {
  background: var(--ink-primary); color: #fff;
  box-shadow: 3px 3px 0 rgba(11,11,11,0.18);
}
.btn-dark:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 rgba(11,11,11,0.18); background: var(--series-orange); }

.hero-art { position: relative; z-index: 2; }
.hero-art svg { width: 100%; height: auto; }

/* corner-bracket frame for image blocks */
.framed { position: relative; }
.framed::before, .framed::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  z-index: 3;
  pointer-events: none;
}
.framed::before {
  top: -7px; left: -7px;
  border-top: 2px solid var(--series-orange);
  border-left: 2px solid var(--series-orange);
}
.framed::after {
  bottom: -7px; right: -7px;
  border-bottom: 2px solid var(--series-orange);
  border-right: 2px solid var(--series-orange);
}

/* ---------- Section scaffolding ---------- */

section { padding: 76px 0; }
section.tight {
  padding: 52px 0;
  background:
    radial-gradient(85% 150% at 100% 0%, rgba(59,110,168,0.08) 0%, rgba(59,110,168,0) 55%),
    radial-gradient(70% 130% at 0% 100%, rgba(14,159,142,0.09) 0%, rgba(14,159,142,0) 55%),
    var(--surface-3);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
section.alt {
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(59,110,168,0.06) 0%, rgba(59,110,168,0) 55%),
    radial-gradient(70% 130% at 100% 100%, rgba(200,85,61,0.05) 0%, rgba(200,85,61,0) 55%),
    var(--surface-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
  counter-increment: sec;
}
.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.section-head .kicker::before {
  content: "0" counter(sec) " · ";
  color: var(--ink-muted);
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  line-height: 1.16;
}
.section-head p {
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

main, body { counter-reset: sec; }

/* ---------- Feature grid / cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: card;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  counter-reset: card;
}

.card {
  position: relative;
  background: var(--surface-1);
  border: 1.5px solid var(--ink-primary);
  border-radius: var(--radius-sm);
  padding: 26px;
  box-shadow: 3px 3px 0 rgba(11,11,11,0.06);
  counter-increment: card;
  transition: box-shadow .15s, transform .15s;
  overflow: hidden;
}
.card:hover { box-shadow: 5px 5px 0 rgba(11,11,11,0.10); transform: translate(-1px,-1px); }
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--series-blue);
}
.grid-3 .card:nth-of-type(2)::after,
.grid-2 .card:nth-of-type(2)::after { background: var(--series-orange); }
.grid-3 .card:nth-of-type(3)::after,
.grid-2 .card:nth-of-type(3)::after { background: var(--series-aqua); }
.card::before {
  content: "0" counter(card);
  position: absolute;
  top: 12px; right: 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.card::before { content: none !important; }
.card .icon-badge {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
}
.card .icon-badge svg { width: 44px; height: 44px; }
.icon-badge.tint-blue   { background: rgba(59,110,168,0.12); }
.icon-badge.tint-orange { background: rgba(200,85,61,0.12); }
.icon-badge.tint-aqua   { background: rgba(14,159,142,0.12); }
.icon-badge.tint-yellow { background: rgba(14,159,142,0.12); }
.card h3 {
  font-size: 1.04rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  padding-right: 24px;
}
.card p {
  color: var(--ink-secondary);
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Visual band (image-forward blocks) ---------- */

.visual-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.visual-band.reverse .visual-copy { order: 2; }
.visual-band .visual-art {
  background: var(--dark-plane);
  border: 1.5px solid var(--ink-primary);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.visual-band .visual-art.light {
  position: relative;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(59,110,168,0.07) 0%, rgba(59,110,168,0) 55%),
    var(--surface-1);
  overflow: hidden;
}
.visual-band .visual-art.light::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--series-blue), var(--series-aqua));
}
.visual-copy h3 {
  font-size: 1.4rem;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.visual-copy p {
  color: var(--ink-secondary);
  line-height: 1.6;
  margin: 0 0 14px;
}
.visual-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.visual-copy li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  color: var(--ink-secondary);
  font-size: 0.93rem;
  border-top: 1px solid var(--hairline);
}
.visual-copy li:first-child { border-top: none; }
.visual-copy li .dot {
  width: 6px; height: 6px;
  background: var(--series-orange);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1.5px solid var(--ink-primary);
  border-bottom: 1.5px solid var(--ink-primary);
  padding: 32px 0;
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 5px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Use-case page bits ---------- */

.pillar-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.pillar {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}
.pillar:first-child { border-top: none; }
.pillar .num-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--page-plane);
  border: 1.5px solid var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
}
.pillar h4 { margin: 0 0 5px; font-size: 1.02rem; font-family: var(--font-head); }
.pillar p { margin: 0; color: var(--ink-secondary); font-size: 0.93rem; line-height: 1.55; }

.callout {
  background: var(--surface-2);
  border: 1.5px solid var(--ink-primary);
  border-left: 4px solid var(--series-orange);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.callout strong { color: var(--ink-primary); }

/* ---------- CTA band ---------- */

.cta-band {
  background-color: var(--dark-plane);
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  color: #fff;
  border: 1.5px solid var(--ink-primary);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 12px; font-size: 1.7rem; letter-spacing: -0.015em; }
.cta-band p { color: var(--dark-secondary); margin: 0 0 22px; font-size: 1rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Placeholder pages ---------- */

.placeholder-box {
  border: 1.5px dashed var(--baseline);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  padding: 32px;
}
.placeholder-box .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--series-orange);
  background: rgba(200,85,61,0.08);
  border: 1px solid rgba(200,85,61,0.3);
  padding: 4px 9px;
  border-radius: 2px;
  margin-bottom: 14px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-card {
  background: var(--surface-2);
  border: 1.5px solid var(--ink-primary);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 3px 3px 0 rgba(11,11,11,0.06);
}
.contact-card h3 { margin: 0 0 8px; }
.contact-card p { color: var(--ink-secondary); margin: 0 0 18px; line-height: 1.55; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-primary);
  border: 1.5px solid var(--ink-primary);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
}
.contact-email:hover { border-color: var(--series-orange); color: var(--series-orange); }

/* ---------- Footer ---------- */

footer.site-footer {
  position: relative;
  border-top: 1.5px solid var(--ink-primary);
  padding: 40px 0 26px;
  background: var(--surface-1);
}
footer.site-footer::before {
  content: "";
  position: absolute;
  top: -1.5px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--series-blue) 0%, var(--series-blue) 33.33%,
    var(--series-orange) 33.33%, var(--series-orange) 66.66%,
    var(--series-aqua) 66.66%, var(--series-aqua) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.footer-grid a, .footer-grid p {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin-bottom: 9px;
  line-height: 1.5;
}
.footer-grid a:hover { color: var(--series-orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Home: hero + value strip fit above the fold ---------- */

.hero.hero-compact { padding: 28px 0; }
.hero-compact .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 44px; }
.hero-compact h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.hero-compact p.lead { font-size: 1rem; margin-bottom: 20px; max-width: 60ch; }
.hero-compact .hero-art { max-width: none; width: 100%; justify-self: stretch; }
.hero-compact .hero-art img { width: 100%; height: clamp(260px, calc(100vh - 471px), 560px); max-height: none; object-fit: cover; object-position: 55% 12%; }

section.value-strip {
  padding: 22px 0 28px;
  background: #243140;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.25);
}
.value-strip .section-head h2 { color: #ffffff; }
.value-strip .section-head p { color: #c7d0da; }
.value-strip .card { background: #ffffff; box-shadow: 4px 4px 0 rgba(0,0,0,0.30); }
.value-strip .section-head { margin-bottom: 18px; }
.value-strip .section-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 4px; }
.value-strip .card { padding: 24px 26px; }
.value-strip .card .icon-badge { width: 56px; height: 56px; margin-bottom: 0; float: left; margin-right: 16px; }
.value-strip .card .icon-badge img { width: 56px; height: 56px; }
.value-strip .card h3 { min-height: 56px; display: flex; align-items: center; margin-bottom: 10px; font-size: 1.15rem; }
.value-strip .card p { font-size: 1rem; line-height: 1.55; }
.value-strip .grid-3 { gap: 26px; }
.value-strip .card p { clear: both; }

@media (min-width: 901px) and (max-height: 720px) {
  .hero.hero-compact { padding: 16px 0; }
  .hero-compact h1 { font-size: 1.8rem; margin-bottom: 6px; }
  .hero-compact p.lead { font-size: 0.95rem; line-height: 1.45; margin-bottom: 14px; }
  .hero-compact .hero-art img { height: calc(100vh - 364px); min-height: 200px; }
  section.value-strip { padding: 12px 0 16px; }
  .value-strip .section-head { margin-bottom: 10px; }
  .value-strip .section-head h2 { font-size: 1.25rem; }
  .value-strip .card { padding: 12px 16px; }
  .value-strip .card h3 { margin-bottom: 4px; }
  .value-strip .card p { line-height: 1.45; font-size: 0.9rem; }
}


/* ---------- Site-wide alternating dark bands: grid / gray ---------- */

body > section {
  --ink-primary: #ffffff;
  --ink-secondary: #c7d0da;
  --ink-muted: #8e9aa6;
  --hairline: rgba(255,255,255,0.12);
  --baseline: rgba(255,255,255,0.30);
  color: var(--ink-primary);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.25);
}
body > section:nth-of-type(odd) {
  background-color: #1e2a36;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
body > section:nth-of-type(even) {
  background: #243140;
}
/* light surfaces inside the dark bands keep the original dark-on-light ink */
body > section .card,
body > section .contact-card,
body > section .callout,
body > section .visual-art.light {
  --ink-primary: #0b0b0b;
  --ink-secondary: #52514e;
  --ink-muted: #898781;
  --hairline: #e1e0d9;
  color: var(--ink-primary);
  background: #ffffff;
  border-color: #0b0b0b;
}
body > section .card,
body > section .contact-card { box-shadow: 4px 4px 0 rgba(0,0,0,0.30); }
body > section .visual-art.light { border-color: rgba(255,255,255,0.25); }
body > section .btn-dark { background: #ffffff; color: #1e2a36; }
body > section .btn-dark:hover { background: var(--series-orange); color: #fff; }
body > section .card .btn-dark { background: #0b0b0b; color: #fff; }
body > section .card .btn-dark:hover { background: var(--series-orange); }
body > section .placeholder-box {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.28);
}
body > section .pillar .num-badge {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #ffffff;
}
body > section .cta-band { border-color: rgba(255,255,255,0.22); background-color: #1a2430; }
body > section .contact-email { color: var(--ink-primary); border-color: var(--ink-primary); }

@media (min-width: 1221px) {
  .brand .brand-text small { display: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; margin: 0 auto 4px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .visual-band { grid-template-columns: 1fr; gap: 28px; }
  .visual-band.reverse .visual-copy { order: 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1220px) {
  nav.primary-nav { display: none; }
  .menu-toggle { display: block; }
  nav.primary-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface-1); border-bottom: 1.5px solid #0b0b0b; padding: 14px 24px 20px; gap: 4px; align-items: flex-start;
  }
  nav.primary-nav.open a.nav-cta { margin-left: 0; margin-top: 6px; }
}

@media (max-width: 720px) {
  nav.primary-nav { display: none; }
  .menu-toggle { display: block; }
  nav.primary-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--surface-1);
    border-bottom: 1.5px solid var(--ink-primary);
    padding: 14px 24px 20px;
    gap: 4px;
    align-items: flex-start;
  }
  nav.primary-nav.open .nav-cta {
    margin-left: 0;
    margin-top: 6px;
  }
  .hero { padding: 44px 0 52px; }
  section { padding: 44px 0; }
  .cta-band { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Home hero: photo bleeds off the right edge (option B, 2026-09-28) ---------- */
.hero.hero-compact.hero-bleed { padding: 0; }
.hero.hero-bleed::before { display: none; }
.hero-bleed .bleed-inner {
  position: relative;
  min-height: clamp(316px, calc(100vh - 415px), 616px);
  display: flex;
  align-items: center;
}
.hero-bleed .bleed-photo {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 60%;
  background: url("../assets/img/hero-photo.jpg") 72% 32% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.hero-bleed .wrap { position: relative; z-index: 2; width: 100%; }
.hero-bleed .bleed-copy { max-width: 540px; padding-block: 28px; }
.hero-bleed p.lead { color: #dbe2ea; }

@media (min-width: 901px) and (max-height: 720px) {
  .hero-bleed .bleed-inner { min-height: calc(100vh - 332px); }
  .hero-bleed .bleed-copy { padding-block: 16px; }
}
@media (max-width: 900px) {
  .hero-bleed .bleed-inner { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-bleed .bleed-photo {
    position: relative; width: 100%; height: 240px;
    background-position: 70% 30%;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .hero-bleed .bleed-copy { max-width: none; padding-block: 8px 28px; }
}

/* ---------- Home: value tiles + feature tiles share one band (2026-09-28) ---------- */
body > section.band-solid { background: #243140; }
body > section.band-grid {
  background-color: #1e2a36;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
section.value-strip:has(+ section.join-above) { border-bottom: 0; }
body > section.join-above { border-top: 0; padding-top: 8px; }

/* ---------- Inner-page photo hero (Prebuild, 2026-09-28) ---------- */
.hero.hero-bleed-page { padding: 0; }
.hero-bleed-page .bleed-inner { min-height: clamp(380px, 36vw, 500px); }
.hero-bleed-page .bleed-copy { padding-block: 44px; }
.hero-bleed-page h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
@media (max-width: 900px) {
  .hero-bleed-page .bleed-inner { min-height: 0; }
  .hero-bleed-page .bleed-copy { padding-block: 8px 32px; }
}

/* Home hero: concave exponential left-edge fade, (1 - e^-4t)/(1 - e^-4), 0% at the photo's left edge, solid by 40% (2026-09-28) */
@media (min-width: 901px) {
  .hero-compact.hero-bleed .bleed-photo {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.225) 2.5%, rgba(0,0,0,0.401) 5.0%, rgba(0,0,0,0.537) 7.5%, rgba(0,0,0,0.644) 10.0%, rgba(0,0,0,0.727) 12.5%, rgba(0,0,0,0.791) 15.0%, rgba(0,0,0,0.842) 17.5%, rgba(0,0,0,0.881) 20.0%, rgba(0,0,0,0.911) 22.5%, rgba(0,0,0,0.935) 25.0%, rgba(0,0,0,0.954) 27.5%, rgba(0,0,0,0.968) 30.0%, rgba(0,0,0,0.979) 32.5%, rgba(0,0,0,0.988) 35.0%, rgba(0,0,0,0.995) 37.5%, rgba(0,0,0,1.000) 40.0%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.225) 2.5%, rgba(0,0,0,0.401) 5.0%, rgba(0,0,0,0.537) 7.5%, rgba(0,0,0,0.644) 10.0%, rgba(0,0,0,0.727) 12.5%, rgba(0,0,0,0.791) 15.0%, rgba(0,0,0,0.842) 17.5%, rgba(0,0,0,0.881) 20.0%, rgba(0,0,0,0.911) 22.5%, rgba(0,0,0,0.935) 25.0%, rgba(0,0,0,0.954) 27.5%, rgba(0,0,0,0.968) 30.0%, rgba(0,0,0,0.979) 32.5%, rgba(0,0,0,0.988) 35.0%, rgba(0,0,0,0.995) 37.5%, rgba(0,0,0,1.000) 40.0%);
  }
}

/* ML Training Data hero: text + original graded-scenario graphic (2026-09-28) */
.hero.hero-ml { padding: 44px 0 40px; }
.hero-ml .hero-grid { grid-template-columns: 0.9fr 1.1fr; gap: 36px; }
.hero-ml h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.hero-ml .ml-art img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero-ml .hero-grid { grid-template-columns: 1fr; }
  .hero-ml .ml-art { order: 0; max-width: 100%; margin: 8px 0 0; }
}

/* ML Training Data hero: ECCO2 ocean image (2026-09-28): right-edge bleed, centered horizontally, 100% of the hero
   height, image top 45px below the hero top. Top: smoothstep fade-in (45px -> 95px). Left: home-page concave
   exponential fade. Bottom: smoothstep fade 81% -> 93% of the hero, reaching 0 above the original's
   date/credit/legend band. */
.hero.hero-ml-photo .bleed-photo {
  background: url("../assets/img/ecco2-ocean.jpg") center top 45px / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.225) 2.5%, rgba(0,0,0,0.401) 5.0%, rgba(0,0,0,0.537) 7.5%, rgba(0,0,0,0.644) 10.0%, rgba(0,0,0,0.727) 12.5%, rgba(0,0,0,0.791) 15.0%, rgba(0,0,0,0.842) 17.5%, rgba(0,0,0,0.881) 20.0%, rgba(0,0,0,0.911) 22.5%, rgba(0,0,0,0.935) 25.0%, rgba(0,0,0,0.954) 27.5%, rgba(0,0,0,0.968) 30.0%, rgba(0,0,0,0.979) 32.5%, rgba(0,0,0,0.988) 35.0%, rgba(0,0,0,0.995) 37.5%, rgba(0,0,0,1.000) 40.0%), linear-gradient(180deg, transparent 0px, rgba(0,0,0,0.000) 45.0px, rgba(0,0,0,0.043) 51.2px, rgba(0,0,0,0.156) 57.5px, rgba(0,0,0,0.316) 63.8px, rgba(0,0,0,0.500) 70.0px, rgba(0,0,0,0.684) 76.2px, rgba(0,0,0,0.844) 82.5px, rgba(0,0,0,0.957) 88.8px, rgba(0,0,0,1.000) 95.0px, rgba(0,0,0,1.000) 81.0%, rgba(0,0,0,0.957) 82.5%, rgba(0,0,0,0.844) 84.0%, rgba(0,0,0,0.684) 85.5%, rgba(0,0,0,0.500) 87.0%, rgba(0,0,0,0.316) 88.5%, rgba(0,0,0,0.156) 90.0%, rgba(0,0,0,0.043) 91.5%, rgba(0,0,0,0.000) 93.0%, transparent 100%); -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.225) 2.5%, rgba(0,0,0,0.401) 5.0%, rgba(0,0,0,0.537) 7.5%, rgba(0,0,0,0.644) 10.0%, rgba(0,0,0,0.727) 12.5%, rgba(0,0,0,0.791) 15.0%, rgba(0,0,0,0.842) 17.5%, rgba(0,0,0,0.881) 20.0%, rgba(0,0,0,0.911) 22.5%, rgba(0,0,0,0.935) 25.0%, rgba(0,0,0,0.954) 27.5%, rgba(0,0,0,0.968) 30.0%, rgba(0,0,0,0.979) 32.5%, rgba(0,0,0,0.988) 35.0%, rgba(0,0,0,0.995) 37.5%, rgba(0,0,0,1.000) 40.0%), linear-gradient(180deg, transparent 0px, rgba(0,0,0,0.000) 45.0px, rgba(0,0,0,0.043) 51.2px, rgba(0,0,0,0.156) 57.5px, rgba(0,0,0,0.316) 63.8px, rgba(0,0,0,0.500) 70.0px, rgba(0,0,0,0.684) 76.2px, rgba(0,0,0,0.844) 82.5px, rgba(0,0,0,0.957) 88.8px, rgba(0,0,0,1.000) 95.0px, rgba(0,0,0,1.000) 81.0%, rgba(0,0,0,0.957) 82.5%, rgba(0,0,0,0.844) 84.0%, rgba(0,0,0,0.684) 85.5%, rgba(0,0,0,0.500) 87.0%, rgba(0,0,0,0.316) 88.5%, rgba(0,0,0,0.156) 90.0%, rgba(0,0,0,0.043) 91.5%, rgba(0,0,0,0.000) 93.0%, transparent 100%); mask-composite: intersect;
}
@media (max-width: 900px) {
  .hero.hero-ml-photo .bleed-photo {
    background: url("../assets/img/ecco2-ocean.jpg") 50% 0 / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 66%, transparent 86%); mask-image: linear-gradient(180deg, #000 66%, transparent 86%);
  }
}

/* Header "Get in touch": brick (rust) so it stands out; darker brick on hover (2026-09-28) */
nav.primary-nav a.nav-cta { background: var(--series-orange); box-shadow: 3px 3px 0 rgba(11,11,11,0.22); }
nav.primary-nav a.nav-cta:hover { background: #a8432e; }

/* Uniform above-the-fold layout on Prebuild & ML (2026-09-28): same compact hero + value-strip tiles as Home.
   The hero height leaves room for each page's tile row, which is taller than Home's. */
.hero-bleed.fit-prebuild .bleed-inner { min-height: clamp(300px, calc(100vh - var(--below-prebuild, 386px)), 616px); }
.hero-bleed.fit-ml .bleed-inner { min-height: clamp(300px, calc(100vh - var(--below-ml, 436px)), 616px); }
@media (min-width: 901px) and (max-height: 820px) {
  .hero-bleed.fit-prebuild .bleed-copy, .hero-bleed.fit-ml .bleed-copy { padding-block: 14px; }
  .fit-prebuild.hero-compact p.lead, .fit-ml.hero-compact p.lead { margin-bottom: 0; }
}

/* Contact form (Web3Forms), replaces the public email address (2026-09-29) */
.contact-grid-form { grid-template-columns: 1.6fr 1fr; align-items: start; }
.contact-form { display: grid; gap: 14px; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .field-row > * { min-width: 0; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; color: #0b0b0b; }
.contact-form .opt { font-weight: 400; color: #898781; font-size: 0.82rem; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; font-size: 0.98rem; color: #0b0b0b; background: #ffffff;
  border: 1.5px solid #c3c2b7; border-radius: var(--radius-sm); padding: 10px 12px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #3b6ea8; outline-offset: 1px; border-color: #3b6ea8; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact-form .form-status { margin: 0; font-size: 0.92rem; }
.contact-form .form-status.ok { color: #0b7a6d; }
.contact-form .form-status.err { color: #a8432e; }
.contact-form button[disabled] { opacity: 0.6; cursor: default; }
@media (max-width: 900px) {
  .contact-grid-form { grid-template-columns: 1fr; }
  .contact-form .field-row { grid-template-columns: 1fr; }
}
.hero-bleed.fit-domains .bleed-inner { min-height: clamp(300px, calc(100vh - var(--below-domains, 386px)), 616px); }
@media (min-width: 901px) and (max-height: 820px) {
  .hero-bleed.fit-domains .bleed-copy { padding-block: 14px; }
  .fit-domains.hero-compact p.lead { margin-bottom: 0; }
}
.fit-domains .bleed-copy { max-width: 500px; }
.fit-domains.hero-compact p.lead { max-width: 44ch; }

/* Domains hero (2026-09-29): blended photo inset with a border of dark space (like the ML page globe).
   Frame sized to the photo (2100x1100) at 76% of the hero height, so the soft fades land on the photo's own edges. */
@media (min-width: 901px) {
  .hero-bleed.fit-domains .bleed-photo {
    top: 12%; bottom: auto; height: 76%; right: 3%; width: auto; aspect-ratio: 2100 / 1100;
    background-size: cover !important; background-position: center !important;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.225) 2.1%, rgba(0,0,0,0.401) 4.2%, rgba(0,0,0,0.537) 6.4%, rgba(0,0,0,0.644) 8.5%, rgba(0,0,0,0.727) 10.6%, rgba(0,0,0,0.791) 12.8%, rgba(0,0,0,0.842) 14.9%, rgba(0,0,0,0.881) 17.0%, rgba(0,0,0,0.911) 19.1%, rgba(0,0,0,0.935) 21.2%, rgba(0,0,0,0.954) 23.4%, rgba(0,0,0,0.968) 25.5%, rgba(0,0,0,0.979) 27.6%, rgba(0,0,0,0.988) 29.8%, rgba(0,0,0,0.995) 31.9%, rgba(0,0,0,1.000) 34.0%, #000 91%, rgba(0,0,0,1.000) 91.0%, rgba(0,0,0,0.957) 92.1%, rgba(0,0,0,0.844) 93.2%, rgba(0,0,0,0.684) 94.4%, rgba(0,0,0,0.500) 95.5%, rgba(0,0,0,0.316) 96.6%, rgba(0,0,0,0.156) 97.8%, rgba(0,0,0,0.043) 98.9%, rgba(0,0,0,0.000) 100.0%), linear-gradient(180deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 1.2%, rgba(0,0,0,0.156) 2.5%, rgba(0,0,0,0.316) 3.8%, rgba(0,0,0,0.500) 5.0%, rgba(0,0,0,0.684) 6.2%, rgba(0,0,0,0.844) 7.5%, rgba(0,0,0,0.957) 8.8%, rgba(0,0,0,1.000) 10.0%, #000 88%, rgba(0,0,0,1.000) 88.0%, rgba(0,0,0,0.957) 89.5%, rgba(0,0,0,0.844) 91.0%, rgba(0,0,0,0.684) 92.5%, rgba(0,0,0,0.500) 94.0%, rgba(0,0,0,0.316) 95.5%, rgba(0,0,0,0.156) 97.0%, rgba(0,0,0,0.043) 98.5%, rgba(0,0,0,0.000) 100.0%); -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.225) 2.1%, rgba(0,0,0,0.401) 4.2%, rgba(0,0,0,0.537) 6.4%, rgba(0,0,0,0.644) 8.5%, rgba(0,0,0,0.727) 10.6%, rgba(0,0,0,0.791) 12.8%, rgba(0,0,0,0.842) 14.9%, rgba(0,0,0,0.881) 17.0%, rgba(0,0,0,0.911) 19.1%, rgba(0,0,0,0.935) 21.2%, rgba(0,0,0,0.954) 23.4%, rgba(0,0,0,0.968) 25.5%, rgba(0,0,0,0.979) 27.6%, rgba(0,0,0,0.988) 29.8%, rgba(0,0,0,0.995) 31.9%, rgba(0,0,0,1.000) 34.0%, #000 91%, rgba(0,0,0,1.000) 91.0%, rgba(0,0,0,0.957) 92.1%, rgba(0,0,0,0.844) 93.2%, rgba(0,0,0,0.684) 94.4%, rgba(0,0,0,0.500) 95.5%, rgba(0,0,0,0.316) 96.6%, rgba(0,0,0,0.156) 97.8%, rgba(0,0,0,0.043) 98.9%, rgba(0,0,0,0.000) 100.0%), linear-gradient(180deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 1.2%, rgba(0,0,0,0.156) 2.5%, rgba(0,0,0,0.316) 3.8%, rgba(0,0,0,0.500) 5.0%, rgba(0,0,0,0.684) 6.2%, rgba(0,0,0,0.844) 7.5%, rgba(0,0,0,0.957) 8.8%, rgba(0,0,0,1.000) 10.0%, #000 88%, rgba(0,0,0,1.000) 88.0%, rgba(0,0,0,0.957) 89.5%, rgba(0,0,0,0.844) 91.0%, rgba(0,0,0,0.684) 92.5%, rgba(0,0,0,0.500) 94.0%, rgba(0,0,0,0.316) 95.5%, rgba(0,0,0,0.156) 97.0%, rgba(0,0,0,0.043) 98.5%, rgba(0,0,0,0.000) 100.0%); mask-composite: intersect;
  }
}

/* Prebuild hero (2026-09-29): Goldstone photo inset with a border of dark space (like the ML page globe).
   The frame is sized to the photo (4:3) so the fades land on the photo's own edges at every screen size. */
@media (min-width: 901px) {
  .hero-bleed.fit-prebuild .bleed-photo {
    top: 4%; bottom: auto; height: 92%; left: 44%; right: 2.5%; width: auto;
    background-size: cover !important; background-position: 50% 45% !important;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.225) 2.4%, rgba(0,0,0,0.401) 4.8%, rgba(0,0,0,0.537) 7.1%, rgba(0,0,0,0.644) 9.5%, rgba(0,0,0,0.727) 11.9%, rgba(0,0,0,0.791) 14.2%, rgba(0,0,0,0.842) 16.6%, rgba(0,0,0,0.881) 19.0%, rgba(0,0,0,0.911) 21.4%, rgba(0,0,0,0.935) 23.8%, rgba(0,0,0,0.954) 26.1%, rgba(0,0,0,0.968) 28.5%, rgba(0,0,0,0.979) 30.9%, rgba(0,0,0,0.988) 33.2%, rgba(0,0,0,0.995) 35.6%, rgba(0,0,0,1.000) 38.0%, #000 90%, rgba(0,0,0,1.000) 90.0%, rgba(0,0,0,0.957) 91.2%, rgba(0,0,0,0.844) 92.5%, rgba(0,0,0,0.684) 93.8%, rgba(0,0,0,0.500) 95.0%, rgba(0,0,0,0.316) 96.2%, rgba(0,0,0,0.156) 97.5%, rgba(0,0,0,0.043) 98.8%, rgba(0,0,0,0.000) 100.0%), linear-gradient(180deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 1.2%, rgba(0,0,0,0.156) 2.5%, rgba(0,0,0,0.316) 3.8%, rgba(0,0,0,0.500) 5.0%, rgba(0,0,0,0.684) 6.2%, rgba(0,0,0,0.844) 7.5%, rgba(0,0,0,0.957) 8.8%, rgba(0,0,0,1.000) 10.0%, #000 88%, rgba(0,0,0,1.000) 88.0%, rgba(0,0,0,0.957) 89.5%, rgba(0,0,0,0.844) 91.0%, rgba(0,0,0,0.684) 92.5%, rgba(0,0,0,0.500) 94.0%, rgba(0,0,0,0.316) 95.5%, rgba(0,0,0,0.156) 97.0%, rgba(0,0,0,0.043) 98.5%, rgba(0,0,0,0.000) 100.0%); -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.225) 2.4%, rgba(0,0,0,0.401) 4.8%, rgba(0,0,0,0.537) 7.1%, rgba(0,0,0,0.644) 9.5%, rgba(0,0,0,0.727) 11.9%, rgba(0,0,0,0.791) 14.2%, rgba(0,0,0,0.842) 16.6%, rgba(0,0,0,0.881) 19.0%, rgba(0,0,0,0.911) 21.4%, rgba(0,0,0,0.935) 23.8%, rgba(0,0,0,0.954) 26.1%, rgba(0,0,0,0.968) 28.5%, rgba(0,0,0,0.979) 30.9%, rgba(0,0,0,0.988) 33.2%, rgba(0,0,0,0.995) 35.6%, rgba(0,0,0,1.000) 38.0%, #000 90%, rgba(0,0,0,1.000) 90.0%, rgba(0,0,0,0.957) 91.2%, rgba(0,0,0,0.844) 92.5%, rgba(0,0,0,0.684) 93.8%, rgba(0,0,0,0.500) 95.0%, rgba(0,0,0,0.316) 96.2%, rgba(0,0,0,0.156) 97.5%, rgba(0,0,0,0.043) 98.8%, rgba(0,0,0,0.000) 100.0%), linear-gradient(180deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 1.2%, rgba(0,0,0,0.156) 2.5%, rgba(0,0,0,0.316) 3.8%, rgba(0,0,0,0.500) 5.0%, rgba(0,0,0,0.684) 6.2%, rgba(0,0,0,0.844) 7.5%, rgba(0,0,0,0.957) 8.8%, rgba(0,0,0,1.000) 10.0%, #000 88%, rgba(0,0,0,1.000) 88.0%, rgba(0,0,0,0.957) 89.5%, rgba(0,0,0,0.844) 91.0%, rgba(0,0,0,0.684) 92.5%, rgba(0,0,0,0.500) 94.0%, rgba(0,0,0,0.316) 95.5%, rgba(0,0,0,0.156) 97.0%, rgba(0,0,0,0.043) 98.5%, rgba(0,0,0,0.000) 100.0%); mask-composite: intersect;
  }
}

/* Uniform framed hero photos (2026-09-29): Home, Domains and Prebuild match the ML page globe, with about two grid
   boxes (72px) of dark space above, below and to the right; the left side fades into the end of the text. */
@media (min-width: 901px) {
  .hero.hero-compact.hero-bleed.framed .bleed-photo {
    top: min(36px, 8%); bottom: min(36px, 8%); height: auto; left: 42%; right: 36px; width: auto; aspect-ratio: auto;
    background-size: cover !important;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.225) 2.4%, rgba(0,0,0,0.401) 4.8%, rgba(0,0,0,0.537) 7.1%, rgba(0,0,0,0.644) 9.5%, rgba(0,0,0,0.727) 11.9%, rgba(0,0,0,0.791) 14.2%, rgba(0,0,0,0.842) 16.6%, rgba(0,0,0,0.881) 19.0%, rgba(0,0,0,0.911) 21.4%, rgba(0,0,0,0.935) 23.8%, rgba(0,0,0,0.954) 26.1%, rgba(0,0,0,0.968) 28.5%, rgba(0,0,0,0.979) 30.9%, rgba(0,0,0,0.988) 33.2%, rgba(0,0,0,0.995) 35.6%, rgba(0,0,0,1.000) 38.0%, #000 90%, rgba(0,0,0,1.000) 90.0%, rgba(0,0,0,0.957) 91.2%, rgba(0,0,0,0.844) 92.5%, rgba(0,0,0,0.684) 93.8%, rgba(0,0,0,0.500) 95.0%, rgba(0,0,0,0.316) 96.2%, rgba(0,0,0,0.156) 97.5%, rgba(0,0,0,0.043) 98.8%, rgba(0,0,0,0.000) 100.0%), linear-gradient(180deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 1.2%, rgba(0,0,0,0.156) 2.5%, rgba(0,0,0,0.316) 3.8%, rgba(0,0,0,0.500) 5.0%, rgba(0,0,0,0.684) 6.2%, rgba(0,0,0,0.844) 7.5%, rgba(0,0,0,0.957) 8.8%, rgba(0,0,0,1.000) 10.0%, #000 88%, rgba(0,0,0,1.000) 88.0%, rgba(0,0,0,0.957) 89.5%, rgba(0,0,0,0.844) 91.0%, rgba(0,0,0,0.684) 92.5%, rgba(0,0,0,0.500) 94.0%, rgba(0,0,0,0.316) 95.5%, rgba(0,0,0,0.156) 97.0%, rgba(0,0,0,0.043) 98.5%, rgba(0,0,0,0.000) 100.0%); -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.225) 2.4%, rgba(0,0,0,0.401) 4.8%, rgba(0,0,0,0.537) 7.1%, rgba(0,0,0,0.644) 9.5%, rgba(0,0,0,0.727) 11.9%, rgba(0,0,0,0.791) 14.2%, rgba(0,0,0,0.842) 16.6%, rgba(0,0,0,0.881) 19.0%, rgba(0,0,0,0.911) 21.4%, rgba(0,0,0,0.935) 23.8%, rgba(0,0,0,0.954) 26.1%, rgba(0,0,0,0.968) 28.5%, rgba(0,0,0,0.979) 30.9%, rgba(0,0,0,0.988) 33.2%, rgba(0,0,0,0.995) 35.6%, rgba(0,0,0,1.000) 38.0%, #000 90%, rgba(0,0,0,1.000) 90.0%, rgba(0,0,0,0.957) 91.2%, rgba(0,0,0,0.844) 92.5%, rgba(0,0,0,0.684) 93.8%, rgba(0,0,0,0.500) 95.0%, rgba(0,0,0,0.316) 96.2%, rgba(0,0,0,0.156) 97.5%, rgba(0,0,0,0.043) 98.8%, rgba(0,0,0,0.000) 100.0%), linear-gradient(180deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.043) 1.2%, rgba(0,0,0,0.156) 2.5%, rgba(0,0,0,0.316) 3.8%, rgba(0,0,0,0.500) 5.0%, rgba(0,0,0,0.684) 6.2%, rgba(0,0,0,0.844) 7.5%, rgba(0,0,0,0.957) 8.8%, rgba(0,0,0,1.000) 10.0%, #000 88%, rgba(0,0,0,1.000) 88.0%, rgba(0,0,0,0.957) 89.5%, rgba(0,0,0,0.844) 91.0%, rgba(0,0,0,0.684) 92.5%, rgba(0,0,0,0.500) 94.0%, rgba(0,0,0,0.316) 95.5%, rgba(0,0,0,0.156) 97.0%, rgba(0,0,0,0.043) 98.5%, rgba(0,0,0,0.000) 100.0%); mask-composite: intersect;
  }
  .hero.framed.fit-domains .bleed-photo { background-position: 62% 50% !important; }
  .hero.framed.fit-prebuild .bleed-photo { background-position: 50% 42% !important; }
  .hero.framed:not(.fit-domains):not(.fit-prebuild) .bleed-photo { background-position: 55% 30% !important; }
}
.contact-grid.contact-single { grid-template-columns: minmax(0, 640px); justify-content: center; }
@media (min-width: 901px) { .hero.framed.fit-domains .bleed-photo { background-position: 35% 70% !important; } }
@media (min-width: 901px) { .hero.framed.fit-domains .bleed-photo { background-position: center !important; } }

/* ---------- Home: single-row tile carousel (2026-10-03, Calvin feedback) ----------
   Six tiles in one row; three show at a time on desktop, the rest scroll in from the right. */
.carousel { position: relative; }
.carousel-track {
  --gap: 26px;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 6px 8px 2px;   /* room for the card shadow */
  margin: -2px -6px -8px -2px;
  outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .card {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
  scroll-snap-align: start;
}
.carousel-track > .card:hover { transform: none; }
.card.accent-blue::after   { background: var(--series-blue); }
.card.accent-orange::after { background: var(--series-orange); }
.card.accent-aqua::after   { background: var(--series-aqua); }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid #0b0b0b;
  background: #ffffff;
  color: #0b0b0b;
  font: 600 1.6rem/1 var(--font-body);
  display: flex; align-items: center; justify-content: center;
  padding: 0 0 3px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.30);
  transition: opacity .15s, background .15s, color .15s;
}
.carousel-btn:hover { background: var(--series-orange); color: #fff; }
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 1100px) {
  .carousel-btn.prev { left: -8px; }
  .carousel-btn.next { right: -8px; }
}
@media (max-width: 900px) {
  .carousel-track > .card { flex-basis: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 600px) {
  .carousel-track { --gap: 16px; }
  .carousel-track > .card { flex-basis: 84%; }   /* next tile peeks in */
  .carousel-btn { width: 34px; height: 34px; font-size: 1.35rem; }
}
@media (min-width: 901px) and (max-height: 720px) {
  .carousel-track { --gap: 20px; }
}

/* Carousel controls, option A (10-03): outlined arrows + progress dots centered under the row. */
.carousel { padding-bottom: 60px; }
.carousel-btn {
  top: auto; bottom: 0; transform: none;
  width: 44px; height: 44px;
  font-size: 1.75rem;
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
  box-shadow: none;
}
.carousel-btn:hover { background: var(--series-orange); border-color: var(--series-orange); color: #fff; }
.carousel-btn.prev { left: calc(50% - 160px); }
.carousel-btn.next { right: calc(50% - 160px); }
.carousel-btn[disabled] { opacity: 0.3; pointer-events: none; }
.carousel-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px;
}
.carousel-dots button {
  width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer;
}
.carousel-dots button.on { background: #fff; }
@media (max-width: 1100px) {
  .carousel-btn.prev { left: calc(50% - 160px); }
  .carousel-btn.next { right: calc(50% - 160px); }
}
@media (max-width: 600px) {
  .carousel-btn { width: 40px; height: 40px; font-size: 1.55rem; }
  .carousel-btn.prev { left: 0; }
  .carousel-btn.next { right: 0; }
  .carousel-dots { gap: 10px; }
}
/* Home hero gives back the height the controls use, so the tiles and controls stay above the fold. */
.hero-bleed .bleed-inner { min-height: clamp(300px, calc(100vh - 475px), 616px); }
@media (min-width: 901px) and (max-height: 720px) {
  .hero-bleed .bleed-inner { min-height: calc(100vh - 392px); }
}
@media (min-width: 901px) and (max-height: 820px) {
  .hero-bleed .bleed-copy { padding-block: 14px; }
  section.value-strip { padding-top: 14px; }
  .value-strip .section-head { margin-bottom: 12px; }
  .value-strip .card { padding: 16px 22px; }
  .value-strip .card h3 { margin-bottom: 6px; }
  .carousel { padding-bottom: 54px; }
  .carousel-dots { bottom: 14px; }
}

/* Domains hero (2026-10-03, Calvin feedback): NASA Landsat illustration fills the frame edge to edge, no letterboxing.
   Kept slightly high so the curved horizon stays in view and the satellite sits in the solid part of the fade. */
@media (min-width: 901px) { .hero.framed.fit-domains .bleed-photo { background-position: 50% 30% !important; } }
@media (max-width: 900px) { .hero.fit-domains .bleed-photo { background-position: 40% 35% !important; } }
