/* ==========================================================================
   Dilifi Tech - styles
   Rebrand: edit the tokens in :root. Nothing else hard-codes a colour.
   ========================================================================== */

/* Arial adjusted to Inter's metrics, so text barely moves when Inter finishes loading (prevents layout shift). */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.06%;
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
}

:root {
  /* Brand */
  --navy-900: #081726;
  --navy-800: #0b1f33;
  --navy-700: #12304d;
  --navy-600: #1c4468;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-600: #0d9488;
  --teal-700: #0f766e;

  /* Neutrals */
  --ink: #0f1c2b;
  --text: #334155;
  --muted: #526173;
  --line: #dde4ec;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --on-navy: #e6edf5;
  --on-navy-muted: #a9bbcd;

  /* Draft marker (placeholder copy that must be replaced before launch) */
  --draft-bg: #fef3c7;
  --draft-text: #92400e;

  /* Type */
  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shape & motion */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 31, 51, .06), 0 8px 24px rgba(11, 31, 51, .06);
  --shadow-lg: 0 2px 4px rgba(11, 31, 51, .06), 0 18px 44px rgba(11, 31, 51, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --gutter: 20px;
  --max: 1160px;
  --header-h: 72px;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }

:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal-400); color: var(--navy-900); font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--bg); }
.section--navy { background: var(--navy-800); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-700);
}
.section--navy .eyebrow, .hero .eyebrow { color: var(--teal-400); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 700; }
.section-head .lead { margin-top: 16px; font-size: 1.125rem; color: var(--muted); }
.section--navy .section-head .lead { color: var(--on-navy-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal-400); color: var(--navy-900); }
.btn--primary:hover { background: var(--teal-300); color: var(--navy-900); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-800);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-color: rgba(255, 255, 255, .1); box-shadow: 0 6px 24px rgba(3, 10, 18, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); transition: height .2s var(--ease); }
.site-header.is-scrolled .header-inner { height: 64px; }
.brand { display: inline-flex; align-items: center; border-radius: 6px; }
.brand img { height: 46px; width: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px; margin-right: -8px;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; inset: 100% 0 auto 0;
  background: var(--navy-800); border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 8px var(--gutter) 24px; box-shadow: 0 18px 30px rgba(3, 10, 18, .4);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a { display: block; padding: 14px 4px; color: var(--on-navy); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--teal-400); }
.site-nav .btn { display: flex; margin-top: 18px; width: 100%; padding: 12px 24px; font-weight: 600; border-bottom: 2px solid transparent; color: var(--navy-900); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { position: static; display: flex; align-items: center; gap: 28px; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav ul { flex-direction: row; gap: 26px; }
  .site-nav a { padding: 8px 0; border: 0; font-size: .96875rem; position: relative; }
  .site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--teal-400); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .site-nav ul a:hover::after, .site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }
  .site-nav .btn { display: inline-flex; margin: 0; width: auto; padding: 8px 18px; }
}

@media (max-width: 479px) { .brand img, .footer-brand img { height: 38px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(45, 212, 191, .16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(28, 68, 104, .55), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--on-navy);
  padding-block: clamp(56px, 8vw, 104px) clamp(112px, 12vw, 152px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } }

.chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 7px 14px; border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: var(--on-navy);
  background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .35);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(45, 212, 191, .2); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--teal-400); }
.hero .lead { margin-top: 24px; max-width: 34em; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--on-navy-muted); }
.hero .lead strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.motto {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-navy-muted);
}
.motto span { display: inline-flex; align-items: center; gap: 22px; }
.motto span:not(:last-child)::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-400); }
@media (max-width: 479px) { .motto { font-size: .6875rem; letter-spacing: .14em; gap: 6px 12px; } .motto span { gap: 12px; } }

