/* =========================================================================
   RADIANT ORCHARD — styles.css
   V1 design system + reusable primitives
   Stanford d.school × maker space × orchard × editorial journal
   -------------------------------------------------------------------------
   Table of contents
   0. Tokens (custom properties)
   1. Reset & base
   2. Typography primitives
   3. Layout primitives
   4. Header / navigation
   5. Buttons & CTAs
   6. Editorial sections
   7. Marker / annotation layer
   8. Blueprint visual language (nodes, connectors, grid)
   9. Project artifacts / "What's Growing"
   10. Place timeline / stages
   11. Forms (Join)
   12. Footer
   13. Motion / reveals
   14. Utilities
   15. Responsive
   ========================================================================= */

/* =========================================================================
   0. TOKENS
   ========================================================================= */
:root {
  /* ---- Color ---------------------------------------------------------- */
  --canvas:        #f6f2ea;   /* warm off-white — primary background       */
  --canvas-deep:   #efe9dd;   /* slightly deeper canvas for banding        */
  --paper:         #fbf9f4;   /* near-white worktable paper                */
  --ink:           #211f1b;   /* charcoal — primary type                   */
  --ink-soft:      #4a463f;   /* secondary type                           */
  --ink-faint:     #7c766b;   /* muted / captions                         */
  --white:         #ffffff;   /* true white — light / contrast            */

  --radiant:       #f5c518;   /* signature radiant yellow                 */
  --radiant-warm:  #ffd451;   /* softer glow                              */
  --radiant-ink:   #3a2f05;   /* readable text on yellow                  */

  --green:         #4c7a52;   /* living green — restrained secondary      */
  --green-soft:    #d8e2d1;
  --clay:          #b9714f;   /* clay / earth — occasional support        */
  --clay-soft:     #ecd9cd;

  --line:          #e0d9cb;   /* hairlines on canvas                      */
  --line-strong:   #cbc2b0;
  --blueprint-ink: #2c3a44;   /* cool ink for blueprint linework          */
  --blueprint-bg:  #f2efe6;

  /* semantic */
  --bg:            var(--canvas);
  --text:          var(--ink);
  --accent:        var(--radiant);

  /* ---- Typography ----------------------------------------------------- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Helvetica Neue", Arial, system-ui, sans-serif;
  /* Marker layer — replace globally when Kevin's custom whiteboard font
     is ready. Add an @font-face named "Radiant Marker" in
     /assets/fonts/marker.css and set it first in this stack. */
  --font-marker: "Radiant Marker", "Bradley Hand", "Segoe Print",
                 "Comic Sans MS", "Chalkboard SE", cursive;

  --fs-eyebrow:   0.78rem;
  --fs-small:     0.9rem;
  --fs-body:      1.075rem;
  --fs-lead:      1.35rem;
  --fs-h3:        clamp(1.25rem, 1rem + 1.2vw, 1.7rem);
  --fs-h2:        clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
  --fs-display:   clamp(2.8rem, 1.2rem + 7.5vw, 7.5rem);

  --lh-tight:     1.02;
  --lh-snug:      1.15;
  --lh-body:      1.62;

  --tracking-eyebrow: 0.18em;
  --tracking-display: -0.02em;

  /* ---- Spacing (fluid-ish scale) ------------------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;
  --sp-section: clamp(4rem, 3rem + 6vw, 9rem);

  /* ---- Content widths ------------------------------------------------- */
  --w-prose:  62ch;
  --w-narrow: 720px;
  --w-mid:    1000px;
  --w-wide:   1240px;
  --gutter:   clamp(1.15rem, 0.5rem + 3vw, 3rem);

  /* ---- Radius --------------------------------------------------------- */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* ---- Shadows -------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(33, 31, 27, 0.06);
  --shadow-md: 0 8px 24px -12px rgba(33, 31, 27, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(33, 31, 27, 0.30);
  --shadow-lift: 0 18px 44px -20px rgba(33, 31, 27, 0.28);

  /* ---- Transitions ---------------------------------------------------- */
  --t-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-med:  260ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 620ms cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 74px;
}

/* =========================================================================
   1. RESET & BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "ss01", "cv05", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--radiant);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--radiant); color: var(--radiant-ink); }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  z-index: 200;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }

/* =========================================================================
   2. TYPOGRAPHY PRIMITIVES
   ========================================================================= */
h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 2px;
  background: var(--radiant);
  display: inline-block;
}

