/* ============================================================
   IXD Innovation Practice : V1
   Kmart Innovation HTML design system.
   DM Sans · brand palette · geometric identity.
   Ref: Productivity Centre/Kmart_Design.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..800;1,9..40,300..800&display=swap');

:root {
  /* Brand backgrounds / fills */
  --red:    #B0552F;
  --purple: #5C5F9E;
  --teal:   #2E5E4E;
  --blue:   #3D6B99;
  --orange: #B3742A;
  --gold:   #7A6A34;
  --pink:   #96536E;
  --green:  #44584A;
  --cream:  #F2F0EA;
  --black:  #1a1a1a;
  --white:  #FFFFFF;

  /* Text on dark */
  --light-blue:   #A3BBD4;
  --light-purple: #B7B9DD;
  --light-pink:   #CFA3B8;
  --light-gold:   #D9C27E;
  --light-sage:   #A8C4A0;
  --light-rose:   #D4A899;
  --on-dark:       #E8E8E8;
  --on-dark-muted: #A0A0A0;

  /* Text on cream */
  --on-cream:       #1a1a1a;
  --on-cream-muted: #555555;
  --text-teal:   #2E5E4E;
  --text-green:  #44584A;
  --text-orange: #A85400;
  --text-red:    #A01018;
  --text-blue:   #005A9E;
  --text-purple: #5A3D8F;

  /* Aliases used across markup */
  --paper:   var(--cream);
  --paper-2: #EBE8DF;
  --paper-3: var(--on-dark);
  --ink:     var(--black);
  --ink-2:   var(--on-cream-muted);
  --ink-3:   #8A8576;
  --line:      rgba(26,26,26,0.14);
  --line-soft: rgba(26,26,26,0.07);
  --signal:      var(--red);
  --signal-deep: var(--text-red);
  --signal-tint: rgba(200,24,36,0.07);

  /* Confidence ladder (Kmart-aligned maturity scale) */
  --c-assumed:      #8A8576;
  --c-indicative:   var(--gold);
  --c-demonstrated: var(--blue);
  --c-confirmed:    var(--green);
  --c-disproven:    var(--red);

  --display: 'DM Sans', system-ui, sans-serif;
  --body:    'DM Sans', system-ui, sans-serif;
  --mono:    'DM Sans', system-ui, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--on-cream);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.18rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
.wrap--narrow { max-width: 820px; }
section { position: relative; z-index: 2; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
.display { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem); line-height: 1.04; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); font-weight: 800; }
h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.005em; }
.serif-em { color: var(--red); font-style: normal; }
.band--ink .serif-em { color: var(--light-rose); }

p { margin: 0 0 1.05em; max-width: 66ch; }
.lead { font-size: clamp(1.18rem, 1.05rem + 0.7vw, 1.5rem); line-height: 1.45; color: var(--on-cream); font-weight: 400; }
strong { font-weight: 700; }

/* Eyebrow label */
.eyebrow {
  font-family: var(--display);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-red);
  display: inline-flex; align-items: center; gap: 0.7em;
}
.eyebrow--muted { color: var(--ink-3); }
.eyebrow::before { content: ""; width: 1.8em; height: 2px; background: currentColor; opacity: 0.85; }
.eyebrow.no-rule::before { display: none; }

.section-no { font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; color: var(--ink-3); }

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

