/* =========================================================
   dEUS Utilities — Cocoon-inspired, navy + sand theme
   (palette and condensed type taken from the 2026 software catalog)
   Mobile-first. Breakpoints: 480 / 640 / 768 / 1024 / 1280
   ========================================================= */

:root {
  --bg: #0a1322;
  --bg-alt: #0c1729;
  --card: #0f1c31;
  --muted: #15243d;
  --border: #213252;
  --fg: #e9edf5;
  --muted-fg: #8f9db6;

  /* catalog sand = primary accent */
  --sand: #e6d5a3;       --sand-rgb: 230,213,163;
  /* utility colours from the catalog icons */
  --elec: #f2c14e;       --elec-rgb: 242,193,78;
  --water: #4ab3e6;      --water-rgb: 74,179,230;
  --gas: #2bbfa4;        --gas-rgb: 43,191,164;
  --heat: #f06a3c;       --heat-rgb: 240,106,60;
  /* tagline uses the electricity yellow */
  --tagline: var(--elec);

  --font: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;

  --radius: 6px;
  --gutter: 16px;
  --container: 66rem;
  --header-h: 84px;
  --section-y: clamp(56px, calc(32px + 5vh), 96px);

  /* default accent (overridden by .acc-*) */
  --accent: var(--sand); --accent-rgb: var(--sand-rgb);
}
.acc-sand  { --accent: var(--sand);  --accent-rgb: var(--sand-rgb); }
.acc-elec  { --accent: var(--elec);  --accent-rgb: var(--elec-rgb); }
.acc-water { --accent: var(--water); --accent-rgb: var(--water-rgb); }
.acc-gas   { --accent: var(--gas);   --accent-rgb: var(--gas-rgb); }
.acc-heat  { --accent: var(--heat);  --accent-rgb: var(--heat-rgb); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.1; overflow-wrap: break-word; }
p, a, li, dd { overflow-wrap: anywhere; }
mark {
  background: var(--sand); color: var(--bg); padding: 0 .2em; border-radius: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--sand); color: var(--bg); padding: .5rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.section { padding-block: var(--section-y); border-top: 1px solid var(--border); }
.section-alt {
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(var(--water-rgb), .06), transparent 70%),
    var(--bg-alt);
}

/* ---------- Type ---------- */
h1, h2, .stat-num, .menu-links a { font-family: var(--font-head); }
h1 { font-size: clamp(2.5rem, 4.5vw + 1rem, 4.25rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; }
h2 { font-size: clamp(2rem, 3vw + 1rem, 2.85rem); font-weight: 600; letter-spacing: -.005em; }
h3 { font-size: 1.125rem; font-weight: 600; }
.muted { color: var(--muted-fg); }
.small { font-size: .875rem; }
.lead { font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: var(--fg); }
/* catalog-style widely tracked labels */
.eyebrow {
  font-size: .75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .28em; color: var(--accent); margin-bottom: .75rem;
}
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid rgba(var(--sand-rgb), .35); border-radius: 3px;
  padding: .35rem .8rem; margin-bottom: 1.5rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sand);
}
.chip svg { width: 15px; height: 15px; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip-row .chip { margin-bottom: 0; white-space: nowrap; border-color: rgba(var(--c), .35); color: rgb(var(--c)); }
.chip-elec  { --c: var(--elec-rgb); }
.chip-water { --c: var(--water-rgb); }
.chip-gas   { --c: var(--gas-rgb); }
.chip-heat  { --c: var(--heat-rgb); }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  font-size: .875rem; font-weight: 500; color: var(--accent); transition: opacity .2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 46px; padding: .75rem 1.4rem; border-radius: var(--radius);
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; text-align: center;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--sand); color: var(--bg); }
.btn-outline { border: 1px solid rgba(var(--sand-rgb), .4); color: var(--sand); }

