/* ==========================================================================
   Mentat Studios — design system
   Quiet, warm, editorial. Light-first. Restraint is the identity.
   ========================================================================== */

:root {
  /* ---- Surface ---- */
  --paper:        #FAF8F3;
  --paper-2:      #F4F1E9;
  --paper-3:      #EDE9DF;
  --deep:         #1E201B;
  --deep-2:       #262821;

  /* ---- Ink ---- */
  --ink:          #2A2823;   /* strongest */
  --ink-display:  #3E3B33;   /* display type — softer than black */
  --ink-body:     #6B6760;
  --ink-faint:    #9C978C;
  --ink-invert:   #F2EEE4;

  /* ---- Accent (used sparingly) ---- */
  --clay:         #A2532B;
  --clay-deep:    #8A4322;
  --clay-wash:    #EFE3D7;

  /* ---- Line ---- */
  --line:         #E4DFD3;
  --line-strong:  #D2CBBB;
  --line-invert:  rgba(242, 238, 228, .16);

  /* ---- Type ---- */
  --display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --body:    'Switzer', 'Inter', system-ui, -apple-system, sans-serif;

  --text-hero: clamp(2.9rem, 6.4vw, 5.6rem);
  --text-3xl:  clamp(2.2rem, 4.4vw, 3.5rem);
  --text-2xl:  clamp(1.75rem, 3vw, 2.5rem);
  --text-xl:   clamp(1.35rem, 2vw, 1.7rem);
  --text-lg:   1.125rem;
  --text-base: 1rem;
  --text-sm:   .9375rem;
  --text-xs:   .8125rem;

  /* ---- Space ---- */
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(84px, 11vw, 168px);
  --maxw: 1240px;
  --maxw-text: 62ch;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; }

::selection { background: var(--clay-wash); color: var(--ink); }

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

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink-display);
  font-weight: 400;
  letter-spacing: -.018em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); line-height: 1.02; letter-spacing: -.026em; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); letter-spacing: -.012em; }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
strong { color: var(--ink); font-weight: 500; }

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-body);
  max-width: 46ch;
  font-weight: 400;
}
.prose { max-width: var(--maxw-text); }
.prose p { font-size: var(--text-lg); line-height: 1.72; }

.eyebrow {
  font-family: var(--body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.6rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--line-strong);
  flex: none;
}
.eyebrow.is-centered { justify-content: center; }
.eyebrow.on-dark { color: rgba(242,238,228,.62); }
.eyebrow.on-dark::before { background: var(--line-invert); }

.serif-em { font-family: var(--display); font-style: italic; font-weight: 400; }
.quiet { color: var(--ink-faint); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--body); font-size: var(--text-sm); font-weight: 500;
  letter-spacing: .005em;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--clay-deep); }

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

.btn-invert { background: var(--paper); color: var(--ink); }
.btn-invert:hover { background: var(--clay-wash); }

.btn-ghost-invert { border-color: var(--line-invert); color: var(--ink-invert); }
.btn-ghost-invert:hover { border-color: rgba(242,238,228,.5); }

.btn-lg { padding: 1.05rem 1.9rem; font-size: var(--text-base); }

/* text link with animated underline */
.tlink {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--text-sm); font-weight: 500; color: var(--ink);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--clay), var(--clay));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color .3s var(--ease), background-size .35s var(--ease);
}
.tlink:hover { color: var(--clay-deep); background-size: 30% 1px; }
.tlink .arw { transition: transform .3s var(--ease); }
.tlink:hover .arw { transform: translateX(3px); }
.tlink.on-dark { color: var(--ink-invert); background-image: linear-gradient(rgba(242,238,228,.5), rgba(242,238,228,.5)); }

