/* =========================================================================
   Creative Voice Lab — design system
   Derived from creative_voice_lab_brand_book_by_pomelli.pdf

   Type      Pacifico (wordmark + accents only) · Poppins (everything else)
   Colour    Tuscan Red #B91E1E · Olive #424B08 · Sage #C1CD7D · Paper #F3F3F3
   Aesthetic modern, simple · Value: integrity
   ========================================================================= */

:root {
  /* --- Brand colour ---------------------------------------------------- */
  --brand:        #b91e1e;   /* Tuscan Red — primary, CTA only            */
  --brand-deep:   #8f1717;
  --brand-soft:   #fbeaea;
  --brand-line:   #f0d2d2;

  --olive:        #424b08;   /* deep sections, headings on light          */
  --olive-deep:   #2c3206;
  --olive-soft:   #eef0de;

  --sage:         #c1cd7d;   /* accent on dark, underlines, chips         */
  --sage-deep:    #a3b154;

  --paper:        #f3f3f3;   /* alternating section background            */
  --white:        #ffffff;

  /* --- Ink ------------------------------------------------------------- */
  --ink:          #1b1d12;
  --ink-body:     #474b3a;
  --ink-muted:    #75795f;
  --ink-faint:    #9a9d87;
  --line:         #e3e4d9;
  --line-soft:    #eeefe7;

  /* --- Type ------------------------------------------------------------ */
  --font-script: "Pacifico", "Brush Script MT", cursive;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* --- Form ------------------------------------------------------------ */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);

  --shadow-sm: 0 1px 2px rgba(27, 29, 18, .05), 0 2px 6px rgba(27, 29, 18, .04);
  --shadow:    0 8px 24px rgba(27, 29, 18, .07);
  --shadow-lg: 0 24px 56px rgba(44, 50, 6, .14);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* =========================================================================
   Base
   ========================================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand-deep); }

img, svg { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

strong { font-weight: 600; color: var(--ink); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

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

::selection { background: var(--sage); color: var(--olive-deep); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--olive);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 500;
}
.skip-link:focus { left: 12px; color: var(--white); }

/* =========================================================================
   Layout
   ========================================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--paper { background: var(--paper); }
.section--olive {
  background: var(--olive);
  color: rgba(255, 255, 255, .82);
}
.section--olive h2,
.section--olive h3,
.section--olive h4 { color: var(--white); }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  font-size: 1.08rem;
  color: var(--ink-muted);
  margin-bottom: 0;
}
.section--olive .section-head p { color: rgba(255, 255, 255, .72); }

/* Eyebrow — small label above a section heading */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section--olive .eyebrow { color: var(--sage); }
.section--olive .eyebrow::before { background: var(--sage); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* =========================================================================
   Brand mark + wordmark   (the only place Pacifico is allowed to lead)
   ========================================================================= */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-script);
  font-size: 1.42rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  letter-spacing: 0;
  padding-block: 4px;      /* Pacifico has deep descenders */
  white-space: nowrap;
}
.wordmark:hover { color: var(--brand-deep); }
.wordmark svg { width: 30px; height: 30px; flex: none; }

.wordmark--light { color: var(--white); }
.wordmark--light:hover { color: var(--sage); }

/* Accent word — used sparingly inside headings and pull quotes */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--brand);
}
.section--olive .script { color: var(--sage); }

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(185, 30, 30, .22);
}
.btn--primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(185, 30, 30, .28);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--olive);
  color: var(--olive);
  background: var(--olive-soft);
}

.btn--sage {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--olive-deep);
}
.btn--sage:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--olive-deep);
}

.btn--onDark {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: var(--white);
}
.btn--onDark:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--white);
  color: var(--white);
}

.btn--sm { padding: 11px 18px; font-size: .87rem; }
.btn--block { width: 100%; }

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

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  font-size: .95rem;
}
.link-arrow::after {
  content: "→";
  transition: transform .18s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(27, 29, 18, .05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-body);
  position: relative;
  padding-block: 6px;
}
.nav-links a:hover { color: var(--olive); }
.nav-links a[aria-current="page"] { color: var(--olive); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  transition: background .15s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 22px;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a {
    display: block;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
  }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-actions .btn--nav { display: none; }
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 10vw, 122px) clamp(56px, 8vw, 96px);
  background:
    radial-gradient(80% 120% at 88% 0%, var(--olive-soft) 0%, transparent 62%),
    radial-gradient(60% 100% at 4% 96%, var(--brand-soft) 0%, transparent 58%),
    var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: .38em; }

