/* ============================================================
   Harborstone design system
   Cream / ink / sage, Fraunces + Inter, thin lines, calm motion
   Built 2026-07-29 by the Dell website thread
   ============================================================ */

:root {
  --cream: #FDFCF7;
  --sand: #F2EEE6;
  --sand-deep: #E9E3D6;
  --ink: #2C2F2D;
  --ink-soft: #4A4F4C;
  --muted: #6E7570;
  --sage: #4A5D54;
  --sage-deep: #3E4F47;
  --pine: #2F3E37;
  --pine-deep: #27332D;
  --line: #E3DED2;
  --line-dark: rgba(253, 252, 247, 0.16);
  --gold: #B0813C;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(44, 47, 45, 0.05), 0 8px 28px rgba(44, 47, 45, 0.07);
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --wrap-narrow: 780px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--cream);
  color: var(--ink);
  font: 400 16.5px/1.68 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain: one fixed, non-interactive veil that unifies every band */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 300;
  pointer-events: none;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */

h1, h2, h3.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.4vw, 82px); line-height: 1.04; letter-spacing: -0.022em; }
h2 { font-size: clamp(28px, 4.2vw, 48px); letter-spacing: -0.018em; }
h1 em, h2 em { font-style: italic; color: var(--sage); }

h3 { font: 600 19px/1.35 var(--font-text); letter-spacing: -0.01em; }
h4 { font: 600 16px/1.4 var(--font-text); }

.overline {
  font: 600 11.5px/1.2 var(--font-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}
.overline::before {
  content: ""; display: inline-block;
  width: 22px; height: 2px; background: var(--gold);
  vertical-align: 3px; margin-right: 11px;
}

.lede { font-size: clamp(17px, 2vw, 19.5px); line-height: 1.66; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

p + p { margin-top: 14px; }

a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine); }

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

::selection { background: #D8E0DB; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.mission-panel.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 1000px) { .mission-panel.three { grid-template-columns: 1fr; } }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--pine); color: var(--cream);
  padding: 12px 20px; z-index: 200; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--cream); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 14px 30px;
  font: 600 15.5px/1.2 var(--font-text);
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(74, 93, 84, 0.28); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--sage-deep); border-color: #B8C2BB; }
.btn-ghost:hover { border-color: var(--sage); color: var(--pine); background: rgba(74, 93, 84, 0.06); }
.btn-light { background: var(--cream); color: var(--pine); }
.btn-light:hover { background: #fff; color: var(--pine); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--line-dark); }
.btn-ghost-light:hover { border-color: var(--cream); color: #fff; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link {
  font: 600 15.5px/1.2 var(--font-text);
  color: var(--sage-deep); text-decoration: none;
  border-bottom: 1.5px solid #C4CDC6; padding-bottom: 3px;
}
.text-link:hover { border-color: var(--sage); color: var(--pine); }

/* ---------- Top contact bar ---------- */

.topbar {
  background: var(--pine); color: rgba(253, 252, 247, 0.85);
  font-size: 13px; padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.topbar .area { letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; font-size: 11px; color: rgba(253, 252, 247, 0.6); }
.topbar .links { display: flex; gap: 18px; align-items: center; }
.topbar a { color: var(--cream); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .topbar .area { display: none; }
  .topbar .links { width: 100%; justify-content: center; gap: 14px; }
  .topbar .email-link { display: none; }
}

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 252, 247, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink);
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .name {
  font: 600 21px/1 var(--font-display);
  letter-spacing: 0.01em;
}
.brand .desc {
  display: block;
  font: 500 10.5px/1.3 var(--font-text);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font: 500 14.5px/1.2 var(--font-text);
  color: var(--ink-soft); text-decoration: none;
  padding: 12px 13px; border-radius: 8px;
  white-space: nowrap;
}
@media (max-width: 1320px) {
  .site-nav a:not(.btn) { padding: 12px 9px; font-size: 13.5px; }
}
.site-nav a:hover { color: var(--pine); background: rgba(74, 93, 84, 0.07); }
.site-nav a[aria-current="page"] { color: var(--pine); font-weight: 600; }
.site-nav .btn { margin-left: 10px; min-height: 44px; padding: 10px 20px; }
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover,
.site-nav a.btn-primary[aria-current="page"] { color: #fff; font-weight: 600; }
.site-nav a.btn-primary:hover { background: var(--sage-deep); }

.nav-toggle {
  display: none;
  background: none; border: 1.5px solid var(--line); border-radius: 9px;
  width: 46px; height: 46px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 12px; font-size: 16px; }
  .site-nav .btn { margin: 10px 0 0; }
}

/* ---------- Sections ---------- */

section { padding: clamp(64px, 9vw, 108px) 0; }
section.band { background: var(--sand); }
section.band-pine { background: var(--pine); color: var(--cream); }
section.tight { padding: clamp(44px, 6vw, 72px) 0; }

/* Harbor-line seam: a cream waterline where a band begins */
section.band, section.band-pine { position: relative; padding-top: clamp(88px, 11vw, 136px); }
section.band::before, section.band-pine::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1440 V10 C1180 34 940 34 720 20 C500 6 260 6 0 26 Z' fill='%23FDFCF7'/%3E%3C/svg%3E") top center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Faint waterlines inside deep-pine surfaces */
section.band-pine, .mission-panel, .site-footer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='90' viewBox='0 0 640 90'%3E%3Cpath d='M0 45 C160 35 320 55 480 45 C560 40 600 40 640 45' stroke='%23FDFCF7' stroke-opacity='0.045' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 640px 90px;
}
section.band-pine { background-color: var(--pine); }
.mission-panel { background-color: var(--pine); }
.site-footer { background-color: var(--pine); }