/* ---------- Header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, 0);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead.is-stuck {
  background: rgba(250, 248, 243, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 82px;
}
.wordmark { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.wordmark svg { flex: none; }
.wordmark-text {
  font-family: var(--display); font-size: 1.2rem; font-weight: 400;
  letter-spacing: -.01em; line-height: 1;
}
.wordmark-text em { font-style: normal; color: var(--ink-faint); }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a {
  font-size: var(--text-sm); color: var(--ink-body); font-weight: 400;
  position: relative; padding-block: 4px;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--clay);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.masthead-cta { display: flex; align-items: center; gap: 1.25rem; }
.masthead-phone { font-size: var(--text-sm); color: var(--ink-body); transition: color .25s var(--ease); }
.masthead-phone:hover { color: var(--clay-deep); }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 22px; height: 1px; background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 82px 0 0; z-index: 99;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) 36px;
  display: none; flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: var(--display); font-size: 1.75rem; color: var(--ink-display);
  padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.mobile-nav a.btn {
  margin-top: 28px; justify-content: center;
  font-family: var(--body); font-size: var(--text-base);
  color: var(--ink-invert); border-bottom: 0; padding: 1.05rem 1.6rem;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(72px, 9vw, 132px); }
.hero-split {
  display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, .86fr);
  gap: clamp(32px, 4vw, 52px); align-items: center;
}
.hero h1 { font-size: clamp(2.55rem, 4.3vw, 3.95rem); margin-bottom: 1.6rem; }
.hero .lede { margin-bottom: 2.4rem; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 13%, #000 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 9%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 13%, #000 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 9%, #000 92%, transparent 100%);
  mask-composite: intersect;
}

/* page hero (interior) */
.pagehead { padding-block: clamp(64px, 9vw, 132px) clamp(48px, 6vw, 84px); }
.pagehead h1 {
  font-size: clamp(2.4rem, 3.9vw, 3.5rem);
  max-width: 24ch; margin-bottom: 1.6rem;
}
.pagehead .lede { max-width: 52ch; }

/* ---------- Stat strip ---------- */
.statstrip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.statstrip > div { padding: clamp(28px, 3.4vw, 44px) clamp(16px, 2vw, 32px); }
.statstrip > div + div { border-left: 1px solid var(--line); }
.stat-n {
  font-family: var(--display); font-size: clamp(2rem, 3.4vw, 3rem);
  color: var(--ink-display); line-height: 1; letter-spacing: -.02em;
  display: block; margin-bottom: .7rem;
}
.stat-l { font-size: var(--text-xs); color: var(--ink-faint); line-height: 1.5; max-width: 22ch; }

/* ---------- Section header ---------- */
.sechead { max-width: 720px; margin-bottom: clamp(44px, 5vw, 76px); }
.sechead.is-centered { margin-inline: auto; text-align: center; }
.sechead.is-centered .eyebrow { justify-content: center; }
.sechead h2 { margin-bottom: 1.2rem; }
.sechead p { max-width: 54ch; }
.sechead.is-centered p { margin-inline: auto; }

/* split header: title left, copy right */
.sechead-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px); align-items: end;
  margin-bottom: clamp(44px, 5vw, 76px);
}
.sechead-split h2 { margin-bottom: 0; }
.sechead-split p { margin-bottom: 0; max-width: 46ch; }

/* ---------- Editorial list (replaces card soup) ---------- */
.ledger { border-top: 1px solid var(--line); }
.ledger-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1.05fr) minmax(0, 1.35fr) 104px;
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(26px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease);
}
.ledger-row:hover { background: rgba(244, 241, 233, .7); }
.ledger-i {
  font-family: var(--display); font-size: var(--text-base);
  color: var(--ink-faint); font-variant-numeric: tabular-nums;
}
.ledger-row h3 { font-size: var(--text-xl); }
.ledger-row p { font-size: var(--text-base); margin: 0; }
.ledger-tag {
  font-size: var(--text-xs); color: var(--clay); letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap; align-self: center; text-align: right;
}

