/* =========================================================
   THESIS CONSULT · Main stylesheet
   Palette: deep navy, white, signal red.
   Type: Newsreader (display serif) + Public Sans (text).
   ========================================================= */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/newsreader.woff2") format("woff2-variations"),
       url("../assets/fonts/newsreader.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/public-sans.woff2") format("woff2-variations"),
       url("../assets/fonts/public-sans.woff2") format("woff2");
}

:root {
  --ink: #102a52;          /* deep navy: headings, dark sections */
  --ink-deep: #0a1c38;     /* darkest navy: footer, contrast panels */
  --paper: #ffffff;
  --mist: #f1f4f9;         /* cool alternate section background */
  --rule: #d6dde8;         /* hairlines */
  --slate: #4a5a72;        /* secondary text */
  --text: #1b2536;         /* body text */
  --red: #b3202a;          /* signal red: marks, primary actions */
  --red-dark: #8f1820;
  --on-dark: #e8edf5;
  --on-dark-soft: #aebad0;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 4px;
  --header-h: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.01em; font-optical-sizing: auto; }
h2 { font-size: var(--step-3); max-width: 22ch; }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1.1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--slate); max-width: 60ch; }
.section--dark .lead { color: var(--on-dark-soft); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1.2 var(--sans);
  padding: .95rem 1.45rem; border-radius: var(--radius);
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer; min-height: 44px; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--small { padding: .65rem 1.05rem; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.nav .btn { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand { flex-shrink: 0; }
.brand-logo { width: 140px; min-width: 140px; max-width: none; height: auto; aspect-ratio: 593 / 369; object-fit: contain; display: block; flex-shrink: 0; }
.brand-mark { display: block; line-height: 0; flex-shrink: 0; }
.bw-name { display: block; }
.brand-word .bw-sub { display: block; font-family: var(--sans); font-weight: 500; font-size: .66rem; letter-spacing: .02em; color: var(--slate); margin-top: .35rem; }
.brand.has-logo .brand-word { padding-left: .9rem; border-left: 1px solid var(--rule); max-width: 17ch; }
.brand.has-logo .bw-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand.has-logo .bw-sub { margin-top: 0; font-size: .74rem; line-height: 1.35; white-space: normal; }
.brand.has-logo .bw-tc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; letter-spacing: .05em; line-height: 1; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav-list { display: flex; gap: 1.35rem; list-style: none; }
.nav-list a { white-space: nowrap; text-decoration: none; font-weight: 500; font-size: .97rem; color: var(--text); padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--red); }
.nav-toggle { display: none; }

@media (max-width: 1240px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1.5px solid var(--ink);
    color: var(--ink); font: 600 .95rem var(--sans); padding: .55rem .9rem; min-height: 44px; border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle-bars { width: 18px; height: 12px; position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { bottom: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: .95rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .nav-list a:hover { border-bottom-color: var(--rule); }
  .nav .btn { margin-top: 1.25rem; }
  .brand-word .bw-sub { display: none; }
}
@media (max-width: 1540px) { .brand.has-logo .brand-word { display: none; } }
@media (max-width: 1240px) { :root { --header-h: 100px; } }
@media (max-width: 960px) { .brand-word { font-size: 1.05rem; } }
@media (max-width: 760px) { :root { --header-h: 90px; } .brand-logo { width: 120px; min-width: 120px; } }
@media (max-width: 420px) { .brand-word { font-size: .9rem; letter-spacing: .03em; } .nav-toggle { padding: .5rem .7rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero::before {
  /* measurement-sheet grid, quiet, right side only */
  content: ""; position: absolute; inset: 0 0 0 48%;
  background-image:
    linear-gradient(to right, rgba(16,42,82,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,42,82,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
          mask-image: linear-gradient(to right, transparent, #000 30%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.hero h1 { font-size: var(--step-4); line-height: 1.04; font-weight: 450; max-width: 15ch; margin-bottom: .45em; letter-spacing: -0.02em; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.2rem; }
.hero-note { font-size: var(--step--1); color: var(--slate); padding-left: 1rem; border-left: 2px solid var(--red); max-width: 52ch; margin: 0; }

.plate { position: relative; margin: 0; }
.plate-frame {
  position: relative; aspect-ratio: 4 / 5; background: var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 18px 18px 0 0 var(--mist);
}
.plate-frame img { width: 100%; height: 100%; object-fit: cover; }
.plate::before { content: ""; position: absolute; left: -16px; top: 12%; bottom: 12%; width: 3px; background: var(--red); }
.plate figcaption { margin-top: 1.6rem; font-size: var(--step--1); color: var(--slate); line-height: 1.5; }
.plate figcaption strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); }

/* Photo fallback panels, used until the founder photo is added */
.photo-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; color: #fff;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(160deg, #163566, var(--ink-deep)); }
.photo-fallback ul li { font-family: var(--serif); font-size: 1.35rem; color: #fff; line-height: 1.25; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.photo-fallback ul li:first-child { border-top: 0; }
.photo-fallback ul { list-style: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { inset: 0; opacity: .5; }
  .hero-media { max-width: 420px; }
}

/* ---------- Alignment chain (signature element) ---------- */
.alignment { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.chain { list-style: none; counter-reset: link; position: relative; margin: .5rem 0 0; }
.chain li {
  position: relative; display: grid; grid-template-columns: 2.2rem 1fr; align-items: center; gap: 0 1rem;
  padding: .72rem 0; font-family: var(--serif); font-size: 1.28rem; color: var(--ink);
}
.chain li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; justify-self: center; position: relative; z-index: 1;
}
.chain::before { content: ""; position: absolute; left: calc(1.1rem - 1px); top: 1.4rem; bottom: 1.4rem; width: 2px; background: var(--ink); }
.chain li small { grid-column: 2; display: block; font-family: var(--sans); font-size: .86rem; color: var(--slate); line-height: 1.4; margin-top: .1rem; }
.chain li.is-break { color: var(--red); }
.chain li.is-break::before { border-color: var(--red); background: var(--red); }
.chain li.chain-gap {
  display: block; position: relative; z-index: 1; padding: .35rem 0 .35rem 3.2rem;
  font-family: var(--sans); font-size: .9rem; color: var(--red); font-weight: 600;
}
.chain li.chain-gap::before {
  content: ""; position: absolute; left: calc(1.1rem - 9px); top: 50%; width: 18px; height: 22px; transform: translateY(-50%);
  border-radius: 0; border: 0; background: var(--mist);
  border-top: 2px solid var(--red); border-bottom: 2px solid var(--red);
}
.chain-caption { font-size: var(--step--1); color: var(--slate); margin-top: 1.2rem; max-width: 46ch; }

.situations { list-style: none; margin: 2rem 0 2.2rem; display: grid; gap: 0; }
.situations li { padding: 1rem 0 1rem 1.6rem; border-top: 1px solid var(--rule); position: relative; max-width: 60ch; }
.situations li:last-child { border-bottom: 1px solid var(--rule); }
.situations li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: .7rem; height: 2px; background: var(--red); }

@media (max-width: 860px) { .alignment { grid-template-columns: 1fr; } }

/* ---------- Services index ---------- */
.services-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 5vw, 4.5rem); }
.services-intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.service { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 1.2rem; padding: 1.9rem 0; border-top: 1px solid var(--rule); }
.service:last-child { border-bottom: 1px solid var(--rule); }
.service-letter { font-family: var(--serif); font-size: 1.6rem; color: var(--red); line-height: 1.1; }
.service h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.service p { color: var(--slate); margin-bottom: .9rem; font-size: 1rem; }
.service ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.5rem; font-size: .96rem; }
.service li { padding-left: 1rem; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; background: var(--ink); border-radius: 50%; }
.service-note { grid-column: 2; font-size: .9rem; color: var(--slate); margin: .9rem 0 0; padding-left: .8rem; border-left: 2px solid var(--rule); }

@media (max-width: 960px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-intro { position: static; }
}
@media (max-width: 560px) { .service ul { grid-template-columns: 1fr; } }

/* ---------- Judgment (AI) section ---------- */
.judgment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.18); }
.judgment-col { padding: 2rem 2.5rem 0 0; }
.judgment-col + .judgment-col { padding: 2rem 0 0 2.5rem; border-left: 1px solid rgba(255,255,255,.18); }
.judgment-col h3 { font-size: 1.3rem; margin-bottom: 1.1rem; }
.judgment-col ul { list-style: none; }
.judgment-col li { padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--on-dark-soft); }
.judgment-col--strong li { color: #fff; }
.judgment-col--strong h3::after { content: ""; display: block; width: 40px; height: 3px; background: var(--red); margin-top: .7rem; }
.judgment-col:not(.judgment-col--strong) h3::after { content: ""; display: block; width: 40px; height: 3px; background: rgba(255,255,255,.25); margin-top: .7rem; }
.judgment-cta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .85rem; }
@media (max-width: 760px) {
  .judgment-grid { grid-template-columns: 1fr; }
  .judgment-col, .judgment-col + .judgment-col { padding: 2rem 0 0; border-left: 0; }
}

/* ---------- Visual band ---------- */
.visual-band { padding: 0 0 clamp(3.5rem, 7vw, 5.5rem); }
.visual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.visual { margin: 0; }
.visual img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--rule); }
.visual figcaption { margin-top: .9rem; font-size: .93rem; color: var(--slate); line-height: 1.5; }
.visual figcaption strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.18rem; color: var(--ink); margin-bottom: .15rem; }
@media (max-width: 860px) { .visual-grid { grid-template-columns: 1fr; gap: 2rem; } .visual { max-width: 520px; } }