/* Hero panel: how a file moves through a platform */
.flow-card {
  border-radius: 18px; padding: 28px 26px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px rgba(3, 10, 18, .4);
}
.flow-card h2 { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 22px; }
.flow-list { position: relative; display: grid; gap: 22px; }
.flow-list::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--teal-400), rgba(45, 212, 191, .15)); }
.flow-list li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; }
.flow-list .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-800); border: 2px solid var(--teal-400); display: grid; place-items: center; }
.flow-list .dot svg { width: 14px; height: 14px; stroke: var(--teal-400); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flow-list strong { display: block; color: #fff; font-weight: 600; line-height: 1.3; }
.flow-list .desc { display: block; font-size: .9375rem; color: var(--on-navy-muted); line-height: 1.45; margin-top: 2px; }

/* ---------- Proof bar (overlaps hero) ---------- */
.proof { position: relative; z-index: 2; margin-top: -60px; }
.proof-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  overflow: hidden;
}
.proof-item { padding: 24px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-item:nth-child(2n) { border-right: 0; }
.proof-item:nth-last-child(-n+2) { border-bottom: 0; }
.proof-item .num { display: block; font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.proof-item .num small { font-size: .55em; font-weight: 700; letter-spacing: 0; color: var(--teal-700); margin-left: 3px; }
.proof-item .label { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.35; }
/* Separator dots trail each item, so a wrapped line never starts with a stray dot */
.dots > span { display: inline-block; }
.dots > span:not(:last-child)::after { content: "\00b7"; margin: 0 .4em; }
@media (min-width: 900px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
  .proof-item { padding: 30px; border-bottom: 0; border-right: 1px solid var(--line); }
  .proof-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .proof-item:last-child { border-right: 0; }
}

/* ---------- Services ---------- */
.card-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.service {
  padding: 30px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-600); }
.service .icon { width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); }
.service .icon svg { width: 24px; height: 24px; stroke: var(--teal-400); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 1rem; }

/* ---------- Work ---------- */
.cases { display: grid; gap: 24px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.case-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: rgba(13, 148, 136, .1); color: var(--teal-700); }
.draft-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 700; background: var(--draft-bg); color: var(--draft-text); }
.case h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); font-weight: 700; }
.case-body { display: grid; gap: 28px; margin-top: 28px; }
.case h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.case h4::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--navy-600); }
.case .col--change h4::before { background: var(--teal-600); }
.case p { color: var(--text); }
.ticks li, .dashes li { position: relative; padding-left: 26px; margin-bottom: 10px; line-height: 1.5; }
.ticks li:last-child, .dashes li:last-child { margin-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .36em; width: 6px; height: 11px; border: solid var(--teal-600); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.dashes li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 12px; height: 2.5px; border-radius: 2px; background: #94a3b8; }
.case--feature .col--change { background: var(--bg); border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); }
@media (min-width: 1000px) { .case--feature .case-body { grid-template-columns: 1.25fr 1fr 1fr; gap: 40px; } }
.case-compact-row { display: grid; gap: 24px; }
@media (min-width: 1000px) { .case-compact-row { grid-template-columns: 1fr 1fr; } }
.case--compact .case-body { margin-top: 22px; gap: 22px; }
.case--compact h3 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.5rem); }

/* ---------- Approach ---------- */
.steps { display: grid; gap: 20px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.step { position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step .n { display: block; font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--teal-600); margin-bottom: 18px; }
.step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 1rem; }
@media (min-width: 1100px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -25px; width: 26px; height: 2px; background: var(--line); z-index: 1; }
}

/* ---------- Why Dilifi ---------- */
.name-story { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--on-navy); margin-top: 20px; }
.name-story .hl { color: var(--teal-400); font-weight: 700; }
.pillars { display: grid; gap: 20px; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.pillar { position: relative; overflow: hidden; padding: 34px 30px 36px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .12); }
.pillar::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal-400), transparent); }
.pillar .kicker { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-400); margin-bottom: 12px; }
.pillar h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); font-weight: 800; margin-bottom: 14px; }
.pillar p { color: var(--on-navy-muted); }