/* ---------- Two-column feature (text + image) ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.feature.is-flipped .feature-media { order: -1; }
.feature-media img { width: 100%; height: auto; }
.feature h2 { margin-bottom: 1.3rem; }
.figcap {
  font-size: var(--text-xs); color: var(--ink-faint);
  margin-top: 1rem; letter-spacing: .01em;
}

/* ---------- Checklist ---------- */
.checks { list-style: none; margin: 2rem 0 0; padding: 0; }
.checks li {
  display: grid; grid-template-columns: 20px 1fr; gap: .9rem;
  padding: .85rem 0; border-top: 1px solid var(--line);
  font-size: var(--text-base);
}
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks svg { margin-top: 7px; }
.on-deep .checks li { border-color: var(--line-invert); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 56px); }
.step { border-top: 1px solid var(--line-strong); padding-top: 1.6rem; }
.step-n {
  font-size: var(--text-xs); letter-spacing: .16em; color: var(--clay);
  display: block; margin-bottom: 1.4rem; font-weight: 500;
}
.step h3 { margin-bottom: .8rem; }
.step p { font-size: var(--text-base); }
.step-meta {
  margin-top: 1.2rem; font-size: var(--text-xs); color: var(--ink-faint);
  letter-spacing: .02em;
}

/* ---------- Value columns ---------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.col h3 { margin-bottom: .7rem; }
.col p { font-size: var(--text-base); margin: 0; }
.col-mark { margin-bottom: 1.3rem; color: var(--clay); }

/* ---------- Dark band ---------- */
.on-deep { background: var(--deep); color: rgba(242, 238, 228, .74); }
.on-deep h1, .on-deep h2, .on-deep h3, .on-deep h4 { color: var(--ink-invert); }
.on-deep strong { color: var(--ink-invert); }
.on-deep .quiet { color: rgba(242,238,228,.5); }
.on-deep .rule { background: var(--line-invert); }

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  line-height: 1.24; letter-spacing: -.018em;
  color: var(--ink-display); max-width: 22ch;
  text-wrap: balance;
}
.attrib { margin-top: 1.8rem; font-size: var(--text-sm); color: var(--ink-faint); }

/* ---------- Full-bleed image ---------- */
.bleed { width: 100%; overflow: hidden; }
.bleed img {
  width: 100%; height: clamp(240px, 40vw, 460px);
  object-fit: cover; object-position: 50% 32%; display: block;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem;
  padding: clamp(20px, 2.4vw, 30px) 0;
  font-family: var(--display); font-size: clamp(1.1rem, 1.7vw, 1.375rem);
  color: var(--ink-display); letter-spacing: -.012em; line-height: 1.3;
  transition: color .25s var(--ease);
}
.faq-q:hover { color: var(--clay-deep); }
.faq-sign { flex: none; position: relative; width: 14px; height: 14px; margin-top: .4rem; }
.faq-sign::before, .faq-sign::after {
  content: ""; position: absolute; background: var(--clay);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.faq-sign::before { top: 6.5px; left: 0; width: 14px; height: 1px; }
.faq-sign::after  { left: 6.5px; top: 0; width: 1px; height: 14px; }
.faq-item.is-open .faq-sign::after { transform: rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-a-inner { padding-bottom: clamp(20px, 2.4vw, 30px); max-width: 68ch; }
.faq-a-inner p { font-size: var(--text-base); }

/* ---------- Form ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 104px); align-items: start;
}
.form-field { margin-bottom: 1.6rem; }
.form-field label {
  display: block; font-size: var(--text-xs); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: .6rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; font-family: var(--body); font-size: var(--text-base);
  color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
  padding: .65rem 0; border-radius: 0;
  transition: border-color .3s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 78px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-faint); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-bottom-color: var(--clay);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%239C978C' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .25rem center;
}
.form-note { margin-top: 1.2rem; font-size: var(--text-sm); color: var(--clay-deep); }
.form-fine { margin-top: 1.4rem; font-size: var(--text-xs); color: var(--ink-faint); }

.contact-aside dl { margin: 0; }
.contact-aside dt {
  font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); padding-top: 1.3rem; border-top: 1px solid var(--line);
}
.contact-aside dd {
  margin: .5rem 0 1.4rem; font-size: var(--text-base); color: var(--ink);
}
.contact-aside dd a:hover { color: var(--clay-deep); }
.big-phone {
  font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--ink-display); letter-spacing: -.02em;
  transition: color .3s var(--ease);
}
.big-phone:hover { color: var(--clay-deep); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 1.4rem; }
.cta-band p { max-width: 48ch; margin-inline: auto; }
.cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem;
}

/* ---------- Footer ---------- */
.site-foot { background: var(--deep); color: rgba(242, 238, 228, .6); padding-block: clamp(56px, 7vw, 92px) 34px; }
.site-foot a { color: rgba(242, 238, 228, .78); transition: color .25s var(--ease); }
.site-foot a:hover { color: var(--ink-invert); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)); gap: clamp(32px, 5vw, 72px); }
.foot-brand .wordmark { color: var(--ink-invert); margin-bottom: 1.2rem; }
.foot-brand p { font-size: var(--text-sm); max-width: 34ch; }
.foot-col h4 {
  font-family: var(--body); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(242,238,228,.45); margin-bottom: 1.2rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .7rem; font-size: var(--text-sm); }