/* ---------- Header / Nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__inner { max-width: var(--maxw); margin-inline: auto; padding: 0.8rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__mark { font-family: var(--display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; background: var(--red); color: #fff; padding: 0.32em 0.55em; border-radius: 3px; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1; }
.brand__name small { font-weight: 500; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); display: block; line-height: 1; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.7rem); }
.nav a { font-family: var(--display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--on-cream-muted); padding: 0.3em 0; position: relative; white-space: nowrap; transition: color 0.18s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--red); transition: right 0.26s cubic-bezier(.2,.7,.3,1); }
.nav a:hover { color: var(--black); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--black); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 3px; padding: 0.45em 0.65em; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--black); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); flex-direction: column; align-items: flex-start; gap: 0.3rem; background: var(--white); border-left: 1px solid var(--line); padding: 5rem var(--gutter) 2rem; transform: translateX(100%); transition: transform 0.3s cubic-bezier(.2,.7,.3,1); z-index: 60; }
  .nav a { font-size: 0.95rem; padding: 0.55em 0; }
  body.nav-open .nav { transform: translateX(0); box-shadow: -30px 0 80px rgba(0,0,0,0.14); }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(26,26,26,0.32); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 55; }
}

/* ---------- Geometric shapes ---------- */
.geo { position: absolute; z-index: 1; pointer-events: none; }
.geo-circle { border-radius: 50%; }
.geo-d { border-radius: 0 9999px 9999px 0; }
.geo-d-left { border-radius: 9999px 0 0 9999px; }
.geo-tri { width: 0 !important; height: 0 !important; background: transparent !important; border-style: solid; }
.geo-sq { border-radius: 6px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 6vw, 6.5rem) 0 clamp(2.5rem, 4vw, 4rem); overflow: hidden; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.8rem 2.2rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.hero__meta span { font-family: var(--display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.hero__meta b { color: var(--black); font-weight: 700; }

/* ---------- Buttons / links ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.55em; font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding: 0.85em 1.4em; border-radius: 4px; cursor: pointer; transition: transform 0.16s ease, background 0.18s ease, color 0.18s ease; }
.btn--primary { background: var(--black); color: #fff; border: 1px solid var(--black); }
.btn--primary:hover { background: var(--red); border-color: var(--red); }
.btn--ghost { background: transparent; color: var(--black); border: 1px solid var(--black); }
.btn--ghost:hover { background: var(--black); color: #fff; }
.band--ink .btn--ghost { color: var(--on-dark); border-color: var(--on-dark); }
.band--ink .btn--ghost:hover { background: var(--on-dark); color: var(--black); }
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ---------- Bands ---------- */
.band { padding: clamp(3.5rem, 7vw, 6.5rem) 0; overflow: hidden; }
.band--alt { background: var(--white); border-block: 1px solid var(--line); }
.band--ink { background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%); color: var(--on-dark); }
.band--ink h1, .band--ink h2, .band--ink h3, .band--ink h4 { color: #fff; }
.band--ink .eyebrow { color: var(--light-rose); }
.band--ink .rule { background: rgba(255,255,255,0.16); }
.band--ink .dim { color: var(--on-dark-muted); }
.band--black { background: var(--black); color: var(--on-dark); }
.band--black h1, .band--black h2, .band--black h3, .band--black h4 { color: #fff; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 780px; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 + p { margin-top: 1rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(0.9rem, 1.8vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); padding: clamp(1.3rem, 2.2vw, 1.85rem); position: relative; transition: transform 0.22s ease, box-shadow 0.22s ease; }
.card--raised:hover { transform: translateY(-4px); box-shadow: 0 16px 38px -24px rgba(26,26,26,0.45); }
.card__no { font-family: var(--display); font-weight: 700; font-size: 0.8rem; color: var(--text-red); letter-spacing: 0.1em; text-transform: uppercase; }
.card h3 { margin: 0.6rem 0 0.45rem; }
.card h4 { margin: 0.5rem 0 0.4rem; }
.card p { font-size: 0.98rem; color: var(--on-cream-muted); margin-bottom: 0; line-height: 1.45; }
.card .q { font-weight: 700; font-size: 1.02rem; color: var(--black); display: block; margin-bottom: 0.45rem; }

/* brand-tinted card variants (cycle colors for rhythm) */
.card.c-teal   { border-left-color: var(--teal); }   .card.c-teal   .card__no { color: var(--text-teal); }
.card.c-blue   { border-left-color: var(--blue); }   .card.c-blue   .card__no { color: var(--text-blue); }
.card.c-purple { border-left-color: var(--purple); } .card.c-purple .card__no { color: var(--text-purple); }
.card.c-green  { border-left-color: var(--green); }  .card.c-green  .card__no { color: var(--text-green); }
.card.c-orange { border-left-color: var(--orange); } .card.c-orange .card__no { color: var(--text-orange); }
.card.c-gold   { border-left-color: var(--gold); }   .card.c-gold   .card__no { color: var(--gold); }

/* cards on dark */
.band--ink .card, .band--black .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); border-left-color: var(--light-rose); }
.band--ink .card p, .band--black .card p { color: var(--on-dark-muted); }
.band--ink .card .q { color: #fff; }
.band--ink .card__no, .band--black .card__no { color: var(--light-rose); }
.band--ink .card.c-teal { border-left-color: var(--light-blue); }   .band--ink .card.c-teal .card__no { color: var(--light-blue); }
.band--ink .card.c-blue { border-left-color: var(--light-blue); }   .band--ink .card.c-blue .card__no { color: var(--light-blue); }
.band--ink .card.c-purple { border-left-color: var(--light-purple); } .band--ink .card.c-purple .card__no { color: var(--light-purple); }
.band--ink .card.c-green { border-left-color: var(--light-sage); }  .band--ink .card.c-green .card__no { color: var(--light-sage); }
.band--ink .card.c-orange { border-left-color: var(--light-gold); } .band--ink .card.c-orange .card__no { color: var(--light-gold); }
.band--ink .card.c-gold { border-left-color: var(--light-gold); }   .band--ink .card.c-gold .card__no { color: var(--light-gold); }

/* ---------- The Arc / flow ---------- */
.arc { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; margin-top: 2.5rem; }
.arc__phase { padding: clamp(1.4rem,2.5vw,2rem); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); background: var(--white); }
.arc__phase:nth-child(3) { border-top-color: var(--teal); }
.arc__phase:nth-child(5) { border-top-color: var(--green); }
.arc__phase .ph-no { font-family: var(--display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; }
.arc__phase h3 { font-size: clamp(1.5rem,1.2rem+1.3vw,2.1rem); margin: 0.35rem 0 0.55rem; }
.arc__phase p { font-size: 0.95rem; color: var(--on-cream-muted); margin: 0; }
.arc__phase .ends { display: block; margin-top: 1rem; font-weight: 700; font-size: 0.84rem; color: var(--text-red); line-height: 1.4; }
.arc__phase:nth-child(3) .ends { color: var(--text-teal); }
.arc__phase:nth-child(5) .ends { color: var(--text-green); }
.arc__arrow { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ink-3); font-size: 1.5rem; padding: 0 0.5rem; }
.arc__thread { margin-top: 1.4rem; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--on-cream-muted); }
.band--ink .arc__phase { background: rgba(255,255,255,0.04); }
.band--ink .arc__phase p { color: var(--on-dark-muted); }
@media (max-width: 760px) { .arc { grid-template-columns: 1fr; gap: 0.5rem; } .arc__arrow { transform: rotate(90deg); padding: 0.2rem 0; } }