.band-pine h2, .band-pine h3 { color: var(--cream); }
.band-pine .overline { color: #A9C0B3; }
.band-pine p { color: rgba(253, 252, 247, 0.85); }
.band-pine a { color: #CBDDD2; }

.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head p { margin-top: 14px; }

.center { text-align: center; }
.center.sec-head { margin-left: auto; margin-right: auto; }

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

.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero.tall { min-height: min(calc(100vh - 72px), 820px); display: flex; align-items: center; padding: clamp(40px, 5vw, 64px) 0; }
@supports (height: 100svh) { .hero.tall { min-height: min(calc(100svh - 72px), 820px); } }
.hero.tall .wrap { width: 100%; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy .lede { margin: 22px 0 30px; max-width: 560px; }
.hero-note {
  margin-top: 22px; padding: 13px 16px;
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink-soft); max-width: 560px;
}
.hero-media { position: relative; }
.hero-media img {
  width: 100%; height: clamp(360px, 46vw, 600px); object-fit: cover;
  border-radius: 320px 320px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  filter: saturate(1.04) sepia(0.06);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid var(--line);
  border-radius: 320px 320px var(--radius) var(--radius);
  z-index: -1;
}

/* Orchestrated hero entrance (home) */
body.js .hero.tall .hero-copy > * , body.js .hero.tall .hero-media {
  animation: rise .7s cubic-bezier(.2, .7, .25, 1) both;
}
body.js .hero.tall .hero-copy > :nth-child(1) { animation-delay: .05s; }
body.js .hero.tall .hero-copy > :nth-child(2) { animation-delay: .14s; }
body.js .hero.tall .hero-copy > :nth-child(3) { animation-delay: .24s; }
body.js .hero.tall .hero-copy > :nth-child(4) { animation-delay: .34s; }
body.js .hero.tall .hero-copy > :nth-child(5) { animation-delay: .44s; }
body.js .hero.tall .hero-media { animation-delay: .2s; animation-duration: .9s; }
@media (prefers-reduced-motion: reduce) {
  body.js .hero.tall .hero-copy > *, body.js .hero.tall .hero-media { animation: none; }
}

.page-hero { padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.page-hero .lede { max-width: 700px; margin-top: 18px; }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media::after { display: none; }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D6CFC0; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card > img:first-child { border-radius: 160px 160px 9px 9px !important; filter: saturate(1.04) sepia(0.06); }
.band .card { background: var(--cream); }
.card .num {
  font: 400 15px/1 var(--font-display); font-style: italic;
  color: var(--gold); display: block; margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--ink-soft); }

.pillar-card { border-top: 3px solid var(--sage); }

.problem-card .challenge { font-size: 15px; color: var(--ink-soft); }
.problem-card .label {
  font: 600 11.5px/1.2 var(--font-text); letter-spacing: 0.12em;
  text-transform: uppercase; margin: 0 0 7px;
}
.problem-card .label.a { color: var(--gold); }
.problem-card .label.b { color: var(--sage); margin-top: 18px; }
.problem-card .response { font-size: 15px; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px); align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img {
  width: 100%; height: clamp(300px, 34vw, 440px);
  object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- Mission panel ---------- */

.mission-panel {
  background: var(--pine); color: var(--cream);
  border-radius: var(--radius); padding: clamp(30px, 5vw, 52px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 860px) { .mission-panel { grid-template-columns: 1fr; } }
.mission-panel .tag {
  font: 600 11.5px/1.2 var(--font-text); letter-spacing: 0.15em;
  text-transform: uppercase; color: #A9C0B3; margin-bottom: 12px;
}
.mission-panel .line {
  font: 400 clamp(22px, 2.6vw, 30px)/1.3 var(--font-display);
  color: var(--cream);
}
.mission-panel .line em { font-style: italic; color: #C9DACF; }

/* ---------- Checklist ---------- */

.check-list { list-style: none; display: grid; gap: 11px; }
.check-list.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 11px 28px; }
@media (max-width: 720px) { .check-list.cols-2 { grid-template-columns: 1fr; } }
.check-list li {
  position: relative; padding-left: 30px; font-size: 15.5px; color: var(--ink-soft);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--sage);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/100% no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/100% no-repeat;
}
.band-pine .check-list li { color: rgba(253,252,247,.85); }
.band-pine .check-list li::before { background: #A9C0B3; }

/* ---------- Value chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 500 14.5px/1 var(--font-text);
  color: var(--pine); background: #fff;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 12px 18px;
}
.band .chip { background: var(--cream); }

/* ---------- Compact composed bands ---------- */

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

.mini-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mini-cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .mini-cards, .mini-cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mini-cards, .mini-cards.three { grid-template-columns: 1fr; } }
.mini-cards .card { padding: 20px 20px 22px; }
.mini-cards .card h3 { font-size: 16px; }
.mini-cards .card p { font-size: 14px; }

.steps-grid { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps-grid.five { grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1080px) { .steps-grid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .steps-grid, .steps-grid.five { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid, .steps-grid.five { grid-template-columns: 1fr; } }
.steps-grid li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px 20px; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.steps-grid li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .steps-grid li:hover { transform: none; } }
@media (min-width: 1081px) {
  .steps-grid.five li:not(:last-child)::after {
    content: ""; position: absolute; right: -13px; top: 27px; width: 12px;
    border-top: 2px dotted var(--gold); opacity: .55;
  }
}
.band .steps-grid li { background: var(--cream); }
.steps-grid li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font: 400 15px/1 var(--font-display); font-style: italic;
  color: var(--gold); margin-bottom: 10px;
}
.steps-grid h3 { font-size: 15.5px; margin-bottom: 5px; }
.steps-grid p { font-size: 14px; color: var(--ink-soft); }

.quick-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.story-beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 36px); }
@media (min-width: 861px) {
  .story-beats .beat:nth-child(2) { margin-top: 26px; }
  .story-beats .beat:nth-child(3) { margin-top: 52px; }
}
@media (max-width: 860px) { .story-beats { grid-template-columns: 1fr; } }
.story-beats .beat .num {
  font: 400 clamp(34px, 4vw, 48px)/1 var(--font-display); font-style: italic;
  color: var(--gold); display: block; margin-bottom: 12px;
}
.story-beats .beat h3 { font: 400 clamp(20px, 2.2vw, 26px)/1.25 var(--font-display); margin-bottom: 8px; }
.story-beats .beat p { font-size: 15px; color: var(--ink-soft); }

.next-step { border-top: 1px solid var(--line); background: var(--cream); }
.next-step .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 0;
}
.next-step .label { font: 600 12px/1.2 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.next-step a {
  font: 400 clamp(20px, 2.4vw, 28px)/1.2 var(--font-display);
  color: var(--pine); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.next-step a .arr { transition: transform .2s ease; }
.next-step a:hover .arr { transform: translateX(4px); }
@media (max-width: 640px) { .next-step .inner { flex-direction: column; align-items: flex-start; gap: 8px; } }

.subhead { font: 600 13px/1.3 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin: 0 0 12px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: clamp(26px, 4vw, 40px) 0; }
.band-pine .divider { border-top-color: var(--line-dark); }

/* ---------- Steps / timeline ---------- */

.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  position: relative; padding: 0 0 26px 58px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font: 400 17px/1 var(--font-display); font-style: italic;
  color: var(--gold);
  width: 38px; height: 38px; border: 1px solid var(--line-dark);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: transparent;
}
.steps li::after {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: 4px;
  width: 1px; background: var(--line-dark);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; }
.steps p { font-size: 15px; }

.steps.on-light li::before { border-color: var(--sand-deep); color: var(--gold); }
.steps.on-light li::after { background: var(--sand-deep); }

/* ---------- Callout / disclaimer ---------- */

.callout {
  border-left: 3px solid var(--sage);
  background: var(--sand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; font-size: 15px; color: var(--ink-soft);
}
.callout.warn { border-left-color: var(--gold); }
.callout strong { color: var(--ink); }
.band .callout { background: var(--cream); }
.band-pine .callout {
  background: var(--pine-deep); border-left-color: #A9C0B3;
  color: rgba(253, 252, 247, 0.85);
}
.band-pine .callout strong { color: var(--cream); }

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

.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 16px; }
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden;
}
details.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  font: 600 16px/1.4 var(--font-text); color: var(--ink);
  min-height: 48px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; flex: none;
  font: 300 24px/1 var(--font-text); color: var(--sage);
  transition: transform .2s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .a { padding: 0 20px 20px; font-size: 15.5px; color: var(--ink-soft); max-width: 720px; }
