/* Jiva Noble site styles
   Boutique consultancy look: warm ivory, deep forest, terracotta used sparingly. */
:root {
  --rust: #8B4A2F;           /* deep rust for tool highlights */
  --ivory: #F7F5EF;
  --ivory-deep: #EFECE3;
  --paper: #FFFFFF;
  --forest: #263D32;
  --forest-hover: #1B2D24;
  --forest-tint: #E3E9E4;
  --terracotta: #A66C50;      /* rules, markers, large text only (3.9:1 on ivory) */
  --terracotta-text: #8F5A41; /* small text in terracotta (5.2:1) */
  --ink: #1E2420;
  --ink-soft: #454C47;
  --muted: #5C635D;
  --line: #DDD8CB;
  --line-soft: #E8E4D9;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--forest); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type: serif only for the two largest headline levels */
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); line-height: 1.12; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; line-height: 1.35; margin: 0; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--ink-soft); max-width: 34em; }
.small { font-size: 0.9rem; color: var(--muted); }
.kicker { font-size: 0.95rem; font-weight: 600; color: var(--terracotta-text); margin-bottom: 18px; }

/* Buttons: one shape everywhere, small radius, visible states */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75em 1.35em;
  font: 600 1rem/1.2 var(--sans);
  border-radius: var(--r); border: 1px solid var(--forest);
  background: var(--forest); color: #fff;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--forest-hover); border-color: var(--forest-hover); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--forest-tint); color: var(--forest); border-color: var(--forest); }
.btn--light { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--forest); }
.btn--sm { min-height: 40px; padding: 0.5em 1em; font-size: 0.95rem; }
.btn--block { width: 100%; }
.textlink { font-weight: 600; color: var(--forest); }

