/* ==========================================================================
   The Safe Haven Group — main stylesheet
   Structure: fonts · tokens · base · layout · components · sections · pages
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --ink-950: #09150f;
  --ink-900: #0e1f1c;
  --ink-800: #142b26;
  --ink-700: #1d3b34;
  --moss-600: #2f5d50;
  --moss-400: #5e8c7c;
  --sage-200: #c9d8cf;
  --sand-100: #f3ede2;
  --cream-50: #faf7f1;
  --white: #ffffff;
  --gold-400: #d8b978;
  --gold-500: #c9a45c;
  --gold-600: #a8833a;
  --gold-700: #8a6a2b;

  --text: #18241f;
  --text-muted: #55655f;
  --on-dark: #f3ede2;
  --on-dark-muted: rgba(243, 237, 226, 0.74);
  --line: rgba(24, 36, 31, 0.12);
  --line-strong: rgba(24, 36, 31, 0.24);
  --line-dark: rgba(243, 237, 226, 0.14);

  --ok: #3f7d5f;
  --warn: #b8862f;
  --risk: #b0573f;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 31, 28, 0.06), 0 2px 8px rgba(14, 31, 28, 0.05);
  --shadow: 0 10px 30px -12px rgba(14, 31, 28, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(14, 31, 28, 0.35);

  --gutter: clamp(18px, 5vw, 40px);
  --max: 1200px;
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); font-weight: 350; }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.4rem); font-weight: 350; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.3; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-600); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: var(--gold-400); }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--gold-400); color: var(--ink-900); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold-500);
  color: var(--ink-900);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.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;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section--sand { background: var(--sand-100); }
.section--white { background: var(--white); }
.section--ink {
  background: var(--ink-900);
  color: var(--on-dark);
}
.on-dark { color: var(--on-dark); }
.on-dark p, .on-dark .muted { color: var(--on-dark-muted); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.15rem; color: var(--text-muted); }
.on-dark .section-head p { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.on-dark .eyebrow { color: var(--gold-400); }
.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.small { font-size: 0.88rem; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .split, .split--wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: var(--cream-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--ink-900); }
.btn--gold:hover { --btn-bg: var(--gold-400); box-shadow: 0 12px 30px -10px rgba(201, 164, 92, 0.55); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  border-color: rgba(243, 237, 226, 0.34);
}
.btn--ghost:hover { --btn-bg: rgba(243, 237, 226, 0.08); border-color: rgba(243, 237, 226, 0.6); box-shadow: none; }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn--outline:hover { --btn-bg: var(--ink-900); --btn-fg: var(--cream-50); border-color: var(--ink-900); }
.btn--sm { padding: 0.7em 1.2em; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-700);
  text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--gold-400); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-block: 22px;
  color: var(--on-dark);
  transition: background-color 0.35s, padding 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.nav-open .site-header {
  background: rgba(9, 21, 15, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  padding-block: 12px;
  border-bottom-color: var(--line-dark);
}
/* backdrop-filter would make the header the containing block of the fixed
   mobile menu and clip it, so drop it while the menu is open */
