/* ==========================================================================
   JOSEPH TIMPSON — PERSONAL BRAND DESIGN SYSTEM
   Honesty-first GEO. Teal-to-green, tuned from the Timpson logo.
   Extends the Timpson Marketing type system (Manrope / Inter / Instrument Serif / JetBrains Mono).
   ========================================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, video, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- TOKENS ---------- */
:root {
  --bg:         #080B0B;
  --bg-2:       #0B1110;
  --surface:    #101917;
  --surface-2:  #16211F;
  --border:     rgba(255,255,255,0.08);
  --border-2:   rgba(99,208,129,0.16);
  --text:       #EAF3F1;
  --muted:      #9DB2AD;
  --dim:        #647C77;

  --teal:       #26C6B6;
  --green:      #63D081;
  --grad:       linear-gradient(120deg, #26C6B6 0%, #63D081 100%);
  --grad-soft:  linear-gradient(120deg, rgba(38,198,182,0.14), rgba(99,208,129,0.14));
  --grad-head:  linear-gradient(180deg, #FFFFFF 0%, #B7CEC9 100%);
  --glow:       rgba(38,198,182,0.20);

  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif:   "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.5), 0 18px 48px rgba(0,0,0,.35);
  --shadow-glow: 0 0 0 1px rgba(38,198,182,.30), 0 30px 90px rgba(38,198,182,.14);

  --container: 1140px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 128px);
}

/* ---------- BASE ---------- */
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(680px 420px at 78% -8%, rgba(38,198,182,0.14), transparent 60%),
    radial-gradient(620px 460px at 8% 12%, rgba(99,208,129,0.08), transparent 55%);
  pointer-events: none; z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

::selection { background: rgba(99,208,129,.28); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- TYPE ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--text);
}
h1 { font-size: clamp(38px, 6.2vw, 76px); letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.4vw, 27px); }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.head-fade {
  background: var(--grad-head);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
p { color: var(--muted); }
strong { color: var(--text); font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal);
  padding: 6px 13px; border: 1px solid var(--border-2); border-radius: 999px;
  background: rgba(38,198,182,0.05);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px var(--teal);
}
.eyebrow.neutral { color: var(--muted); border-color: var(--border); background: rgba(255,255,255,.02); }
.eyebrow.neutral::before { background: var(--muted); box-shadow: none; }