.display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-weight: 720;
  text-transform: uppercase;
  margin: 0;
}
.display--case { text-transform: none; letter-spacing: -0.025em; }

.h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 34ch;
}

.prose { max-width: var(--w-prose); }
.prose p { color: var(--ink-soft); }

.caption {
  font-size: var(--fs-small);
  color: var(--ink-faint);
  line-height: 1.5;
}

/* Highlighter — like a swipe of marker over key words */
.hl {
  background: linear-gradient(180deg, transparent 58%,
              var(--radiant-warm) 58% 92%, transparent 92%);
  padding: 0 0.06em;
}
.hl--green {
  background: linear-gradient(180deg, transparent 58%,
              var(--green-soft) 58% 92%, transparent 92%);
}

.text-radiant { color: #b8900a; }   /* accessible yellow-ish for text     */
.text-green   { color: var(--green); }
.text-clay    { color: var(--clay); }
.text-muted   { color: var(--ink-faint); }

/* =========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================= */
.wrap {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--mid    { max-width: var(--w-mid); }
.wrap--narrow { max-width: var(--w-narrow); }

.section { padding-block: var(--sp-section); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.section--paper { background: var(--paper); }
.section--deep  { background: var(--canvas-deep); }
.section--ink   { background: var(--ink); color: var(--canvas); }
.section--ink .eyebrow { color: #b9b1a0; }
.section--ink .lead,
.section--ink .prose p { color: #d9d2c4; }

.divider-rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* asymmetric two-column editorial grid.
   Each modifier is self-contained (sets its own display:grid) so it can be
   used with or without the base .grid class. */
.grid,
.grid--2, .grid--3, .grid--sidebar, .grid--split { display: grid; gap: var(--sp-6); }
.grid--2      { grid-template-columns: repeat(2, 1fr); }
.grid--3      { grid-template-columns: repeat(3, 1fr); }
.grid--sidebar{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem,1rem+4vw,5rem); align-items: start; }
.grid--split  { grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,1rem+4vw,5rem); align-items: center; }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }

/* =========================================================================
   4. HEADER / NAVIGATION
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  font-size: 1.18rem;
  color: var(--ink);
}
.wordmark .mark {
  width: 26px; height: 26px; flex: none;
}
.wordmark:hover .mark .ray { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 0.4rem + 1.5vw, 2.3rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.35rem 0;
  transition: color var(--t-fast);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--radiant);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: var(--sp-4); }

/* mobile toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  width: 20px; height: 2px; background: var(--ink);
  transition: transform var(--t-med), opacity var(--t-fast);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1.5px); }

/* =========================================================================
   5. BUTTONS & CTAs
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.8em 1.35em;
  border-radius: var(--r-pill);
  font-weight: 560;
  font-size: 0.98rem;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast),
              border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--radiant);
  color: var(--radiant-ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--radiant-warm); box-shadow: var(--shadow-md); }

.btn--ink { background: var(--ink); color: var(--canvas); }
.btn--ink:hover { background: #000; box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }

.section--ink .btn--ghost { color: var(--canvas); border-color: rgba(255,255,255,.28); }
.section--ink .btn--ghost:hover { border-color: var(--canvas); background: rgba(255,255,255,.06); }

.btn--sm { padding: 0.55em 1em; font-size: 0.9rem; }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 560;
  color: var(--ink);
  border-bottom: 2px solid var(--radiant);
  padding-bottom: 2px;
  transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow .arrow { transition: transform var(--t-fast); }
.link-arrow:hover { gap: 0.7em; }
.link-arrow:hover .arrow { transform: translateX(3px); }
.section--ink .link-arrow { color: var(--canvas); }

/* =========================================================================
   6. EDITORIAL SECTIONS
   ========================================================================= */
.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head--wide { max-width: 62ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; max-width: 46ch; }

.callout {
  border-left: 3px solid var(--radiant);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  font-size: var(--fs-lead);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 420;
}

.pull {
  font-size: clamp(1.4rem, 1rem + 2vw, 2.3rem);
  line-height: 1.25;
  font-weight: 560;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

/* image frame / documentary placeholder */
.frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--canvas-deep);
  border: 1px solid var(--line);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall  { aspect-ratio: 3 / 4; }
.frame--wide  { aspect-ratio: 16 / 10; }
.frame--square{ aspect-ratio: 1 / 1; }

/* elegant placeholder when no photography exists yet */
.placeholder {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-6);
  color: var(--ink-faint);
  background:
    linear-gradient(135deg, transparent 46%, var(--line) 46% 47%, transparent 47%),
    var(--canvas-deep);
  background-size: 22px 22px, 100%;
}
.placeholder .ph-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.placeholder .ph-note { font-family: var(--font-marker); font-size: 1.05rem; color: var(--ink-soft); }

/* =========================================================================
   7. MARKER / ANNOTATION LAYER
   Feels like someone thinking on a whiteboard. Selective use only.
   ========================================================================= */
.marker {
  font-family: var(--font-marker);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}
.marker--accent { color: var(--clay); }
.marker--green  { color: var(--green); }

.annotation {
  font-family: var(--font-marker);
  font-size: 1.1rem;
  color: var(--ink-soft);
  display: inline-block;
  position: relative;
}
/* circled thought */
.circled {
  font-family: var(--font-marker);
  position: relative;
  display: inline-block;
  padding: 0.15em 0.5em;
}
.circled::after {
  content: "";
  position: absolute; inset: -6% -10%;
  border: 2.5px solid var(--radiant);
  border-radius: 48% 52% 50% 50% / 58% 46% 54% 42%;
  transform: rotate(-2deg);
  pointer-events: none;
}

/* small hand-drawn arrow annotation */
.note-arrow {
  font-family: var(--font-marker);
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 1rem;
}

/* =========================================================================
   8. BLUEPRINT VISUAL LANGUAGE
   Illustrator systems thinking + whiteboard + architectural drawing.
   Real Orchard Blueprint SVG/PNG artifacts drop into .blueprint later.
   ========================================================================= */
.blueprint {
  position: relative;
  background-color: var(--blueprint-bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  overflow: hidden;
}
.blueprint::before {
  /* corner registration tick, like a drawing */
  content: "";
  position: absolute; top: 14px; left: 14px;
  width: 18px; height: 18px;
  border-left: 2px solid var(--line-strong);
  border-top: 2px solid var(--line-strong);
}
.blueprint__tag {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.blueprint-caption {
  margin-top: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--ink-faint);
}

/* diagram nodes + connectors */
.node {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 0.75rem 1.1rem;
  font-weight: 560;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.node--seed   { border-color: var(--ink-faint); }
.node--radiant{ border-color: var(--radiant); box-shadow: 0 0 0 4px color-mix(in srgb, var(--radiant) 22%, transparent); }
.node--green  { border-color: var(--green); }
.node .node-sub { font-weight: 400; font-size: 0.8rem; color: var(--ink-faint); }

/* vertical formation flow */
.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  counter-reset: step;
}
.flow__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.2rem;
  background: var(--paper);
  color: var(--ink);            /* explicit: stays readable inside dark sections */
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-weight: 580;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.flow__item .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--radiant); flex: none;
}
.flow__arrow {
  width: 2px; height: 34px;
  background: linear-gradient(var(--ink) 60%, transparent 0);
  background-size: 2px 8px;
  position: relative;
  margin: 2px 0;
}
.flow__arrow::after {
  content: "";
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--ink);
}
.flow--kingdom .flow__item:last-of-type {
  border-color: var(--radiant);
  background: color-mix(in srgb, var(--radiant) 14%, var(--paper));
}

