/* The NUMΣRACY — thenumeracy.com on Cloudflare Pages (owner 2026-09-14).
   Black-and-white line art, brushed speed-line textures, one green, the site's own
   Vipnagorgialla display face (self-hosted) over Nunito Sans. Motion is quiet: the hero
   streaks drift, sections rise once as they enter, rules draw under headings. */

@font-face {
  font-family: "Vipnagorgialla";
  src: url("/fonts/Vipnagorgialla_Rg.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --panel: #f2f2f2;
  --ink: #0a0a0a;
  --ink-soft: #2b2b2b;
  --mute: #6b6b6b;
  --line: #e2e2e2;
  --green: #2fa84f;
  --green-deep: #24853d;
  --blue: #033c5a;
  --blue-deep: #022a40;
  --display: "Vipnagorgialla", "Michroma", "Arial Black", sans-serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; }
.sigma { color: var(--green); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink); }
.top-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.mark { display: block; text-decoration: none; }
.mark img { width: 200px; height: auto; transition: transform 0.25s var(--ease); }
.mark:hover img { transform: scale(1.02); }
.mark-sm img { width: 150px; }
.nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 8px 12px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav-cta { background: var(--ink); color: #fff; border-radius: 4px; padding: 9px 14px; }
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover { background: var(--green-deep); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.25s var(--ease), opacity 0.2s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 14px 24px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  transition: transform 0.18s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }
.link-arrow { display: inline-block; font-weight: 800; text-decoration: none; margin-top: 4px; }
.link-arrow::after { content: " →"; display: inline-block; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.center { text-align: center; margin-top: 28px; }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); margin: 0 0 8px; }
.small { font-size: 14px; color: var(--mute); }

/* ---------- hero: black brushed streaks that drift ---------- */
.hero { position: relative; background: var(--ink) url("/img/b4.jpg") center / cover no-repeat; color: #fff; overflow: hidden; isolation: isolate; }
.hero-streaks { position: absolute; inset: -10% -20%; background: url("/img/header.png") center / cover no-repeat; opacity: 0.55; mix-blend-mode: screen; animation: drift 70s linear infinite alternate; z-index: -1; }
@keyframes drift { from { transform: translate3d(-2%, 0, 0) scale(1.04); } to { transform: translate3d(2%, 1%, 0) scale(1.1); } }
.hero-inner { padding-block: clamp(64px, 9vw, 120px); max-width: 860px; text-align: center; }
.hero .lede { margin-inline: auto; }
.hero .ctas { justify-content: center; }
.hero h1 { font-size: clamp(30px, 5.2vw, 58px); line-height: 1.08; margin: 0 0 22px; text-wrap: balance; }
.hero .lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; max-width: 62ch; color: #e6e6e6; margin-bottom: 22px; }
.hero .ages { display: inline-block; margin-top: 12px; font-family: var(--display); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; }
.hero-light { background: var(--paper) url("/img/b6.jpg") center / cover no-repeat; color: var(--ink); }

/* ---------- sections ---------- */
.plain { padding-block: clamp(40px, 6vw, 80px); }
.plain.alt { background: var(--panel); }
.two-col { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 40px; align-items: center; }
.two-col > img { justify-self: center; max-width: 420px; width: 100%; }
.two-col .pair { display: flex; gap: 16px; justify-content: center; }
.two-col .pair img { width: 46%; }
.two-col .photo { border-radius: 50%; width: 260px; }
.on-ink-img { background: var(--ink); border-radius: 50%; padding: 40px; width: 220px; }
h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 16px; color: var(--ink); text-wrap: balance; }
.plain h2, .faq h2 { text-align: center; }
.plain .h-rule::after, .faq .h-rule::after { left: 50%; transform: translateX(-50%) scaleX(0); transform-origin: center; }
.is-in.plain .h-rule::after, .plain.is-in .h-rule::after, .faq.is-in .h-rule::after { transform: translateX(-50%) scaleX(1); }
.h-rule { position: relative; padding-bottom: 12px; }
.h-rule::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease) 0.15s; }
.is-in .h-rule::after { transform: scaleX(1); }

.band { padding-block: clamp(44px, 6vw, 84px); }
.band-trial { background: var(--paper) url("/img/b6.jpg") center / cover no-repeat; }
.trial { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 40px; align-items: center; }
.trial-art { max-width: 380px; width: 100%; justify-self: center; }
.trial h2 { font-size: clamp(20px, 2.2vw, 26px); }
.trial > div { text-align: left; }
.trial h2, .trial .eyebrow, .trial .lets { text-align: center; }
.lets { font-family: var(--display); font-size: 15px; letter-spacing: 0.08em; color: var(--ink); }

.outcomes { padding-block: clamp(40px, 6vw, 72px); background: var(--panel); }
.outcome-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.outcome-grid li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 22px; display: grid; gap: 14px; justify-items: center; text-align: center; font-weight: 700; font-size: 17px; color: var(--ink); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.outcome-grid li:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12); }
.outcome-grid img { width: 120px; transition: transform 0.35s var(--ease); }
.outcome-grid li:hover img { transform: scale(1.06) rotate(-2deg); }
.outcome-grid b { color: var(--green); }

