/* ==========================================================================
   DL Technology, LLC — Precision laboratory / industrial editorial system
   Palette: royal blue, ink navy, graphite, laboratory white, platinum, ice
   ========================================================================== */

:root {
  --blue: #0b4fae;
  --blue-dark: #083c86;
  --blue-light: #4c8fe0;
  --navy: #0a1a33;
  --navy-2: #10264a;
  --graphite: #2b2f36;
  --white: #ffffff;
  --lab: #f7f9fb;
  --plat: #e6eaef;
  --plat-2: #cbd3dc;
  --muted: #566170;
  --ice: #a9d6f0;

  --font-sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--navy); margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Labels & section scaffolding ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue); margin: 0 0 18px; font-weight: 500;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--ice); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--lab { background: var(--lab); }
.section--plat { background: var(--plat); }
.section--navy { background: var(--navy); color: #d3deec; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy a:not(.btn) { color: var(--ice); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section--navy .section-head p { color: #b7c6da; }
.section-head p.eyebrow { font-size: 0.74rem; color: var(--blue); margin-bottom: 18px; }
.section--navy .section-head p.eyebrow { color: var(--ice); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 640px; }
.hair { border: 0; border-top: 1px solid var(--plat-2); margin: 0; }
.mono { font-family: var(--font-mono); }
.num {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--blue);
  display: block; margin-bottom: 14px;
}
.section--navy .num { color: var(--ice); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; font: 600 0.95rem/1.2 var(--font-sans); letter-spacing: 0.01em;
  text-decoration: none; border: 1.5px solid var(--blue); border-radius: 2px; cursor: pointer;
  background: var(--blue); color: #fff; overflow: hidden; z-index: 0;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--navy); z-index: -1;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--navy); }
.btn:hover::before { transform: scaleX(1); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost::before { background: var(--blue); }
.btn--ghost:hover { color: #fff; border-color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light::before { background: var(--ice); }
.btn--light:hover { color: var(--navy); border-color: var(--ice); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { color: var(--navy); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none;
  font-size: 0.95rem; color: var(--blue);
}
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }
.section--navy .link-arrow { color: var(--ice); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--plat-2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: 0 0 auto; line-height: 0; }
.brand img { height: 68px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { margin: 0; }
.site-nav a.nav-link {
  position: relative; display: block; padding: 10px 11px; font-size: 0.92rem; font-weight: 500;
  color: var(--graphite); text-decoration: none; letter-spacing: 0.005em;
}
.site-nav a.nav-link::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.site-nav a.nav-link:hover::after, .site-nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a.nav-link[aria-current="page"] { color: var(--blue); font-weight: 600; }
.site-nav .nav-cta { margin-left: 10px; }
.site-nav .nav-cta .btn { padding: 11px 20px; font-size: 0.88rem; }
.nav-toggle {
  display: none; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--navy);
  color: var(--navy); padding: 9px 14px; font: 600 0.85rem var(--font-sans); cursor: pointer; border-radius: 2px;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; display: block; }
.nav-toggle .bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1120px) {
  .brand img { height: 58px; }
  .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--plat-2);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .js .site-nav.is-open { max-height: 90vh; visibility: visible; overflow-y: auto; transition: max-height 0.4s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .site-nav li { border-bottom: 1px solid var(--plat); }
  .site-nav a.nav-link { padding: 16px 0; font-size: 1.02rem; }
  .site-nav a.nav-link::after { display: none; }
  .site-nav .nav-cta { margin: 18px 0 0; border: 0; }
  .site-nav .nav-cta .btn { width: 100%; padding: 15px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; padding: 0; }
  html:not(.js) .nav-toggle { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
  background:
    linear-gradient(var(--lab), var(--lab)) ;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11,79,174,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,79,174,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 0.45em; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.hero h1 .accent { color: var(--blue); }
.hero .lead { margin-bottom: 0; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 32px 0 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.hero-meta li { margin: 0; display: flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 6px; height: 6px; background: var(--blue); transform: rotate(45deg); }
.hero-visual { position: relative; padding-bottom: 56px; }
.hero-art { position: relative; background: var(--navy); aspect-ratio: 8 / 7; width: 88%; margin-left: auto; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.logo-plate {
  position: absolute; left: 0; bottom: 0; width: 82%; background: #fff; padding: 6px 10px;
  border: 1px solid var(--plat-2); box-shadow: 0 18px 40px -22px rgba(10,26,51,0.45);
}
.logo-plate::before, .logo-plate::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--blue); }
.logo-plate::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.logo-plate::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.logo-plate img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: 100%; aspect-ratio: 16 / 11; }
  .logo-plate { width: 88%; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--navy); color: #cdd9e8;
  padding: clamp(52px, 7vw, 96px) 0 clamp(52px, 7vw, 88px);
}
.page-hero::before {
  content: ""; position: absolute; right: -40px; bottom: -20px; width: min(880px, 85%); height: 100%;
  background: url("../assets/fluidpath-pattern.svg") no-repeat right bottom / contain; pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(169,214,240,0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(169,214,240,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 900px; margin-bottom: 0.4em; }
.page-hero .lead { color: #b7c6da; max-width: 700px; }
.crumbs { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); margin-bottom: 22px; }
.crumbs a { color: var(--ice); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { opacity: 0.55; margin: 0 8px; }

/* ---------- Technical figure frame ---------- */
.frame {
  position: relative; background: var(--plat);
  background-image:
    linear-gradient(to right, rgba(11,79,174,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,79,174,0.07) 1px, transparent 1px);
  background-size: 28px 28px; border: 1px solid var(--plat-2); padding: clamp(14px, 2.4vw, 28px); margin: 0;
}
.frame::before, .frame::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--blue); }
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.frame img { width: 100%; }
.frame figcaption {
  margin-top: 12px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.frame--white { background-color: #fff; }

/* ---------- Editorial category rows ---------- */
.cat-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--plat-2); }
.cat-row:first-of-type { border-top: 0; padding-top: 0; }
.cat-row:nth-of-type(even) .frame { order: 2; }
.cat-row h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cat-row p { color: var(--muted); }
.cat-row ul { color: var(--graphite); }
.cat-row ul li::marker { color: var(--blue); }
@media (max-width: 860px) {
  .cat-row { grid-template-columns: 1fr; }
  .cat-row:nth-of-type(even) .frame { order: 0; }
}
.section--navy .cat-row { border-color: rgba(169,214,240,0.2); }
.section--navy .cat-row p { color: #b7c6da; }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: 1fr; } }
.keylist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--plat-2); }
.keylist li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--plat-2); align-items: baseline; }
.keylist .k { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--blue); }
.keylist strong { color: var(--navy); display: block; font-weight: 600; }
.keylist span.d { color: var(--muted); font-size: 0.98rem; }
.section--navy .keylist, .section--navy .keylist li { border-color: rgba(169,214,240,0.22); }
.section--navy .keylist strong { color: #fff; }
.section--navy .keylist span.d { color: #b7c6da; }
.section--navy .keylist .k { color: var(--ice); }

/* ---------- Grid tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--plat-2); background: #fff; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { padding: 28px 26px 30px; border-right: 1px solid var(--plat-2); border-bottom: 1px solid var(--plat-2); position: relative; display: flex; flex-direction: column; background: #fff; transition: background 0.3s var(--ease); }
.tile::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--blue); transition: width 0.45s var(--ease); }
.tile:hover { background: var(--lab); }
.tile:hover::before { width: 100%; }
.tile .tile-fig { background: var(--plat); margin: -4px -4px 22px; padding: 10px; border: 1px solid var(--plat-2); }
.tile h3 { font-size: 1.2rem; }
.tile p { color: var(--muted); font-size: 0.99rem; flex: 1; }
.tile .link-arrow { margin-top: 6px; }
@media (max-width: 1060px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles, .tiles--3, .tiles--2 { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.steps li { margin: 0; padding: 30px 26px 8px 0; position: relative; counter-increment: step; }
.steps li::before {
  content: "0" counter(step); display: block; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em;
  color: var(--ice); padding-bottom: 22px; margin-bottom: 20px; border-bottom: 1px solid rgba(169,214,240,0.35);
}
.steps li::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; background: var(--blue-light); transform: rotate(45deg); display: none; }
.steps h3 { font-size: 1.18rem; margin-bottom: 0.4em; }
.steps p { color: #b7c6da; font-size: 0.99rem; margin: 0; }
.steps--light li::before { color: var(--blue); border-color: var(--plat-2); }
.steps--light p { color: var(--muted); }
.steps--light h3 { color: var(--navy); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Fluid path diagram (HTML) ---------- */
.pathflow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--plat-2); background: #fff; }
.pathflow li { margin: 0; padding: 22px 18px; position: relative; border-right: 1px solid var(--plat-2); }
.pathflow li:last-child { border-right: 0; }
.pathflow li::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; background: #fff; color: var(--blue); text-align: center; line-height: 18px; font-size: 0.9rem; z-index: 2; }
.pathflow li:last-child::after { display: none; }
.pathflow .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--blue); display: block; margin-bottom: 8px; }
.pathflow strong { display: block; color: var(--navy); margin-bottom: 4px; }
.pathflow span.d { font-size: 0.92rem; color: var(--muted); line-height: 1.5; display: block; }
@media (max-width: 900px) {
  .pathflow { grid-template-columns: 1fr; }
  .pathflow li { border-right: 0; border-bottom: 1px solid var(--plat-2); }
  .pathflow li:last-child { border-bottom: 0; }
  .pathflow li::after { content: "↓"; right: auto; left: 24px; top: auto; bottom: -9px; transform: none; }
}