.foot-bottom {
  margin-top: clamp(48px, 6vw, 80px); padding-top: 26px;
  border-top: 1px solid var(--line-invert);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: var(--text-xs); color: rgba(242,238,228,.42);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .ledger-row { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.2fr); }
  .ledger-tag { grid-column: 2 / -1; align-self: start; margin-top: .2rem; }
}

@media (max-width: 900px) {
  .nav, .masthead-cta { display: none; }
  .burger { display: flex; }
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure { order: -1; margin-inline: calc(var(--gutter) * -1); }
  .hero-figure img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 90%, transparent 100%); }
  .hero .lede { max-width: none; }
  .statstrip { grid-template-columns: repeat(2, 1fr); }
  .statstrip > div:nth-child(3) { border-left: 0; }
  .statstrip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.is-flipped .feature-media { order: 0; }
  .steps, .cols, .cols-2 { grid-template-columns: 1fr; gap: 34px; }
  .sechead-split { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding-block: 26px; }
  .ledger-i { font-size: var(--text-xs); letter-spacing: .12em; }
  .ledger-tag { grid-column: 1 / -1; margin-top: .5rem; text-align: left; }
  .statstrip { grid-template-columns: 1fr; }
  .statstrip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}

/* ==========================================================================
   CTA banner — sits under the nav, sitewide, opens the modal
   ========================================================================== */
.cta-banner {
  display: flex; width: 100%;
  align-items: center; justify-content: center; gap: .75rem;
  background: var(--deep); color: var(--ink-invert);
  border: 0; cursor: pointer;
  padding: .82rem var(--gutter);
  font-family: var(--body); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .35s var(--ease);
}
.cta-banner:hover { background: var(--clay-deep); }
.cta-banner .chip {
  background: var(--clay); color: var(--paper);
  padding: .16rem .55rem; border-radius: 999px;
  font-size: .7rem; letter-spacing: .1em;
  transition: background-color .35s var(--ease);
}
.cta-banner:hover .chip { background: rgba(242,238,228,.22); }
.cta-banner .arw { transition: transform .3s var(--ease); }
.cta-banner:hover .arw { transform: translateX(3px); }
@media (max-width: 560px) {
  .cta-banner { font-size: .68rem; letter-spacing: .1em; padding: .72rem 14px; }
  .cta-banner .chip { display: none; }
}