.hero-lede {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  color: var(--ink-muted);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-note {
  margin-top: 22px;
  font-size: .88rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-deep);
  flex: none;
}

/* Hero visual — a stylised, animated voice waveform */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / .84;
  border-radius: var(--radius-lg);
  background: var(--olive);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 70% at 50% 50%, rgba(193, 205, 125, .18), transparent 70%);
}
.wave {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.1vw, 8px);
  height: 46%;
  padding-inline: 8%;
  width: 100%;
  justify-content: center;
}
.wave i {
  display: block;
  flex: 1 1 auto;
  max-width: 10px;
  min-width: 3px;
  border-radius: 99px;
  background: var(--sage);
  opacity: .55;
  height: 18%;
  transform-origin: center;
  animation: wavePulse 1.7s var(--ease) infinite;
}
.wave i:nth-child(3n)   { background: rgba(255, 255, 255, .55); }
.wave i:nth-child(5n)   { background: var(--brand); opacity: .8; }

@keyframes wavePulse {
  0%, 100% { height: 16%; opacity: .45; }
  50%      { height: var(--peak, 92%); opacity: 1; }
}

.hero-visual-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  font-size: .8rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, .62);
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(44, 50, 6, .5);
}

/* =========================================================================
   Platform / credentials strip
   ========================================================================= */

.strip {
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding-block: 28px;
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 34px;
  justify-content: center;
}
.strip-label {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-faint);
}
.strip-item {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.strip-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage-deep);
}

/* =========================================================================
   Cards
   ========================================================================= */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--ink-muted); font-size: .97rem; }
