/* ============================================================
   OccultOpes — Hidden Resources, Revealed
   Bright, professional, techy: cool white ground, teal/cyan
   primary, gold "revealed value" accent, geometric display type.
   Light + dark themes via tokens; WCAG 2.2 AA contrast throughout.
   ============================================================ */

:root {
  color-scheme: light dark;

  /* Surfaces & text */
  --bg: #F5F9FB;             /* page ground */
  --surface: #FFFFFF;        /* cards, raised surfaces */
  --ink: #0C2233;            /* headings, body text */
  --muted: #4E6478;          /* secondary text (5.8:1 on bg) */
  --line: #DDE8EF;           /* hairlines */

  /* Brand */
  --primary: #0E96A8;        /* teal — borders, icons, decorative */
  --primary-strong: #0B7987; /* teal — gradient light end (5.1:1 w/ white) */
  --primary-deep: #0A6472;   /* teal — gradient dark end (6.8:1 w/ white) */
  --primary-text: #0A6472;   /* teal used AS text on light surfaces */
  --tint: #E4F3F5;           /* teal-tinted fills */
  --gold: #F2A93B;           /* gold — decorative only on light */
  --gold-deep: #B37514;      /* gold — large text / graphics on light (3.6:1) */
  --gold-text: #8A5A10;      /* gold — small text on gold tint (5.2:1) */
  --gold-tint: #FCEED6;      /* gold-tinted fills */

  /* Fixed-role colors */
  --footer-bg: #0C2233;
  --footer-text: #B9C8D4;
  --footer-head: #FFFFFF;
  --footer-brand: #3FC1D3;
  --header-bg: rgba(245, 249, 251, 0.85);
  --error: #B3261E;

  --shadow: 0 10px 30px rgba(12, 34, 51, 0.08);
  --radius: 14px;
  --display: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", sans-serif;
  --body: "Manrope", -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B141D;
    --surface: #121F2B;
    --ink: #E8F0F6;            /* 16.1:1 on bg */
    --muted: #9DB0C0;          /* 8.3:1 on bg */
    --line: #243746;
    --primary-text: #4FC3D4;   /* 8.9:1 on bg */
    --tint: #0F2E33;
    --gold-text: #F2C069;      /* 8.2:1 on gold-tint dark */
    --gold-tint: #3A2A10;
    --header-bg: rgba(11, 20, 29, 0.85);
    --footer-bg: #080F16;
    --error: #FFB4AB;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

a { color: inherit; }

.grad-text {
  background: linear-gradient(100deg, var(--primary) 15%, var(--primary-deep) 55%, var(--gold-deep) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (prefers-color-scheme: dark) {
  .grad-text {
    background: linear-gradient(100deg, #4FC3D4 15%, #7ED4E0 55%, var(--gold) 105%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* ---------- Utilities ---------- */

.u-center { text-align: center; }
.u-mx-auto { margin-inline: auto; }
.u-mt-md { margin-top: 2rem; }
.u-mt-lg { margin-top: 2.5rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border-radius: 100px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(120deg, var(--primary-strong), var(--primary-deep));
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 121, 135, 0.35);
}

.btn--primary:hover { box-shadow: 0 10px 24px rgba(11, 121, 135, 0.45); }

.btn--outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn--outline:hover { border-color: var(--primary); color: var(--primary-text); }

.btn--light {
  background: #fff;
  color: #0A6472;
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--ghost-light:hover { border-color: #fff; }

.btn--small { padding: 0.55rem 1.3rem; font-size: 0.85rem; }

/* ---------- Section headings ---------- */

.section-kicker {
  display: inline-block;
  background: var(--tint);
  color: var(--primary-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 3rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1200px, 94%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
}

.nav__brand b { font-weight: 700; color: var(--primary-text); }

.nav__mark { display: inline-flex; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__menu a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s;
}

.nav__menu a:not(.btn):hover { color: var(--primary-text); }

.nav__menu a[aria-current="page"] {
  color: var(--primary-text);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 6rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 55% at 82% 25%, rgba(14, 150, 168, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 45% at 90% 75%, rgba(242, 169, 59, 0.12), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent);
  mask-image: linear-gradient(to bottom, black 60%, transparent);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--tint);
}

.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__lede {
  max-width: 34rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero__actions--center { justify-content: center; }

.hero__points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 2.2rem;
}

.hero__points li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.hero__points li::before {
  content: "✓";
  color: var(--primary-text);
  font-weight: 700;
  margin-right: 0.45rem;
}

/* Hero visual — dashboard mock */

.hero__visual { position: relative; }

.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mock--main { padding: 1.5rem; }

.mock__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.mock__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
}

.mock__pill {
  background: var(--tint);
  color: var(--primary-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.mock__chart {
  width: 100%;
  height: 120px;
  display: block;
}

.mock__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.mock__num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  color: var(--primary-text);
}

.mock__label {
  font-size: 0.78rem;
  color: var(--muted);
}

.mock--chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.35;
}

.mock--chip b { display: block; font-weight: 700; }
.mock--chip small { color: var(--muted); }

.mock--chip-a { top: -2.6rem; right: -0.75rem; animation: float 5s ease-in-out infinite; }
.mock--chip-b { bottom: -3rem; left: -0.75rem; animation: float 5s ease-in-out 2.5s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mock__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1rem;
  flex-shrink: 0;
}

.mock__icon--teal { background: var(--tint); color: var(--primary-text); }
.mock__icon--gold { background: var(--gold-tint); color: var(--gold-text); }

/* ---------- Etymology strip ---------- */

.strip {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: 3rem 0;
}

.strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vw, 3rem);
  flex-wrap: wrap;
  text-align: center;
}

.strip__word em {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.7rem;
  color: var(--primary-text);
}

.strip__word span {
  font-size: 0.82rem;
  color: var(--muted);
}

.strip__plus {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--gold-deep);
}

.strip__statement {
  max-width: 28rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.98rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.4rem;
}

/* ---------- Practice ---------- */

.practice { padding: 6.5rem 0; }

.practice__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.practice__step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.9rem 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.practice__step:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 38px rgba(12, 34, 51, 0.12);
}

.practice__num {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--tint);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  margin-bottom: 1.25rem;
}

.step-icon svg { width: 26px; height: 26px; }

.practice__step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.practice__step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Services / card grids ---------- */

.services {
  padding: 6.5rem 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--primary-text);
  margin-bottom: 1.1rem;
}