/* ---------- Technology ---------- */
.tech-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
.tech-group { padding: 26px 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tech-group h3 { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 13px; font-size: .9375rem; font-weight: 500; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; line-height: 1.4; }

/* ---------- Regulated environments ---------- */
.reg-quote { max-width: 780px; margin: 0 0 clamp(36px, 5vw, 52px); padding: 4px 0 4px 26px; border-left: 4px solid var(--teal-600); font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 1.5; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.reg-quote strong { color: var(--teal-700); font-weight: 700; }
.reg-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .reg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .reg-grid { grid-template-columns: repeat(3, 1fr); } }
.reg-tile { padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.reg-tile h3 { display: flex; align-items: center; gap: 12px; font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.reg-tile h3 svg { flex: none; width: 24px; height: 24px; stroke: var(--teal-700); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reg-tile p { color: var(--muted); font-size: 1rem; }

/* ---------- Leadership ---------- */
.leader { display: grid; gap: 32px; align-items: center; max-width: 900px; }
@media (min-width: 700px) { .leader { grid-template-columns: 220px 1fr; gap: 48px; } }
.leader-photo { width: 100%; max-width: 220px; aspect-ratio: 5 / 6; border-radius: 18px; overflow: hidden; background: var(--navy-700); box-shadow: var(--shadow); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 700; }
.leader .role { display: block; margin: 6px 0 18px; font-size: .9375rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-700); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }
.contact-copy h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 700; }
.contact-copy .lead { margin-top: 16px; color: var(--on-navy-muted); font-size: 1.125rem; }
.contact-meta { margin-top: 32px; display: grid; gap: 6px; }
.contact-meta .k { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-400); }
.contact-meta a { color: #fff; font-size: 1.1875rem; font-weight: 600; text-decoration-color: rgba(255, 255, 255, .35); }
.contact-meta a:hover { color: var(--teal-400); }

.form { padding: clamp(24px, 4vw, 36px); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 60px rgba(3, 10, 18, .35); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #7d8ea3; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #55657a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(13, 148, 136, .2); }
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form .btn--primary { background: var(--navy-800); color: #fff; width: 100%; }
.form .btn--primary:hover { background: var(--navy-600); color: #fff; }
.form-note { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.form-status { margin-top: 16px; font-weight: 500; }
.form-status:not(:empty) { padding: 14px 16px; border-radius: 10px; }
.form-status.is-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.is-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-navy-muted); padding-block: 48px 36px; font-size: .9375rem; }
.footer-top { display: grid; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1fr auto; align-items: center; } }
.footer-brand img { height: 46px; width: auto; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a { color: var(--on-navy); text-decoration: none; }
.footer-nav a:hover { color: var(--teal-400); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; }
.placeholder-text { background: var(--draft-bg); color: var(--draft-text); padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: var(--on-navy); padding: 80px var(--gutter); }
.notfound .code { font-size: clamp(4.5rem, 3rem + 8vw, 8rem); font-weight: 800; letter-spacing: -.04em; color: var(--teal-400); line-height: 1; }
.notfound h1 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); margin: 18px 0 12px; }
.notfound p { color: var(--on-navy-muted); max-width: 30em; margin: 0 auto 32px; }

/* ---------- Reveal-on-scroll (JS applies this only to below-the-fold items) ---------- */
.reveal-init { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-init.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal-init { opacity: 1; transform: none; }
  .btn:hover, .service:hover { transform: none; }
}

/* Regulated: closing call-to-action tile */
.reg-tile--cta { background: var(--navy-800); border-color: var(--navy-800); }
.reg-tile--cta h3 { color: #fff; }
.reg-tile--cta p { color: var(--on-navy-muted); }
.reg-tile--cta a { display: inline-block; margin-top: 14px; color: var(--teal-400); font-weight: 600; }
.reg-tile--cta a:hover { color: var(--teal-300); }
.site-nav .btn:hover { color: var(--navy-900); }