.card > :last-child { margin-top: auto; padding-top: 14px; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  flex: none;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon--olive { background: var(--olive-soft); color: var(--olive); }
.card-icon--sage  { background: #f0f3e2; color: var(--sage-deep); }

.card--flat { background: transparent; border-color: transparent; padding: 0; }
.card--flat:hover { transform: none; box-shadow: none; border-color: transparent; }

/* Package card — the fuller service description blocks */
.package {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.package-head {
  padding: clamp(22px, 2.6vw, 30px);
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.package-head h3 { margin-bottom: .3em; }
.package-kicker {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 10px;
  display: block;
}
.package-meta {
  font-size: .87rem;
  color: var(--ink-muted);
  margin: 0;
}
.package-body {
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.package--feature { border-color: var(--sage); box-shadow: var(--shadow); }
.package--feature .package-head { background: var(--olive-soft); }

/* Include / exclude lists */
.list-check, .list-x {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}
.list-check li, .list-x li {
  position: relative;
  padding-left: 27px;
  margin-bottom: .55em;
  font-size: .94rem;
  line-height: 1.55;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .46em;
  width: 15px;
  height: 8px;
  border-left: 2px solid var(--sage-deep);
  border-bottom: 2px solid var(--sage-deep);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.list-x li { color: var(--ink-muted); }
.list-x li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 11px;
  height: 1.8px;
  background: var(--ink-faint);
  border-radius: 2px;
}

.list-label {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.list-label--in { color: var(--sage-deep); }

/* Small tag/chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--olive-soft);
  color: var(--olive);
  border: 1px solid transparent;
}
.chip--brand { background: var(--brand-soft); color: var(--brand); }
.chip--draft { background: var(--paper); color: var(--ink-faint); border-color: var(--line); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* =========================================================================
   Numbered process steps
   ========================================================================= */

.steps { counter-reset: step; display: grid; gap: 4px; }
.step {
  counter-increment: step;
  position: relative;
  padding: 24px 0 24px 62px;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand);
  width: 44px;
  padding-top: 2px;
}
.section--olive .step { border-color: rgba(255, 255, 255, .14); }
.section--olive .step::before { color: var(--sage); }
.step h3 { margin-bottom: .35em; font-size: 1.12rem; }
.step p { margin: 0; color: var(--ink-muted); font-size: .97rem; }
.section--olive .step p { color: rgba(255, 255, 255, .72); }

/* =========================================================================
   Scope-check tool
   ========================================================================= */

.scoper {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.scoper-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
@media (max-width: 900px) {
  .scoper-grid { grid-template-columns: 1fr; }
}

.scoper-form { padding: clamp(24px, 3.2vw, 40px); }
.scoper-out {
  padding: clamp(24px, 3.2vw, 40px);
  background: var(--olive);
  color: rgba(255, 255, 255, .8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.scoper-out h3, .scoper-out h4 { color: var(--white); }

.field { margin-bottom: 26px; }
.field:last-child { margin-bottom: 0; }
.field > legend,
.field > label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 11px;
  padding: 0;
}
.field-hint {
  font-size: .84rem;
  color: var(--ink-faint);
  margin: -5px 0 11px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
fieldset.field { border: 0; margin-inline: 0; padding: 0; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.opt span {
  display: block;
  padding: 10px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .89rem;
  font-weight: 500;
  color: var(--ink-body);
  cursor: pointer;
  transition: all .16s var(--ease);
  background: var(--white);
}
.opt input:hover + span { border-color: var(--sage-deep); }
.opt input:checked + span {
  border-color: var(--olive);
  background: var(--olive-soft);
  color: var(--olive);
}
.opt input:focus-visible + span {
  outline: 2.5px solid var(--brand);
  outline-offset: 2px;
}

.scoper-tier {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--white);
  line-height: 1.1;
  margin: 0 0 .3em;
}
.scoper-tag {
  font-size: 1rem;
  color: var(--sage);
  margin-bottom: 1.3em;
  font-weight: 500;
}
.scoper-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6em;
}
.scoper-includes li {
  padding-left: 22px;
  position: relative;
  font-size: .93rem;
  margin-bottom: .5em;
  color: rgba(255, 255, 255, .8);
}
.scoper-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}
.scoper-empty { color: rgba(255, 255, 255, .6); font-size: .97rem; }
.scoper-note {
  margin-top: 16px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
}

/* =========================================================================
   About / credentials
   ========================================================================= */

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cred {
  background: var(--white);
  padding: 22px 24px;
}
.cred dt {
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}
.cred dd {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-body);
  line-height: 1.5;
}

.pullquote {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.45;
  color: var(--olive);
  border-left: 3px solid var(--sage);
  padding: 4px 0 4px 26px;
  margin: 0;
}
.section--olive .pullquote { color: var(--sage); border-color: var(--sage); }

/* =========================================================================
   Insights / articles
   ========================================================================= */

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 28px);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.post-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.post-card h3 {
  font-size: 1.18rem;
  margin-bottom: .45em;
  letter-spacing: -.02em;
}
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--ink-muted); font-size: .95rem; flex: 1; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.post-meta time { font-variant-numeric: tabular-nums; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

/* Article body */
.article { max-width: 44rem; margin-inline: auto; }
.article-header { margin-bottom: clamp(32px, 4vw, 48px); }
.article-header h1 { margin-bottom: .35em; }
.article-lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin-bottom: 0;
}
.article-body { font-size: 1.06rem; line-height: 1.78; }
.article-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-top: 2.2em;
  margin-bottom: .55em;
}
.article-body h3 {
  font-size: 1.15rem;
  margin-top: 1.8em;
  margin-bottom: .5em;
}
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body li { margin-bottom: .55em; }
.article-body blockquote {
  margin: 1.8em 0;
  padding: 2px 0 2px 24px;
  border-left: 3px solid var(--sage);
  color: var(--olive);
  font-size: 1.1rem;
}
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
.article-body pre {
  background: var(--olive-deep);
  color: rgba(255, 255, 255, .9);
  padding: 20px 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.6;
}
.article-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  margin: 1.8em 0;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.article-body th { font-weight: 600; color: var(--ink); background: var(--paper); }

.table-scroll { overflow-x: auto; }

/* =========================================================================
   Forms
   ========================================================================= */

.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

.input, .textarea, .select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(66, 75, 8, .1);
}
.textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2375795f' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 40px;
}
.label {
  display: block;
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}
.label .req { color: var(--brand); }

.form-note { font-size: .84rem; color: var(--ink-faint); }

.alert {
  padding: 14px 17px;
  border-radius: var(--radius-sm);
  font-size: .94rem;
  border: 1px solid transparent;
  margin-bottom: 20px;
}
.alert--ok { background: #eef3e0; border-color: var(--sage); color: var(--olive-deep); }
.alert--err { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-deep); }
.alert[hidden] { display: none; }

/* Honeypot — must stay visually hidden but focusable-free */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* =========================================================================
   CTA band
   ========================================================================= */

.cta-band {
  background: var(--olive);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 60px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(193, 205, 125, .16), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: .4em; }