/* ---------- Notes / callouts ---------- */
.note { border-left: 3px solid var(--blue); background: var(--lab); padding: 18px 22px; font-size: 0.97rem; color: var(--graphite); margin: 28px 0; }
.note strong { color: var(--navy); }
.section--lab .note, .section--plat .note { background: #fff; }
.section--navy .note { background: rgba(169,214,240,0.08); border-color: var(--ice); color: #d3deec; }
.section--navy .note strong { color: #fff; }

/* ---------- Anchor index ---------- */
.index-bar { background: #fff; border-bottom: 1px solid var(--plat-2); position: sticky; top: var(--header-h); z-index: 50; }
.index-bar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 10px 0; }
.index-bar li { margin: 0; }
.index-bar a { display: block; padding: 8px 14px; font-size: 0.86rem; font-weight: 500; text-decoration: none; color: var(--graphite); border: 1px solid transparent; }
.index-bar a:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 1120px) { .index-bar { position: static; } }
.anchor { scroll-margin-top: calc(var(--header-h) + 64px); }

/* ---------- Contact blocks ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--plat-2); background: #fff; }
.contact-cell { padding: 32px 30px; border-right: 1px solid var(--plat-2); }
.contact-cell:last-child { border-right: 0; }
.contact-cell h3 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); font-weight: 500; margin-bottom: 14px; }
.contact-cell p { margin-bottom: 18px; font-size: 1.08rem; color: var(--navy); }
.contact-cell a.big { font-size: 1.3rem; font-weight: 600; text-decoration: none; color: var(--navy); overflow-wrap: anywhere; }
.contact-cell a.big:hover { color: var(--blue); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-cell { border-right: 0; border-bottom: 1px solid var(--plat-2); } .contact-cell:last-child { border-bottom: 0; } }
address { font-style: normal; }

/* ---------- Forms ---------- */
.form-panel { background: #fff; border: 1px solid var(--plat-2); padding: clamp(24px, 4vw, 44px); position: relative; color: var(--graphite); }
.form-panel::before { content: ""; position: absolute; left: -1px; top: -1px; right: -1px; height: 3px; background: var(--blue); }
.form-panel h2, .form-panel h3 { color: var(--navy); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--graphite); background: #fff;
  border: 1px solid #8a97a8; border-radius: 2px; padding: 12px 14px; min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76,143,224,0.35); }
.field input[type="file"] { padding: 10px; background: var(--lab); cursor: pointer; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin: 22px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.form-status { margin-top: 22px; padding: 16px 20px; border-left: 3px solid var(--blue); background: var(--lab); font-size: 0.97rem; color: var(--graphite); }
.form-status[hidden] { display: none; }
.form-status.is-error { border-color: #a4262c; background: #fdf3f3; }
.form-status.is-success { border-color: #1d6b3e; background: #f1f9f4; }
.form-status strong { color: var(--navy); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #a4262c; }
.field .err { color: #a4262c; font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; padding: clamp(48px, 6vw, 76px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("../assets/fluidpath-pattern.svg") no-repeat right center / auto 130%; opacity: 0.55; pointer-events: none; }
.cta-band .container { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: #fff; margin: 0; max-width: 640px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { margin: 10px 0 0; color: #dbe8fa; max-width: 620px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--plat-2); }
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5em; }
.legal li { color: var(--graphite); }
.updated { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice); margin-top: 22px; }
.toc { background: var(--lab); border: 1px solid var(--plat-2); padding: 22px 26px; margin-bottom: 40px; }
.toc h2 { font-size: 0.78rem !important; font-family: var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; font-weight: 500; }
.toc ol { columns: 2; column-gap: 32px; margin: 0; font-size: 0.95rem; }
.toc a { text-decoration: none; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.legal h2[id], .legal h3[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b7c6da; padding: clamp(52px, 7vw, 84px) 0 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: -60px; top: -30px; width: min(780px, 80%); height: 70%; background: url("../assets/fluidpath-pattern.svg") no-repeat right top / contain; opacity: 0.55; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr); gap: clamp(28px, 4vw, 56px); padding-bottom: 52px; }
.footer-logo { display: inline-block; background: #fff; padding: 4px 10px; line-height: 0; margin-bottom: 20px; }
.footer-logo img { height: 56px; width: auto; }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice); font-weight: 500; margin: 0 0 18px; }
.site-footer p { font-size: 0.97rem; margin: 0 0 12px; }
.site-footer a { color: #e5eefa; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .biz { color: #fff; font-weight: 600; letter-spacing: 0.02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-bottom { position: relative; border-top: 1px solid rgba(169,214,240,0.2); padding: 22px 0 28px; font-size: 0.86rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: #93a6bf; }
.footer-bottom a { color: #c9d8ec; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animation (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

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

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  .page-hero { background: #fff; color: #000; }
  .page-hero h1 { color: #000; }
}
