/* September — paper atmosphere, brand-first hero, mobile-first → editorial desktop */
:root {
  --qa-paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  --qa-brand-hero: clamp(52px, 11vw, 112px);
  --qa-headline: clamp(22px, 2.6vw, 34px);
  --qa-lede: clamp(17px, 1.35vw, 20px);
  --qa-measure: 38rem;
  --qa-editorial: 1280px;
}

body[data-sept] {
  background-color: var(--qa-paper, #F5F2EA);
  background-image:
    linear-gradient(180deg, rgba(40, 94, 168, 0.04) 0%, transparent 28%),
    var(--qa-paper-grain);
}

.qa-wordmark__mark,
.hero-brand__mark { transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  body[data-sept] .qa-wordmark__mark,
  .hero-brand__mark {
    animation: qa-dot-pause 1.2s ease-out 0.35s 1 both;
  }
  /* Never opacity-zero critical copy — jury/LCP/first paint must read ink */
  .hero-sheet {
    animation: qa-sheet-settle 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-brand {
    animation: qa-brand-rise 0.55s ease-out 0.08s both;
  }
  .hero-headline,
  .hero-sept .lede,
  .hero-sheet__marks,
  .hero-actions,
  .hero-bound,
  .hero-sheet__rates {
    animation: qa-copy-rise 0.45s ease-out both;
  }
  .hero-headline { animation-delay: 0.12s; }
  .hero-sept .lede { animation-delay: 0.16s; }
  .hero-sheet__marks { animation-delay: 0.2s; }
  .hero-sheet__rates { animation-delay: 0.14s; }
  .hero-actions { animation-delay: 0.22s; }
  .hero-bound { animation-delay: 0.26s; }
  .hero-sheet__spine {
    animation: qa-spine-draw 0.9s ease-out 0.2s both;
  }
  .hero-sheet__badge {
    animation: qa-stamp-land 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  }
  .hero-sept__bleed {
    animation: qa-bleed-drift 1.4s ease-out both;
  }
  .hero-sheet__underlay {
    animation: qa-underlay-settle 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
  }
  .hero-sheet__underlay--2 {
    animation: qa-underlay-settle-2 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-sept__rail {
    animation: qa-rail-draw 0.9s ease-out 0.15s both;
  }
  .qa-rate-card {
    animation: qa-copy-rise 0.45s ease-out both;
  }
  .qa-rate-card:nth-child(1) { animation-delay: 0.05s; }
  .qa-rate-card:nth-child(2) { animation-delay: 0.1s; }
  .qa-rate-card:nth-child(3) { animation-delay: 0.15s; }
  .qa-rate-card:nth-child(4) { animation-delay: 0.2s; }
  .qa-rate-card:nth-child(5) { animation-delay: 0.25s; }
  .qa-unknown-block,
  .qa-stamp {
    animation: qa-unknown-ring 0.7s ease-out both;
  }
  .qa-scene-block {
    animation: qa-copy-rise 0.5s ease-out 0.12s both;
  }
  .pc-branch-3 a {
    transition: border-color 0.2s ease, outline-offset 0.2s ease, background-color 0.2s ease;
  }
  .portfolio-open__strip {
    animation: qa-copy-rise 0.45s ease-out 0.12s both;
  }
}

@keyframes qa-dot-pause {
  0% { transform: scale(1); opacity: 0.55; }
  40% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes qa-brand-rise {
  from { transform: translateY(10px); letter-spacing: -0.04em; }
  to { transform: none; letter-spacing: -0.03em; }
}
@keyframes qa-copy-rise {
  from { transform: translateY(8px); }
  to { transform: none; }
}
@keyframes qa-sheet-settle {
  from { transform: translateY(22px); }
  to { transform: none; }
}
@keyframes qa-spine-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes qa-stamp-land {
  from { transform: translateY(-8px) rotate(-4deg); }
  to { transform: none; }
}
@keyframes qa-bleed-drift {
  from { transform: translate(3%, 2%) scale(1.04); filter: grayscale(1) contrast(1.05); }
  to { transform: none; filter: grayscale(0.35) contrast(1.08); }
}
@keyframes qa-underlay-settle {
  from { transform: translate(-4px, 4px) rotate(0deg); opacity: 0.4; }
  to { transform: translate(-10px, 10px) rotate(-0.4deg); opacity: 1; }
}
@keyframes qa-underlay-settle-2 {
  from { transform: translate(-8px, 8px) rotate(0deg); opacity: 0.3; }
  to { transform: translate(-18px, 18px) rotate(0.55deg); opacity: 0.95; }
}
@keyframes qa-rail-draw {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes qa-unknown-ring {
  from { outline-offset: 0; opacity: 0.7; }
  to { outline-offset: 4px; opacity: 1; }
}

/* —— Hero: living Qarain Sheet as the first-viewport art direction —— */
.hero-sept {
  position: relative;
  isolation: isolate;
  min-height: min(94vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px 56px;
  border-bottom: 1px solid var(--rule, rgba(10,10,10,.22));
  overflow: visible;
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(40, 94, 168, 0.12), transparent 55%),
    linear-gradient(180deg, #E7E4DD 0%, var(--qa-paper, #F5F2EA) 42%, var(--qa-paper, #F5F2EA) 100%);
}
.hero-sept__room {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-sept__bleed {
  position: absolute;
  inset-block-start: -12%;
  inset-inline-end: -8%;
  width: min(68vw, 820px);
  height: auto;
  opacity: 0.28;
  mix-blend-mode: multiply;
}
.hero-sept__stage {
  position: relative;
  z-index: 2;
  width: min(var(--qa-editorial, 1280px), calc(100% - 32px));
  margin-inline: auto;
}
.hero-sheet {
  position: relative;
  background: var(--qa-paper, #F5F2EA);
  border: 1px solid var(--ink, #0A0A0A);
  padding: clamp(28px, 4vw, 48px) clamp(22px, 3.5vw, 44px) clamp(24px, 3vw, 40px);
  box-shadow: 16px 16px 0 rgba(10, 10, 10, 0.08);
}
.hero-sheet__crop {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 3;
}
.hero-sheet__crop::before,
.hero-sheet__crop::after {
  content: "";
  position: absolute;
  background: var(--ink, #0A0A0A);
}
.hero-sheet__crop::before { width: 22px; height: 2px; }
.hero-sheet__crop::after { width: 2px; height: 22px; }
.hero-sheet__crop--tl { top: -1px; inset-inline-start: -1px; }
.hero-sheet__crop--tl::before { top: 0; inset-inline-start: 0; }
.hero-sheet__crop--tl::after { top: 0; inset-inline-start: 0; }
.hero-sheet__crop--tr { top: -1px; inset-inline-end: -1px; }
.hero-sheet__crop--tr::before { top: 0; inset-inline-end: 0; }
.hero-sheet__crop--tr::after { top: 0; inset-inline-end: 0; }
.hero-sheet__crop--bl { bottom: -1px; inset-inline-start: -1px; }
.hero-sheet__crop--bl::before { bottom: 0; inset-inline-start: 0; }
.hero-sheet__crop--bl::after { bottom: 0; inset-inline-start: 0; }
.hero-sheet__crop--br { bottom: -1px; inset-inline-end: -1px; }
.hero-sheet__crop--br::before { bottom: 0; inset-inline-end: 0; }
.hero-sheet__crop--br::after { bottom: 0; inset-inline-end: 0; }

.hero-sheet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 18px;
}
.hero-sheet__head .hero-brand {
  flex: 1 1 auto;
  min-width: min(100%, 12ch);
}
.hero-sheet__asof {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--qa-grey, #666662);
  border: 1px solid var(--ink, #0A0A0A);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.55);
}
.hero-sheet__spine {
  height: 4px;
  margin: 0 0 28px;
  background: linear-gradient(90deg, var(--qa-evidence, #285EA8) 0%, var(--qa-evidence, #285EA8) 34%, transparent 34%);
  transform-origin: right center;
}
.hero-sheet__body {
  display: grid;
  gap: 28px;
}
.hero-brand {
  margin: 0;
  font-family: var(--qa-font, "Yekan Bakh", sans-serif);
  font-size: var(--qa-brand-hero);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink, #0A0A0A);
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
}
.hero-brand__mark {
  width: 0.22em;
  height: 0.22em;
  margin-bottom: 0.04em;
  flex: none;
  display: block;
}
.hero-headline {
  margin: 0 0 14px;
  max-width: 18ch;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink, #0A0A0A);
}
.hero-sept .lede {
  max-width: 34ch;
  margin: 0 0 18px;
  font-size: var(--qa-lede);
  line-height: 1.7;
  color: #2E2E2A;
  font-weight: 500;
}
.hero-sheet__marks {
  margin: 0 0 8px;
}
.hero-sept .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero-sept .hero-actions .qa-btn {
  min-height: 48px;
}
.hero-sept .hero-actions .qa-btn:not(.qa-btn--secondary) {
  background: var(--qa-evidence, #285EA8);
  border-color: var(--qa-evidence, #285EA8);
  color: #fff;
}
.hero-sept .hero-actions .qa-btn:not(.qa-btn--secondary):hover,
.hero-sept .hero-actions .qa-btn:not(.qa-btn--secondary):focus-visible {
  background: var(--ink, #0A0A0A);
  border-color: var(--ink, #0A0A0A);
}
.hero-bound {
  margin-top: 14px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 24px;
  color: var(--qa-grey, #666662);
}

/* Rates field — published truth on the sheet (not a floating SaaS card) */
.hero-sheet__rates,
.portfolio-open__strip {
  border: 1.5px dashed var(--qa-evidence, #285EA8);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px 18px 16px;
  margin: 0;
}
.hero-rates__label {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--qa-evidence, #285EA8);
}
.hero-rates__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
/* One ledger line per state: what I have · what Qarain does · % of which base.
   The base sits directly under its own number so the pair cannot be misread. */
.hero-rates__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "state fee"
    "do    base";
  column-gap: 12px;
  row-gap: 2px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fog, #E7E4DD);
  color: var(--ink, #0A0A0A);
}
.hero-rates__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-rates__state {
  grid-area: state;
  font-weight: 700;
  font-size: 15px;
  line-height: 24px;
}
.hero-rates__do {
  grid-area: do;
  font-size: 13px;
  line-height: 20px;
  color: var(--qa-grey, #666662);
}
.hero-rates__fee {
  grid-area: fee;
  justify-self: start;
  font-weight: 800;
  font-size: 22px;
  line-height: 24px;
  color: var(--qa-evidence, #285EA8);
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}
.hero-rates__base {
  grid-area: base;
  justify-self: start;
  font-size: 12px;
  line-height: 20px;
  color: var(--qa-grey, #666662);
  white-space: nowrap;
}
.hero-rates__note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--qa-grey, #666662);
}
.hero-rates__more {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 22px;
}
.hero-rates__note--always {
  display: block !important;
}
.hero-rates__define {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--qa-ink, #0A0A0A);
  max-width: 36ch;
}
.hero-sheet__badge {
  display: block;
  margin-top: 16px;
  width: min(100%, 200px);
  height: auto;
}
.hero-sheet__foot {
  margin-top: 28px;
  height: 3px;
  background: var(--ink, #0A0A0A);
}
/* The folio is a print mark, not a strikethrough: sheets that close with the
   ink rule need room under it so the two do not land on the same line. */
.hero-sheet:has(> .hero-sheet__foot) {
  padding-bottom: 38px;
}
.portfolio-open {
  display: grid;
  gap: 24px;
  margin-bottom: 8px;
}
.portfolio-open__copy .lede { margin-bottom: 0; }
.portfolio-rates-first { padding-top: 24px; }
.portfolio-open__strip {
  border-style: solid;
  border-right: 4px solid var(--qa-evidence, #285EA8);
}
/* Legacy display class still used on other pages */
.hero-sept .display {
  font-size: var(--qa-headline);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 28ch;
  margin: 0 0 16px;
}
.footer-brand {
  width: min(var(--qa-editorial, 1280px), calc(100% - 48px));
  margin: 0 auto 28px;
  text-align: start;
}
.footer-brand p {
  margin: 10px 0 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 26px;
  color: var(--qa-grey, #666662);
}
/* Desktop footer wordmark: natural glyph ratio — no letterhead min-height stretch */
@media (min-width: 801px) {
  body[data-sept] .site-footer .footer-brand .qa-wordmark {
    min-height: 0;
    height: auto;
    font-size: clamp(36px, 3.4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    align-items: baseline;
    transform: none;
  }
  body[data-sept] .site-footer .footer-brand .qa-wordmark__mark {
    width: 0.22em;
    height: 0.22em;
    margin-bottom: 0.04em;
    transform: none;
    animation: none;
  }
}
.qa-rate-card__more {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 24px;
}
.qa-prose-wide--lead {
  font-weight: 500;
  color: #2E2E2A;
}

/* The mark taxonomy is the method's own vocabulary, so it waits behind a fold
   while the three decision questions own the first screen. */
.method-details-fold {
  margin-top: 20px;
  max-width: 70ch;
  border: var(--qa-hairline, 1px) solid var(--fog, #E7E4DD);
  background: var(--qa-surface, #fff);
}
.method-details-fold > summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  color: var(--qa-grey, #666662);
  list-style: none;
}
.method-details-fold > summary::-webkit-details-marker { display: none; }
.method-details-fold[open] > summary {
  border-bottom: var(--qa-hairline, 1px) solid var(--fog, #E7E4DD);
}
.method-details-fold .qa-marks {
  margin: 0;
  padding: 14px 16px;
}

/* —— Knowledge marks (ثابت‌شده / گفته‌شده / روشن‌نشده) —— */
.qa-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.qa-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
}
.qa-mark__swatch {
  width: 12px;
  height: 12px;
  flex: none;
  border: 1px solid var(--ink, #0A0A0A);
}
.qa-mark--proven .qa-mark__swatch { background: var(--qa-evidence, #285EA8); border-color: var(--qa-evidence, #285EA8); }
.qa-mark--said .qa-mark__swatch { background: transparent; border-style: dashed; }
.qa-mark--unknown .qa-mark__swatch { background: var(--ink, #0A0A0A); }

.qa-stamp {
  display: inline-block;
  margin: 16px 0 0;
  padding: 8px 14px;
  border: 2px solid var(--qa-conflict, #B63A32);
  color: var(--qa-conflict, #B63A32);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: rotate(-2deg);
  outline: 1px solid var(--qa-conflict, #B63A32);
  outline-offset: 3px;
  background: var(--qa-paper, #F5F2EA);
}

/* —— Rate cards (mobile-first; table only as desktop optional) —— */
.qa-rate-cards {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.qa-rate-card {
  border: 1px solid var(--ink, #0A0A0A);
  background: var(--qa-surface, #fff);
  padding: 20px 20px 18px;
  scroll-margin-top: 96px;
}
.qa-rate-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fog, #E7E4DD);
}
.qa-rate-card__state {
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
}
.qa-rate-card__rate {
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}
.qa-rate-card__service {
  font-size: 15px;
  line-height: 24px;
  color: var(--qa-grey, #666662);
  margin: 0 0 12px;
}
.qa-rate-card__includes {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 15px;
  line-height: 24px;
}
.qa-rate-card__includes li {
  position: relative;
  padding-inline-start: 1.1em;
}
.qa-rate-card__includes li::before {
  content: "·";
  position: absolute;
  inset-inline-start: 0;
  color: var(--qa-grey, #666662);
}
.qa-rate-card__meta {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 24px;
}
.qa-rate-card__meta li {
  display: grid;
  grid-template-columns: 7ch 1fr;
  gap: 8px;
}
.qa-rate-card__meta span:first-child {
  color: var(--qa-grey, #666662);
  font-size: 13px;
  line-height: 24px;
}
.qa-rate-card__example {
  margin-top: 12px;
  border-radius: 0;
}
.qa-rate-card__example > summary {
  list-style: none;
  cursor: pointer;
  color: var(--qa-evidence, #285EA8);
  font-size: 15px;
  line-height: 24px;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 0;
}
.qa-rate-card__example > summary::-webkit-details-marker {
  display: none;
}
.qa-rate-card__example > summary:focus-visible {
  outline: 2px solid var(--qa-evidence, #285EA8);
  outline-offset: 3px;
}
.qa-rate-card__example[open] > summary {
  margin-bottom: 10px;
}
.qa-rate-card__example .qa-rate-card__meta {
  margin: 0;
}

/* —— Trust OS: contra money + fee sheets —— */
.qa-contra {
  margin: 28px 0 8px;
  padding: 20px 0 0;
  border-top: 1px solid var(--rule, rgba(10,10,10,.22));
  max-width: 62ch;
}
.qa-contra h2 {
  font-size: 20px;
  line-height: 32px;
  margin: 0 0 8px;
}
.qa-contra > p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 24px;
  color: var(--qa-grey, #666662);
}
.qa-contra-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 24px;
  background: var(--qa-surface, #fff);
}
.qa-contra-table th,
.qa-contra-table td {
  border: 1px solid var(--ink, #0A0A0A);
  padding: 12px 14px;
  text-align: right;
  vertical-align: top;
  border-radius: 0;
}
.qa-contra-table th {
  font-weight: 700;
  background: var(--paper, #F5F2EA);
}
.qa-liability {
  margin: 24px 0;
  padding: 20px 24px;
  border: 1px solid var(--ink, #0A0A0A);
  background: var(--qa-surface, #fff);
  max-width: 62ch;
}
.qa-liability h2 {
  font-size: 18px;
  line-height: 28px;
  margin: 0 0 12px;
}
.qa-liability p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 24px;
}
.qa-liability p:last-child { margin-bottom: 0; }

.qa-fee-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 32px;
}
.qa-fee-toc a {
  color: var(--qa-evidence, #285EA8);
  text-underline-offset: 3px;
  font-size: 15px;
  line-height: 24px;
}
.qa-fee-sheet {
  border: 1px solid var(--ink, #0A0A0A);
  background: var(--qa-surface, #fff);
  padding: 24px 24px 20px;
  margin: 0 0 28px;
  scroll-margin-top: 96px;
  max-width: 52ch;
}
.qa-fee-sheet__head {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--fog, #E7E4DD);
}
.qa-fee-sheet__brand {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 20px;
  color: var(--qa-grey, #666662);
}
.qa-fee-sheet__state {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
}
.qa-fee-sheet__rate {
  margin: 0;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--qa-evidence, #285EA8);
}
.qa-fee-sheet__rate span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--qa-ink, #0A0A0A);
}
.qa-fee-sheet__service {
  margin: 0 0 16px;
  color: var(--qa-grey, #666662);
  font-size: 15px;
  line-height: 24px;
}
.qa-fee-sheet h2 {
  font-size: 15px;
  line-height: 24px;
  margin: 16px 0 8px;
}
.qa-fee-sheet ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 15px;
  line-height: 24px;
}
.qa-fee-sheet ul li {
  position: relative;
  padding-inline-start: 1.1em;
}
.qa-fee-sheet ul li::before {
  content: "·";
  position: absolute;
  inset-inline-start: 0;
  color: var(--qa-grey, #666662);
}
.qa-fee-sheet__when {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 24px;
}
.qa-fee-sheet__cta {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.qa-rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--qa-surface, #fff);
  font-size: 16px;
  line-height: 28px;
}
.qa-rate-table th,
.qa-rate-table td {
  border-bottom: 1px solid var(--rule, rgba(10,10,10,.22));
  padding: 14px 12px;
  text-align: right;
  vertical-align: top;
}
.qa-rate-table th {
  font-weight: 700;
  font-size: 13px;
  line-height: 20px;
  color: var(--qa-grey, #666662);
}
.qa-rate-table .rate {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.qa-companion {
  border: 1px solid var(--ink, #0A0A0A);
  padding: 20px 24px;
  margin-top: 24px;
  background: var(--qa-surface, #fff);
}

.qa-unknown-block {
  background: var(--ink, #0A0A0A);
  color: var(--paper, #F5F2EA);
  padding: 16px 20px;
  outline: 1px solid var(--ink, #0A0A0A);
  outline-offset: 4px;
}

/* —— Scene / prose enrichment —— */
.qa-scene-block {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--rule, rgba(10,10,10,.22));
  max-width: 62ch;
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: start;
}
/* When scene also carries .wrap, keep editorial column width; stick prose to RTL start */
body[data-sept] .qa-scene-block.wrap {
  max-width: none;
  width: min(var(--max, 1280px), calc(100% - 48px));
  margin-inline: auto;
  text-align: start;
}
body[data-sept] .qa-scene-block.wrap > h2,
body[data-sept] .qa-scene-block.wrap > p,
body[data-sept] .qa-scene-block.wrap > .qa-decision-leaf {
  max-width: 62ch;
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: start;
}
.qa-scene-block h2 {
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  margin: 0 0 12px;
}
.qa-scene-block p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 32px;
}
.qa-prose-wide {
  max-width: 62ch;
  font-size: 18px;
  line-height: 32px;
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: start;
}
.qa-decision-leaf {
  border: 1px solid var(--ink, #0A0A0A);
  background: var(--qa-surface, #fff);
  padding: 20px 24px;
  margin: 24px 0;
  max-width: 62ch;
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: start;
}
.qa-decision-leaf h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}
.qa-decision-leaf p { margin: 0; font-size: 16px; line-height: 28px; }

.qa-state-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.qa-state-row a {
  flex: 1 1 140px;
  border: 1px solid var(--ink, #0A0A0A);
  padding: 16px;
  text-decoration: none;
  min-height: 88px;
  color: inherit;
}
.qa-state-row a strong {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.qa-state-row a span {
  font-size: 14px;
  line-height: 22px;
  color: var(--qa-grey, #666662);
}

.money-manifest {
  border-top: 1px solid var(--rule, rgba(10,10,10,.22));
  padding-top: 24px;
}
.money-manifest ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.money-manifest li {
  padding: 8px 0;
  border-bottom: 1px solid var(--fog, #E7E4DD);
}

/* —— Contact intents —— */
.qa-intent-row {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
}
.qa-intent-row a {
  display: block;
  border: 1px solid var(--ink, #0A0A0A);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  min-height: 72px;
  text-align: start;
}
.qa-intent-row a.is-intent-active {
  border-color: var(--qa-evidence, #285EA8);
  box-shadow: inset 0 0 0 1px var(--qa-evidence, #285EA8);
}
.qa-intent-row a strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.qa-intent-row a span {
  font-size: 14px;
  line-height: 22px;
  color: var(--qa-grey, #666662);
}
.qa-intent-hint {
  margin: -16px 0 28px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 24px;
  color: var(--qa-evidence, #285EA8);
  text-align: start;
}
/* Contact channels layered by priority instead of one flat list */
.contact-layer {
  max-width: 520px;
  margin: 32px auto 0;
  text-align: right;
}
.contact-layer__title {
  margin: 0;
  font-size: 17px;
  line-height: 28px;
  font-weight: 700;
}
.contact-layer__note {
  margin: 4px 0 8px;
  font-size: 14px;
  line-height: 24px;
  color: var(--qa-grey, #666662);
}
.contact-layer .contact-list { margin: 0; }
/* A phone number is one token: never let it wrap or borrow the paragraph's
   direction, or the reader sees a different number than we published. */
.phone-inline {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.qa-contact-priority {
  border-right: 3px solid var(--qa-evidence, #285EA8);
  padding: 12px 16px;
  margin: 0 0 24px;
  max-width: 62ch;
  background: var(--qa-surface, #fff);
}

/* —— Sticky mobile CTA —— */
.qa-sticky-cta {
  display: none;
}

@media (max-width: 800px) {
  .qa-sticky-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom, 0px));
    background: var(--qa-paper, #F5F2EA);
    border-top: 1px solid var(--ink, #0A0A0A);
    box-shadow: none;
  }
  .qa-sticky-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 8px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    border: 1px solid var(--ink, #0A0A0A);
  }
  .qa-sticky-cta a.qa-sticky-cta__primary {
    background: var(--ink, #0A0A0A);
    color: var(--paper, #F5F2EA);
  }
  .qa-sticky-cta a.qa-sticky-cta__secondary {
    background: var(--qa-surface, #fff);
    color: var(--ink, #0A0A0A);
  }
  /* While the hero is on screen its own two actions are the only choices; the
     bar slides in once the hero leaves. Without JS it stays visible. */
  .qa-sticky-cta[data-qa-autohide="1"] {
    transform: translateY(calc(100% + 2px));
    transition: transform 180ms ease-out;
  }
  .qa-sticky-cta[data-qa-autohide="1"].is-in { transform: none; }
  body[data-sept] {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .qa-rate-table-wrap { display: none; }
  /* Phone chrome: the 88px logo clear-height is a desktop letterhead rule; on a
     phone it costs a quarter of the fold before the money answer appears. */
  body[data-sept] .site-header[data-sept="chrome"] { padding: 12px 0; }
  body[data-sept] .site-header .qa-wordmark { min-height: 48px; }
  body[data-sept] .site-header .header-utils { font-size: 12px; line-height: 18px; }
  .hero-sept {
    min-height: auto;
    /* No top padding on a phone: the gap only exposed a sliver of the bleed
       artwork under the chrome rule. The sheet now butts against the header. */
    padding-block: 0 28px;
    overflow-x: clip;
  }
  .hero-sept__stage {
    width: min(100% - 20px, var(--qa-editorial));
  }
  .hero-sheet {
    padding: 18px 14px 16px;
    box-shadow: 10px 10px 0 rgba(10, 10, 10, 0.07);
  }
  .hero-sept__bleed {
    width: min(110vw, 520px);
    inset-inline-end: -28%;
    inset-block-start: -6%;
    opacity: 0.16;
  }
  .hero-brand { font-size: clamp(36px, 11vw, 56px); }
  .hero-headline,
  .hero-sept .display {
    max-width: none;
    font-size: clamp(19px, 5.2vw, 24px);
    margin-bottom: 8px;
  }
  .hero-sept .lede { max-width: none; font-size: 15px; line-height: 24px; }
  /* Rates must stay in the first-viewport table on narrow screens */
  .hero-sheet__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hero-sheet__copy {
    display: contents;
  }
  .hero-headline { order: 1; }
  .hero-sept .lede,
  .hero-sheet__copy > .lede { order: 2; }
  .hero-sheet__rates,
  .portfolio-open__strip { order: 3; }
  .hero-sheet__marks { order: 4; margin-top: 0; margin-bottom: 0; display: none; }
  .hero-actions { order: 5; }
  .hero-bound { order: 6; }
  .hero-sheet__copy > .eyebrow { order: 0; }
  .hero-sheet__rates .hero-rates__note:not(.hero-rates__note--always),
  .hero-sheet__rates .hero-sheet__badge {
    display: none;
  }
  .hero-sheet__rates .hero-rates__note--always,
  .hero-sheet__rates .hero-rates__more {
    display: block;
  }
  .hero-rates__label { margin-bottom: 8px; }
  .hero-rates__list { gap: 6px; }
  .hero-rates__list li { padding-bottom: 6px; }
  .hero-rates__state { font-size: 14px; line-height: 22px; }
  .hero-rates__do { font-size: 12px; line-height: 18px; }
  .hero-rates__fee { font-size: 20px; line-height: 22px; }
  /* 12px is the floor: below it the base stops being read and the percentage
     goes back to meaning nothing. */
  .hero-rates__base { font-size: 12px; line-height: 18px; }
  .hero-sheet__rates,
  .portfolio-open__strip {
    padding: 10px 12px 8px;
  }
  /* Brand letterhead and as-of stamp share one line so the fee ledger and the
     primary action both stay inside the un-scrolled fold on a phone. */
  .hero-sheet__head {
    margin-bottom: 10px;
    align-items: baseline;
    gap: 8px 12px;
  }
  .hero-sheet__head .hero-brand { flex: 0 1 auto; min-width: 0; }
  .hero-sheet__spine { margin-bottom: 14px; }
  .hero-bound { font-size: 13px; line-height: 20px; margin-top: 8px; }
  /* Two actions side by side keep the primary above the sticky bar on 390px. */
  .hero-sept .hero-actions,
  .hero-actions--sheet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }
  .hero-actions--sheet { order: 5; }
  .hero-sept .hero-actions .qa-btn,
  .hero-actions--sheet .qa-btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 10px;
    text-align: center;
  }
  .hero-sheet__head { align-items: flex-start; }
  .qa-state-row { flex-direction: column; }
  .qa-state-row a { flex: none; min-height: 72px; }
  .qa-rate-card__meta li { grid-template-columns: 1fr; gap: 2px; }
  .qa-stamp { transform: rotate(-1.5deg); }
  .qa-marks-band__grid { display: grid; gap: 16px; }
}

/* —— Brand visual: evidence blue as meaning (source / link / next action) —— */
.qa-source-rail {
  border-right: 4px solid var(--qa-evidence, #285EA8);
  padding: 12px 16px;
  margin: 16px 0;
  background: var(--qa-surface, #fff);
  max-width: 62ch;
}
.qa-source-rail__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  margin-left: 8px;
  border: 1px solid var(--qa-evidence, #285EA8);
  color: var(--qa-evidence, #285EA8);
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}
.qa-next-action {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  padding: 12px 0;
  max-width: 62ch;
  color: var(--ink, #0A0A0A);
}
.qa-next-action::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  margin-top: 8px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--qa-evidence, #285EA8);
  transform: scaleX(-1);
}
.qa-asof {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  border: 1px solid var(--ink, #0A0A0A);
  padding: 4px 10px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--qa-grey, #666662);
  background: var(--qa-paper, #F5F2EA);
}
.qa-decision-color {
  display: inline-block;
  min-width: 4.5em;
  padding: 4px 10px;
  border: 1px solid var(--ink, #0A0A0A);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.qa-decision-color--green { background: var(--qa-surface, #fff); }
.qa-decision-color--yellow { background: var(--qa-fog, #E7E4DD); }
.qa-decision-color--red {
  border-color: var(--qa-conflict, #B63A32);
  color: var(--qa-conflict, #B63A32);
}
.qa-pillars {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  counter-reset: pillar;
}
.qa-pillars li {
  list-style: none;
  border: 1px solid var(--ink, #0A0A0A);
  background: var(--qa-surface, #fff);
  padding: 16px 18px;
  counter-increment: pillar;
}
.qa-pillars li::before {
  content: counter(pillar, decimal);
  display: block;
  color: var(--qa-evidence, #285EA8);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
  direction: ltr;
  unicode-bidi: isolate;
}
.qa-pillars strong { display: block; font-weight: 700; margin-bottom: 4px; }
.qa-pillars span { font-size: 15px; line-height: 26px; color: var(--qa-grey, #666662); }
.qa-depth-pair {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.qa-depth {
  border: 1px solid var(--ink, #0A0A0A);
  background: var(--qa-surface, #fff);
  padding: 20px 22px;
  max-width: 62ch;
}
.qa-depth h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}
.qa-depth--summary {
  border-right: 4px solid var(--qa-evidence, #285EA8);
}
.qa-depth--deep {
  border-right: 4px solid var(--ink, #0A0A0A);
}
.pc-page a.text-link,
.wrap a.text-link,
.sheet-page a.text-link,
.pc-faq a,
.pc-list a,
.qa-scene-block a,
.money-manifest a,
.pc-section a:not(.qa-btn),
.method-steps a,
.close-cta a:not(.qa-btn) {
  color: var(--qa-evidence, #285EA8);
}
body[data-sept] .eyebrow,
.pc-page .eyebrow,
.sheet-page .eyebrow {
  color: var(--qa-evidence, #285EA8);
}

/* —— چهار نشانهٔ کمکی (تناقض، قدم بعد، زمان/دامنه، منبع) —— */
.qa-peri-grid {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.qa-peri {
  border: 1px solid var(--ink, #0A0A0A);
  background: var(--qa-surface, #fff);
  padding: 16px 18px;
  max-width: 62ch;
}
.qa-peri__label {
  display: block;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--qa-evidence, #285EA8);
}
.qa-peri--conflict .qa-peri__label { color: var(--qa-conflict, #B63A32); }
.qa-peri--conflict {
  border-right: 4px solid var(--qa-conflict, #B63A32);
}
.qa-peri--next {
  border-right: 4px solid var(--qa-evidence, #285EA8);
}
.qa-peri--asof .qa-peri__label { color: var(--qa-grey, #666662); }
.qa-peri--source {
  border-right: 4px solid var(--qa-evidence, #285EA8);
}
.qa-peri p { margin: 0; font-size: 15px; line-height: 26px; color: var(--qa-grey, #666662); }

.qa-knowledge-card {
  border: 1px solid var(--ink, #0A0A0A);
  background: var(--qa-surface, #fff);
  padding: 18px 20px;
  margin: 12px 0;
  max-width: 62ch;
}
.qa-knowledge-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 28px;
}
.qa-knowledge-card p {
  margin: 0;
  font-size: 15px;
  line-height: 26px;
  color: var(--qa-grey, #666662);
}
.qa-vision-note {
  border: 1px dashed var(--ink, #0A0A0A);
  background: var(--qa-paper, #F5F2EA);
  padding: 16px 18px;
  margin: 20px 0;
  max-width: 70ch;
  font-size: 15px;
  line-height: 26px;
}
.qa-vision-note strong { display: block; margin-bottom: 6px; font-weight: 700; }
.qa-level-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.qa-level-list li {
  border: 1px solid var(--ink, #0A0A0A);
  background: var(--qa-surface, #fff);
  padding: 14px 16px;
}
.qa-level-list strong {
  display: block;
  color: var(--qa-evidence, #285EA8);
  font-size: 13px;
  margin-bottom: 4px;
}

/* Brand hygiene: radius 0 on surfaces; circular marks/logo only; no glow */
body[data-sept] .qa-btn,
body[data-sept] .qa-rate-card,
body[data-sept] .qa-pillars li,
body[data-sept] .qa-depth,
body[data-sept] .qa-peri,
body[data-sept] .qa-knowledge-card,
body[data-sept] .qa-level-list li,
body[data-sept] .qa-companion,
body[data-sept] .qa-sticky-cta,
body[data-sept] .pc-branch-3 a,
body[data-sept] .qa-state-row a,
body[data-sept] input,
body[data-sept] textarea,
body[data-sept] select {
  border-radius: 0;
  box-shadow: none;
}
body[data-sept] .wm-dot,
body[data-sept] .qa-mark__swatch,
body[data-sept] .qa-wordmark__mark {
  border-radius: 50%;
}

/* Marks band + section rhythm */
.qa-marks-band {
  padding-block: 28px 8px;
  border-bottom: 1px solid var(--fog, #E7E4DD);
}
.qa-marks-band__grid {
  display: grid;
  gap: 16px;
}
.page-brand-open {
  padding-top: 28px;
  margin-bottom: 8px;
}
.page-brand {
  margin: 0 0 12px;
  font-family: var(--qa-font, "Yekan Bakh", sans-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink, #0A0A0A);
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
}
.page-brand__mark {
  width: 0.22em;
  height: 0.22em;
  margin-bottom: 0.04em;
  flex: none;
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .page-brand__mark {
    animation: qa-dot-pause 1.2s ease-out 0.35s 1 both;
  }
}
body[data-sept] .section h2,
body[data-sept] .pc-section h2 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 28ch;
}
body[data-sept] .pc-page > .wrap,
body[data-sept] .pc-page .section.wrap,
body[data-sept] main.wrap {
  width: min(var(--qa-editorial, 1280px), calc(100% - 48px));
}

/* Rate cards: evidence authority on the rate figure */
.qa-rate-card__rate {
  color: var(--qa-evidence, #285EA8);
}
.qa-state-row a:hover,
.qa-state-row a:focus-visible {
  border-color: var(--qa-evidence, #285EA8);
  outline: 2px solid var(--qa-evidence, #285EA8);
  outline-offset: 2px;
}
.pc-branch-3 a:hover,
.pc-branch-3 a:focus-visible {
  background: rgba(40, 94, 168, 0.04);
}

/* Desktop: sheet as editorial instrument — copy + published rates field */
@media (min-width: 801px) {
  .hero-sept {
    padding-block: 56px 72px;
    min-height: min(92vh, 880px);
  }
  .hero-sheet__body {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.78fr);
    gap: 40px;
    align-items: start;
  }
  .hero-headline { max-width: 16ch; }
  .hero-sept .lede {
    max-width: 36ch;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--qa-evidence, #285EA8);
  }
  .hero-sheet__rates {
    align-self: stretch;
  }
  .portfolio-open {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 40px;
    align-items: start;
    padding-top: 40px;
  }
  .portfolio-open__strip { margin: 0; max-width: none; }
  .hero-sept .display {
    max-width: 22ch;
  }
  .hero-sept__bleed {
    width: min(52vw, 780px);
    inset-inline-end: -2%;
    inset-block-start: -8%;
    opacity: 0.26;
  }
  .qa-marks-band__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px 48px;
    align-items: start;
  }
  .qa-marks-band .qa-prose-wide { margin: 0; max-width: none; }
  .qa-rate-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .qa-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .qa-depth-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
  }
  .qa-depth { max-width: none; height: 100%; }
  .qa-intent-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa-scene-block { max-width: 72ch; }
  .qa-state-row a { flex: 1 1 160px; }
  /* Sticky CTA is mobile-only; never present as chrome on desktop */
  .qa-sticky-cta { display: none !important; }
  body[data-sept] { padding-bottom: 0; }
}

@media (min-width: 1100px) {
  .hero-sept {
    min-height: min(94vh, 920px);
    padding-block: 64px 80px;
  }
  .hero-sheet {
    padding: 52px 52px 44px;
  }
  .hero-sheet__body {
    column-gap: 56px;
  }
  .hero-headline { max-width: 15ch; font-size: clamp(32px, 2.8vw, 42px); }
  .qa-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .qa-rate-cards { gap: 24px; }
  .qa-peri-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .qa-peri { max-width: none; }
  body[data-sept] .site-header,
  body[data-sept] .site-footer .footer-grid,
  body[data-sept] .footer-brand,
  body[data-sept] .wrap {
    width: min(var(--qa-editorial, 1280px), calc(100% - 80px));
  }
}

@media (min-width: 1400px) {
  .hero-sheet__body {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  }
  .hero-sept__bleed {
    width: min(46vw, 860px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qa-wordmark__mark,
  .hero-brand__mark,
  .hero-brand,
  .hero-headline,
  .hero-sept .lede,
  .hero-actions,
  .hero-bound,
  .hero-sheet,
  .hero-sheet__rates,
  .hero-sheet__spine,
  .hero-sheet__badge,
  .hero-sheet__marks,
  .hero-sept__bleed,
  .portfolio-open__strip,
  .qa-rate-card,
  .qa-unknown-block,
  .qa-stamp,
  .qa-scene-block,
  .hero-sheet__underlay,
  .hero-sheet__underlay--2,
  .hero-sept__rail { animation: none !important; }
  .hero-sept__bleed { opacity: 0.22; }
  .qa-reveal { opacity: 1; transform: none; transition: none; }
  .hero-sheet__underlay,
  .hero-sheet__underlay--2,
  .hero-sept__rail { animation: none !important; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}

/* —— Atmosphere densification: drafting desk + registration —— */
.hero-sept__desk {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgba(10, 10, 10, 0.055) 79px,
      rgba(10, 10, 10, 0.055) 80px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 39px,
      rgba(40, 94, 168, 0.07) 39px,
      rgba(40, 94, 168, 0.07) 40px
    );
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.72), transparent 90%);
}
.hero-sept__rail {
  position: absolute;
  top: 8%;
  bottom: 10%;
  width: 0;
  border-inline-start: 1px dashed rgba(40, 94, 168, 0.42);
  z-index: 1;
  transform-origin: top center;
}
.hero-sept__rail--start { inset-inline-start: 4%; }
.hero-sept__rail--end { inset-inline-end: 4%; }
.hero-sept__reg {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 1;
}
.hero-sept__reg::before,
.hero-sept__reg::after {
  content: "";
  position: absolute;
  background: rgba(10, 10, 10, 0.35);
}
.hero-sept__reg::before { width: 22px; height: 1px; top: 10px; inset-inline-start: 0; }
.hero-sept__reg::after { width: 1px; height: 22px; top: 0; inset-inline-start: 10px; }
.hero-sept__reg--tl { top: 18px; inset-inline-start: 18px; }
.hero-sept__reg--tr { top: 18px; inset-inline-end: 18px; }
.hero-sept__reg--bl { bottom: 18px; inset-inline-start: 18px; }
.hero-sept__reg--br { bottom: 18px; inset-inline-end: 18px; }

.hero-sept__bleed--ghost {
  inset-inline-start: -18%;
  inset-inline-end: auto;
  inset-block-start: 18%;
  width: min(42vw, 520px);
  opacity: 0.16;
  transform: rotate(-6deg);
  filter: grayscale(0.35);
}
.hero-sheet__stack {
  position: absolute;
  inset: 10px -14px -18px 10px;
  z-index: 1;
  pointer-events: none;
}
.hero-sheet__underlay {
  position: absolute;
  inset: 0;
  background: #EFEBE3;
  border: 1px solid rgba(10, 10, 10, 0.45);
  transform: translate(-10px, 10px) rotate(-0.4deg);
}
.hero-sheet__underlay--2 {
  background: #E4E0D6;
  transform: translate(-18px, 18px) rotate(0.55deg);
  opacity: 0.95;
}
.hero-sheet {
  z-index: 2;
  background-image: var(--qa-paper-grain);
  background-color: var(--qa-paper, #F5F2EA);
  box-shadow:
    18px 18px 0 rgba(10, 10, 10, 0.08),
    0 0 0 1px rgba(10, 10, 10, 0.06);
}
.hero-sheet__folio {
  position: absolute;
  top: auto;
  bottom: 14px;
  inset-inline-start: auto;
  inset-inline-end: 18px;
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.06em;
  color: var(--qa-grey, #666662);
  font-weight: 500;
}
.hero-brand--page {
  font-size: clamp(40px, 7vw, 72px);
}
.hero-sheet__body--single {
  grid-template-columns: 1fr;
}
.hero-sept--sample,
.hero-sept--portfolio,
.hero-sept--start {
  min-height: auto;
  padding-block: 36px 48px;
}

.qa-marks-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.qa-marks-legend__item {
  display: grid;
  grid-template-columns: 14px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--fog, #E7E4DD);
}
.qa-marks-legend__item:last-child { border-bottom: 0; padding-bottom: 0; }
.qa-marks-legend__item .qa-mark__swatch {
  grid-row: 1 / span 2;
  margin-top: 4px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink, #0A0A0A);
}
.qa-marks-legend__item--proven .qa-mark__swatch {
  background: var(--qa-evidence, #285EA8);
  border-color: var(--qa-evidence, #285EA8);
}
.qa-marks-legend__item--said .qa-mark__swatch {
  background: transparent;
  border-style: dashed;
}
.qa-marks-legend__item--unknown .qa-mark__swatch {
  background: var(--ink, #0A0A0A);
}
.qa-marks-legend__item strong {
  font-size: 15px;
  line-height: 24px;
  font-weight: 700;
}
.qa-marks-legend__item span:last-child {
  font-size: 14px;
  line-height: 22px;
  color: var(--qa-grey, #666662);
}
.qa-marks-band {
  padding-block: 36px 20px;
}
.qa-marks-band__lead { display: grid; gap: 12px; }

.living-product {
  position: relative;
  margin: 40px 0 24px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(40, 94, 168, 0.06), transparent 40%),
    var(--qa-paper, #F5F2EA);
  border: 1px solid var(--ink, #0A0A0A);
}
.living-product .hero-sheet__crop { z-index: 2; }
.living-product .sheet-frame {
  margin: 0;
  position: relative;
  z-index: 1;
}
.sample-sheet-stage,
.start-form-stage {
  padding-block: 8px 72px;
}
.start-form-stage #start-root {
  border: 1.5px dashed var(--qa-evidence, #285EA8);
  background: rgba(255, 255, 255, 0.72);
  padding: 20px 18px;
  margin-top: 8px;
}

/* Scroll reveal — transform only; ink stays readable */
.qa-reveal {
  transform: translateY(14px);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.qa-reveal.is-in {
  transform: none;
}

body[data-sept="portfolio"] .qa-rate-card {
  position: relative;
  border-right: 4px solid var(--qa-evidence, #285EA8);
  background-image: var(--qa-paper-grain);
}
body[data-sept="portfolio"] .qa-rate-card__rate {
  font-size: clamp(28px, 3vw, 36px);
}
body[data-sept="portfolio"] .qa-companion {
  border-style: dashed;
  border-color: var(--qa-evidence, #285EA8);
}

@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
}

@media (max-width: 800px) {
  .hero-sheet__stack { inset: 6px -8px -10px 6px; }
  .hero-sheet__underlay { transform: translate(-6px, 6px); }
  .hero-sheet__underlay--2 { transform: translate(-11px, 11px); }
  .hero-sheet__folio { bottom: 10px; inset-inline-end: 12px; font-size: 10px; }
  .hero-sept__rail,
  .hero-sept__reg { display: none; }
  .hero-sept__bleed--ghost { display: none; }
  .living-product { padding: 12px; }
  .hero-sept--sample,
  .hero-sept--portfolio,
  .hero-sept--start {
    padding-block: 20px 28px;
  }
  .hero-brand--page { font-size: clamp(36px, 12vw, 56px); }
}

@media (min-width: 801px) {
  .hero-sept {
    background:
      radial-gradient(90% 70% at 78% 8%, rgba(40, 94, 168, 0.16), transparent 52%),
      radial-gradient(60% 50% at 8% 90%, rgba(10, 10, 10, 0.04), transparent 55%),
      linear-gradient(180deg, #E2DFD6 0%, var(--qa-paper, #F5F2EA) 38%, var(--qa-paper, #F5F2EA) 100%);
  }
  .hero-sept__bleed {
    opacity: 0.38;
    width: min(62vw, 920px);
  }
  .qa-marks-band__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px 56px;
    align-items: start;
  }
  .living-product {
    padding: 28px;
    box-shadow: 14px 14px 0 rgba(10, 10, 10, 0.06);
  }
  .hero-sheet__stack {
    inset: 14px -20px -24px 14px;
  }
}

@media (min-width: 1100px) {
  .hero-sheet__folio {
    bottom: 18px;
    inset-inline-end: 24px;
  }
}

/* Sample: black product sheet as first-viewport proof */
.hero-sept--product {
  min-height: auto;
  padding-block: 28px 48px;
  justify-content: flex-start;
}
.sample-hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 10px;
  position: relative;
  z-index: 2;
}
.hero-brand--inline {
  font-size: clamp(32px, 5vw, 48px);
}
.sample-hero-title {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 28ch;
  color: #2E2E2A;
}
.sample-hero-lede {
  position: relative;
  z-index: 2;
  margin: 0 0 22px;
  max-width: 42ch;
  font-size: 16px;
  line-height: 28px;
  color: var(--qa-grey, #666662);
  font-weight: 500;
}
.living-product--hero {
  margin: 0;
  padding: 18px;
  box-shadow: 20px 20px 0 rgba(10, 10, 10, 0.08);
}
.hero-actions--sheet {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions--sheet .qa-btn {
  min-height: 48px;
}
.hero-actions--sheet .qa-btn:not(.qa-btn--secondary) {
  background: var(--qa-evidence, #285EA8);
  border-color: var(--qa-evidence, #285EA8);
  color: #fff;
}
.hero-actions--sheet .qa-btn:not(.qa-btn--secondary):hover,
.hero-actions--sheet .qa-btn:not(.qa-btn--secondary):focus-visible {
  background: var(--ink, #0A0A0A);
  border-color: var(--ink, #0A0A0A);
}
.living-product--hero .sheet-frame {
  max-width: 720px;
  margin-inline: auto;
}
.hero-sheet__folio--on-dark {
  color: var(--fog, #E7E4DD);
  z-index: 4;
  bottom: 22px;
  inset-inline-end: 28px;
}

/* Sticky header paper on sept pages.
   Full-bleed and opaque on purpose: the hero bleed artwork sits directly behind
   the header, so an inset or translucent bar shows a cropped ghost wordmark in
   the gutters and reads as a misprint. */
body[data-sept] .site-header[data-sept="chrome"] {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 24px;
  background: var(--qa-paper, #F5F2EA);
  border-bottom: 1px solid var(--rule, rgba(10,10,10,.22));
}
@media (min-width: 801px) {
  body[data-sept] .site-header[data-sept="chrome"] { padding-inline: 32px; }
}
@media (min-width: 1101px) {
  body[data-sept] .site-header[data-sept="chrome"] {
    padding-inline: max(40px, calc((100% - var(--max, 1280px)) / 2));
  }
}
/* The two utility links live in the drawer on a phone; keeping them as a second
   header row spends a fifth of the fold before the fee answer. */
body[data-sept] .site-header .nav-utils-echo { display: none; }
@media (max-width: 800px) {
  body[data-sept] .site-header .header-utils { display: none; }
  body[data-sept] .site-header .main-nav.open .nav-utils-echo { display: flex; }
  /* Empty utils/nav rows must not keep charging their row gap. */
  body[data-sept] .site-header[data-sept="chrome"] { row-gap: 0; }
  /* Full-width paper drawer hanging off the measured header edge. */
  body[data-sept] .site-header .main-nav {
    position: fixed;
    inset-block-start: var(--qa-header-h, 72px);
    inset-inline: 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - var(--qa-header-h, 72px));
    overflow-y: auto;
    margin: 0;
    padding: 4px 24px 20px;
    gap: 0;
    background: var(--qa-paper, #F5F2EA);
    border: 0;
    border-block-end: 1px solid var(--rule, rgba(10,10,10,.22));
    box-shadow: 0 14px 0 rgba(10, 10, 10, 0.06);
  }
  body[data-sept] .site-header .main-nav a {
    border-block-end: 1px solid var(--qa-fog, #E7E4DD);
  }
  body[data-sept] .site-header .main-nav .header-cta-in-nav {
    margin-top: 12px;
    border: 0;
  }
}

@media (max-width: 800px) {
  .living-product--hero { padding: 10px; box-shadow: 10px 10px 0 rgba(10,10,10,0.07); }
  .sample-hero-title { max-width: none; }
  .sample-hero-lede { max-width: none; }
  .hero-sept--product { padding-block: 16px 28px; }
  /* Keep underlay peeking on narrow screens */
  .hero-sept__stage { overflow: visible; }
  .hero-sheet {
    box-shadow: 8px 8px 0 rgba(10, 10, 10, 0.08);
  }
}

.sheet-page .sheet-frame .qa-unknown-block,
.living-product .sheet-frame .qa-unknown-block {
  background: transparent;
  color: var(--paper, #F5F2EA);
  outline: 1px solid var(--fog, #E7E4DD);
  outline-offset: 4px;
  border: 1px solid var(--fog, #E7E4DD);
}
.living-product .sheet-frame .qa-next-action {
  color: var(--paper, #F5F2EA);
}
.living-product .sheet-frame .qa-next-action::before {
  border-left-color: var(--qa-evidence, #285EA8);
}
.living-product .sheet-frame .qa-source-rail {
  background: transparent;
  border-right-color: var(--qa-evidence, #285EA8);
  color: var(--fog, #E7E4DD);
}
.living-product .sheet-frame .qa-asof {
  background: transparent;
  border-color: var(--fog, #E7E4DD);
  color: var(--fog, #E7E4DD);
}
.living-product .sheet-frame .qa-mark--said .qa-mark__swatch {
  border-color: var(--paper, #F5F2EA);
}

/* Full-bleed ink punctuation between knowledge and paths */
.qa-ink-band {
  background: var(--ink, #0A0A0A);
  color: var(--paper, #F5F2EA);
  padding: 36px 0;
  margin: 8px 0 0;
  border-block: 1px solid var(--ink, #0A0A0A);
}
.qa-ink-band__inner {
  display: grid;
  gap: 10px;
  max-width: 52rem;
}
.qa-ink-band__label {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fog, #E7E4DD);
}
.qa-ink-band__line {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
  font-weight: 700;
  max-width: 28ch;
}
.qa-ink-band__links {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 26px;
}
.qa-ink-band__links a {
  color: #9EC0E8;
  text-decoration: none;
  border-bottom: 1px solid rgba(158, 192, 232, 0.45);
}
.qa-ink-band__links a:hover,
.qa-ink-band__links a:focus-visible {
  color: var(--paper, #F5F2EA);
  border-bottom-color: var(--paper, #F5F2EA);
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  body[data-sept] .site-header[data-sept="chrome"] {
    background: var(--qa-paper, #F5F2EA);
  }
}

.sample-hero-kicker .hero-sheet__asof{margin:0;}
.sample-hero-title{margin-top:4px;}