.section-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad); color: #04110D; box-shadow: 0 10px 30px rgba(38,198,182,.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(38,198,182,.34); }
.btn-ghost { border: 1px solid var(--border-2); color: var(--text); background: rgba(255,255,255,.015); }
.btn-ghost:hover { border-color: var(--teal); transform: translateY(-2px); background: rgba(38,198,182,.06); }
.btn-lg { padding: 17px 32px; font-size: 16.5px; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(8,11,11,0.72);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand .b-teal { color: var(--teal); }
.brand .b-green { color: var(--green); }
.brand .b-dim { color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .15s ease; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a.btn-primary { color: #04110D; }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; }

/* ---------- HERO ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 22px 0 0; }
.hero .lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 46ch; margin-top: 22px; }
.hero .lede em { color: var(--text); font-style: normal; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero-promise {
  display: flex; align-items: center; gap: 10px; margin-top: 26px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--dim);
}
.hero-promise b { color: var(--muted); font-weight: 500; }

/* Faux AI answer card (the meta proof visual) */
.ai-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); padding: 22px; position: relative; overflow: hidden;
}
.ai-card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  border: 1px solid transparent;
  background: var(--grad-soft) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none;
}
.ai-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.ai-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; color: #04110D; font-weight: 800; font-size: 13px; font-family: var(--font-display); }
.ai-head .ai-name { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.ai-q { font-size: 15px; color: var(--text); margin: 16px 0 14px; font-weight: 500; }
.ai-q .qmark { color: var(--dim); font-family: var(--font-mono); margin-right: 8px; }
.ai-a { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.ai-a .cite { color: var(--teal); font-weight: 600; border-bottom: 1px solid rgba(38,198,182,.4); }
.ai-a .cite2 { color: var(--green); font-weight: 600; border-bottom: 1px solid rgba(99,208,129,.4); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.ai-chip { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.02); }
.ai-cursor { display: inline-block; width: 8px; height: 15px; background: var(--green); margin-left: 2px; vertical-align: -2px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- SECTIONS ---------- */
section { padding: var(--section-y) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { margin-top: 14px; }
.section-head p { font-size: 17px; margin-top: 16px; }

/* ---------- PROOF ---------- */
.proof { background: var(--bg-2); border-block: 1px solid var(--border); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 24px 22px; transition: border-color .16s ease, transform .16s ease;
}
.stat:hover { border-color: var(--border-2); transform: translateY(-3px); }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.03em; }
.stat .num.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.stat .src { font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin-top: 12px; letter-spacing: .03em; text-transform: uppercase; }

.proof-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
.receipt {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .16s ease, transform .16s ease;
}
.receipt:hover { border-color: var(--border-2); transform: translateY(-3px); }
.receipt-img { background: #fff; padding: 10px; }
.receipt-img img { width: 100%; border-radius: 6px; }
.receipt-cap { padding: 15px 18px 17px; display: flex; align-items: flex-start; gap: 10px; }
.receipt-cap .tick { color: var(--green); flex: none; margin-top: 2px; }
.receipt-cap p { font-size: 13.5px; color: var(--muted); }
.receipt-cap b { color: var(--text); }
.proof-note {
  margin-top: 24px; font-family: var(--font-mono); font-size: 12.5px; color: var(--dim);
  display: flex; align-items: center; gap: 9px; letter-spacing: .02em;
}

/* ---------- METHOD STEPPER ---------- */
.method { position: relative; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 8px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px 18px; position: relative; transition: border-color .16s ease, transform .16s ease;
}
.step:hover { border-color: var(--border-2); transform: translateY(-3px); }
.step .idx { font-family: var(--font-mono); font-size: 12px; color: var(--teal); letter-spacing: .1em; }
.step h4 { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin: 12px 0 8px; letter-spacing: -0.02em; }
.step p { font-size: 13.5px; line-height: 1.55; }

/* ---------- PILLARS ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pillar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 28px; transition: border-color .16s ease, transform .16s ease;
}
.pillar:hover { border-color: var(--border-2); transform: translateY(-3px); }
.pillar .p-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--grad-soft); border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--green); margin-bottom: 16px; }
.pillar h3 { font-size: 20px; }
.pillar p { font-size: 15px; margin-top: 10px; }

/* ---------- AGENCIES ---------- */
.agencies { background: var(--bg-2); border-block: 1px solid var(--border); }
.agency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.agency {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 26px; display: flex; flex-direction: column; transition: border-color .16s ease, transform .16s ease;
}
.agency:hover { border-color: var(--border-2); transform: translateY(-3px); }
.agency .a-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.agency h3 { font-size: 21px; margin: 10px 0 10px; }
.agency p { font-size: 14.5px; flex: 1; }
.agency .a-link { margin-top: 18px; color: var(--teal); font-weight: 600; font-size: 14.5px; font-family: var(--font-display); display: inline-flex; align-items: center; gap: 6px; }
.agency .a-link:hover { gap: 10px; }

/* ---------- CTA BAND ---------- */
.cta-band { text-align: center; }
.cta-inner {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2); border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px) var(--gutter); position: relative; overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.cta-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 50% -20%, rgba(99,208,129,.16), transparent 70%); pointer-events: none; }
.cta-inner h2 { max-width: 18ch; margin-inline: auto; }
.cta-inner p { font-size: 17px; max-width: 52ch; margin: 18px auto 30px; }
.cta-inner .btn { position: relative; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot-brand .brand { font-size: 22px; }
.foot-brand p { font-size: 14px; margin-top: 12px; max-width: 34ch; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; font-weight: 500; }
.foot-col a, .foot-col span { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 9px; transition: color .15s ease; }
.foot-col a:hover { color: var(--teal); }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--dim); font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------- PROSE (method page) ---------- */
.prose { max-width: 720px; }
.prose p { font-size: 17px; color: var(--muted); margin-bottom: 20px; }
.prose p strong { color: var(--text); }
.stage-block { padding: 34px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 74px 1fr; gap: 26px; }
.stage-block .s-idx { font-family: var(--font-mono); font-size: 13px; color: var(--teal); letter-spacing: .08em; padding-top: 6px; }
.stage-block h3 { margin-bottom: 12px; }
.stage-block p { font-size: 16px; margin-bottom: 0; }
.callout {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-md);
  padding: 26px 28px; margin: 8px 0 28px;
}
.callout h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 12px; }
.callout ul { display: grid; gap: 12px; }
.callout li { font-size: 15px; color: var(--muted); padding-left: 26px; position: relative; }
.callout li::before { content: "×"; position: absolute; left: 4px; top: -1px; color: #ff7a7a; font-weight: 700; font-size: 17px; }
.callout li b { color: var(--text); }

/* ---------- BOOK PAGE ---------- */
.book-wrap { max-width: 760px; margin-inline: auto; text-align: center; }
.book-embed { margin-top: 34px; min-height: 680px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.calendly-inline-widget { min-height: 680px; }
.book-fallback { margin-top: 20px; font-size: 14.5px; color: var(--dim); }
.book-fallback a { color: var(--teal); font-weight: 600; }
.book-trust { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 28px; }
.book-trust span { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.book-trust .tick { color: var(--green); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .ai-cursor { animation: none; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ai-card { order: -1; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .agency-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav-links.open a { padding: 13px var(--gutter); width: 100%; }
  .nav-links.open .nav-cta { margin: 8px var(--gutter); justify-content: center; }
  .nav-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); }
  .pillars { grid-template-columns: 1fr; }
  .proof-wall { grid-template-columns: 1fr; }
  .stage-block { grid-template-columns: 1fr; gap: 10px; }
  .foot-cols { gap: 32px; }
}
@media (max-width: 460px) {
  .stat-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
