/* ==========================================================================
   Genesis Enterprise Consulting — brand stylesheet
   Palette + type derived from the gold-and-forest emblem.
   ========================================================================== */

/* ---- Tokens: light is the base, complete set ---- */
:root {
  --forest-900: #061A11;
  --forest-800: #0A2717;
  --forest-700: #0E3B26;
  --forest-600: #14512E;

  --gold-700: #8F6B1E;
  --gold-600: #B8892B;
  --gold-500: #C79A2E;
  --gold-400: #DDB755;
  --gold-300: #EBD08C;

  --bg:            #EFF4EE;
  --bg-alt:        #E4EDE4;
  --surface:       #FFFFFF;
  --surface-sunk:  #E4EDE4;
  --border:        #C5D5C8;
  --border-strong: #A8BEAD;
  --text:          #0F211A;
  --text-soft:     #35483D;
  --muted:         #5C6F64;

  --ink-panel:      var(--forest-800);
  --ink-panel-text: #E9F0E9;
  --ink-panel-muted:#A9BFB0;
  --ink-panel-rule: rgba(199,154,46,.34);

  --accent:        var(--gold-600);
  --accent-strong: var(--gold-700);
  --accent-quiet:  rgba(184,137,43,.14);
  --link:          var(--forest-600);

  --shadow-sm: 0 1px 2px rgba(6,26,17,.06), 0 2px 8px rgba(6,26,17,.04);
  --shadow-md: 0 2px 6px rgba(6,26,17,.07), 0 12px 32px rgba(6,26,17,.07);

  --measure: 66ch;
  --page: 1180px;
  --rad: 3px;

  --f-display: "Marcellus", "Optima", "Palatino Linotype", Palatino, Georgia, serif;
  --f-body: "Libre Franklin", "Franklin Gothic", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #051510;
    --bg-alt:        #04120C;
    --surface:       #0E2F1E;
    --surface-sunk:  #04120C;
    --border:        #244A32;
    --border-strong: #356048;
    --text:          #E7EFE8;
    --text-soft:     #C3D3C7;
    --muted:         #93AB9C;

    --ink-panel:      #030E09;
    --ink-panel-text: #E9F0E9;
    --ink-panel-muted:#A0B8A8;
    --ink-panel-rule: rgba(221,183,85,.30);

    --accent:        var(--gold-400);
    --accent-strong: var(--gold-300);
    --accent-quiet:  rgba(221,183,85,.13);
    --link:          var(--gold-400);

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 2px 6px rgba(0,0,0,.45), 0 14px 36px rgba(0,0,0,.4);
  }
}

:root[data-theme="dark"] {
  --bg:            #051510;
  --bg-alt:        #04120C;
  --surface:       #0E2F1E;
  --surface-sunk:  #04120C;
  --border:        #244A32;
  --border-strong: #356048;
  --text:          #E7EFE8;
  --text-soft:     #C3D3C7;
  --muted:         #93AB9C;

  --ink-panel:      #030E09;
  --ink-panel-text: #E9F0E9;
  --ink-panel-muted:#A0B8A8;
  --ink-panel-rule: rgba(221,183,85,.30);

  --accent:        var(--gold-400);
  --accent-strong: var(--gold-300);
  --accent-quiet:  rgba(221,183,85,.13);
  --link:          var(--gold-400);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 2px 6px rgba(0,0,0,.45), 0 14px 36px rgba(0,0,0,.4);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

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

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
h4 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 600; letter-spacing: .005em; }

p { margin: 0; }

/* ---- Layout primitives ---- */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 44px);
}
.wrap--narrow { max-width: 800px; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--sunk { background: var(--surface-sunk); border-block: 1px solid var(--border); }

.stack, .stack-6, .stack-10, .stack-14, .stack-20,
.stack-24, .stack-28, .stack-40, .stack-56 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}
.stack-6  { gap: 6px; }  .stack-10 { gap: 10px; }
.stack-14 { gap: 14px; } .stack-20 { gap: 20px; }
.stack-24 { gap: 24px; } .stack-28 { gap: 28px; }
.stack-40 { gap: 40px; }
.stack-56 { gap: clamp(36px, 5vw, 56px); }