.card__icon svg { width: 24px; height: 24px; }

.card h3,
.card h4 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
}

a.card { display: block; text-decoration: none; }

.card__more {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-text);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.card__head h3,
.card__head h4 { margin-bottom: 0; }

.tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 0.22rem 0.7rem;
}

.tag--live { background: var(--tint); color: var(--primary-text); }
.tag--dev { background: var(--gold-tint); color: var(--gold-text); }

.card__domain {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--primary-text);
}

/* ---------- Who we serve ---------- */

.who { padding: 6.5rem 0; }

.who__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.who__grid .section-lede { margin-bottom: 1.5rem; }

.who__note {
  color: var(--primary-text);
  font-weight: 600;
  font-size: 1rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
}

.who__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.who__list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s;
}

.who__list li:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.who__list li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 0.7rem;
}

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

.cta {
  background: linear-gradient(120deg, var(--primary-deep), var(--primary-strong));
  color: #fff;
  padding: 5.5rem 0;
}

.cta__inner {
  text-align: center;
  max-width: 46rem;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta p {
  color: #EAF6F8;
  font-size: 1.08rem;
  margin-bottom: 2.25rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---------- The House ---------- */

.house { padding: 6.5rem 0; }

.house__inner { text-align: center; }

.house__inner .section-lede { margin-inline: auto; }

.house__locations {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.house__locations li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 2.4rem;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.85rem;
}

.house__locations span {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
}

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

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 2.5rem;
}

.site-footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.site-footer__brand {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--footer-head);
}