@media (hover: hover) {
  .btn-primary:hover { background: #f1e4bd; }
  .btn-outline:hover { background: rgba(var(--sand-rgb), .1); }
  .text-link:hover { opacity: .8; }
  .footer a:hover, .contact-list a:hover { color: var(--sand); }
  .cap:hover { border-color: rgba(var(--accent-rgb), .45); }
}

/* ---------- Header ---------- */
/* fixed (out of the page flow) so shrinking it on scroll can't move the page;
   the body reserves the full, tall header height instead */
body { padding-top: calc(var(--header-h) + clamp(12px, 2.5vw, 28px) + env(safe-area-inset-top)); }
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color .3s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header { background: rgba(10,19,34,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.header.scrolled { border-bottom-color: var(--border); }
.nav {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  --nav-top: clamp(12px, 2.5vw, 28px);
  height: calc(var(--header-h) + var(--nav-top));
  padding-top: var(--nav-top);
  transition: padding-top .3s ease, height .3s ease;
}
.header.scrolled .nav, .header.menu-open .nav { --nav-top: 0px; }
/* align-items: flex-start stops the logo image stretching to the tagline's width */
.header .logo { --logo-h: clamp(44px, 3vw + 34px, 60px); position: relative; display: block; }
.header .logo img { height: var(--logo-h); width: auto; }
/* catalog tagline tucked into the logo: just under the lettering (which ends at ~68% of the
   logo's height), starting where the lightning bolt's lower part ends (~46% of its width) */
.logo-tagline {
  position: absolute; left: 48.5%; top: calc(var(--logo-h) * .76);
  font-family: var(--font-head); font-weight: 400; line-height: 1.05;
  font-size: max(11px, calc(var(--logo-h) * .23)); color: var(--tagline);
  width: 9.5rem; /* narrow phones: two short lines, clear of the Menu button */
}
@media (min-width: 640px) { .logo-tagline { width: auto; white-space: nowrap; } }
.logo img { height: 40px; width: auto; }

.menu-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 44px; height: 44px; padding: 0 1.1rem; margin-right: -4px;
  border: 1px solid rgba(var(--sand-rgb), .4); border-radius: var(--radius);
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sand);
  transition: background-color .2s;
}
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 339px) {
  .menu-label { display: none; }
  .menu-button { padding: 0; width: 44px; }
}