.cta-band p {
  color: rgba(255, 255, 255, .74);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 1.8em;
}
.cta-band .btn-row { justify-content: center; }

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--olive-deep);
  color: rgba(255, 255, 255, .62);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-about { max-width: 34ch; }
.footer-about p { margin-top: 14px; font-size: .92rem; }
.site-footer h4 {
  color: var(--white);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .6em; }
.footer-list a { color: rgba(255, 255, 255, .62); }
.footer-list a:hover { color: var(--sage); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: .84rem;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom a { color: rgba(255, 255, 255, .45); }
.footer-bottom a:hover { color: var(--sage); }

/* =========================================================================
   Chat widget
   ========================================================================= */

.chat-launcher {
  position: fixed;
  right: clamp(16px, 3vw, 26px);
  bottom: clamp(16px, 3vw, 26px);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 17px;
  border: 0;
  border-radius: 99px;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font);
  font-size: .93rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(185, 30, 30, .32);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(185, 30, 30, .38); }
.chat-launcher svg { width: 20px; height: 20px; flex: none; }
.chat-launcher[hidden] { display: none; }

.chat-panel {
  position: fixed;
  right: clamp(12px, 3vw, 26px);
  bottom: clamp(12px, 3vw, 26px);
  z-index: 96;
  width: min(400px, calc(100vw - 24px));
  height: min(620px, calc(100dvh - 24px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: none; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 20px;
  background: var(--olive);
  color: var(--white);
  flex: none;
}
.chat-head-title { font-weight: 600; font-size: .98rem; line-height: 1.25; }
.chat-head-sub { font-size: .78rem; color: rgba(255, 255, 255, .62); }
.chat-head-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: grid; place-items: center;
  flex: none;
}
.chat-head-mark svg { width: 18px; height: 18px; }
.chat-close {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  flex: none;
  transition: background .16s var(--ease);
}
.chat-close:hover { background: rgba(255, 255, 255, .24); }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
  scroll-behavior: smooth;
}

.msg {
  max-width: 86%;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: .93rem;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg--bot {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-body);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.msg--user {
  background: var(--olive);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}
.msg strong { color: inherit; font-weight: 600; }
.msg a { color: var(--brand); text-decoration: underline; }
.msg--user a { color: var(--sage); }

.msg--typing { display: flex; gap: 5px; align-items: center; padding: 15px; }
.msg--typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  animation: blink 1.3s infinite;
}
.msg--typing i:nth-child(2) { animation-delay: .18s; }
.msg--typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30%           { opacity: 1;  transform: translateY(-3px); }
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px 12px;
  background: var(--paper);
}
.chat-chip {
  font-family: var(--font);
  font-size: .82rem;
  padding: 8px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--olive);
  cursor: pointer;
  transition: all .16s var(--ease);
}
.chat-chip:hover { border-color: var(--sage-deep); background: var(--olive-soft); }

.chat-form {
  display: flex;
  gap: 9px;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
  flex: none;
}
.chat-input {
  flex: 1;
  font-family: var(--font);
  font-size: .94rem;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 11px 16px;
  color: var(--ink);
  min-width: 0;
}
.chat-input:focus {
  outline: none;
  border-color: var(--olive);
}
.chat-send {
  width: 42px; height: 42px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .16s var(--ease);
}
.chat-send:hover:not(:disabled) { background: var(--brand-deep); }
.chat-send:disabled { background: var(--line); color: var(--ink-faint); cursor: not-allowed; }
.chat-send svg { width: 18px; height: 18px; }

.chat-foot {
  padding: 0 16px 12px;
  font-size: .72rem;
  color: var(--ink-faint);
  text-align: center;
  background: var(--white);
}

/* =========================================================================
   Admin
   ========================================================================= */

.admin-shell { max-width: 900px; margin-inline: auto; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--white);
}
.admin-row-title { font-weight: 500; color: var(--ink); flex: 1; min-width: 0; }
.admin-row-title small { display: block; font-weight: 400; color: var(--ink-faint); font-size: .8rem; }

/* =========================================================================
   Utilities
   ========================================================================= */

.center { text-align: center; }
.muted { color: var(--ink-muted); }
.small { font-size: .88rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.stack > * + * { margin-top: 18px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   Motion & print
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .wave i { height: 45%; opacity: .7; }
}

@media print {
  .site-header, .chat-launcher, .chat-panel, .site-footer, .cta-band { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .section { padding-block: 18px; }
}