body.nav-open .site-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--ink-950);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-dark);
  flex: none;
}
.brand-mark { width: 40px; height: 40px; color: var(--gold-500); flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name i { font-style: italic; color: var(--gold-400); font-weight: 350; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav ul { list-style: none; display: flex; gap: 28px; }
.site-nav ul a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] { color: var(--on-dark); }
.site-nav ul a:hover::after,
.site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--on-dark);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 36px;
    padding: 110px var(--gutter) 48px;
    background:
      radial-gradient(ellipse at 80% 10%, rgba(47, 93, 80, 0.5), transparent 60%),
      var(--ink-950);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
    overflow-y: auto;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: 6px; }
  .site-nav ul a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.8rem);
    font-weight: 350;
    color: var(--on-dark);
  }
  .site-nav ul a::after { display: none; }
  .site-nav ul a[aria-current="page"] { color: var(--gold-400); font-style: italic; }
  .site-nav .btn { font-size: 1rem; padding: 1em 1.8em; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 34px; height: 34px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(100svh, 980px);
  padding: 150px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 78% 32%, rgba(47, 93, 80, 0.6), transparent 70%),
    radial-gradient(ellipse 50% 40% at 8% 100%, rgba(201, 164, 92, 0.14), transparent 70%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900));
  color: var(--on-dark);
}
.topo-layer {
  position: absolute;
  inset: -6%;
  z-index: -1;
  background: url("../img/topo.svg") center / cover no-repeat;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.2) 10%, #000 65%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.2) 10%, #000 65%);
}
@media (prefers-reduced-motion: no-preference) {
  .topo-layer { animation: drift 48s ease-in-out infinite alternate; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.5%, 1.5%, 0) scale(1.06); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; max-width: 13ch; }
.hero-lead {
  max-width: 38rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--on-dark-muted);
  margin-bottom: 2.2em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--gold-400); }

.rise { animation: rise 0.9s var(--ease) both; }
.rise-1 { animation-delay: 0.08s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.28s; }
.rise-4 { animation-delay: 0.4s; }
.rise-5 { animation-delay: 0.55s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.glass-card {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(243, 237, 226, 0.08), rgba(243, 237, 226, 0.02));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.glass-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.glass-card .small { font-size: 0.88rem; color: var(--on-dark-muted); margin: 0; }

.radar { margin: 10px auto 6px; width: 100%; max-width: 420px; }
.radar .ring { fill: none; stroke: rgba(243, 237, 226, 0.16); }
.radar .axis { stroke: rgba(243, 237, 226, 0.14); }
.radar .shape {
  fill: rgba(201, 164, 92, 0.24);
  stroke: var(--gold-400);
  stroke-width: 1.6;
  stroke-linejoin: round;
  transform-origin: 150px 150px;
}
.radar .dot { fill: var(--gold-400); }
.radar text {
  fill: var(--on-dark-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .radar .shape { animation: grow 1.4s 0.5s var(--ease) both; }
}
@keyframes grow {
  from { transform: scale(0.15); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 960px) {
  .hero { min-height: auto; padding: 130px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { max-width: 480px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(150px, 18vw, 200px) 0 clamp(72px, 9vw, 110px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(47, 93, 80, 0.55), transparent 70%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900));
  color: var(--on-dark);
}
.page-hero .topo-layer { opacity: 0.45; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); max-width: 16ch; }
.page-hero .lead { color: var(--on-dark-muted); max-width: 40rem; margin: 0; }
.breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
  list-style: none;
}
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--on-dark); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.45em; }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card .link-arrow { margin-top: auto; padding-top: 18px; }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--sand-100);
  color: var(--moss-600);
  flex: none;
}
.icon-badge svg { width: 26px; height: 26px; }
.on-dark .icon-badge,
.icon-badge--dark { background: rgba(201, 164, 92, 0.12); color: var(--gold-400); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Dimension cards */
.dimension-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.dimension {
  padding: 28px 24px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.dimension:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dimension .num {
  display: block;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-700);
}
.dimension h3 { font-size: 1.25rem; }
.dimension p { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 14px; }
.dimension ul { list-style: none; display: grid; gap: 6px; font-size: 0.86rem; color: var(--text); }
.dimension li { display: flex; gap: 8px; align-items: baseline; }
.dimension li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); flex: none; transform: translateY(-2px); }
/* 3 + 2 centred on mid-size screens, 2 + 2 + 1 (full width) on tablets */
@media (max-width: 1140px) {
  .dimension-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dimension { grid-column: span 2; }
  .dimension:nth-child(4) { grid-column: 2 / span 2; }
  .dimension:nth-child(5) { grid-column: 4 / span 2; }
}
@media (max-width: 780px) {
  .dimension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dimension, .dimension:nth-child(4) { grid-column: auto; }
  .dimension:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .dimension-grid { grid-template-columns: 1fr; } }

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--ink-900);
  color: var(--on-dark);
}
.callout p { margin: 0; color: var(--on-dark-muted); }
.callout strong { color: var(--on-dark); font-weight: 600; }
.callout .icon-badge { margin: 0; }
@media (max-width: 560px) { .callout { grid-template-columns: 1fr; } }