details.faq summary:hover { background: rgba(74, 93, 84, 0.05); }

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

.form-shell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font: 600 14px/1.3 var(--font-text);
  margin-bottom: 7px; color: var(--ink);
}
.field .req { color: var(--gold); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 48px;
  font: 400 15.5px/1.4 var(--font-text); color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 9px;
  padding: 12px 14px;
  transition: border-color .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(74, 93, 84, 0.14);
}
.field select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="9" viewBox="0 0 14 9" fill="none"><path d="M1 1l6 6 6-6" stroke="%234A5D54" stroke-width="2" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat; background-position: right 15px center;
  padding-right: 40px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.form-group {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 22px 8px; margin-bottom: 20px;
  background: var(--cream);
}
.form-group > h3 {
  font-size: 16px; margin-bottom: 16px; color: var(--pine);
  display: flex; align-items: center; gap: 9px;
}
.form-group > h3::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage); flex: none;
}
body.js .form-group.cond[hidden] { display: none; }

.sensitive-note {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-soft);
  background: #F6EEDF; border: 1px solid #E8D9BC; border-radius: 9px;
  padding: 11px 14px; margin-bottom: 9px;
}
.sensitive-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--gold); }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 2px; font-size: 14.5px; color: var(--ink-soft);
}
.consent input[type="checkbox"] {
  flex: none; width: 21px; height: 21px; margin-top: 2px;
  accent-color: var(--sage); cursor: pointer;
}
.consent label { cursor: pointer; }