.prose { max-width: var(--measure); color: var(--text-soft); }
.prose p + p { margin-top: 1em; }
.lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); line-height: 1.62; color: var(--text-soft); }

/* ---- Eyebrow + rule: the recurring structural device ---- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 92%);
  opacity: .55;
}
.eyebrow--plain::after { display: none; }
.on-ink .eyebrow { color: var(--gold-400); }
.on-ink .eyebrow::after { background: linear-gradient(90deg, var(--gold-400) 0%, transparent 92%); opacity: .4; }

.rule-gold {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 55%, transparent 100%);
  opacity: .7;
}

/* ---- Ink panels (deep forest sections) ---- */
.on-ink {
  background: var(--ink-panel);
  color: var(--ink-panel-text);
}
.on-ink h1, .on-ink h2, .on-ink h3 { color: #F3F7F2; }
.on-ink .prose, .on-ink .lede { color: var(--ink-panel-muted); }
.on-ink a { color: var(--gold-300); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-body);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 13px 22px;
  border-radius: var(--rad);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  color: #22190A;
  border-color: var(--gold-700);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: #22190A; }
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.on-ink .btn--ghost,
.hero .btn--ghost,
.site-header .btn--ghost { border-color: rgba(233,240,233,.34); color: #EAF1EA; }
.on-ink .btn--ghost:hover,
.hero .btn--ghost:hover,
.site-header .btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-300); background: rgba(221,183,85,.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--forest-900);
  border-bottom: 1px solid rgba(199,154,46,.28);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 46px; height: auto; flex: none; }