/* Full-screen overlay under the header so logo + close button stay visible */
.header.menu-open { border-bottom-color: transparent; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open { overflow: hidden; }
.menu-overlay {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  background: rgba(10,19,34,.97);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
  overflow-y: auto;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .menu-overlay { background: rgba(10,19,34,.88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
}
.menu-overlay.open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.menu-inner { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding-block: clamp(1.5rem, 5vh, 3rem); }
.menu-links { border-top: 1px solid var(--border); }
.menu-links li { border-bottom: 1px solid var(--border); }
.menu-links a {
  display: flex; align-items: baseline; gap: 1rem; padding-block: clamp(.5rem, 1.8vh, 1rem);
  font-size: clamp(2rem, min(7vw, 7vh), 4rem); font-weight: 600; line-height: 1.05; text-transform: uppercase;
  color: var(--fg); transition: color .2s, padding-left .25s ease;
}
.menu-num { font-family: var(--font); font-size: .75rem; font-weight: 500; letter-spacing: .1em; color: var(--sand); min-width: 1.75rem; }
.menu-links li { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
.menu-overlay.open .menu-links li { opacity: 1; transform: none; }
.menu-overlay.open .menu-links li:nth-child(2) { transition-delay: .05s; }
.menu-overlay.open .menu-links li:nth-child(3) { transition-delay: .1s; }
.menu-overlay.open .menu-links li:nth-child(4) { transition-delay: .15s; }
.menu-overlay.open .menu-links li:nth-child(5) { transition-delay: .2s; }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.menu-contact { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .875rem; }
.menu-contact a { color: var(--muted-fg); transition: color .2s; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) {
  .menu-button:hover { background: rgba(var(--sand-rgb), .1); }
  .menu-links a:hover { color: var(--sand); padding-left: .5rem; }
  .menu-contact a:hover { color: var(--fg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--section-y) * .7); padding-bottom: var(--section-y);
  /* no background glow here: combined with the loop's lighten blend + mask it stopped the image rendering */
}
.hero .container { position: relative; }
.hero-text { position: relative; z-index: 1; max-width: 42rem; }
.hero h1 mark { display: inline; font-weight: 700; padding: 0 .15em; line-height: 1.2; }
.hero .lead { margin-top: 1.5rem; max-width: 34rem; }
.hero .muted { margin-top: 1rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-actions .btn { flex: 1 1 100%; }
/* light-trail loop with the catalog-cover tagline underneath */
/* lighten blend: the photo's black background disappears into the page (the orange tagline is unaffected) */
.hero-visual { position: relative; display: block; width: min(100%, 440px); margin: 2.5rem auto 0; mix-blend-mode: lighten; }
.hero-visual img {
  display: block; width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}
.hero-tagline {
  display: flex; flex-direction: column; margin-top: -.5rem;
  font-family: var(--font-head); font-weight: 400; line-height: 1.1;
  font-size: clamp(1.5rem, 2.2vw + .9rem, 2.25rem); color: var(--tagline);
}
/* second line indented, as on the catalog cover */
.hero-tagline span:first-child { padding-left: 10%; }
.hero-tagline span:last-child { align-self: flex-end; padding-right: 2%; }
/* animated dot sits over the loop image only (not the tagline) */
.hero-loop { position: relative; }
.hero-loop svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-dot { filter: drop-shadow(0 0 4px rgba(255,255,255,.9)); }

/* ---------- Platform bar ---------- */
.techbar { border-top: 1px solid var(--border); padding-block: clamp(24px, calc(16px + 3vh), 56px); }
.techbar-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.techbar-grid li {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.6rem .75rem;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: .9375rem; font-weight: 300; letter-spacing: .02em; text-align: center; color: var(--fg);
}
.techbar-grid li:nth-child(2n) { border-right: 0; }
.techbar-grid li:nth-last-child(-n+2) { border-bottom: 0; }
.techbar-grid svg { width: 22px; height: 22px; flex: 0 0 auto; stroke-width: 1; color: var(--sand); }

/* ---------- Section heads ---------- */
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head .muted { margin-top: 1rem; }
.sub-head {
  font-family: var(--font); font-size: .75rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted-fg); display: flex; align-items: center; gap: 1rem; margin: 4rem 0 1.5rem;
}
.sub-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.grid-3 { display: grid; gap: 1.25rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s;
}
.card-pad { padding: 1.5rem; }
.icon-sq {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: var(--radius);
  color: var(--accent); background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .3);
}
.icon-sq svg { width: 20px; height: 20px; }

/* ---------- Products ---------- */
.products { display: grid; gap: 4.5rem; }
.prod-row { display: grid; gap: 2rem; align-items: center; }
/* dark-on-white logo PNGs: invert to white-on-black, then screen-blend so the black box disappears */
.prod-logo { height: 44px; width: auto; filter: invert(1); mix-blend-mode: screen; margin-bottom: 1.25rem; }
.prod-text h3 { font-family: var(--font-head); font-size: clamp(1.5rem, 1.5vw + 1rem, 1.9rem); font-weight: 600; }
.prod-text > .muted { margin-top: 1rem; }
/* catalog-style PLATFORM / SCOPE spec rows */
.spec { margin-top: 1.5rem; border-top: 1px solid var(--border); }
.spec div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.spec dt { font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-fg); padding-top: .15rem; }
.spec dd { font-size: .9375rem; }
.ticks { display: grid; gap: .5rem; margin-top: 1.25rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .9375rem; color: var(--fg); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: 2px; background: var(--accent);
}
.prod-text .text-link { margin-top: .75rem; }
/* screenshot in a dark "window" with an accent glow behind it */
.prod-shot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #fff;
  box-shadow: 0 30px 60px -30px rgba(var(--accent-rgb), .5), 0 0 0 6px rgba(var(--accent-rgb), .06);
}
.prod-shot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0), var(--accent), rgba(var(--accent-rgb), 0));
}
.window { display: flex; gap: 6px; padding: 10px 12px; background: var(--muted); border-bottom: 1px solid var(--border); }
.window span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.prod-shot img { width: 100%; }