/* Audience bar */
.audience { background: var(--forest); color: #E9EEEA; font-size: 0.875rem; }
.audience .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.audience p { margin: 0; color: #C9D5CC; }
.audience-switch { display: flex; gap: 4px; }
.audience-switch a {
  text-decoration: none; padding: 6px 12px; border-radius: var(--r);
  border: 1px solid transparent; color: #E9EEEA;
}
.audience-switch a:hover { border-color: #6F8578; color: #fff; }
.audience-switch a[aria-current="page"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
@media (max-width: 640px) { .audience p { display: none; } .audience .wrap { justify-content: center; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 28px; width: auto; }
.brand .wordmark { font-family: "Jost", var(--sans); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--forest); white-space: nowrap; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav a:not(.btn) { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover { color: var(--forest); border-bottom-color: var(--forest); }
.short { display: none; }
@media (max-width: 900px) { .nav .nav-link { display: none; } }
@media (max-width: 480px) {
  .nav .long { display: none; } .nav .short { display: inline; }
  .brand .wordmark { font-size: 0.95rem; letter-spacing: 0.26em; }
}

/* Hero with restrained grid lines */
.hero {
  position: relative;
  padding-block: clamp(36px, 4.5vw, 64px) clamp(36px, 4vw, 56px);
  background-image:
    linear-gradient(to right, rgba(221, 216, 203, .55) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  background-position: center top;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px solid var(--line); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy { padding: 8px 0; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { margin: 16px 0 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { background-size: calc(100% / 3) 100%; }
}

/* Layered sample documents */
.samples { position: relative; display: flex; flex-direction: column; padding-top: 34px; }
.samples-label { position: absolute; right: 0; top: 0; font-size: 0.8rem; color: var(--muted); background: var(--ivory); padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r); }
.doc {
  position: relative; width: 78%; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 20px;
  box-shadow: 0 1px 0 var(--line-soft), 0 18px 40px -28px rgba(30, 36, 32, .35);
  font-size: 0.8rem; color: var(--ink-soft);
}
.doc + .doc { margin-top: -12px; }
.doc-1 { z-index: 1; }
.doc-2 { z-index: 2; align-self: flex-end; }
.doc-3 { z-index: 3; margin-left: 9%; }
.doc-title { font-size: 0.92rem; font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.doc-sub { font-size: 0.75rem; color: var(--muted); margin: 0 0 12px; }
.bar { height: 6px; border-radius: 2px; background: var(--ivory-deep); margin: 7px 0; }
.bar.w90 { width: 90%; } .bar.w75 { width: 75%; } .bar.w60 { width: 60%; } .bar.w45 { width: 45%; }
.decision { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.decision span { border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; font-size: 0.72rem; }
.decision .on { background: var(--forest); border-color: var(--forest); color: #fff; }
.rank { list-style: none; padding: 0; margin: 0; }
.rank li { display: grid; grid-template-columns: 16px 1fr 70px; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.rank li:first-child { border-top: 0; }
.rank b { font-weight: 600; color: var(--terracotta-text); }
.meter { height: 6px; background: var(--ivory-deep); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--forest); }
.model { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 6px 8px; align-items: center; }
.model .h { font-size: 0.68rem; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model .row { font-size: 0.78rem; }
.model .cell { height: 14px; background: var(--ivory-deep); border-radius: 2px; }
.model .cell.pos { background: #D8E2DA; }
.model .total { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 600; color: var(--ink); }
@media (max-width: 960px) { .samples { max-width: 560px; } }
@media (max-width: 520px) { .doc { width: 100%; } .doc-3 { margin-left: 0; } .doc + .doc { margin-top: 10px; } }

/* Founder experience strip */
.experience { padding-block: 28px; border-bottom: 1px solid var(--line); }
.experience .wrap { display: grid; grid-template-columns: minmax(180px, 220px) 1fr auto; gap: 20px 40px; align-items: center; }
.experience-label { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.4; }
.experience-label strong { display: block; color: var(--ink); font-weight: 600; }
.employers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 1rem; font-weight: 500; color: var(--ink); }
.employers li { white-space: nowrap; }
@media (max-width: 900px) { .experience .wrap { grid-template-columns: 1fr; gap: 12px; } }

/* Sections */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section--deep { background: var(--ivory-deep); }
.section--forest { background: var(--forest); color: #E9EEEA; border-top: 0 !important; }
.section--forest h2, .section--forest h3 { color: #fff; }
.section--forest p { color: #C9D5CC; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; max-width: 36em; }
.section--forest .section-head p { color: #C9D5CC; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Figures with context */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.figures > div { padding: 22px 24px 0 0; border-right: 1px solid var(--line-soft); padding-left: 20px; }
.figures > div:first-child { padding-left: 0; }
.figures > div:last-child { border-right: 0; }
.figures dt { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 10px; color: var(--forest); }
.figures dd { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.figures .src { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 860px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div { padding: 20px 16px 20px 0; border-right: 0; padding-left: 0; border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 420px) { .figures { grid-template-columns: 1fr; } }

/* Problems */
.problems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.problems > div { padding: 24px 24px 0 0; }
.problems > div + div { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.problems h3 { margin-bottom: 10px; }
.problems h3::before { content: ""; display: block; width: 24px; height: 2px; background: var(--terracotta); margin-bottom: 16px; }
.problems p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.aside-note { margin: clamp(32px, 4vw, 44px) 0 0; padding: 18px 22px; border-left: 2px solid var(--forest); background: var(--paper); max-width: 52rem; color: var(--ink-soft); }
@media (max-width: 960px) {
  .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problems > div { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line-soft); }
  .problems > div + div { padding-left: 0; border-left: 0; }
  .problems > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-soft); }
}
@media (max-width: 600px) {
  .problems { grid-template-columns: 1fr; }
  .problems > div:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Service cards: same order in every card */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 26px 22px;
}
.card.is-start { border-top: 3px solid var(--terracotta); padding-top: 24px; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card .for { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 18px; min-height: 3.2em; }
.card .terms { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.card .price { font-weight: 600; font-size: 1.1rem; color: var(--forest); }
.card .duration { font-size: 0.9rem; color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.card li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 0.97rem; }
.card li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 9px; height: 1px; background: var(--forest); }
.card .next { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--terracotta-text); }
.scope { margin-top: 14px; }
.scope summary {
  cursor: pointer; list-style: none; font-size: 0.92rem; font-weight: 600; color: var(--forest);
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
}
.scope summary::-webkit-details-marker { display: none; }
.scope summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--forest); border-radius: 3px; font-weight: 600; line-height: 1; }
.scope[open] summary::before { content: "−"; }
.scope summary:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.scope ul { margin: 10px 0 0; }
.scope p { font-size: 0.9rem; color: var(--muted); margin: 8px 0 0; }
.offer-row {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) auto; gap: 16px 32px; align-items: center;
  margin-top: 20px; padding: 20px 26px; border: 1px solid var(--line); border-radius: var(--r); background: transparent;
}
.offer-row h3 { margin-bottom: 4px; }
.offer-row p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.offer-row .price { font-weight: 600; color: var(--forest); }
.services-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 28px; }
.services-foot p { margin: 0; color: var(--ink-soft); }
@media (max-width: 1000px) { .cards--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .card .for { min-height: 0; }
  .offer-row { grid-template-columns: 1fr; }
}

/* Evidence of work */
.evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.evidence article { border-top: 2px solid var(--forest); padding-top: 20px; }
.evidence .type { font-size: 0.85rem; color: var(--terracotta-text); font-weight: 600; margin-bottom: 6px; }
.evidence h3 { margin-bottom: 12px; }
.evidence p { color: var(--ink-soft); font-size: 0.97rem; }
.evidence ul { padding-left: 1.1em; margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.evidence li { margin-bottom: 6px; }
.sectors { margin-top: clamp(28px, 4vw, 40px); padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 12px 32px; align-items: baseline; }
.sectors p { margin: 0; font-weight: 600; font-size: 0.95rem; }
.taglist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.taglist li { border: 1px solid var(--line); border-radius: var(--r); padding: 4px 10px; font-size: 0.9rem; color: var(--ink-soft); background: var(--paper); }
@media (max-width: 860px) { .evidence { grid-template-columns: 1fr; } .sectors { grid-template-columns: 1fr; } }

/* Process on forest */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid rgba(255,255,255,.22); }
.steps li { counter-increment: step; padding: 22px 22px 0 0; }
.steps li + li { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.14); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 0.85rem; font-weight: 600; color: #E0A07F; margin-bottom: 12px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; font-size: 0.95rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { padding: 20px 16px 20px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .steps li + li { padding-left: 0; border-left: 0; }
  .steps li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.founder figure { margin: 0; }
.founder figure img { width: 100%; max-width: 360px; height: auto; }
.founder figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.founder h2 { margin-bottom: 6px; }
.founder .role { font-weight: 600; color: var(--terracotta-text); margin-bottom: 20px; }
.founder p { color: var(--ink-soft); max-width: 38em; }
.creds { margin: 24px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.creds dt, .creds dd { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.creds dt { color: var(--muted); padding-right: 28px; }
.creds dd { margin: 0; }
.founder-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder figure img { max-width: 280px; } }
@media (max-width: 480px) { .creds { grid-template-columns: 1fr; } .creds dt { padding-bottom: 0; border-bottom: 0; } }

/* FAQ */
.faq { max-width: 54rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); color: var(--forest); font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.faq details p { color: var(--ink-soft); margin: 0 0 20px; max-width: 46em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-grid h2 { margin-bottom: 14px; }
.agenda { list-style: none; padding: 0; margin: 22px 0 26px; border-top: 1px solid var(--line); }
.agenda li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line-soft); position: relative; color: var(--ink-soft); }
.agenda li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 10px; height: 1px; background: var(--terracotta); }
.contact-alt { margin-top: 18px; color: var(--ink-soft); font-size: 0.97rem; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); }
.form h3 { font-size: 1.25rem; margin-bottom: 4px; }
.form > p { color: var(--muted); font-size: 0.93rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--ivory); border: 1px solid #CFC9BB; border-radius: var(--r); padding: 11px 13px;
}
.field input:hover, .field textarea:hover { border-color: #A9A293; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-tint); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 12px 0 0; font-size: 0.95rem; min-height: 1.5em; }
.form-status.ok { color: var(--forest); font-weight: 600; }
.form-status.err { color: #8A2E1F; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--forest); color: #C9D5CC; padding-block: 40px 56px; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.site-footer .brand .wordmark { color: #fff; }
.site-footer .brand img { filter: brightness(0) invert(1); opacity: .9; }
.site-footer a { color: #E9EEEA; }
.site-footer a:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-start; }
.foot-links a { text-decoration: none; }
.site-footer p { margin: 0; }

/* Mobile booking bar */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; transform: translateY(140%); transition: transform .25s ease; }
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { width: 100%; box-shadow: 0 8px 24px rgba(30, 36, 32, 0.22); }
@media (max-width: 760px) { .mobile-cta { display: block; } .site-footer { padding-bottom: 110px; } }

/* One entrance moment; content stays visible if animation never runs */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .reveal-2 { animation-delay: .08s; }
  .reveal-3 { animation-delay: .16s; }
  .doc-1 { animation: settle .8s .15s cubic-bezier(.2,.7,.2,1) both; }
  .doc-2 { animation: settle .8s .3s cubic-bezier(.2,.7,.2,1) both; }
  .doc-3 { animation: settle .8s .45s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
  @keyframes settle { from { opacity: 0; transform: translateY(16px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Team section and call illustration */
#team .evidence article, #tim .evidence article { border-top-color: var(--terracotta); }
.lead-line { margin: clamp(28px, 4vw, 40px) 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.lead-line .textlink { margin-left: 6px; }
.call-art { width: 100%; max-width: 300px; height: auto; margin: 4px 0 6px; }

/* Five-card service grid: three on top, two below */
.cards--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards--5 > .card { grid-column: span 2; }
.cards--5 > .card:nth-child(4), .cards--5 > .card:nth-child(5) { grid-column: span 3; }
@media (max-width: 1000px) {
  .cards--5 { grid-template-columns: 1fr 1fr; }
  .cards--5 > .card, .cards--5 > .card:nth-child(4) { grid-column: span 1; }
  .cards--5 > .card:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 680px) { .cards--5 { grid-template-columns: 1fr; } .cards--5 > .card:nth-child(5) { grid-column: span 1; } }
.offer-row + .offer-row { margin-top: 12px; }
.evidence--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.evidence .taglist { margin-top: 4px; }
@media (max-width: 860px) { .evidence--2 { grid-template-columns: 1fr; } }

/* Free tools */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.tool-grid h2 { margin-bottom: 12px; }
.tool-intro { color: var(--ink-soft); max-width: 36em; margin-bottom: 24px; }
.checklist fieldset { border: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checklist label { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 13px 4px; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 0.98rem; }
.checklist label:hover { background: rgba(255,255,255,.55); }
.checklist input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--forest); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.calc .field:nth-child(5) { grid-column: 1 / -1; max-width: calc(50% - 10px); }
.calc input { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid #CFC9BB; border-radius: var(--r); padding: 11px 13px; }
.calc input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-tint); }
.money { display: flex; align-items: stretch; }
.money input, .calc input { min-width: 0; }
.calc .field { min-width: 0; }
.money span { display: grid; place-items: center; padding: 0 12px; background: var(--ivory); border: 1px solid #CFC9BB; border-right: 0; border-radius: var(--r) 0 0 var(--r); font-size: 0.95rem; color: var(--muted); }
.money input { border-radius: 0 var(--r) var(--r) 0; }
.hint { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); }
.tool-result { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--rust); border-radius: var(--r); padding: 24px; }
.tool-label { margin: 0 0 4px; font-size: 0.9rem; color: var(--muted); }
.tool-score { font-family: var(--serif); font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1.05; color: var(--rust); margin: 0 0 10px; }
.tool-verdict { font-weight: 600; margin-bottom: 16px; }
.tool-gaps-title { font-size: 0.9rem; color: var(--muted); margin: 0 0 6px; }
.tool-gaps { margin: 0 0 18px; padding-left: 1.1em; font-size: 0.95rem; color: var(--ink-soft); }
.tool-gaps li { margin-bottom: 4px; }
.tool-lines { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0 0 14px; border-top: 1px solid var(--line-soft); font-size: 0.95rem; }
.tool-lines dt, .tool-lines dd { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.tool-lines dt { color: var(--muted); padding-right: 12px; }
.tool-lines dd { margin: 0; font-weight: 600; text-align: right; }
.tool-result .small { margin: 0 0 16px; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } .tool-result { position: static; } }
@media (max-width: 560px) { .calc { grid-template-columns: 1fr; } .calc .field:nth-child(5) { max-width: none; } }

/* Balance and alignment pass */
.figures--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .figures--3 { grid-template-columns: 1fr; } .figures--3 > div { padding-right: 0; } }
.tag-rows { margin-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.tag-row { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); gap: 10px 32px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.tag-row > p { margin: 0; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 700px) { .tag-row { grid-template-columns: 1fr; } }
.evidence ul.taglist { padding-left: 0; }
.faq { max-width: none; }
.aside-note { max-width: none; }
.offer-row { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) 240px; }
.offer-row .btn { justify-self: stretch; }
@media (max-width: 680px) { .offer-row { grid-template-columns: 1fr; } .offer-row .btn { justify-self: start; } }
.calc .field:nth-child(5) { max-width: none; }
.card .terms { flex-direction: column; align-items: flex-start; gap: 2px; }

/* Footer tagline and open-to tags */
.site-footer .tagline { color: #fff; margin: 4px 0 6px; font-size: 0.95rem; }
.taglist--open li { background: transparent; border-style: dashed; }

/* Motion 1: hero sample documents fill in on a slow loop.
   Base styles are the finished state, so nothing is lost if motion is off or fails. */
.bar, .meter i { transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .samples.is-live .doc .bar { animation: fill-bar 9s cubic-bezier(.4,0,.2,1) infinite; }
  .samples.is-live .doc .bar + .bar { animation-delay: .25s; }
  .samples.is-live .doc .bar + .bar + .bar { animation-delay: .5s; }
  .samples.is-live .doc .bar + .bar + .bar + .bar { animation-delay: .75s; }
  .samples.is-live .decision span:first-child { animation: chip-first 9s ease infinite; }
  .samples.is-live .decision .on { animation: chip-second 9s ease infinite; }
  .samples.is-live .meter i { animation: fill-bar 9s cubic-bezier(.4,0,.2,1) infinite; }
  .samples.is-live .rank li:nth-child(1) .meter i { animation-delay: 1.4s; }
  .samples.is-live .rank li:nth-child(2) .meter i { animation-delay: 1.6s; }
  .samples.is-live .rank li:nth-child(3) .meter i { animation-delay: 1.8s; }
  .samples.is-live .rank li:nth-child(4) .meter i { animation-delay: 2s; }
  .samples.is-live .model .cell.pos { animation: cell-pos 9s ease infinite; }
  .samples.is-live .model .cell.pos:last-child { animation-delay: .3s; }
  .samples:not(.is-live) * { animation-play-state: paused; }
}
@keyframes fill-bar {
  0% { transform: scaleX(0); opacity: 1; }
  14% { transform: scaleX(1); }
  88% { transform: scaleX(1); opacity: 1; }
  96%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes chip-first {
  0%, 10% { background: transparent; color: var(--ink-soft); border-color: var(--line); }
  16%, 34% { background: var(--forest); color: #fff; border-color: var(--forest); }
  40%, 100% { background: transparent; color: var(--ink-soft); border-color: var(--line); }
}
@keyframes chip-second {
  0%, 36% { background: transparent; color: var(--ink-soft); border-color: var(--line); }
  42%, 94% { background: var(--forest); color: #fff; border-color: var(--forest); }
  100% { background: transparent; color: var(--ink-soft); border-color: var(--line); }
}
@keyframes cell-pos {
  0%, 46% { background: var(--ivory-deep); }
  56%, 92% { background: #D8E2DA; }
  100% { background: var(--ivory-deep); }
}

/* Motion 2: tool results respond to input */
@media (prefers-reduced-motion: no-preference) {
  .tool-gaps li, .tool-lines dd { animation: rise-in .35s ease both; }
  .tool-gaps li:nth-child(2) { animation-delay: .05s; }
  .tool-gaps li:nth-child(3) { animation-delay: .1s; }
  .tool-gaps li:nth-child(4) { animation-delay: .15s; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(4px); } }

/* Warmer balance: more rust and terracotta, green kept for buttons, top bar and footer */
.section-head h2::before { content: ""; display: block; width: 36px; height: 2px; background: var(--terracotta); margin-bottom: 18px; }
.figures dt { color: var(--rust); }
.card .price, .offer-row .price { color: var(--rust); }
.card li::before { background: var(--terracotta); }
.card.is-start { border-top-color: var(--rust); }
.problems h3::before { background: var(--rust); }
.taglist li { border-color: #E3CFC3; }
.taglist--open li { border-color: var(--terracotta); }
.checklist input { accent-color: var(--rust); }
.faq summary::after { color: var(--rust); border-color: #E3CFC3; }
.scope summary { color: var(--rust); }
.scope summary::before { border-color: var(--rust); }
.textlink { color: var(--rust); }
.aside-note { border-left-color: var(--terracotta); }
.hero-meta { color: var(--terracotta-text); }
.samples-label { border-color: #E3CFC3; color: var(--terracotta-text); }
.rank b { color: var(--rust); }
.meter i { background: var(--terracotta); }
.decision .on { background: var(--rust); border-color: var(--rust); }
.agenda li::before { background: var(--rust); }
@keyframes chip-first {
  0%, 10% { background: transparent; color: var(--ink-soft); border-color: var(--line); }
  16%, 34% { background: var(--rust); color: #fff; border-color: var(--rust); }
  40%, 100% { background: transparent; color: var(--ink-soft); border-color: var(--line); }
}
@keyframes chip-second {
  0%, 36% { background: transparent; color: var(--ink-soft); border-color: var(--line); }
  42%, 94% { background: var(--rust); color: #fff; border-color: var(--rust); }
  100% { background: transparent; color: var(--ink-soft); border-color: var(--line); }
}

/* One emphasised phrase per headline, upright, in rust (light terracotta on green) */
h1 .accent, h2 .accent { color: var(--rust); font-style: normal; }
.section--forest h2 .accent { color: #E0A07F; }
.section--forest .section-head h2::before { background: #E0A07F; }

/* Headline-only section heads span the full width so they stay on one line on desktop */
.section-head:not(:has(> p)) { grid-template-columns: 1fr; }

/* Service cards: visual band, big price, hover lift (inspired by expanding and stats cards) */
.card { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-visual {
  margin: -26px -26px 22px; height: 104px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; border-bottom: 1px solid var(--line-soft); transition: height .3s ease;
}
.card.is-start .card-visual { margin-top: -24px; }
.card-visual svg { width: 52px; height: 52px; transition: transform .3s ease; }
.card-visual::after { content: ""; width: 64px; height: 64px; border-radius: 50%; opacity: .55; transition: transform .3s ease; }
.tone-terra { background: #F4E6DC; color: var(--rust); }
.tone-terra::after { background: radial-gradient(circle at 30% 30%, #E9C3AC, transparent 70%); }
.tone-forest { background: #E3E9E4; color: var(--forest); }
.tone-forest::after { background: radial-gradient(circle at 30% 30%, #C3D2C7, transparent 70%); }
.tone-ivory { background: var(--ivory-deep); color: var(--terracotta-text); }
.tone-ivory::after { background: radial-gradient(circle at 30% 30%, #E3D6C6, transparent 70%); }
.card .terms .price { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.01em; }
.card .terms .duration { font-size: 0.9rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 22px 40px -30px rgba(30, 36, 32, .45); border-color: #D9BFAF; }
  .card:hover .card-visual::after { transform: scale(1.7) translateX(-6px); }
  .card:hover .card-visual svg { transform: translateX(6px) scale(1.1) rotate(-3deg); }
}
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.card--small .card-visual { height: 80px; }
.card--small .for { min-height: 0; }
.card--small .btn { align-self: flex-start; margin-top: auto; }
.card--small .small-scope { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 18px; }
.swipe-hint { display: none; }

/* Mobile: services become a swipeable row with the next card peeking */
@media (max-width: 680px) {
  .cards--3, .cards--5, .cards--2 {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
  }
  .cards--5 > .card, .cards--5 > .card:nth-child(4), .cards--5 > .card:nth-child(5) { grid-column: auto; }
  .cards > .card { scroll-snap-align: start; }
  .swipe-hint { display: block; font-size: 0.9rem; color: var(--terracotta-text); margin: -12px 0 12px; }
  .cards--2 { margin-top: 8px; }
}
