/* type +2px readability pass applied (all sizes below already include the +2px) */
/* =========================================================================
   Human Blueprint · funnel system (system B, Indri's own brand)
   His real world, elevated: warm off-white lab paper (#FBFAF6, straight off
   indricaruana.com), near-black ink, one deep navy (#00396F, his only accent),
   a quiet blueprint grid that fades out before it reaches the copy, and the
   wide heavy display of his "HUMAN BLUEPRINT" wordmark (GT America Extended
   on his site, Archivo at 112-125% width here) over Inter, his body face.
   Signature detail: the reference-range bar (track · optimal zone · marker).
   ========================================================================= */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --bg-2: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #f5f4f1;
  --surface-3: #ecebe6;
  --ink: #1c1b1a;
  --ink-2: #2e2c29;
  --muted: #55524d;
  --faint: #6b6761;
  --hair: rgba(28, 27, 26, 0.1);
  --hair-soft: rgba(28, 27, 26, 0.06);
  --accent: #00396f;
  --accent-2: #0b4c8c;
  --accent-deep: #002a52;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 57, 111, 0.06);
  --accent-line: rgba(0, 57, 111, 0.16);
  --accent-glow: rgba(0, 57, 111, 0.28);
  --optimal: #2e7356;
  --optimal-soft: rgba(46, 115, 86, 0.16);
  --shadow: rgba(28, 27, 26, 0.12);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 20px;
  --maxw: 1120px;
  --gutter: clamp(18px, 5vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 19px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
  background: var(--bg); position: relative;
}
/* one continuous canvas (no section seams): paper, a navy whisper at the top, a blueprint
   grid that is masked to the top corners only (never behind copy), fine grain on top */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70% 50% at 50% -10%, rgba(0, 57, 111, 0.07), transparent 62%),
    radial-gradient(45% 35% at 100% 100%, rgba(0, 57, 111, 0.035), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 57, 111, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 57, 111, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(38% 32% at 0% 0%, #000, transparent 70%), radial-gradient(38% 32% at 100% 0%, #000, transparent 70%);
  -webkit-mask-composite: source-over;
  mask-image: radial-gradient(38% 32% at 0% 0%, #000, transparent 70%), radial-gradient(38% 32% at 100% 0%, #000, transparent 70%);
}
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.section { padding-block: clamp(64px, 10vw, 112px); position: relative; }
.section--tight { padding-top: clamp(24px, 4vw, 40px); }

/* ---- type ---- */
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(36px, 4.5vw, 58px); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(31px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 750; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-family: var(--display); font-stretch: 125%;
  font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--optimal); box-shadow: 0 0 0 4px var(--optimal-soft); }
.eyebrow--plain::before { display: none; }
.lead { margin: 22px auto 0; max-width: 60ch; font-size: clamp(19px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto clamp(48px, 7vw, 72px); }
.center { text-align: center; }
.wordmark { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: -0.005em;
  padding: 16px 34px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn .ar { display: inline-block; transition: transform 0.25s var(--ease); }
.btn-primary {
  position: relative; overflow: hidden; color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 16px 34px -14px var(--accent-glow);
}
.btn-primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.24), transparent); transition: transform 0.7s var(--ease); }
.btn-primary:hover { transform: translate(var(--mgx, 0), calc(var(--mgy, 0px) - 2px)); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 22px 40px -14px var(--accent-glow); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover .ar { transform: translateX(3px); }
.btn-primary:active { transform: scale(0.98); }
.btn-lg { font-size: 20px; padding: 19px 44px; min-height: 64px; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- signature: the reference-range bar ---- */
.range { position: relative; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: visible; }
.range__opt { position: absolute; top: 0; bottom: 0; left: var(--lo, 38%); width: var(--w, 28%); border-radius: 99px; background: var(--optimal-soft); box-shadow: inset 0 0 0 1px rgba(46, 115, 86, 0.32); }
.range__dot { position: absolute; top: 50%; left: var(--at, 52%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #fff, 0 4px 12px -2px var(--accent-glow); transition: left 1.2s var(--ease); }
.range__lbl { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--faint); }

/* ---- reveal system (progressive: visible without JS) ---- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.js .stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.js .stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.js .stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.js .stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
.js .stagger.in > *:nth-child(7) { transition-delay: 0.48s; }
.js .stagger.in > *:nth-child(8) { transition-delay: 0.56s; }
/* signature motion: hero headline line-mask reveal */
.mask-h .ln { display: block; overflow: hidden; padding-bottom: 0.08em; }
.mask-h .ln > span { display: inline-block; }
.js .mask-h .ln > span { transform: translateY(105%); transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1); }
.js .mask-h.in .ln > span { transform: none; }
.js .mask-h.in .ln:nth-child(2) > span { transition-delay: 0.1s; }
.js .mask-h.in .ln:nth-child(3) > span { transition-delay: 0.2s; }

/* ---- client video testimonials: 2-up, vertical, equal size, name + caption centred below ---- */
.tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(22px, 3.4vw, 36px); max-width: 860px; margin: 0 auto; }
.tcard { text-align: center; min-width: 0; }
.tvid { position: relative; aspect-ratio: 9 / 16; max-height: 640px; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #111; border: 1px solid var(--hair); box-shadow: 0 34px 64px -40px var(--shadow), 0 2px 6px -2px var(--shadow); isolation: isolate; }
.tvid video, .tvid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111; }
.tvid__btn { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; padding: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 14, 16, 0.42)); cursor: pointer; }
.tvid__btn span { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.95); color: var(--accent); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.45); transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); }
.tvid__btn svg { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
.tvid__btn:hover span { transform: scale(1.07); background: var(--accent); color: #fff; }
.tvid.is-playing .tvid__btn { display: none; }
.tname { margin: 22px 0 4px; font-family: var(--display); font-stretch: 112%; font-size: 23px; font-weight: 800; letter-spacing: -0.015em; }
.trole { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.tdesc { margin: 0 auto; max-width: 34ch; font-size: 18px; line-height: 1.55; color: var(--muted); }

/* ---- before / after pairs: equal tiles ---- */
.bagrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 28px); }
.ba { margin: 0; padding: 12px 12px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hair); box-shadow: 0 22px 44px -34px var(--shadow); }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba__pair figure { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.ba__pair img { width: 100%; height: 100%; object-fit: cover; }
.ba__pair figcaption { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 99px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.ba__pair figure:last-child figcaption { background: var(--accent); color: #fff; }
.ba > p { margin: 14px 6px 0; font-size: 17px; line-height: 1.5; color: var(--muted); text-align: center; }

/* ---- screenshot proof (client texts / Facebook recommendations): equal cards ---- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.shot { display: grid; place-items: center; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hair); box-shadow: 0 18px 40px -32px var(--shadow); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.shot img { width: 100%; max-width: 420px; height: auto; border-radius: 10px; }
.shot:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -32px var(--shadow); }

/* ---- stat tiles ---- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 20px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hair); text-align: center; }
.stat b { display: block; font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(30px, 3vw, 38px); letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.stat span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.35; color: var(--muted); }

/* ---- footer: branding-only banner, height = 1.5 × wordmark, centred ---- */
.ffoot { position: relative; height: 54px; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.ffoot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 120px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface)); }
.ffoot .wordmark { font-size: 15px; line-height: 36px; height: 36px; display: inline-flex; align-items: center; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .stagger > *, .js .mask-h .ln > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .btn-primary::after, .shot, .tvid__btn span, .range__dot { transition: none; }
}

@media (max-width: 960px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bagrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 18.5px; }
  .tgrid { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
  .btn-lg { width: 100%; padding-inline: 24px; }
  .bagrid { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin: 0 auto; }
  .shots { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin: 0 auto; }
  /* long eyebrows wrap on phones: drop the dot so the lines stay centred */
  .eyebrow { display: block; line-height: 1.6; text-align: center; }
  .eyebrow::before { display: none; }
}

/* ---- mobile hardening (references/mobile.md) ---- */
img, svg, video, canvas, iframe { max-width: 100%; }
p, li, td, th, blockquote, figcaption, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
table, pre { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 420px) {
  .tok-merge, .tok-link, code { white-space: normal; }
}