.brand__name {
  font-family: var(--f-display);
  font-size: 1.12rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #F1E7C9;
  line-height: 1.05;
}
.brand__sub {
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-400);
  opacity: .85;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: #CFDCD1;
  text-decoration: none;
  padding: 9px 13px;
  border-radius: var(--rad);
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #FFF; background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: var(--gold-300); border-bottom-color: var(--gold-500); }
.nav .btn { margin-left: 10px; padding: 10px 18px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(233,240,233,.3);
  color: #E8EFE9;
  border-radius: var(--rad);
  padding: 9px 13px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--forest-900);
    border-bottom: 1px solid rgba(199,154,46,.3);
    padding: 8px clamp(20px, 5vw, 44px) 20px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--gold-500); }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
  .site-header__bar { position: relative; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--forest-900);
  color: #EAF1EA;
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(880px 520px at 78% 18%, rgba(221,183,85,.20), transparent 62%),
    radial-gradient(700px 620px at 12% 92%, rgba(20,81,46,.75), transparent 68%),
    linear-gradient(180deg, #04120C 0%, #072117 60%, #04120C 100%);
}
.hero__graticule {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  background-image:
    repeating-linear-gradient(90deg, rgba(199,154,46,.5) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(0deg,  rgba(199,154,46,.32) 0 1px, transparent 1px 68px);
  -webkit-mask-image: radial-gradient(circle at 72% 42%, #000 0%, transparent 68%);
          mask-image: radial-gradient(circle at 72% 42%, #000 0%, transparent 68%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(60px, 9vw, 116px);
}
.hero h1 { color: #F6F3E7; }
.hero .lede { color: #C6D6C9; max-width: 56ch; }
.hero__mark {
  justify-self: center;
  width: min(420px, 82%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero__mark img { filter: drop-shadow(0 18px 44px rgba(0,0,0,.55)); }

/* Live text replaces the tiny raster tagline in the logo file, so it stays
   crisp and readable at any size. */
.hero__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0 10px;
  width: 100%;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(199,154,46,.45);
  font-family: var(--f-mono);
  font-size: clamp(.6rem, .5rem + .3vw, .74rem);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-300);
  text-align: center;
  white-space: nowrap;
}
.hero__tagline span + span::before {
  content: "•";
  margin-right: 10px;
  color: var(--gold-600);
}

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { order: -1; width: min(300px, 72%); }
}

/* ---- Credential strip ---- */
.creds {
  background: var(--forest-800);
  border-top: 1px solid var(--ink-panel-rule);
  color: var(--ink-panel-text);
}
.creds__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(199,154,46,.22);
  border-inline: 1px solid rgba(199,154,46,.22);
}
.cred {
  background: var(--forest-800);
  padding: 24px clamp(16px, 2.4vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cred__k {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cred__v {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A9BFB0;
}

/* ---- Mission panel ---- */
.mission {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.mission__rays {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-conic-gradient(from 186deg at 50% -4%,
      rgba(235,208,140,.16) 0deg 0.55deg,
      transparent 0.55deg 8deg),
    radial-gradient(420px 260px at 50% 0%, rgba(235,208,140,.20), transparent 70%);
  -webkit-mask-image: radial-gradient(680px 520px at 50% -2%, #000 0%, rgba(0,0,0,.55) 42%, transparent 78%);
          mask-image: radial-gradient(680px 520px at 50% -2%, #000 0%, rgba(0,0,0,.55) 42%, transparent 78%);
}
.mission__inner {
  padding-block: clamp(64px, 9vw, 116px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.mission .eyebrow { justify-content: center; }
.mission .eyebrow::after { display: none; }
.mission__statement {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.1rem + 4.2vw, 3.6rem);
  line-height: 1.1;
  color: #F7F1DE;
  text-wrap: balance;
  max-width: 18ch;
}
.mission__statement em {
  font-style: normal;
  color: var(--gold-300);
}
.mission__body { max-width: 62ch; color: #BFD1C4; font-size: 1.06rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(18px, 3vw, 34px);
  width: 100%;
  margin-top: 12px;
  text-align: left;
}
.pillar {
  border-top: 2px solid var(--gold-500);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pillar__t {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.pillar__d { color: #B4C9BA; font-size: .95rem; line-height: 1.6; }

/* ---- Value / loss figure --------------------------------------------------
   Two-segment part-to-whole. Segment colors are validated for CVD separation
   against the surface behind them; identity is carried by direct labels and a
   legend, never by hue alone. ------------------------------------------------ */
:root {
  --seg-ok:   #1D6B3F;
  --seg-loss: #D9822B;
  --seg-loss-ink: #A85D14;   /* text-contrast-safe variant of the loss hue */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --seg-ok: #3C8A5C; --seg-loss: #F2B76B; --seg-loss-ink: #F2B76B;
  }
}
:root[data-theme="dark"] {
  --seg-ok: #3C8A5C; --seg-loss: #F2B76B; --seg-loss-ink: #F2B76B;
}

.leak {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--rad);
  padding: clamp(24px, 3.2vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--shadow-md);
}
.leak__kicker {
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.leak__stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0;
  max-width: 58ch;
}
.leak__stat strong {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.2rem);
  line-height: .95;
  color: var(--seg-loss-ink);
  font-variant-numeric: tabular-nums;
}
.leak__stat span {
  font-size: clamp(1rem, .94rem + .3vw, 1.15rem);
  line-height: 1.45;
  color: var(--text);
}

.leak__bar {
  display: flex;
  gap: 2px;                /* surface gap between fills */
  height: 46px;
  width: 100%;
}
.leak__seg {
  display: flex;
  align-items: center;
  min-width: 0;
  border-radius: 1px;
}
.leak__seg--ok {
  background: var(--seg-ok);
  border-radius: 4px 1px 1px 4px;
  padding-inline: 16px;
}
.leak__seg--loss {
  background: var(--seg-loss);
  border-radius: 1px 4px 4px 1px;
}
.leak__seglab {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #F2F8F3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leak__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.leak__legend li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .92rem;
  color: var(--text-soft);
}
.leak__swatch {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  flex: none;
}
.leak__swatch--ok { background: var(--seg-ok); }
.leak__swatch--loss { background: var(--seg-loss); }
.leak__legend b {
  font-family: var(--f-mono);
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.leak__src {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .84rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 76ch;
}
.leak__src em { font-style: italic; }

/* ---- Evidence tiles ---- */
.ev {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--rad) var(--rad) 0;
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--shadow-sm);
}
.ev__fig {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.ev__claim { margin: 0; color: var(--text-soft); font-size: .97rem; }
.ev__src {
  margin: 0;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--muted);
}
.ev__map {
  margin: auto 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.ev__map a { color: var(--accent-strong); text-decoration: none; border-bottom: 1px solid currentColor; }
.ev__map a:hover { color: var(--text); }

/* ---- Pressure board: the cost of standing still ---------------------------
   Direction is carried by an arrow glyph and a label word, not by color alone —
   every figure here moves the wrong way, so hue cannot distinguish them. ------ */
.press {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--seg-loss);
  border-radius: 0 0 var(--rad) var(--rad);
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-md);
}
.press__dir {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--f-mono);
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--seg-loss-ink);
}
.press__arrow { font-size: .8rem; line-height: 1; }
.press__fig {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 1.7rem + 2.8vw, 3.5rem);
  line-height: .92;
  color: var(--seg-loss-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.press__claim { margin: 0; color: var(--text-soft); font-size: .96rem; }
.press__src {
  margin: auto 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: .76rem;
  line-height: 1.5;
  color: var(--muted);
}
.press__chain {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 20px;
  background: var(--accent-quiet);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--rad) var(--rad) 0;
  color: var(--text-soft);
  font-size: .96rem;
}
.press__chain b { color: var(--text); font-weight: 650; }

/* ---- Cards ---- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid--pair { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }

/* ---- Engagement flow figure -----------------------------------------------
   A tapering band across four phases: the width encodes how much is still in
   scope, and the ticks beneath name the artifact each phase hands to the next.
   Hidden below 760px, where its labels would be too small to read — the phase
   cards underneath carry the same information. -------------------------------- */
:root {
  --phase-1: #2E6B47;
  --phase-2: #235A3A;
  --phase-3: #17482D;
  --phase-4: #B8892B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --phase-1: #4E9370; --phase-2: #3E8460; --phase-3: #2F7450; --phase-4: #DDB755;
  }
}
:root[data-theme="dark"] {
  --phase-1: #4E9370; --phase-2: #3E8460; --phase-3: #2F7450; --phase-4: #DDB755;
}

.flow {
  margin: 0;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--rad);
  padding: clamp(20px, 2.6vw, 34px);
  box-shadow: var(--shadow-md);
}
/* Wide diagram scrolls inside its own container on narrow screens rather than
   disappearing; min-width keeps the labels above ~10px. */
.flow__fig { overflow-x: auto; min-width: 0; }
.flow svg { display: block; width: 100%; min-width: 600px; height: auto; color: var(--text); }
.flow__week {
  font-family: var(--f-mono);
  font-size: 17px;
  letter-spacing: .16em;
  fill: var(--muted);
}
.flow__name {
  font-family: var(--f-display);
  font-size: 28px;
  fill: var(--text);
}
.flow__hand {
  font-family: var(--f-mono);
  font-size: 17px;
  letter-spacing: .1em;
  fill: var(--accent-strong);
}
.flow__edge {
  font-family: var(--f-mono);
  font-size: 15px;
  letter-spacing: .12em;
  fill: var(--muted);
}
.flow__tick { stroke: var(--border-strong); stroke-width: 1.5; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.card--practice {
  padding-top: calc(clamp(22px, 2.6vw, 32px) + 6px);
  border-color: var(--border-strong);
}
.card--practice::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 5px;
  background: linear-gradient(90deg, var(--gold-700), var(--gold-500) 40%, var(--gold-300) 80%);
  border-radius: var(--rad) var(--rad) 0 0;
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent-strong); }
.card p { color: var(--text-soft); font-size: .97rem; }
.card__more {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-strong);
  text-decoration: none;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.card__more:hover { gap: 11px; }

/* ---- Numbered process ---- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 34px);
  padding-block: 26px;
  border-top: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step__n {
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
  padding-top: 5px;
}
.step__b { display: flex; flex-direction: column; gap: 7px; }
.step__b p { color: var(--text-soft); max-width: var(--measure); }
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- Definition/offer list ---- */
.offers { display: grid; gap: 0; }
.offer {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 36px);
  padding-block: 24px;
  border-top: 1px solid var(--border);
  align-items: start;
}
.offer:last-child { border-bottom: 1px solid var(--border); }
.offer__t {
  font-family: var(--f-display);
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--text);
}
.offer__d { color: var(--text-soft); font-size: .98rem; }
@media (max-width: 700px) {
  .offer { grid-template-columns: 1fr; gap: 6px; }
}

/* ---- Checklist ---- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--text-soft);
  font-size: .98rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: .58em;
  width: 9px; height: 9px;
  transform: rotate(45deg);
  border: 1px solid var(--accent);
  border-left: 0; border-top: 0;
  background: transparent;
}
.on-ink .ticks li { color: var(--ink-panel-muted); }

/* ---- Two-column page layout with sticky spine ---- */
.spine {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}
.spine__aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.spine__nav { display: flex; flex-direction: column; gap: 2px; }
.spine__nav a {
  font-size: .9rem;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--border);
}
.spine__nav a:hover { color: var(--accent-strong); border-left-color: var(--accent); }
@media (max-width: 900px) {
  .spine { grid-template-columns: minmax(0, 1fr); }
  .spine__aside { position: static; }
  .spine__nav { display: none; }
}