/* ---------- Rigor & AI ---------- */
#rigor h2 { max-width: 26ch; }
.rigor-text { color: var(--on-dark); max-width: 70ch; }
.offer-title { font-size: var(--step-2); margin: 4rem 0 1.8rem; color: #fff; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem 2.2rem; }
.offer { padding-top: 1.1rem; border-top: 3px solid var(--red); }
.offer h4 { font-family: var(--serif); font-weight: 500; font-size: 1.22rem; color: #fff; margin-bottom: .5rem; }
.offer p { color: var(--on-dark-soft); font-size: .97rem; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.credentials { background: var(--ink-deep); color: var(--on-dark); border-radius: var(--radius); padding: 2.2rem 2rem; position: relative; }
.credentials::before { content: ""; position: absolute; left: 0; top: 2.2rem; width: 3px; height: 3.2rem; background: var(--red); }
.credentials h3 { color: #fff; font-size: 1.35rem; margin-bottom: 1.3rem; }
.credentials dl { margin: 0; }
.credentials dt { font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.credentials dd { margin: .15rem 0 1.15rem; color: var(--on-dark-soft); font-size: .93rem; }
.credentials dd:last-child { margin-bottom: 0; }
.about-body h2 { max-width: 24ch; }
.credentials-line { font-size: .93rem; color: var(--slate); padding-top: 1rem; border-top: 1px solid var(--rule); }
.about-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-body { order: -1; } }

.section--ruled { padding-top: 0; }
.section--ruled > .wrap { border-top: 1px solid var(--rule); padding-top: var(--section); }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.step { padding: 1.6rem 1.6rem 0 0; counter-increment: step; position: relative; }
.step + .step { padding-left: 1.6rem; border-left: 1px solid var(--rule); }
.step::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--red); margin-bottom: 1rem; }
.step h3 { font-size: 1.22rem; margin-bottom: .45rem; }
.step p { font-size: .97rem; color: var(--slate); margin: 0; }
.process-note { margin-top: 2.6rem; padding: 1.2rem 1.4rem; background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--ink); border-radius: var(--radius); max-width: 72ch; font-size: .98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 1.4rem 0 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--rule); }
}

