/* ============================================================
   OutreachAdmin field-manual industrial, dark, electric lime
   ============================================================ */
:root {
  --ink: #0c0f0d;          /* near-black, green undertone */
  --ink-2: #121613;
  --ink-3: #1a201b;
  --line: #2a322b;
  --paper: #ece9e2;        /* warm off-white */
  --paper-dim: #a8aaa0;
  --accent: #c8f04a;       /* electric lime */
  --accent-dim: #8aa838;
  --danger: #ff7a59;
  --display: "Bricolage Grotesque", sans-serif;
  --serif: "Newsreader", serif;
  --mono: "JetBrains Mono", monospace;
  --max: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--ink); }

.grain {
  position: fixed; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-2%,2%); }
  40% { transform: translate(2%,-1%); } 60% { transform: translate(-1%,-2%); }
  80% { transform: translate(1%,2%); }
}

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 2.2rem;
}
.section-title em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); }
.voice {
  font-family: var(--serif); font-style: italic; font-size: 1.12em;
  color: var(--paper-dim); border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--mono); font-size: .85rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.6rem; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--accent-dim); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 rgba(200,240,74,.25); }
.btn-sm { padding: .6rem 1rem; font-size: .72rem; }
.btn-lg { padding: 1.2rem 2.4rem; font-size: 1rem; }
.btn-block { width: 100%; margin-top: auto; }
.arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--paper); }
.nav-word { font-weight: 800; letter-spacing: .06em; font-size: .95rem; }
.nav-word b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--paper-dim); text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--accent); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* the box mark */
.boxmark {
  position: relative; width: 22px; height: 22px; display: inline-block;
  border: 2px solid var(--accent); border-radius: 2px;
}
.boxmark span {
  position: absolute; left: -2px; right: -2px; top: -7px; height: 6px;
  border: 2px solid var(--accent); border-bottom: none; border-radius: 2px 2px 0 0;
  transform-origin: bottom center; transition: transform .25s ease;
}
.nav-brand:hover .boxmark span, .boxmark-xl:hover span { transform: rotateX(40deg) translateY(-2px); }
.boxmark-xl { width: 120px; height: 120px; border-width: 6px; }
.boxmark-xl span { top: -34px; height: 30px; border-width: 6px; left: -6px; right: -6px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; display: block;
}
.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 7rem clamp(1rem, 6vw, 4rem) 4rem;
}
.hero-title {
  font-size: clamp(3.2rem, 11vw, 8.5rem); font-weight: 800; line-height: .95;
  letter-spacing: -0.035em; margin: 1rem 0 2rem; display: flex; flex-wrap: wrap; column-gap: .25em;
}
.hero-box {
  position: relative; color: var(--accent); display: inline-block; line-height: 1.05;
}
.hero-box-lid { display: none; } /* the 3D cube is the box now */
.hero-dot { color: var(--accent); }
.hero-sub { max-width: 38rem; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--paper-dim); margin-bottom: 2.4rem; }
@media (max-width: 760px) {
  .hero-sub {
    position: relative; z-index: 1; border-radius: 6px;
    background: radial-gradient(120% 120% at 30% 50%, rgba(12,15,13,.82), rgba(12,15,13,.45) 70%, transparent);
    box-shadow: 0 0 26px 18px rgba(12,15,13,.5);
  }
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scrollcue { position: absolute; bottom: 2rem; left: clamp(1rem, 6vw, 4rem); width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.hero-scrollcue span { display: block; width: 100%; height: 40%; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* entrance reveals */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .7s cubic-bezier(.22,1,.36,1) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .26s; }
.d4 { animation-delay: .42s; } .d5 { animation-delay: .55s; } .d6 { animation-delay: .8s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- proof strip ---------- */
.proof {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
}
.proof-item { background: var(--ink-2); padding: 2rem 1.4rem; transition: background .2s ease; }
.proof-item:hover { background: var(--ink-3); }
.proof-num { display: block; font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.proof-label { font-family: var(--mono); font-size: .72rem; color: var(--paper-dim); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 820px) { .proof { grid-template-columns: repeat(2, 1fr); } }

/* ---------- problem ---------- */
.problem { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 6vw, 4rem); }
.problem-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; max-width: 60rem; }
.problem-cols p:first-child { font-size: 1.15rem; color: var(--paper-dim); }
@media (max-width: 760px) { .problem-cols { grid-template-columns: 1fr; } }

/* ---------- journey path ---------- */
.journey { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 6vw, 4rem); }
.path-wrap { position: relative; margin-top: 3rem; }
.path-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.path-bg, .path-draw { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.path-bg { stroke: var(--line); stroke-dasharray: 6 8; }
.path-draw { stroke: var(--accent); filter: drop-shadow(0 0 6px rgba(200,240,74,.5)); }

.nodes { list-style: none; position: relative; display: flex; flex-direction: column; gap: clamp(4rem, 9vw, 7rem); padding: 2rem 0 3rem; }
.node { display: flex; align-items: center; gap: 1.4rem; width: min(46%, 30rem); opacity: .25; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.node.lit { opacity: 1; transform: none; }
.node-left { align-self: flex-start; }
.node-right { align-self: flex-end; flex-direction: row-reverse; text-align: right; }
.node-center { align-self: center; flex-direction: column; text-align: center; width: min(60%, 34rem); }

.node-pin {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--ink-2);
  display: grid; place-items: center; transition: border-color .4s ease, box-shadow .4s ease;
}
.node-pin i { font-style: normal; font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--paper-dim); transition: color .4s ease; }
.node.lit .node-pin { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(200,240,74,.08), 0 0 18px rgba(200,240,74,.25); }
.node.lit .node-pin i { color: var(--accent); }

.node-card h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .3rem; }
.node-card p { color: var(--paper-dim); font-size: .98rem; }
.node:hover .node-card h3 { color: var(--accent); }