/* horizontal 3-stage capital architecture */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  align-items: stretch;
}
.stage {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.stage__n {
  font-family: var(--font-marker);
  font-size: 1.1rem; color: var(--ink-faint);
}
.stage h3 { font-size: 1.25rem; }
.stage p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.stage--1 { border-top: 4px solid var(--green); }
.stage--2 { border-top: 4px solid var(--clay); }
.stage--3 { border-top: 4px solid var(--radiant); }
.stage .stage__arrow {
  position: absolute; right: -0.85rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint); z-index: 2;
  background: var(--bg); line-height: 1;
}
.stage:last-child .stage__arrow { display: none; }

/* multiplication / network mini-diagram uses inline SVG (see markup) */
.net-svg { width: 100%; height: auto; }
.net-svg .edge { stroke: var(--line-strong); stroke-width: 1.5; }
.net-svg .edge-accent { stroke: var(--radiant); stroke-width: 2; }
.net-svg .node-c { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.net-svg .node-c--hub { fill: var(--radiant); stroke: var(--ink); }
.net-svg .node-label { font-size: 13px; font-weight: 560; fill: var(--ink); font-family: var(--font-sans); }

/* draw-in animation targets */
.draw path, .draw line, .draw circle, .draw polyline { }

/* =========================================================================
   9. PROJECT ARTIFACTS — "What's Growing"
   Projects on a worktable, not SaaS pricing cards.
   ========================================================================= */
.artifacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 0.5rem + 2vw, 2.25rem);
}
.artifact {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.artifact:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
/* slight worktable scatter */
.artifact:nth-child(2n) { transform: rotate(0.5deg); }
.artifact:nth-child(2n):hover { transform: translateY(-4px) rotate(0deg); }
.artifact:nth-child(3n) { transform: rotate(-0.4deg); }
.artifact:nth-child(3n):hover { transform: translateY(-4px) rotate(0deg); }

.artifact__media { position: relative; }
.artifact__media .frame { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.artifact__body { padding: var(--sp-5) var(--sp-5) var(--sp-6); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.artifact__name { font-size: 1.35rem; font-weight: 660; letter-spacing: -0.02em; }
.artifact__stmt { color: var(--ink-soft); margin: 0; flex: 1; }
.artifact__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: 0.4rem; }

.state {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.3em 0.7em;
  border-radius: var(--r-pill);
  background: var(--green-soft);
  color: var(--green);
}
.state--growing   { background: var(--green-soft); color: #35603b; }
.state--emerging  { background: var(--clay-soft); color: #8a4f30; }
.state--exploring { background: color-mix(in srgb, var(--radiant) 24%, var(--paper)); color: var(--radiant-ink); }
.state--seed      { background: var(--canvas-deep); color: var(--ink-faint); }

/* taped-corner artifact tag, marker style */
.tape {
  position: absolute;
  top: -8px; left: 18px;
  font-family: var(--font-marker);
  font-size: 0.95rem;
  background: var(--radiant);
  color: var(--radiant-ink);
  padding: 0.15rem 0.7rem;
  border-radius: 2px;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

/* =========================================================================
   10. PLACE TIMELINE / STAGES
   ========================================================================= */
.timeline { display: flex; flex-direction: column; gap: 0; }
.chapter {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  padding-block: clamp(2rem, 1.5rem + 3vw, 4rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.chapter:first-child { border-top: 0; }
.chapter__marker { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.chapter__step {
  font-family: var(--font-marker);
  font-size: 1.05rem; color: var(--ink-faint);
  margin-bottom: 0.3rem;
}
.chapter__name { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.chapter__tag {
  display: inline-block; margin-top: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-faint);
}
.chapter__now  { color: var(--green); }
.chapter__next { color: var(--clay); }
.chapter__future { color: #b8900a; }

/* =========================================================================
   11. FORMS (Join)
   ========================================================================= */
.pathways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-4);
}
.pathway {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.pathway:hover { border-color: var(--radiant); transform: translateY(-2px); }
.pathway h3 { font-size: 1.08rem; }
.pathway p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }
.pathway .pathway__icon { color: var(--clay); }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--sp-5); }
.field label { font-weight: 560; font-size: 0.95rem; }
.field .req { color: var(--clay); }
.field .hint { font-size: 0.85rem; color: var(--ink-faint); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--radiant);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--radiant) 25%, transparent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

.form-status {
  margin-top: var(--sp-4);
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok   { background: var(--green-soft); color: #2f5535; }
.form-status--err  { background: var(--clay-soft); color: #8a4f30; }

/* =========================================================================
   12. FOOTER
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: var(--canvas);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem) var(--sp-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: start;
}
.site-footer .wordmark { color: var(--canvas); }
.footer-statement { color: #cfc8ba; max-width: 34ch; margin-top: var(--sp-4); }
.footer-col h4 {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #b9b1a0; margin-bottom: var(--sp-3); font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: #ded7c9; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--radiant); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.12);
  color: #a49c8c; font-size: 0.85rem;
}
.footer-bottom .marker { color: var(--radiant-warm); font-size: 1.15rem; }

/* =========================================================================
   13. MOTION / REVEALS
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }

/* draw-in for blueprint svg strokes */
.draw-in path,
.draw-in line,
.draw-in polyline {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  transition: stroke-dashoffset 1.1s ease;
}
.draw-in.is-in path,
.draw-in.is-in line,
.draw-in.is-in polyline { stroke-dashoffset: 0; }
.draw-in circle.pop { transform: scale(0); transform-origin: center; transition: transform .5s var(--t-slow) .6s; }
.draw-in.is-in circle.pop { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw-in path, .draw-in line, .draw-in polyline { stroke-dashoffset: 0; transition: none; }
  .draw-in circle.pop { transform: scale(1); transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .btn:hover, .artifact:hover { transform: none; }
}

/* =========================================================================
   14. UTILITIES
   ========================================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
.max-narrow { max-width: var(--w-narrow); }
.hide-mobile { }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.chip {
  font-size: 0.85rem; padding: 0.35em 0.8em;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  color: var(--ink-soft); background: var(--paper);
}

/* Soft ambient light behind hero display type — sunlight, not a tech glow.
   Kept very restrained; see also .light-wash in section 16. */
.glow {
  position: absolute; inset: auto;
  width: 62vw; max-width: 760px; aspect-ratio: 1.3;
  background: radial-gradient(ellipse at center,
              color-mix(in srgb, var(--radiant) 30%, transparent) 0%, transparent 66%);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

/* =========================================================================
   15. RESPONSIVE
   ========================================================================= */
@media (max-width: 940px) {
  .grid--2, .grid--3, .artifacts { grid-template-columns: 1fr; }
  .grid--sidebar, .grid--split { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .stage .stage__arrow { right: 50%; top: auto; bottom: -1.35rem; transform: translateX(50%) rotate(90deg); }
  .chapter { grid-template-columns: 1fr; gap: var(--sp-4); }
  .chapter__marker { position: static; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* mobile nav */
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-3) var(--gutter) var(--sp-5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t-med), opacity var(--t-med), visibility var(--t-med);
  }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav .btn--primary { display: none; }         /* CTA moves into menu */
  .nav-links .nav-cta { display: block; margin-top: var(--sp-4); border-bottom: 0; }
  .nav-links .nav-cta .btn { width: 100%; justify-content: center; }
}

@media (min-width: 761px) {
  .nav-links .nav-cta { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .callout { padding-left: var(--sp-4); }
  .flow__item { width: 100%; justify-content: center; text-align: center; }
}

/* =========================================================================
   16. LAUNCH-REFINEMENT ADDITIONS
   Governing Principles, Core Multiplication Logic, Ways In (entry points),
   subtle light, canonical Blueprint labels, future-layer seams.
   Composed from the existing tokens + primitives — no new palette.
   ========================================================================= */

/* ---- Subtle light: sunlight falling across paper / a worktable --------- */
.light-wash { position: relative; isolation: isolate; }
.light-wash::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background: linear-gradient(118deg,
              color-mix(in srgb, var(--radiant-warm) 40%, transparent) 0%,
              transparent 46%);
}
.light-wash--soft::before {
  background: linear-gradient(118deg,
              color-mix(in srgb, var(--radiant-warm) 26%, transparent) 0%,
              transparent 40%);
}
/* on charcoal, light reads as a faint warm cast rather than a yellow film */
.section--ink.light-wash::before {
  background: linear-gradient(118deg,
              color-mix(in srgb, var(--radiant) 12%, transparent) 0%,
              transparent 48%);
}
@media (prefers-reduced-motion: no-preference) {
  /* purely static — light does not animate, by design */
}

/* ---- Canonical Orchard Blueprint label -------------------------------- */
/* Marks a diagram as a current web expression of a canonical Blueprint.
   The full Illustrator Blueprint library arrives later (see README). */
.blueprint__code {
  position: absolute;
  top: 12px; right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-faint);
}
.blueprint__code .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--radiant);
}

/* ---- "What Governs the Orchard" --------------------------------------- */
.principle-block { margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); }
.principle-block__head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.4rem 0.9rem; margin-bottom: var(--sp-5);
}
.principle-block__head h3 { font-size: var(--fs-h3); }
.principle-block__count {
  font-family: var(--font-marker);
  color: var(--ink-faint); font-size: 1.05rem;
}

/* Foundational Truths — index cards, given the most weight */
.truths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-4);
}
.truth {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--radiant);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}
.truth__n { font-family: var(--font-marker); font-size: 1.1rem; color: var(--ink-faint); }
.truth h4 { font-size: 1.1rem; line-height: 1.22; }
.truth p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

/* Operating Assumptions — lighter: hairline list, not cards */
.bets {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 clamp(1.5rem, 1rem + 2vw, 3rem);
}
.bet {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.bet__mark { color: var(--clay); font-family: var(--font-marker); font-size: 1.15rem; line-height: 1; }
.bet b { color: var(--ink); font-weight: 560; }

/* Non-Negotiable Design Patterns — compact, numbered, two columns */
.patterns {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
}
.pattern {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.4rem 0.6rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.pattern__n { font-family: var(--font-marker); color: var(--ink-faint); font-size: 1.05rem; }
.pattern h4 { grid-column: 2; font-size: 1rem; line-height: 1.25; }
.pattern p { grid-column: 2; margin: 0.15rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.pattern--wide { grid-column: 1 / -1; }

/* ---- Core Multiplication Logic — its own strong visual moment ---------- */
.mchain {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  margin-inline: auto; max-width: 460px;
}
.mchain__item {
  width: 100%;
  text-align: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 0.95rem 1.4rem;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.mchain__item h4 { font-size: 1.18rem; letter-spacing: -0.01em; }
.mchain__item p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--ink-faint); }
.mchain__item--last {
  border-color: var(--radiant);
  background: color-mix(in srgb, var(--radiant) 12%, var(--paper));
}
.mchain__item--last p { color: var(--ink-soft); }

/* ---- Institutional Durability Test callout ---------------------------- */
.test-card {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem);
}
.test-card__label {
  font-family: var(--font-marker);
  font-size: 1.25rem; color: var(--clay);
  margin-bottom: 0.6rem;
}
.test-card p { margin: 0 0 0.8em; }
.test-card p:last-child { margin-bottom: 0; }

/* ---- Ways In (entry points) — interactive cards on the Join page ------- */
/* NB: these are ENTRY POINTS, deliberately NOT the canonical ecosystem
   "Pathways" (Student, Founder, Parent, …). Those live in a future
   /pathways/ layer — see the reserved seam at the end of this file. */
.ways-in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-4);
}
.way-in {
  font: inherit;
  text-align: left;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: 0.4rem;
  cursor: pointer;
  width: 100%;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.way-in:hover { border-color: var(--radiant); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.way-in:focus-visible { outline: 3px solid var(--radiant); outline-offset: 3px; }
.way-in[aria-current="true"] {
  border-color: var(--radiant);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--radiant) 28%, transparent);
}
.way-in__icon { color: var(--clay); font-family: var(--font-marker); font-size: 1.1rem; line-height: 1; }
.way-in h3 { font-size: 1.08rem; }
.way-in p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }
.way-in__cue {
  margin-top: 0.3rem;
  font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: 0.35rem;
  opacity: 0; transform: translateX(-3px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.way-in:hover .way-in__cue,
.way-in:focus-visible .way-in__cue { opacity: 1; transform: none; }

/* small forward-looking teaser toward the future Pathways layer */
.pathways-teaser {
  border-left: 3px solid var(--green);
  padding-left: var(--sp-5);
  max-width: 60ch;
}
.pathways-teaser .marker { color: var(--green); }

/* =========================================================================
   FUTURE-LAYER SEAM (reserved — intentionally NOT used or linked in V1)
   -------------------------------------------------------------------------
   The canonical "Pathways Through the Radiant Orchard Ecosystem" (Student,
   Founder, Parent, Missionary, Investor, Church Partner, Mentor, Creative,
   Wellness Practitioner) each follow: Enter → Engage → Contribute → Multiply.
   When the /pathways/ layer is built from canonical source docs, use a
   dedicated, namespaced component so it never collides with .way-in above:

   .eco-pathway { }          // a single pathway profile
   .eco-pathway__arc { }     // the Enter → Engage → Contribute → Multiply arc
   .eco-pathway__stage { }   // one stage in the arc

   Likewise reserve .flywheel / .system-layer for the future /system/ layer,
   and reuse the existing .blueprint treatment for the /blueprints/ library.
   Do NOT publish those layers from memory — only from canonical documents.
   ========================================================================= */

/* ---- Responsive for section 16 ---------------------------------------- */
@media (max-width: 760px) {
  .patterns { grid-template-columns: 1fr; }
  .pattern--wide { grid-column: auto; }
}
