/* Radical Execution — methodology site
   Design echoes the book cover: cream paper, deep navy, gold accents,
   classical serif display over a clean sans body. */

:root {
  --paper:      #f7f2e8;
  --paper-2:    #fdfaf3;
  --ink:        #1e1d1a;
  --muted:      #6a655b;
  --navy:       #163258;
  --navy-deep:  #0f2440;
  --gold:       #b0863a;
  --gold-soft:  #e7d9b6;
  --line:       #ddd3c1;
  --line-soft:  #e8e0d1;
  --radius:     14px;
  --maxw:       1080px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; color: var(--navy); }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 14px;
}
.lead { font-size: 1.25rem; color: #2e2c27; }
.tm { font-size: 0.5em; vertical-align: super; letter-spacing: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,242,232,0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; letter-spacing: 0.04em; color: var(--navy); text-decoration: none; }
.brand .tm { color: var(--gold); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: #3a372f; text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.cta {
  border: 1px solid var(--navy); color: var(--navy); border-radius: 999px;
  padding: 7px 16px; transition: background .18s, color .18s;
}
.nav-links a.cta:hover { background: var(--navy); color: var(--paper-2); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 12vw, 132px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(176,134,58,0.10), transparent 60%),
    radial-gradient(50% 60% at 12% 70%, rgba(22,50,88,0.06), transparent 60%);
}
.hero h1 {
  font-size: clamp(2.9rem, 8vw, 5.6rem);
  letter-spacing: 0.02em; text-transform: uppercase; margin: 0 0 6px;
}
.hero .subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3.4vw, 2rem); color: #294067; margin: 0 0 28px; }
.hero .lead { max-width: 60ch; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.btn-primary { background: var(--navy); color: var(--paper-2); border: 1px solid var(--navy); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15,36,64,0.22); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 104px) 0; }
section.alt { background: linear-gradient(180deg, var(--paper-2), #f4eee2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative;
}
.card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.card p { margin: 0; color: #47433b; font-size: 0.98rem; line-height: 1.55; }
.card .kicker { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }
.tag {
  display: inline-block; font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
  background: var(--gold-soft); border-radius: 999px; padding: 3px 10px; margin-top: 14px;
}
.num {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--paper-2);
  background: var(--navy); width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

/* two-column prose + aside */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.split .prose p { color: #3a372f; }
.pull {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--navy); line-height: 1.35; border-left: 3px solid var(--gold); padding-left: 22px;
}

/* ---------- Pipeline ---------- */
.pipeline { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.stage {
  flex: 1 1 200px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px; position: relative;
}
.stage .who { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.stage h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.stage p { margin: 0; font-size: 0.92rem; color: #47433b; }
.arrow { align-self: center; color: var(--gold); font-size: 1.6rem; padding: 0 8px; flex: 0 0 auto; }

/* ---------- Signal chips ---------- */
.signals { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.sig { flex: 1 1 220px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; }
.dot.g { background: #2e7d46; } .dot.y { background: #d8a72a; } .dot.r { background: #c0392b; }
.sig strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.15rem; }
.sig span { font-size: 0.92rem; color: #47433b; }

/* ---------- Model image ---------- */
.model-figure { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 20px 50px rgba(15,36,64,0.08); }
.model-figure img { border-radius: 6px; margin: 0 auto; max-height: 78vh; width: auto; }
.model-figure figcaption { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 12px; }

/* ---------- Core test band ---------- */
.coretest { background: var(--navy-deep); color: #eef2f7; text-align: center; }
.coretest .eyebrow { color: var(--gold-soft); }
.coretest h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.1rem); max-width: 20ch; margin: 0 auto 18px; }
.coretest p { color: #b9c4d4; max-width: 60ch; margin: 0 auto; }

/* ---------- Boundary ---------- */
.boundary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.boundary .col { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.boundary h3 { font-size: 1.5rem; margin-bottom: 14px; }
.boundary ul { margin: 0; padding-left: 18px; color: #47433b; }
.boundary li { margin-bottom: 8px; }
.boundary .agents { }
.boundary .humans { border-color: var(--gold-soft); background: linear-gradient(180deg, #fdfaf3, #f7efdd); }

/* ---------- Book strip ---------- */
.book-layout { display: grid; grid-template-columns: auto 1fr; gap: 52px; align-items: center; }
.book-cover { display: block; border-radius: 8px; transition: transform .18s ease, box-shadow .2s ease; }
.book-cover img { width: 270px; max-width: 42vw; border-radius: 6px; box-shadow: 0 22px 50px rgba(15,36,64,0.28); }
.book-cover:hover { transform: translateY(-3px); }
.book-cover:hover img { box-shadow: 0 30px 62px rgba(15,36,64,0.36); }
.book-copy { max-width: 56ch; }
.book-copy .lead { margin-top: 14px; }
.book-note { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
@media (max-width: 760px) {
  .book-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 30px; }
  .book-cover img { max-width: 62vw; }
}

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: #b9c4d4; padding: 48px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer .brand { color: #fff; }
footer a { color: #d8dee8; }
footer small { display: block; color: #7f8da3; margin-top: 6px; font-size: 0.82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Progressive enhancement: without JS, content is fully visible (never hidden). */
html.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .boundary { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); align-self: center; width: 100%; text-align: center; padding: 4px 0; }
  .stage { flex: 1 1 100%; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 8px 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; width: 100%; }
  .nav-links a.cta { margin: 8px 24px; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}