/* ---------- Confidence ladder ---------- */
.ladder { display: grid; gap: 0; margin-top: 2rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.rung { display: grid; grid-template-columns: 58px 1fr; align-items: stretch; border-bottom: 1px solid var(--line); transition: background 0.18s ease; }
.rung:last-child { border-bottom: 0; }
.rung:hover { background: var(--cream); }
.rung__lvl { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; color: #fff; font-size: 0.92rem; }
.rung__body { padding: 1.05rem 1.4rem; }
.rung__body h4 { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.rung__body h4 span.tag { font-family: var(--display); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); padding: 0.2em 0.55em; border-radius: 3px; }
.rung__body p { font-size: 0.96rem; color: var(--on-cream-muted); margin: 0.3rem 0 0; line-height: 1.45; }
.lvl-1 .rung__lvl { background: var(--c-assumed); }
.lvl-2 .rung__lvl { background: var(--c-indicative); }
.lvl-3 .rung__lvl { background: var(--c-demonstrated); }
.lvl-4 .rung__lvl { background: var(--c-confirmed); }
.lvl-x .rung__lvl { background: var(--c-disproven); }
.lvl-x { background: repeating-linear-gradient(45deg, var(--white), var(--white) 8px, var(--cream) 8px, var(--cream) 16px); }

/* ---------- 2x2 matrix ---------- */
.matrix { display: grid; grid-template-columns: auto 1fr 1fr; grid-template-rows: auto 1fr 1fr; gap: 0; margin-top: 2rem; }
.matrix__corner {}
.matrix__col { font-family: var(--display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: 0.6rem; }
.matrix__row { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; justify-content: center; padding: 0.6rem 0.3rem; }
.cell { border: 1px solid var(--line); padding: 1.2rem; min-height: 140px; background: var(--white); }
.cell h4 { margin: 0 0 0.3rem; }
.cell .tag { font-family: var(--display); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; display: inline-block; margin-bottom: 0.5rem; padding: 0.2em 0.55em; border-radius: 3px; }
.cell p { font-size: 0.9rem; color: var(--on-cream-muted); margin: 0; line-height: 1.42; }
.cell--crit { background: rgba(200,24,36,0.06); border-color: var(--red); }
.cell--crit .tag { background: var(--red); color: #fff; }
.cell--mon .tag, .cell--park .tag, .cell--supp .tag { background: var(--paper-2); color: var(--on-cream-muted); }
@media (max-width: 640px) { .matrix__row { writing-mode: horizontal-tb; transform: none; } .matrix { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto auto; } .matrix__corner, .matrix__col { display: none; } }

/* ---------- Steps ---------- */
.steps { margin-top: 2rem; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__no { font-family: var(--display); font-weight: 800; font-size: 0.92rem; color: var(--red); padding-top: 0.3rem; }
.step h4 { margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--on-cream-muted); font-size: 0.98rem; line-height: 1.45; }
.formula { font-weight: 500; font-size: 1.02rem; line-height: 1.5; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--red); padding: 0.85rem 1.15rem; margin: 0.9rem 0 0; border-radius: 0 4px 4px 0; }
.formula b { font-weight: 700; background: rgba(200,24,36,0.08); padding: 0.05em 0.4em; border-radius: 3px; color: var(--text-red); }
.band--ink .formula { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); border-left-color: var(--light-rose); color: var(--on-dark); }
.band--ink .formula b { background: rgba(232,160,168,0.16); color: #fff; }

/* ---------- Statement (was pull quote) ---------- */
.pull { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.7rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; }
.pull .em { color: var(--red); }
.band--ink .pull .em { color: var(--light-rose); }

/* ---------- Artefact list ---------- */
.artefact { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: baseline; padding: 1.35rem 0; border-top: 1px solid var(--line); transition: padding-left 0.22s ease; text-decoration: none; }
.artefact:last-child { border-bottom: 1px solid var(--line); }
a.artefact:hover { padding-left: 0.6rem; }
.artefact__no { font-family: var(--display); font-weight: 800; font-size: 0.84rem; color: var(--red); }
.artefact h3 { font-size: 1.2rem; }
.artefact p { font-size: 0.97rem; color: var(--on-cream-muted); margin: 0.3rem 0 0; max-width: 64ch; line-height: 1.45; }
.artefact__tag { font-family: var(--display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); padding: 0.3em 0.65em; border-radius: 3px; white-space: nowrap; }
.artefact__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; flex-shrink: 0; }
.artefact__dl { font-family: var(--display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--red); padding: 0.32em 0.7em; border-radius: 3px; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.45em; }
a.artefact:hover .artefact__dl { background: var(--signal-deep); }
.artefact__dl .dl-arrow { font-size: 0.9em; }

/* ---------- Figure / exhibit plate ---------- */
.figure { margin: 0; }
.figure__plate { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #1a1a1a; box-shadow: 0 28px 56px -38px rgba(26,26,26,0.5); line-height: 0; }
.figure__plate img { width: 100%; height: auto; display: block; }
.figure figcaption { font-family: var(--display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-3); margin-top: 0.85rem; display: flex; gap: 0.6rem; align-items: baseline; }
.figure figcaption b { color: var(--text-red); font-weight: 700; }
.band--ink .figure__plate { border-color: rgba(255,255,255,0.16); box-shadow: none; }
.band--ink .figure figcaption { color: var(--on-dark-muted); }
.band--ink .figure figcaption b { color: var(--light-rose); }

/* ---------- Footer ---------- */
.site-foot { background: var(--black); color: var(--on-dark-muted); padding: clamp(3rem,5vw,4.5rem) 0 2.5rem; }
.site-foot a { color: var(--on-dark); text-decoration: none; }
.site-foot .foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-foot h4 { color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-foot ul a { font-size: 0.92rem; color: var(--on-dark-muted); }
.site-foot ul a:hover { color: var(--light-rose); }
.site-foot .foot-brand { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: #fff; }
.site-foot .foot-note { font-weight: 500; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--on-dark-muted); margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 700px) { .site-foot .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Page intro ---------- */
.page-intro { padding: clamp(3rem,5vw,5rem) 0 clamp(1.5rem,3vw,2.2rem); overflow: hidden; }
.page-intro .display { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4.2rem); }
.breadcrumb { font-family: var(--display); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.3rem; }
.breadcrumb a { text-decoration: none; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--text-red); }

/* Prose */
.prose p { color: var(--on-cream-muted); }
.prose h3 { margin-top: 2.4rem; margin-bottom: 0.7rem; color: var(--black); }
.prose ul { padding-left: 1.2rem; color: var(--on-cream-muted); }
.prose li { margin-bottom: 0.45rem; }
.callout { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 0 4px 4px 0; padding: 1.15rem 1.5rem; margin: 1.5rem 0; }
.callout .eyebrow { margin-bottom: 0.55rem; }
.callout p { margin: 0; color: var(--black); }
.band--ink .callout { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); border-left-color: var(--light-rose); }
.band--ink .callout p { color: var(--on-dark); }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.pill { font-family: var(--display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.03em; color: var(--on-cream-muted); background: var(--white); border: 1px solid var(--line); padding: 0.4em 0.75em; border-radius: 999px; text-decoration: none; }
a.pill:hover { border-color: var(--red); color: var(--text-red); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(.2,.7,.3,1), transform 0.6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal[data-d="4"] { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Misc */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.measure { max-width: 62ch; }
.dim { color: var(--on-cream-muted); }
.next-strip { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: clamp(2rem,4vw,3rem) 0; }
.next-strip a { text-decoration: none; }
.next-strip .nxt-label { font-family: var(--display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.next-strip .nxt-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem,1.1rem+1.3vw,2rem); letter-spacing: -0.01em; }

/* ============================================================
   V1.1 : numbered figure illustrations
   ============================================================ */
.fig { margin: 2.6rem 0; }
.fig--tight { margin: 1.8rem 0; }
.fig__num {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--display); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
  background: var(--red); padding: 0.32em 0.75em; border-radius: 3px; margin-bottom: 0.9rem;
}
.fig__frame {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  box-shadow: 0 18px 44px -32px rgba(26,26,26,0.42);
}
.fig__frame svg { width: 100%; height: auto; display: block; overflow: visible; }
.fig__cap { font-size: 0.93rem; color: var(--on-cream-muted); margin: 0.9rem 0 0; max-width: 66ch; line-height: 1.5; }
.fig__cap b { color: var(--ink); font-weight: 700; }
.band--alt .fig__frame { background: var(--cream); }
.band--ink .fig__frame { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); box-shadow: none; }
.band--ink .fig__cap { color: var(--on-dark-muted); }
.band--ink .fig__cap b { color: #fff; }

/* SVG type + helpers.
   IMPORTANT: only set font-family here, never `fill`. A `fill` on `.fig svg text`
   overrides every fill="..." presentation attribute on the SVG text (CSS rules beat
   presentation attributes), which would force all figure text to one colour. Each
   <text> carries its own fill attribute or inherits a group fill instead. */
.fig svg text { font-family: var(--display); }
.svg-label { font-weight: 700; }
.svg-mono { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