.form-actions { margin-top: 10px; }
.form-hint { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

.no-js-note { margin-bottom: 18px; }
body.js .no-js-note { display: none; }

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

.site-footer {
  background: var(--pine); color: rgba(253, 252, 247, 0.82);
  padding: clamp(48px, 7vw, 76px) 0 36px;
  font-size: 14.5px;
}
.site-footer .top {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  padding-bottom: 36px; border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 860px) { .site-footer .top { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--cream); }
.site-footer .brand .name { color: var(--cream); }
.site-footer .brand .desc { color: rgba(253, 252, 247, 0.55); }
.site-footer .mission-line {
  font: 400 19px/1.45 var(--font-display); font-style: italic;
  color: #C9DACF; margin-top: 18px; max-width: 340px;
}
.site-footer h4 {
  font: 600 12px/1.2 var(--font-text); letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(253, 252, 247, 0.55);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: rgba(253, 252, 247, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .legal {
  padding-top: 26px;
  display: grid; gap: 12px;
  font-size: 13px; color: rgba(253, 252, 247, 0.72);
  max-width: 860px;
}
.site-footer .copyright { margin-top: 10px; font-size: 13px; color: rgba(253, 252, 247, 0.66); }

/* ---------- Reveal motion ---------- */

body.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
body.js .reveal.in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Children of revealed grids rise in sequence */
body.js .reveal > .beat, body.js .reveal > li, body.js .reveal > .card, body.js .reveal > .chip { opacity: 0; }
body.js .reveal.in > .beat, body.js .reveal.in > li, body.js .reveal.in > .card, body.js .reveal.in > .chip {
  animation: rise .55s cubic-bezier(.2, .7, .3, 1) both;
}
body.js .reveal.in > :nth-child(1) { animation-delay: .02s; }
body.js .reveal.in > :nth-child(2) { animation-delay: .1s; }
body.js .reveal.in > :nth-child(3) { animation-delay: .18s; }
body.js .reveal.in > :nth-child(4) { animation-delay: .26s; }
body.js .reveal.in > :nth-child(5) { animation-delay: .34s; }
body.js .reveal.in > :nth-child(6) { animation-delay: .42s; }
body.js .reveal.in > :nth-child(n+7) { animation-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  body.js .reveal { opacity: 1; transform: none; transition: none; }
  body.js .reveal > .beat, body.js .reveal > li, body.js .reveal > .card, body.js .reveal > .chip { opacity: 1; }
  body.js .reveal.in > .beat, body.js .reveal.in > li, body.js .reveal.in > .card, body.js .reveal.in > .chip { animation: none; }
}

/* Header hairline shadow once the page scrolls */
.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(44, 47, 45, 0.06); }

/* Nav link underline slide */
.site-nav a:not(.btn) { position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 7px; height: 1.5px;
  background: var(--sage); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.site-nav a:not(.btn):hover::after, .site-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

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

.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 18px; } .mt-3 { margin-top: 28px; }
.mt-4 { margin-top: 40px; } .mb-2 { margin-bottom: 18px; } .mb-3 { margin-bottom: 28px; }
.maxw { max-width: 720px; }

/* ============================================================
   v4 features: transitions, water, drawn path, calm mode,
   FAQ search, referral wizard, fit check, resource hub
   ============================================================ */

/* Soft cross-fade between pages (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Living water: ambient canvas along the hero's lower edge */
.hero.tall { position: relative; }
.hero-water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  width: 100%; pointer-events: none; z-index: 0; opacity: .85;
}
.hero.tall .wrap { position: relative; z-index: 1; }
html.calm .hero-water { display: none; }

/* The path draws itself down the story band */
.story-band { position: relative; }
.path-line {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  height: 100%; width: min(92vw, 1040px); z-index: 0; pointer-events: none;
}
.path-line path {
  stroke: var(--gold); stroke-width: 2; fill: none; opacity: .5;
  stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
html.calm .path-line path, body:not(.js) .path-line path { stroke-dashoffset: 0 !important; }
.story-band .wrap { position: relative; z-index: 1; }
@media (max-width: 860px) { .path-line { display: none; } }

/* Motion control: one clearly labeled switch in the footer */
.motion-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line-dark);
}
.calm-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1.5px solid rgba(253, 252, 247, 0.35); border-radius: 999px;
  min-height: 42px; padding: 8px 16px; cursor: pointer;
  font: 600 13px/1 var(--font-text); letter-spacing: .04em; color: rgba(253, 252, 247, 0.9);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.calm-toggle:hover { border-color: var(--cream); color: #fff; }
.calm-toggle svg { width: 15px; height: 15px; }
.calm-toggle .state { font-weight: 700; }
.calm-toggle[aria-pressed="true"] { background: rgba(253, 252, 247, 0.14); border-color: var(--cream); }
.motion-hint { font-size: 12.5px; color: rgba(253, 252, 247, 0.7); }
.res-card .num-line a { color: var(--pine); text-decoration-thickness: 1.5px; }
html.calm *, html.calm *::before, html.calm *::after {
  animation-duration: 0.001s !important; animation-delay: 0s !important;
  transition-duration: 0.001s !important;
}
html.calm { scroll-behavior: auto; }

/* FAQ instant search */
.faq-search { position: relative; max-width: 520px; margin: 0 0 26px; }
.faq-search input {
  width: 100%; min-height: 52px;
  font: 400 16px/1.4 var(--font-text); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 13px 20px 13px 48px;
}
.faq-search input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(74,93,84,.14); }
.faq-search svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.faq-count { font-size: 13.5px; color: var(--muted); margin-top: 8px; padding-left: 4px; }
body:not(.js) .faq-search { display: none; }