.feature { padding-block: clamp(40px, 6vw, 76px); }
.feature:nth-of-type(even) { background: var(--panel); }
.feature-inner { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: center; max-width: 960px; }
.feature.flip .feature-inner { grid-template-columns: 1fr 240px; }
.feature.flip .feature-icon { order: 2; }
.feature-text p { text-align: left; }
.feature-text { display: grid; justify-items: start; }
.feature-text h2 { text-align: center; justify-self: stretch; }
.feature-text .h-rule::after { left: 50%; transform: translateX(-50%) scaleX(0); transform-origin: center; }
.is-in .feature-text .h-rule::after { transform: translateX(-50%) scaleX(1); }
.feature-icon img { width: 200px; margin: 0 auto; transition: transform 0.45s var(--ease); }
.feature:hover .feature-icon img { transform: translateY(-4px); }
.feature-icon.on-ink { display: grid; place-items: center; }
.band-ink { background: var(--ink) url("/img/b4.jpg") center / cover no-repeat; color: #ddd; }
.band-ink h2, .band-ink a { color: #fff; }
.band-ink .feature-icon.on-ink { background: transparent; }
.band-ink .feature-icon.on-ink img { width: 200px; }
.band-ink .h-rule::after { background: var(--green); }

.band-consult { background: var(--paper) url("/img/transp-2.png") center / cover no-repeat; }
.consult { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; max-width: 960px; }
.consult > div { display: grid; justify-items: center; }
.consult .h-rule::after { left: 50%; transform: translateX(-50%) scaleX(0); transform-origin: center; }
.is-in .consult .h-rule::after { transform: translateX(-50%) scaleX(1); }
.consult p { text-align: center; }
.band-quote { background: var(--ink) url("/img/b4.jpg") center / cover no-repeat; color: #fff; text-align: center; }
.quote { position: relative; max-width: 820px; padding-block: 12px; }
.quote p { font-size: clamp(20px, 3vw, 34px); line-height: 1.35; margin: 0; }
.quote .q { position: absolute; width: 70px; opacity: 0.6; }
.quote .q1 { left: 0; top: -20px; }
.quote .q2 { right: 0; bottom: -20px; transform: rotate(180deg); }
.band-ask { border-top: 1px solid var(--line); }
.ask { display: grid; justify-items: center; text-align: center; gap: 14px; max-width: 700px; }
.ask p { margin: 0 0 4px; }

/* ---------- dark textured bands (the original's black sections with the speed-line overlays) ---------- */
.band-dark, .band-blue { background-color: var(--ink); background-size: cover; background-position: center; color: #e2e2e2; }
.band-blue { background-color: var(--blue); }
.band-dark h2, .band-dark a, .band-blue h2, .band-blue a { color: #fff; }
.band-blue .h-rule::after { background: #fff; }
.band-blue .btn, .band-dark .btn { background: #fff; color: var(--ink); border-color: #fff; }
.band-dark .h-rule::after { background: var(--green); }
.band-dark .feature-icon img { filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.08)); }
.feature.band-dark:nth-of-type(even) { background-color: var(--ink); }
.feature.band-blue:nth-of-type(even) { background-color: var(--blue); }
.consult .arrow { width: 44px; margin: 4px 0 14px 8px; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 8px; overflow: hidden; background: var(--ink); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- forms + faq + policy ---------- */
.cform { display: grid; gap: 14px; background: var(--panel); padding: 24px; border-radius: 8px; }
.cform label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.cform input, .cform textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.cform .hp { position: absolute; left: -9999px; }
.cform .status { min-height: 1.4em; margin: 0; font-size: 14px; color: var(--mute); }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--green); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; }
.policy { padding-left: 22px; display: grid; gap: 14px; }
.icon-row { display: flex; gap: 24px; flex-wrap: wrap; margin: 8px 0 16px; }
.icon-row img { width: 110px; }
.bio p { font-size: 17px; }

/* ---------- footer ---------- */
.foot { background: var(--paper); color: var(--ink); padding-block: 40px; border-top: 1px solid var(--ink); }
.foot-inner { display: grid; gap: 16px; justify-items: center; text-align: center; }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-weight: 800; }
.foot-nav a, .copy a { color: var(--ink); }
.copy { font-size: 13px; margin: 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-streaks { animation: none; }
  .consult .arrow { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .h-rule::after { transform: scaleX(1); transition: none; }
  .btn, .outcome-grid li, .outcome-grid img, .feature-icon img, .link-arrow::after, .nav a::after { transition: none; }
}

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: #fff; border-bottom: 1px solid var(--ink); padding: 10px 16px 16px; gap: 2px; }
  .nav.open { display: flex; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .two-col, .trial, .feature-inner, .feature.flip .feature-inner, .consult { grid-template-columns: 1fr; }
  .feature.flip .feature-icon { order: 0; }
  .feature-icon { margin: 0 auto; }
  .two-col > img, .trial-art { max-width: 300px; }
  .quote .q { width: 44px; }
  .mark img { width: 150px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .icon-row img { width: 84px; }
}