/* ---------- Packages / fee schedule ---------- */
.packages-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; margin-bottom: 2rem; }
.level-switch { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 3px; background: #fff; }
.level-switch button {
  font: 600 .95rem var(--sans); color: var(--ink); background: transparent; border: 0; padding: .65rem 1.1rem; min-height: 44px; border-radius: 2px; cursor: pointer;
}
.level-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.level-legend { font-size: .9rem; color: var(--slate); margin: 0 0 .55rem; }


.fees { border-top: 2px solid var(--ink); }
.fee {
  display: grid; grid-template-columns: 1.05fr 1.35fr .7fr; gap: 1.5rem 2.5rem; padding: 2.1rem 0; border-bottom: 1px solid var(--rule);
}
.fee h3 { font-size: 1.45rem; margin-bottom: .55rem; }
.fee-problem { color: var(--slate); font-size: .98rem; margin: 0; }
.fee-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.8rem; font-size: .94rem; }
.fee-detail h4 { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); margin-bottom: .45rem; }
.fee-detail ul { list-style: none; }
.fee-detail li { padding: .18rem 0 .18rem .95rem; position: relative; line-height: 1.45; }
.fee-detail li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 2px; background: var(--red); }
.fee-buy { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.fee-price { font-family: var(--serif); font-size: 2.1rem; line-height: 1.05; color: var(--ink); font-weight: 500; }
.fee-price.is-on-request { font-size: 1.15rem; line-height: 1.3; }
.fee-terms { font-size: .85rem; color: var(--slate); line-height: 1.45; margin: 0 0 .8rem; }
.fee-note { grid-column: 2 / 4; font-size: .88rem; color: var(--slate); margin: -.4rem 0 0; }

.fee--custom { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 2.2rem; margin-top: 2.5rem; border: 0; }
.fee--custom h3 { color: #fff; }
.fee--custom .fee-problem, .fee--custom .fee-terms { color: var(--on-dark-soft); }
.fee--custom .fee-detail h4 { color: #fff; }
.fee--custom .fee-price { color: #fff; font-size: 1.5rem; }

@media (max-width: 1000px) {
  .fee { grid-template-columns: 1fr 1fr; }
  .fee-buy { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
  .fee-terms { margin: 0; flex-basis: 100%; order: 3; }
  .fee-note { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .fee { grid-template-columns: 1fr; }
  .fee-detail { grid-template-columns: 1fr; }
  .fee--custom { padding: 1.6rem; }
}

/* ---------- Integrity ---------- */
.integrity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 1rem; }
.integrity-col h3 { font-size: 1.3rem; padding-bottom: .8rem; border-bottom: 2px solid var(--ink); }
.integrity-col--no h3 { border-bottom-color: var(--red); }
.integrity-col ul { list-style: none; }
.integrity-col li { padding: .75rem 0 .75rem 1.8rem; border-bottom: 1px solid var(--rule); position: relative; }
.integrity-col li::before { position: absolute; left: 0; top: .72rem; font-weight: 700; }
.integrity-col--yes li::before { content: "✓"; color: var(--ink); }
.integrity-col--no li::before { content: "✕"; color: var(--red); }
@media (max-width: 760px) { .integrity-grid { grid-template-columns: 1fr; } }

/* ---------- Insights ---------- */
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.insight { display: flex; flex-direction: column; gap: .6rem; padding: 1.8rem; background: var(--mist); border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .2s ease; }
.insight:hover { border-top-color: var(--red); color: var(--text); }
.insight h3 { font-size: 1.35rem; margin: 0; }
.insight p { color: var(--slate); font-size: .97rem; margin: 0; }
.insight-link { margin-top: auto; padding-top: .6rem; font-weight: 600; color: var(--red); font-size: .95rem; }

/* ---------- Article pages ---------- */
.page--article .wrap { max-width: 760px; }
.article h1 { font-size: var(--step-3); line-height: 1.12; }
.article h2 { font-size: 1.45rem; margin: 2.4rem 0 .7rem; }
.article p { font-size: 1.06rem; line-height: 1.72; }
.article-kicker { font-size: .9rem; margin-bottom: .8rem; }
.article-kicker a { color: var(--red); text-decoration: none; font-weight: 600; }
.article-meta { font-size: .9rem; color: var(--slate); padding-bottom: 1.6rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.article-lead { font-size: 1.2rem !important; color: var(--slate); }
.article-cta { margin-top: 3rem; padding: 1.8rem; background: var(--ink); border-radius: var(--radius); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.article-cta p { margin: 0; font-family: var(--serif); font-size: 1.3rem; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--serif); font-size: 1.22rem; color: var(--ink); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1.1rem; font: 400 1.6rem/1 var(--sans); color: var(--red); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.4rem; color: var(--slate); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }

/* ---------- Quote form ---------- */
.quote-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.quote-aside .lead { margin-bottom: 1.6rem; }
.contact-line { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.contact-line:last-of-type { border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-line span { font-size: .85rem; color: var(--on-dark-soft); }
.contact-line a { color: #fff; font-weight: 600; word-break: break-word; }
.contact-line a:hover { color: #ffd5d8; }

.form { background: #fff; color: var(--text); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.6rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.15rem; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--slate); margin: 0; }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--text); background: #fff;
  border: 1.5px solid #b9c4d4; border-radius: var(--radius); padding: .8rem .9rem; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(16,42,82,.18); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { font-size: .86rem; color: var(--red-dark); font-weight: 600; min-height: 0; margin: 0; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; margin: .4rem 0 1.4rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--ink); flex: none; }
.form-mode-note { font-size: .9rem; color: var(--slate); margin: 1rem 0 0; padding-left: .9rem; border-left: 2px solid var(--rule); max-width: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-result { display: none; margin-top: 1.4rem; padding: 1.3rem 1.4rem; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--mist); }
.form-result.is-visible { display: block; }
.form-result.is-error { border-color: var(--red); background: #fdf3f3; }
.form-result h3, .section--dark .form-result h3 { font-size: 1.2rem; margin-bottom: .5rem; color: var(--ink); }
.form-result p { font-size: .95rem; margin-bottom: .8rem; }
.form-result pre {
  white-space: pre-wrap; word-break: break-word; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1rem; font: .86rem/1.5 var(--sans); max-height: 260px; overflow: auto; margin: 0 0 1rem;
}
.result-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-dark-soft); padding: 3.5rem 0 2.5rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem 3rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word span { color: var(--on-dark-soft); display: block; font-family: var(--sans); font-weight: 500; font-size: .66rem; letter-spacing: .02em; margin-top: .35rem; }
.site-footer h4 { font-family: var(--sans); font-size: .9rem; color: #fff; font-weight: 600; margin-bottom: .8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .site-footer li a { display: inline-block; padding: .35rem 0; } }

/* ---------- Mobile quote bar ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--rule); display: none;
  transform: translateY(110%); transition: transform .25s ease;
}
.mobile-cta .btn { width: 100%; }
.mobile-cta.is-visible { transform: translateY(0); }
@media (max-width: 760px) { .mobile-cta { display: block; } body { padding-bottom: 0; } .site-footer { padding-bottom: 6rem; } }

/* ---------- Simple pages ---------- */
.page { padding: clamp(3rem, 7vw, 5rem) 0 var(--section); }
.page h1 { font-size: var(--step-3); }
.page h2 { font-size: 1.5rem; margin-top: 2.2rem; max-width: none; }
.page .wrap { max-width: 820px; }
.page ul { padding-left: 1.2rem; margin-bottom: 1.1em; }

/* ---------- Load moment (single, orchestrated) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-media { animation: fade 1s ease .2s both; }
  .chain.is-drawn li.is-break, .chain.is-drawn li.chain-gap { animation: flag .9s ease .3s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes flag { 0% { opacity: .2; } 50% { opacity: 1; } 70% { opacity: .55; } 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .mobile-cta, .nav, .form, .hero::before { display: none !important; }
  body { color: #000; }
}

[hidden] { display: none !important; }
.quote-layout > *, .about-grid > *, .faq-layout > *, .services-layout > *, .alignment > *, .hero-grid > * { min-width: 0; }
.contact-line a { overflow-wrap: anywhere; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }

/* ---------- Contact icons (header and footer) ---------- */
.nav-social { display: flex; align-items: center; gap: .15rem; margin-right: -.6rem; }
.icon-link {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink); text-decoration: none; transition: color .15s ease, background-color .15s ease;
}
.icon-link:hover { color: var(--red); background: var(--mist); }
.icon-link:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.footer-icon-link { display: inline-flex; align-items: center; gap: .6rem; }
.footer-icon-link .ic { flex: 0 0 auto; width: 18px; height: 18px; }
@media (max-width: 1240px) {
  .nav-social { margin: 1rem 0 0 -.6rem; }
}