@media (max-width: 760px) {
  .path-svg { display: none; }
  .node, .node-right, .node-center { align-self: stretch; width: 100%; flex-direction: row; text-align: left; }
  .nodes { gap: 2.4rem; border-left: 2px dashed var(--line); padding-left: 1.2rem; }
}

/* ---------- offers ---------- */
.offers { max-width: 1240px; margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 3rem); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; align-items: stretch; }
.offer {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.8rem 1.5rem; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.offer:hover { transform: translateY(-6px); border-color: var(--accent-dim); box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.offer-flag { border-color: var(--accent); background: linear-gradient(160deg, rgba(200,240,74,.07), transparent 40%), var(--ink-2); }
.offer-badge {
  position: absolute; top: -0.7rem; left: 1.2rem;
  font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: var(--ink); padding: .25rem .6rem; border-radius: 2px;
}
.offer-badge-quiet { background: var(--ink-3); color: var(--accent); border: 1px solid var(--accent-dim); }
.offer header h3 { font-size: 1.2rem; font-weight: 700; margin-top: .2rem; }
.offer-price { font-family: var(--mono); font-weight: 700; font-size: 1.6rem; color: var(--accent); letter-spacing: -.02em; }
.offer-price small { font-size: .8rem; color: var(--paper-dim); }
.offer p { font-size: .92rem; color: var(--paper-dim); }
.offer .voice { font-size: .95rem; }
.offer-founding { font-family: var(--mono); font-size: .75rem !important; color: var(--accent) !important; text-transform: uppercase; letter-spacing: .06em; }
.offer-founding b { font-size: 1.05em; }

/* ---------- story ---------- */
.story { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 6vw, 4rem); }
.story-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.story-photo { position: relative; margin: 0; padding-top: .4rem; }
.story-photo img {
  display: block; width: 100%; height: auto; border-radius: 4px;
  border: 1px solid var(--line); position: relative; z-index: 1;
}
.story-photo::before {
  content: ""; position: absolute; left: 0; right: 0; top: .4rem; bottom: 0;
  border: 1.5px solid var(--accent); border-radius: 4px;
  transform: translate(12px, 12px); z-index: 0;
}
.story-photo figcaption {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-top: 1.1rem;
}
.story-text { max-width: 44rem; display: flex; flex-direction: column; gap: 1.2rem; font-size: 1.08rem; color: var(--paper-dim); }
.story-text .pull { font-family: var(--serif); font-style: italic; font-size: 1.5em; color: var(--accent); display: block; padding: .4em 0; }
.story-sig { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--paper); }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } .story-photo { max-width: 260px; } }