/* AI agent strip */
.ai-card {
  margin-top: 4.5rem; display: grid; gap: 1.5rem; align-items: center;
  padding: 1.75rem; border-radius: var(--radius); border: 1px solid rgba(var(--accent-rgb), .35);
  background:
    radial-gradient(60% 120% at 0% 50%, rgba(var(--accent-rgb), .12), transparent 70%),
    var(--card);
}
.ai-card h3 { font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; }
.ai-card .muted { margin-top: .5rem; max-width: 46rem; }
.ai-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  width: 88px; height: 88px; border-radius: var(--radius);
  background: #13294a; color: #fff;
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 700;
}
.ai-badge svg { width: 30px; height: 30px; color: var(--accent); margin: 0 -2px; }
.new-tag {
  display: inline-block; margin-left: .5rem; padding: .1rem .45rem; border-radius: 3px;
  background: var(--accent); color: var(--bg); letter-spacing: .1em; font-weight: 600;
}

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--border); padding-block: clamp(32px, calc(24px + 3vh), 64px); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 1.5rem 1rem; text-align: center; border-color: var(--border); border-style: solid; border-width: 0; }
.stat:nth-child(odd) { border-right-width: 1px; }
.stat:nth-child(-n+2) { border-bottom-width: 1px; }
.stat-num { font-size: clamp(2.25rem, 3vw + 1.25rem, 3.25rem); font-weight: 600; line-height: 1; color: var(--sand); }
.stat-label { margin-top: .6rem; font-size: .8125rem; color: var(--muted-fg); }
.stat-label strong { color: var(--fg); font-weight: 500; }

/* ---------- Journeys (catalog bracket-corner boxes) ---------- */
.journeys { display: grid; gap: 1.25rem; }
.journey {
  position: relative; padding: 1.75rem 1.5rem;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .07), transparent 60%), var(--card);
  border: 1px solid var(--border); border-radius: 2px;
}
/* bracket corners */
.journey::before, .journey::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--accent);
}
.journey::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.journey::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.journey h3 { font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; margin-bottom: 1.25rem; }
.steps { display: grid; gap: .1rem; }
.steps li {
  display: flex; gap: 1rem; align-items: baseline; padding: .75rem 0;
  border-top: 1px solid var(--border); font-size: .9375rem;
}
.step-num { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--accent); min-width: 1.75rem; }

/* capabilities: cycle the utility colours */
.cap { display: flex; flex-direction: column; gap: .9rem; position: relative; overflow: hidden; }
.caps .cap:nth-child(4n+1) { --accent: var(--water); --accent-rgb: var(--water-rgb); }
.caps .cap:nth-child(4n+2) { --accent: var(--gas);   --accent-rgb: var(--gas-rgb); }
.caps .cap:nth-child(4n+3) { --accent: var(--elec);  --accent-rgb: var(--elec-rgb); }
.caps .cap:nth-child(4n+4) { --accent: var(--heat);  --accent-rgb: var(--heat-rgb); }
.cap::before {
  content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 2px; background: var(--accent);
}
.cap h3 { font-size: 1.0625rem; }
.cap .muted { font-size: .9375rem; }