.site-footer__brand b { color: var(--footer-brand); }

.site-footer__tag {
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.site-footer__head {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-head);
  margin-bottom: 0.9rem;
}

.site-footer nav ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.site-footer nav a {
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.25s;
}

.site-footer nav a:hover { color: var(--footer-head); }

.site-footer__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.page-hero--tall { padding: 7rem 0; }

.page-hero .hero__bg { opacity: 0.8; }

.page-hero__inner { position: relative; max-width: 46rem; margin-inline: auto; }

.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.page-hero .section-lede { margin-bottom: 0; margin-inline: auto; }

/* ---------- Generic content section ---------- */

.section { padding: 5rem 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section--tight { padding-top: 1rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.checklist { list-style: none; display: grid; gap: 0.85rem; }

.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--tint);
  color: var(--primary-text);
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0.25rem);
}

.checklist--pain li::before { content: "!"; background: var(--gold-tint); color: var(--gold-text); }

/* ---------- Engagement timeline ---------- */

.timeline { list-style: none; position: relative; max-width: 44rem; margin-inline: auto; }

.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--gold));
  opacity: 0.35;
}

.timeline li {
  position: relative;
  padding: 0 0 2.2rem 4rem;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary-text);
  font-family: var(--display);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeline h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.timeline p { color: var(--muted); font-size: 0.95rem; }
.timeline__meta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-text);
  background: var(--tint);
  border-radius: 100px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.4rem;
}

/* ---------- FAQ ---------- */

.faq { max-width: 46rem; margin-inline: auto; display: grid; gap: 0.9rem; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq details[open] { border-color: var(--primary); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 1.4rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.field { display: grid; gap: 0.4rem; }

.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.85rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 150, 168, 0.18);
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: var(--error);
}

.field input:user-invalid:focus,
.field textarea:user-invalid:focus {
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.form-actions .btn { border: none; cursor: pointer; }

.form-note { font-size: 0.82rem; color: var(--muted); }

.form-status { grid-column: 1 / -1; font-weight: 600; font-size: 0.95rem; display: none; }
.form-status.is-error { display: block; color: var(--error); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Next steps (contact sidebar) ---------- */

.next-steps { display: grid; gap: 1.4rem; }

.next-steps li { list-style: none; display: flex; gap: 1rem; }

.next-steps .timeline__dot { position: static; flex-shrink: 0; width: 40px; height: 40px; }

.next-steps b { display: block; font-family: var(--display); font-size: 1.05rem; }
.next-steps p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 44rem; margin-inline: auto; }
.prose h2 { font-size: 1.3rem; margin: 2.2rem 0 0.7rem; }
.prose p, .prose li { color: var(--muted); font-size: 0.97rem; }
.prose ul { padding-left: 1.3rem; margin: 0.6rem 0; }
.prose a { color: var(--primary-text); }
.prose .updated { font-size: 0.85rem; margin-bottom: 1.5rem; }

/* ---------- Breadcrumb ---------- */

.crumb {
  position: relative;
  display: inline-flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.crumb a { color: var(--primary-text); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- Work / portfolio ---------- */

.systems-group + .systems-group { margin-top: 3.2rem; }

.group-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.3rem;
}

.group-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: 2.5rem;
}

.stats-row div { text-align: center; }

.stats-row b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-text);
}

.stats-row span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--footer-bg);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { left: 0; top: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Scroll-reveal (JS-gated: fully visible without JS) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .mock--chip-a, .mock--chip-b { animation: none; }
}

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

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__visual {
    max-width: 520px;
    margin-inline: auto;
    padding: 1.6rem 0.75rem 2rem;
  }

  .mock--chip-a { top: -0.5rem; right: 0; }
  .mock--chip-b { bottom: -0.5rem; left: 0; }

  .who__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 860px) {
  .practice__steps,
  .services__grid {
    grid-template-columns: 1fr;
  }

  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.6rem; }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav__menu.is-open { max-height: 26rem; }

  .nav__menu li {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .who__list { grid-template-columns: 1fr; }
}