/* Referral wizard */
.wiz-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.wiz-progress .bar-track { flex: 1; height: 4px; background: var(--sand-deep); border-radius: 4px; overflow: hidden; }
.wiz-progress .bar-fill { height: 100%; width: 33%; background: var(--sage); border-radius: 4px; transition: width .3s ease; }
.wiz-progress .lab { font: 600 12px/1 var(--font-text); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
body.js .wiz-step[hidden] { display: none; }
body:not(.js) .wiz-step[hidden] { display: block; }
[data-nojs-submit] { display: none; }
body:not(.js) [data-nojs-submit] { display: block; }
body:not(.js) .fit-q, body:not(.js) .fit-back, body:not(.js) .fit-dots { display: none; }
.wiz-step > h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 18px; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; }
body:not(.js) .wiz-nav, body:not(.js) .wiz-progress { display: none; }

/* Fit check */
.fit-shell { max-width: 640px; margin: 0 auto; }
.fit-dots { display: flex; gap: 8px; margin-bottom: 24px; }
.fit-dots span { width: 34px; height: 4px; border-radius: 4px; background: var(--sand-deep); transition: background .25s ease; }
.fit-dots span.on { background: var(--sage); }
.fit-q h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.fit-q .sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.fit-opts { display: grid; gap: 12px; }
.fit-opt {
  text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 18px 20px; cursor: pointer; font: 500 16.5px/1.45 var(--font-text); color: var(--ink);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fit-opt:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow); }