/* Ties (bonding, bridging, linking) */
.ties { display: grid; gap: 14px; margin-top: 34px; }
.tie {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(243, 237, 226, 0.03);
}
.tie-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-400);
  line-height: 1.1;
}
.tie-label small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.tie p { margin: 0; font-size: 0.95rem; }
@media (max-width: 480px) { .tie { grid-template-columns: 1fr; gap: 8px; } }

.network-art { width: 100%; max-width: 520px; margin-inline: auto; }
.network-art .link { stroke: rgba(201, 164, 92, 0.38); stroke-width: 1.2; }
.network-art .node { fill: var(--ink-700); stroke: var(--gold-400); stroke-width: 1.4; }
.network-art .node--core { fill: var(--gold-500); stroke: none; }
.network-art .halo { fill: none; stroke: rgba(201, 164, 92, 0.32); }
.network-art .bunker { fill: none; stroke: rgba(243, 237, 226, 0.35); stroke-dasharray: 4 5; }
.network-art text { fill: var(--on-dark-muted); font: 500 12px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .network-art .pulse { animation: pulse 3.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
  .network-art .pulse.p2 { animation-delay: 1.2s; }
  .network-art .pulse.p3 { animation-delay: 2.4s; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* Stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--moss-600);
  margin-bottom: 10px;
}
.stat p { font-size: 0.93rem; color: var(--text-muted); margin: 0; }
@media (max-width: 720px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 64px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-700);
  background: var(--cream-50);
}
.step::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 58px;
  right: -14px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  opacity: 0.6;
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--text-muted); font-size: 0.97rem; margin: 0; }
.section--sand .step::before { background: var(--sand-100); }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
}

/* Audience tiles */
.audience {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.audience h3 { font-size: 1.2rem; margin-bottom: 8px; }
.audience p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.audience .icon { color: var(--gold-600); margin-bottom: 18px; width: 28px; height: 28px; }

/* Ecosystem */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.eco-item {
  padding: 24px 22px;
  background: var(--ink-900);
  transition: background-color 0.3s;
}
.eco-item:hover { background: var(--ink-800); }
.eco-item h3 { font-size: 1.12rem; margin-bottom: 6px; color: var(--on-dark); }
.eco-item p { margin: 0; font-size: 0.88rem; }
.eco-item--featured { background: linear-gradient(150deg, rgba(201, 164, 92, 0.2), rgba(201, 164, 92, 0.04)), var(--ink-900); }
.eco-item--featured h3 { color: var(--gold-400); }
@media (max-width: 960px) { .eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .eco-grid { grid-template-columns: 1fr; } }

.benefit-list { list-style: none; display: grid; gap: 14px; margin: 26px 0 32px; }
.benefit-list li { display: flex; gap: 14px; align-items: flex-start; }
.benefit-list svg { width: 22px; height: 22px; color: var(--gold-500); flex: none; margin-top: 2px; }
.on-dark .benefit-list li { color: var(--on-dark); }

/* Insight cards */
.insight-card { overflow: hidden; padding: 0; }
.insight-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(47, 93, 80, 0.7), transparent 70%),
    var(--ink-900);
  overflow: hidden;
}
.insight-card .thumb::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: url("../img/topo.svg") center / cover no-repeat;
  opacity: 0.55;
  transition: transform 0.8s var(--ease);
}
.insight-card .thumb.alt-1::before { background-position: 20% 80%; }
.insight-card .thumb.alt-2::before { background-position: 80% 20%; transform: scale(1.3); }
.insight-card .thumb.alt-3::before { background-position: 10% 10%; transform: scale(1.6); }
.insight-card .thumb.alt-4::before { background-position: 90% 90%; transform: scale(1.4); }
.insight-card .thumb.alt-5::before { background-position: 50% 0; transform: scale(1.8); }
.insight-card:hover .thumb::before { transform: scale(1.12) rotate(1deg); }
.insight-card .thumb span {
  position: absolute;
  left: 22px; bottom: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.insight-card .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.insight-card h3 { font-size: 1.32rem; }
.meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }

/* CTA band */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(47, 93, 80, 0.75), transparent 70%),
    var(--ink-900);
  color: var(--on-dark);
}
.cta-band .topo-layer { opacity: 0.35; inset: -20%; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { color: var(--on-dark-muted); max-width: 40rem; font-size: 1.12rem; }
.cta-band .hero-actions { margin-top: 30px; }
.cta-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .cta-split { grid-template-columns: 1fr; } }

.question-preview {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--cream-50);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.question-preview .qp-top { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }
.question-preview .qp-bar { height: 4px; border-radius: 4px; background: var(--sand-100); margin-bottom: 20px; overflow: hidden; }
.question-preview .qp-bar i { display: block; width: 33%; height: 100%; background: var(--gold-500); }
.question-preview h3 { font-size: 1.15rem; margin-bottom: 16px; }
.question-preview .qp-opt { padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.9rem; margin-top: 8px; }
.question-preview .qp-opt.sel { border-color: var(--gold-500); background: rgba(201, 164, 92, 0.12); }

/* ---------- Services page ---------- */
.service-nav {
  position: sticky;
  top: 70px;
  z-index: 10;
  background: rgba(250, 247, 241, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.service-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  overflow-x: auto;
  padding-block: 12px;
  scrollbar-width: none;
}
.service-nav ul::-webkit-scrollbar { display: none; }
.service-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.service-nav a:hover { background: var(--sand-100); color: var(--text); }
.service-nav a.is-active { background: var(--ink-900); color: var(--cream-50); }

.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 0; }
.service-block .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-700);
  font-size: 1rem;
  display: block;
  margin-bottom: 14px;
}
.service-block h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.service-intro { position: sticky; top: 150px; align-self: start; }
.service-intro p { color: var(--text-muted); font-size: 1.07rem; }
.service-detail h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; color: var(--moss-600); flex: none; margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 30px; }
.chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 30px;
}
.compare > div {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.compare strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--moss-600);
  line-height: 1.1;
  margin: 6px 0 8px;
}
.compare span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.compare p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.note {
  padding: 16px 18px;
  border-left: 3px solid var(--gold-500);
  background: var(--sand-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; }
  .service-intro { position: static; }
}
@media (max-width: 480px) { .compare { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.3s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 1.6px solid var(--gold-600);
  border-bottom: 1.6px solid var(--gold-600);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.3s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .answer { padding: 0 26px 24px; color: var(--text-muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- About page ---------- */
.mission-quote {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 350;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.mission-quote::before {
  content: "\201C";
  display: block;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--gold-500);
  margin-bottom: 18px;
}
.mission-quote cite { display: block; margin-top: 22px; font-family: var(--font-body); font-style: normal; font-size: 0.9rem; color: var(--text-muted); letter-spacing: 0.02em; }
.principle { padding: 30px 0; border-top: 1px solid var(--line); }
.principle .num { font-family: var(--font-display); font-style: italic; color: var(--gold-700); display: block; margin-bottom: 10px; }
.principle h3 { font-size: 1.35rem; }
.principle p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }
.thinker {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: rgba(243, 237, 226, 0.03);
}
.thinker h3 { font-size: 1.3rem; margin-bottom: 4px; }
.thinker .role { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 16px; display: block; }
.thinker p { font-size: 0.95rem; margin: 0; }

/* ---------- Insights / articles ---------- */
.article {
  padding-block: clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}
.article:last-child { border-bottom: 0; }
.article .tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sand-100);
  color: var(--gold-700);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.article h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.article .standfirst { font-size: 1.2rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 1.6em; }
.prose p, .prose li { font-size: 1.06rem; line-height: 1.75; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; display: grid; gap: 6px; }
.prose h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--text);
}
.back-top { margin-top: 26px; }
.sources { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Resilience Check ---------- */
.check-shell {
  max-width: 820px;
  margin-inline: auto;
}
.check-card {
  position: relative;
  padding: clamp(26px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.check-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.check-top > span:last-child { white-space: nowrap; }
.dim-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sand-100);
  color: var(--moss-600);
  font-weight: 600;
  font-size: 0.8rem;
}
.dim-tag svg { width: 16px; height: 16px; }
.progress {
  height: 6px;
  border-radius: 6px;
  background: var(--sand-100);
  overflow: hidden;
  margin-bottom: clamp(26px, 4vw, 40px);
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--moss-600), var(--gold-500));
  transition: width 0.5s var(--ease);
}
.check-q { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 8px; outline: none; }
.check-help { color: var(--text-muted); margin-bottom: 26px; font-size: 0.98rem; }
.options { display: grid; gap: 10px; border: 0; padding: 0; margin: 0 0 30px; }
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.option:hover { border-color: var(--line-strong); transform: translateX(3px); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex: none;
  display: grid;
  place-items: center;
  transition: border-color 0.2s;
}
.option .radio::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}
.option input:checked + .radio { border-color: var(--gold-500); }
.option input:checked + .radio::after { transform: scale(1); }
.option:has(input:checked) { border-color: var(--gold-500); background: rgba(201, 164, 92, 0.08); }
.option input:focus-visible + .radio { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.option .key {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
}
@media (hover: none) { .option .key { display: none; } }
.check-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.check-intro .benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 34px; list-style: none; }
.check-intro .benefits li { padding: 18px; border-radius: 14px; background: var(--sand-100); font-size: 0.92rem; }
.check-intro .benefits strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--moss-600); line-height: 1.1; margin-bottom: 4px; }
@media (max-width: 560px) { .check-intro .benefits { grid-template-columns: 1fr; } }