.factbox {
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold-500);
  background: var(--surface);
  border-radius: var(--rad);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact__k {
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact__v { font-size: .95rem; color: var(--text); font-weight: 500; overflow-wrap: anywhere; }

/* ---- Callout ---- */
.callout {
  background: var(--accent-quiet);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--rad) var(--rad) 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.callout h4 { color: var(--text); }
.callout p { color: var(--text-soft); font-size: .97rem; max-width: var(--measure); }

/* ---- Article / blog ---- */
.post-list { display: grid; gap: 0; }
.post-item {
  display: grid;
  grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 40px);
  padding-block: 30px;
  border-top: 1px solid var(--border);
  align-items: start;
}
.post-item:last-child { border-bottom: 1px solid var(--border); }
.post-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: .69rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-meta .tag { color: var(--accent-strong); }
.post-item h3 a { color: inherit; text-decoration: none; }
.post-item h3 a:hover { color: var(--accent-strong); }
.post-item p { color: var(--text-soft); font-size: .98rem; margin-top: 8px; max-width: var(--measure); }
@media (max-width: 680px) {
  .post-item { grid-template-columns: 1fr; gap: 10px; }
  .post-meta { flex-direction: row; gap: 14px; }
}

.article { max-width: 100%; }
.article h2 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  margin-top: 1.9em;
  margin-bottom: .5em;
}
.article h3 {
  font-family: var(--f-body);
  font-weight: 650;
  font-size: 1.05rem;
  margin-top: 1.6em;
  margin-bottom: .35em;
}
.article p { color: var(--text-soft); margin-bottom: 1.05em; }
.article ul, .article ol { color: var(--text-soft); padding-left: 1.25em; margin: 0 0 1.15em; display: grid; gap: 8px; }
.article li::marker { color: var(--accent); }
.article blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  font-family: var(--f-display);
  font-size: 1.22rem;
  line-height: 1.42;
  color: var(--text);
}
.article strong { color: var(--text); font-weight: 650; }

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 3vw, 30px);
}
.contact-line {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  color: var(--text);
  text-decoration: none;
  word-break: break-word;
}
.contact-line:hover { color: var(--accent-strong); }
.on-ink .contact-line { color: #F3F7F2; }
.on-ink .contact-line:hover { color: var(--gold-300); }

.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--f-body);
  font-size: .97rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--rad);
  padding: 11px 13px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--forest-900);
  color: #B9CCBE;
  border-top: 1px solid rgba(199,154,46,.3);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(26px, 4vw, 52px);
  padding-block: clamp(40px, 5vw, 64px);
}
.site-footer h4 {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 500;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; min-width: 0; }
.site-footer a { color: #C6D6C9; text-decoration: none; font-size: .92rem; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 42ch; }
.site-footer__brand p { font-size: .92rem; color: #9DB4A4; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8CA595;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  position: fixed;
  z-index: 200;
  background: var(--gold-400);
  color: #22190A;
  padding: 10px 16px;
  border-radius: var(--rad);
  font-weight: 600;
}