/* ---------- Engine ---------- */
#engine .eyebrow { color: var(--muted-fg); margin-top: 3.5rem; margin-bottom: 1.25rem; }
#engine .section-head + .eyebrow { margin-top: 0; }
.pipeline { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; counter-reset: p; }
.pipeline li { position: relative; padding: 1.4rem 1.25rem; background: var(--card); }
.pipe-num { font-family: var(--font-head); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--gas); }
.pipeline h3 { margin: .5rem 0 .35rem; }
.pipeline p { font-size: .875rem; color: var(--muted-fg); }
/* progress line along the top of each step */
.pipeline li::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; background: var(--gas);
  width: calc(var(--i, 1) * 20%);
}
.pipeline li:nth-child(1) { --i: 1; } .pipeline li:nth-child(2) { --i: 2; } .pipeline li:nth-child(3) { --i: 3; }
.pipeline li:nth-child(4) { --i: 4; } .pipeline li:nth-child(5) { --i: 5; }

.flow { display: grid; gap: .75rem; justify-items: stretch; }
.flow-box {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid rgba(var(--water-rgb), .35); background: var(--card);
}
.flow-box h3 { margin: .35rem 0 .5rem; }
.flow-box p:last-child { font-size: .875rem; color: var(--muted-fg); }
.flow-kicker { font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--water); }
.flow-core { border-color: rgba(var(--water-rgb), .6); }
.flow-core > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.flow-core::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(10,24,48,.92), rgba(10,24,48,.7)); }
.flow-core p:last-child { color: #c9d6ea; }
.flow-arrow { display: grid; place-items: center; color: var(--water); }
.flow-arrow svg { width: 28px; height: 28px; transform: rotate(90deg); }

.foundation { display: grid; gap: 1.25rem; }
.foundation h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; margin: .4rem 0 .75rem; }
.foundation .muted { font-size: .9375rem; }
.footnote { margin-top: 2rem; font-size: .75rem; color: var(--muted-fg); }
/* links inside body text */
.inline-link { color: var(--water); text-decoration: underline; text-decoration-color: rgba(var(--water-rgb), .4); text-underline-offset: 3px; transition: text-decoration-color .2s; }
@media (hover: hover) { .inline-link:hover { text-decoration-color: var(--water); } }

/* ---------- Why ---------- */
.why-row { display: grid; gap: 2.5rem; align-items: start; }
.why-text .lead { margin-top: .75rem; }
.why-text > .muted { margin-top: 1rem; }
.why-cols { display: grid; gap: 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.why-cols .flow-kicker { color: var(--sand); margin-bottom: .4rem; }
.why-photo { position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate; min-height: 22rem; display: flex; align-items: flex-end; padding: 1rem; }
.why-photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.why-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,19,34,.85), rgba(10,19,34,0) 60%); }
/* see-through navy card, multiply-darkened like on the 42Dynamics site */
.why-overlay { position: relative; max-width: 22rem; padding: 1.25rem 1.4rem; border-radius: var(--radius); font-size: .9375rem; }
.why-overlay::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgb(24,40,70); mix-blend-mode: multiply; }
.why-overlay .eyebrow { color: var(--sand); }
.why-overlay .text-link { color: var(--sand); margin-top: .25rem; min-height: 36px; }

.reasons { margin-top: 3rem; }
.reason {
  padding: 1.5rem; border-radius: var(--radius);
  background: rgba(var(--sand-rgb), .08); border: 1px solid rgba(var(--sand-rgb), .25);
}
.reason-kicker { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; text-transform: uppercase; color: var(--sand); margin-bottom: .35rem; }
.reason p:last-child { color: var(--fg); font-size: .9375rem; }