/* ---------- faq ---------- */
.faq { max-width: 50rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 6vw, 4rem); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem 0; font-weight: 600; font-size: 1.05rem; transition: color .15s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-x { position: relative; width: 14px; height: 14px; flex: none; margin-left: 1rem; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--accent); transition: transform .25s ease; }
.faq-x::before { width: 14px; height: 2px; }
.faq-x::after { width: 2px; height: 14px; }
details[open] .faq-x::after { transform: rotate(90deg); }
.faq-list details p { padding: 0 0 1.4rem; color: var(--paper-dim); max-width: 42rem; }

/* ---------- final cta ---------- */
.final {
  text-align: center; padding: clamp(5rem, 12vw, 9rem) 1.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(200,240,74,.12), transparent),
    var(--ink-2);
  border-top: 1px solid var(--line);
}
.final-title { font-size: clamp(1.8rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 1.2rem; }
.final p { color: var(--paper-dim); max-width: 36rem; margin: 0 auto 2.2rem; }
.final-skip { display: block; margin-top: 1.4rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-dim); text-decoration: none; }
.final-skip:hover { color: var(--accent); }

/* ---------- footer ---------- */
.footer { display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 3rem 1.5rem; border-top: 1px solid var(--line); text-align: center; }
.footer p { font-family: var(--mono); font-size: .75rem; color: var(--paper-dim); }
.footer a { color: var(--accent); text-decoration: none; }
.footer-fine { font-size: .65rem !important; opacity: .6; }

/* ---------- health check modal ---------- */
.quiz-overlay[hidden] { display: none; }
.quiz-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(6,8,7,.86); backdrop-filter: blur(8px); padding: 1rem;
}
.quiz-panel {
  position: relative; width: min(620px, 100%); max-height: 90svh; overflow-y: auto;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(1.6rem, 4vw, 2.8rem); animation: rise .35s cubic-bezier(.22,1,.36,1);
}
.quiz-close {
  position: absolute; top: .8rem; right: .9rem; background: none; border: none;
  color: var(--paper-dim); font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.quiz-close:hover { color: var(--accent); }
.quiz-intro h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.quiz-intro h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); }
.quiz-intro p { color: var(--paper-dim); margin-bottom: 1.6rem; }

.quiz-progress { height: 3px; background: var(--line); border-radius: 2px; margin-bottom: 1.6rem; overflow: hidden; }
.quiz-bar { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.quiz-question { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin: .4rem 0 1.4rem; min-height: 3.2em; }
.quiz-answers { display: flex; flex-direction: column; gap: .6rem; }
.quiz-answers button {
  text-align: left; font-family: var(--display); font-size: .95rem; color: var(--paper);
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 3px;
  padding: .85rem 1rem; cursor: pointer; transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.quiz-answers button:hover { border-color: var(--accent); transform: translateX(4px); background: color-mix(in srgb, var(--ink-3) 80%, var(--accent) 6%); }

.quiz-result { text-align: center; }
.grade-ring {
  width: 120px; height: 120px; margin: 1rem auto 1.4rem; border-radius: 50%;
  border: 3px solid var(--accent); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(200,240,74,.07), 0 0 40px rgba(200,240,74,.2);
}
.grade-letter { font-size: 3.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.grade-headline { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.4rem; }
.grade-breakdown { list-style: none; text-align: left; margin: 0 auto 1.6rem; max-width: 26rem; display: flex; flex-direction: column; gap: .55rem; }
.grade-breakdown li { display: grid; grid-template-columns: 9.5rem 1fr 2.6rem; align-items: center; gap: .7rem; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--paper-dim); }
.grade-breakdown .meter { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.grade-breakdown .meter span { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .8s cubic-bezier(.22,1,.36,1); }
.grade-breakdown .pct { text-align: right; color: var(--paper); }
.grade-fix { background: var(--ink-3); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 3px; padding: 1.1rem 1.3rem; text-align: left; margin-bottom: 1.6rem; }
.grade-fix .eyebrow { margin-bottom: .4rem; }
.grade-fix-text { color: var(--paper-dim); font-size: .95rem; }
.quiz-capture p { color: var(--paper-dim); font-size: .95rem; margin-bottom: .9rem; }
.capture-form { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.capture-form input {
  flex: 1 1 220px; font-family: var(--mono); font-size: .85rem; color: var(--paper);
  background: var(--ink); border: 1px solid var(--line); border-radius: 2px; padding: .9rem 1rem;
}
.capture-form input:focus { outline: none; border-color: var(--accent); }
.capture-note { font-family: var(--mono); font-size: .75rem; color: var(--accent); margin-top: .8rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .node { opacity: 1; transform: none; }
}