.fit-opt .hint { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.fit-back { margin-top: 20px; }
body.js .fit-q[hidden], body.js .fit-result[hidden] { display: none; }
.fit-result .callout { margin-top: 18px; }
body:not(.js) .fit-shell .js-only { display: none; }
.fit-nojs { display: none; }
body:not(.js) .fit-nojs { display: block; }

/* Resource hub */
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .res-grid { grid-template-columns: 1fr; } }
.res-card { display: block; text-decoration: none; }
.res-card .card { height: 100%; }
.res-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.res-card h3 .arr { color: var(--sage); transition: transform .2s ease; }
.res-card:hover h3 .arr { transform: translateX(3px); }
.res-card .num-line { font: 600 15px/1.3 var(--font-text); color: var(--pine); margin-top: 8px; }
.res-note { font-size: 13.5px; color: var(--muted); }

/* Crisis strip: SAMHSA-standard wording, sitewide, above the footer */
.crisis-strip {
  background: var(--sand); border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-soft); text-align: center;
  padding: 11px 0;
}
.crisis-strip a { font-weight: 600; color: var(--pine); }

/* Sticky mobile inquiry bar (form-first until a real phone exists) */
.sticky-inquiry {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(253, 252, 247, 0.97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(44, 47, 45, 0.08);
}
.sticky-inquiry .btn { flex: 1; min-height: 46px; padding: 11px 12px; font-size: 14.5px; }
@media (max-width: 720px) {
  body.js .sticky-inquiry.on { display: flex; }
}
html.calm .sticky-inquiry { transition: none; }

/* Trust microcopy under CTAs */
.cta-trust { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Two-minute brief (referral professionals) */
.brief-band { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.band-pine .brief-band { background: var(--pine-deep); border-color: var(--line-dark); }
.brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; }
@media (max-width: 900px) { .brief-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .brief-grid { grid-template-columns: 1fr; } }
.brief-item .k { font: 600 11px/1.2 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.band-pine .brief-item .k { color: #A9C0B3; }
.brief-item .v { font-size: 14.5px; }
.band-pine .brief-item .v { color: rgba(253, 252, 247, 0.9); }

/* Cost context band */
.cost-band { border-left: 3px solid var(--gold); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; padding: clamp(20px, 3vw, 28px); }
.band .cost-band { background: var(--cream); }
.cost-band .figure { font: 400 clamp(26px, 3.4vw, 38px)/1.1 var(--font-display); color: var(--pine); }
.cost-band .figure em { font-style: italic; color: var(--gold); }
.cost-band .src { font-size: 12.5px; color: var(--muted); }

/* Fact sheet download row */
.download-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.band-pine .download-row { background: var(--pine-deep); border-color: var(--line-dark); }
.download-row .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--sand); display: flex; align-items: center; justify-content: center; color: var(--pine); }
.band-pine .download-row .ic { background: rgba(253,252,247,.1); color: var(--cream); }
.download-row .t { flex: 1; min-width: 200px; font-size: 14.5px; }
.download-row .t b { display: block; font-size: 15.5px; }