/* ---------- Contact ---------- */
.contact-card {
  position: relative; padding: 2rem 1.5rem; text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(var(--sand-rgb), .1), transparent 70%),
    #122849;
  border-radius: 2px;
}
.corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--sand); }
.corner.tl { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.corner.tr { top: -7px; right: -7px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: -7px; left: -7px; border-right: 0; border-top: 0; }
.corner.br { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
.contact-head { max-width: 36rem; margin: 0 auto; }
.contact-head .eyebrow { color: var(--sand); }
.contact-head .eyebrow u { text-underline-offset: 3px; }
.contact-head .muted { margin-top: 1rem; color: #b3c0d6; }
.contact-head .btn { margin-top: 1.75rem; }
.contact-list {
  display: grid; gap: 1.25rem; margin: 2.5rem auto 0; padding-top: 2rem; max-width: 52rem;
  border-top: 1px solid rgba(255,255,255,.12); text-align: left;
}
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list .icon-sq { --accent: var(--sand); --accent-rgb: var(--sand-rgb); }
.contact-list .flow-kicker { color: var(--sand); font-size: .6875rem; }
.contact-list a { font-size: .9375rem; transition: color .2s; }
.maker {
  display: grid; gap: 1rem; justify-items: center; margin: 2.5rem auto 0; padding-top: 2rem; max-width: 52rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.maker img { width: 180px; }
.maker .muted { color: #9fb0cb; max-width: 40rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 3rem 0 max(2rem, env(safe-area-inset-bottom)); font-size: .875rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand .small { margin-top: 1rem; max-width: 24rem; }
.footer h4 { font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin-bottom: .75rem; }
.footer-col ul { display: grid; gap: .1rem; }
.footer-col ul a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-col a, .footer-col p { color: var(--muted-fg); transition: color .2s; }
.footer-col p + p { margin-top: .75rem; }
.footer-col .label { display: block; color: var(--fg); font-weight: 500; font-size: .8125rem; }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; color: var(--muted-fg); }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 480px) {
  .hero-actions .btn { flex: 0 0 auto; }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .card-pad { padding: 2rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-width: 0 1px 0 0 !important; padding: 1.5rem; }
  .stat:last-child { border-right-width: 0 !important; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline li:last-child { grid-column: 1 / -1; }
  .ai-card { grid-template-columns: auto 1fr; padding: 2rem 2.25rem; gap: 2rem; }
  .why-cols { grid-template-columns: 1fr 1fr; }
  .contact-card { padding: 3rem 2.5rem; }
  .contact-list { grid-template-columns: repeat(3, auto); justify-content: center; gap: 1.5rem 2.5rem; }
  .maker { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .techbar-grid { grid-template-columns: repeat(3, 1fr); }
  .techbar-grid li { padding-block: 2rem; white-space: nowrap; }
  .techbar-grid li:nth-child(n) { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .techbar-grid li:nth-child(3n) { border-right: 0; }
  .techbar-grid li:nth-last-child(-n+3) { border-bottom: 0; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .journeys { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .prod-row { grid-template-columns: 1fr 1.15fr; gap: 3rem; }
  .prod-reverse .prod-shot { order: -1; }
  .prod-reverse { grid-template-columns: 1.15fr 1fr; }
  .foundation { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
  .flow-arrow svg { transform: none; }
  .products { gap: 6rem; }
}

@media (min-width: 1024px) {
  .techbar-grid li { font-size: 1rem; padding-block: 2.25rem; }
  .hero-visual {
    position: absolute; z-index: 0; margin: 0;
    right: 0; top: 50%; transform: translateY(-50%);
    width: clamp(460px, 46vw, 620px);
  }
  /* keep the text column clear of the loop image */
  .hero-text { max-width: 32rem; }
  .hero .lead, .hero .muted { max-width: 29rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .card-pad { padding: 2.25rem; }
  .pipeline { grid-template-columns: repeat(5, 1fr); }
  .pipeline li:last-child { grid-column: auto; }
  .why-row { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .why-photo { min-height: 100%; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; }
  .footer-brand { grid-column: auto; }
}

@media (min-width: 1280px) {
  :root { --section-y: clamp(80px, calc(48px + 8vh), 136px); }
  .hero-visual { right: -3rem; }
}

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