.saved-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: rgba(47, 93, 80, 0.08);
  border: 1px solid rgba(47, 93, 80, 0.2);
  font-size: 0.92rem;
}

.results-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(22px, 4vw, 44px); align-items: center; margin-bottom: 36px; }
.score-ring { position: relative; width: 168px; height: 168px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .track { fill: none; stroke: var(--sand-100); stroke-width: 12; }
.score-ring .value { fill: none; stroke: url(#ringGrad); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.score-ring .label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.score-ring .label strong { font-family: var(--font-display); font-weight: 400; font-size: 3rem; line-height: 1; }
.score-ring .label span { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 560px) {
  .results-head { grid-template-columns: 1fr; justify-items: start; }
}

.level {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.level--exposed { background: rgba(176, 87, 63, 0.12); color: var(--risk); }
.level--developing { background: rgba(184, 134, 47, 0.14); color: #8a6420; }
.level--resilient { background: rgba(63, 125, 95, 0.14); color: var(--ok); }

.results-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; margin-bottom: 36px; }
@media (max-width: 760px) { .results-grid { grid-template-columns: 1fr; } }
.results-radar { padding: 18px; border-radius: var(--radius); background: var(--ink-900); }
.results-radar .radar { margin: 0 auto; }
.results-radar .radar text { font-size: 18px; }
.results-radar .radar .pct { fill: var(--gold-400); font-weight: 600; }
@media (max-width: 560px) {
  .results .check-actions,
  .results .check-actions .center-actions { flex-direction: column-reverse; width: 100%; }
  .results .check-actions .btn { width: 100%; }
}

.dim-results { display: grid; gap: 14px; }
.dim-row { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); }
.dim-row-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; }
.dim-row-head h3 { font-size: 1.08rem; margin: 0; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.dim-row-head h3 svg { width: 18px; height: 18px; color: var(--moss-600); }
.bar { height: 6px; border-radius: 6px; background: var(--sand-100); overflow: hidden; margin-bottom: 12px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width 1.2s var(--ease); }
.bar i.exposed { background: var(--risk); }
.bar i.developing { background: var(--warn); }
.bar i.resilient { background: var(--ok); }
.dim-row p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

.insight-box {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--sand-100);
  margin-bottom: 30px;
}
.insight-box h3 { font-size: 1.2rem; margin-bottom: 6px; }
.insight-box p { margin: 0; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact-steps { list-style: none; display: grid; gap: 20px; margin: 30px 0 36px; counter-reset: cstep; }
.contact-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.contact-steps li::before {
  counter-increment: cstep;
  content: counter(cstep);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--gold-400);
  font-family: var(--font-display);
  font-style: italic;
}
.contact-steps strong { display: block; font-weight: 600; }
.contact-steps span { color: var(--text-muted); font-size: 0.95rem; }
.contact-lines { list-style: none; display: grid; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.contact-lines li { display: flex; gap: 14px; align-items: center; }
.contact-lines svg { width: 22px; height: 22px; color: var(--gold-600); flex: none; }
.contact-lines a { text-decoration: none; font-weight: 500; }
.contact-lines a:hover { text-decoration: underline; }

.form-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .field legend { font-size: 0.9rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream-50);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355655f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.18);
}
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: var(--risk); }
.field-error { color: var(--risk); font-size: 0.84rem; }
.field-error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset.field legend { margin-bottom: 10px; padding: 0; }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-block;
  padding: 9px 15px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.pill:hover span { border-color: var(--line-strong); }