/* ==========================================================================
   Modal — the single Get Started experience
   ========================================================================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 32, 27, .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 32px); overflow-y: auto;
  opacity: 0; transition: opacity .3s var(--ease);
}
.modal-backdrop.is-open { display: flex; opacity: 1; }
.modal {
  position: relative; width: 100%; max-width: 560px; margin: auto;
  background: var(--paper); border: 1px solid var(--line);
  transform: translateY(14px); transition: transform .38s var(--ease);
}
.modal-backdrop.is-open .modal { transform: none; }

.modal-head { padding: clamp(30px, 4vw, 42px) clamp(24px, 4vw, 44px) 0; }
.modal-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.35rem); margin-bottom: 1rem; }
.modal-head p { font-size: var(--text-base); margin: 0; max-width: 44ch; }
.modal-body { padding: clamp(22px, 3vw, 30px) clamp(24px, 4vw, 44px) clamp(30px, 4vw, 42px); }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--ink-body);
  transition: color .25s var(--ease);
}
.modal-close:hover { color: var(--clay-deep); }

/* single column, always */
.modal .form-field { margin-bottom: 1.45rem; }
.modal .form-field label {
  display: flex; align-items: baseline; gap: .6rem;
  margin-bottom: .55rem;
}
.tag {
  font-size: .62rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap;
}
.tag-required { color: var(--clay); }
.tag-optional { color: var(--ink-faint); }

/* validation */
.field-err {
  display: none; align-items: center; gap: .4rem;
  margin-top: .5rem; font-size: var(--text-xs); color: var(--clay-deep);
}
.form-field.is-invalid .field-err { display: flex; }
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea { border-bottom-color: var(--clay-deep); }
.form-alert {
  display: none; margin-bottom: 1.4rem;
  padding: .8rem 1rem; border-left: 2px solid var(--clay);
  background: var(--clay-wash);
  font-size: var(--text-sm); color: var(--clay-deep);
}
.form-alert.is-shown { display: block; }

.modal-submit { width: 100%; justify-content: center; margin-top: .4rem; }
.modal-fine {
  margin-top: 1.1rem; text-align: center;
  font-size: var(--text-xs); color: var(--ink-faint);
}
.modal-fine a { color: var(--ink); border-bottom: 1px solid var(--clay); }

/* success / failure states */
.modal-state { padding: clamp(44px, 6vw, 64px) clamp(24px, 4vw, 44px); text-align: center; }
.modal-state svg { margin: 0 auto 1.4rem; color: var(--clay); }
.modal-state h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .8rem; }
.modal-state p { max-width: 38ch; margin-inline: auto; font-size: var(--text-base); }

body.has-modal { overflow: hidden; }

/* ==========================================================================
   Promise strip — replaces the stat strip (no invented numbers)
   ========================================================================== */
.promises {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.promises > div { padding: clamp(26px, 3.2vw, 40px) clamp(16px, 2vw, 30px); }
.promises > div + div { border-left: 1px solid var(--line); }
.promise-k {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  color: var(--ink-display); line-height: 1.15; letter-spacing: -.015em;
  margin-bottom: .6rem;
}
.promise-k svg { flex: none; color: var(--clay); }
.promise-l { font-size: var(--text-xs); color: var(--ink-faint); line-height: 1.55; max-width: 26ch; margin: 0; }
@media (max-width: 900px) {
  .promises { grid-template-columns: repeat(2, 1fr); }
  .promises > div:nth-child(3) { border-left: 0; }
  .promises > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .promises { grid-template-columns: 1fr; }
  .promises > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Router ledger — home page navigation into the tabs
   ========================================================================== */
a.ledger-row { text-decoration: none; color: inherit; }
a.ledger-row:hover h3 { color: var(--clay-deep); }
.ledger-go { color: var(--clay); text-align: right; align-self: center; font-size: var(--text-base); transition: transform .3s var(--ease); }
a.ledger-row:hover .ledger-go { transform: translateX(4px); }

/* contact page: phone left, button right */
.book-row {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap; margin-top: 2.4rem;
}