.pill input:checked + span { background: var(--ink-900); color: var(--cream-50); border-color: var(--ink-900); }
.pill input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--moss-600); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-size: 0.95rem; }
.form-status.is-error { color: var(--risk); }
.attached-results {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(47, 93, 80, 0.08);
  border: 1px solid rgba(47, 93, 80, 0.2);
  font-size: 0.9rem;
}
.attached-results button { border: 0; background: none; color: var(--text-muted); text-decoration: underline; cursor: pointer; font-size: 0.85rem; flex: none; }
.success-panel { text-align: center; padding: 30px 10px; }
.success-panel .icon-badge { margin-inline: auto; width: 68px; height: 68px; border-radius: 50%; background: rgba(63, 125, 95, 0.12); color: var(--ok); }
.success-panel .icon-badge svg { width: 32px; height: 32px; }
.success-panel h2 { font-size: 2rem; }
.success-panel p { color: var(--text-muted); }

/* ---------- Legal / prose pages ---------- */
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin-bottom: 1em; }
.placeholder { background: rgba(201, 164, 92, 0.2); padding: 0 4px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0 34px;
  background: var(--ink-950);
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand p { max-width: 30ch; margin-top: 20px; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--on-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 0.84rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal (enabled by JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: 0.1s; }
.js [data-reveal="3"] { transition-delay: 0.2s; }
.js [data-reveal="4"] { transition-delay: 0.3s; }
.js [data-reveal="5"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-center h2, .text-center p { margin-inline: auto; }
.text-center .hero-actions { justify-content: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(32px, 4vw, 48px); }
.center-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .check-actions, .no-print, .cta-band { display: none !important; }
  body { background: #fff; }
  .page-hero { padding: 20px 0; background: #fff; color: #000; }
  .page-hero .topo-layer { display: none; }
  .check-card { box-shadow: none; border: 0; }
  .results-radar { background: #0e1f1c; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
