/* Home page */
.hero-wrap { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero .display { max-width: 14ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.hero__ask { margin: 1.4rem 0 0; font-size: 14px; color: var(--ink-3); }
.hero__ask a { color: var(--accent); text-decoration: none; font-weight: 600; }
.hero__ask a:hover { text-decoration: underline; }
.hero__index {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 2.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.hero__index b { color: var(--ink); font-weight: 600; }

/* Flow: perception → self-talk → relationships → outcomes */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem; }
.flow__node { position: relative; padding: 1.25rem 1.2rem 1.35rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.flow__node:not(:last-child)::after {
  content: "→"; position: absolute; right: -1.62rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 18px; color: var(--accent);
}
.flow__num { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.flow__title { margin: .35rem 0; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.flow__desc { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.flow-loop {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3);
}
.flow-loop::before, .flow-loop::after { content: ""; flex: 1; border-top: 1px dashed var(--rule-strong); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__node:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; gap: 1.9rem; }
  .flow__node:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -1.62rem; transform: translateX(-50%); }
  .flow__node:nth-child(2)::after { display: block; }
}
.claims { margin-top: clamp(2rem, 4vw, 2.75rem); }
.claim .evidence { margin-bottom: .8rem; }
.claim h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.claim p { margin: 0; font-size: 15px; color: var(--ink-2); }
.claim a { color: var(--accent); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.claim a:hover { text-decoration: underline; }

/* Stage staircase */
.stage-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; align-items: end; }
.stage-step { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.stage-step__bar { height: calc(var(--h) * 1px); background: var(--s); border-radius: 3px 3px 0 0; transition: filter .2s; }
.stage-step:hover .stage-step__bar { filter: brightness(1.1); }
.stage-step__body { min-height: 176px; padding: 1rem; background: var(--surface); border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); transition: border-color .15s; }
.stage-step:hover .stage-step__body { border-color: var(--ink); }
.stage-step__n { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); }
.stage-step__name { margin: .3rem 0 .45rem; font-family: var(--font-serif); font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.stage-step__view { margin: 0; font-size: 14px; color: var(--ink-2); }
.stage-axis { display: flex; justify-content: space-between; margin-top: .9rem; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-3); }
@media (max-width: 860px) {
  .stage-steps { grid-template-columns: 1fr; gap: .5rem; }
  .stage-step { flex-direction: row; align-items: stretch; }
  .stage-step__bar { height: auto; width: calc(var(--h) * .3px); min-width: 12px; border-radius: 3px 0 0 3px; }
  .stage-step__body { flex: 1; min-height: 0; border-top: 1px solid var(--rule); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
}

/* Wound cards */
.wound-card { border-top: 3px solid var(--w); display: flex; flex-direction: column; }
.wound-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.wound-card .glyph { width: 34px; height: 34px; }
.wound-card__loss { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.wound-card__fear { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px dashed var(--rule); font-family: var(--font-serif); font-size: 15px; color: var(--ink); }
.wound-card__foot { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }

/* Needs map preview */
.needs-tier + .needs-tier { margin-top: 1.75rem; }
.needs-tier__label { margin: 0 0 .75rem; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.need-card { border-left: 3px solid var(--n); }
.need-card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.need-card .glyph { width: 30px; height: 30px; }
.need-card .card__title small { margin-left: .45rem; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--ink-3); }
.need-card__quote { margin: .85rem 0 0; padding-top: .75rem; border-top: 1px dashed var(--rule); font-family: var(--font-serif); font-size: 14.5px; color: var(--ink); }
.needs-circles-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
  margin-top: 1.75rem; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  font-size: 14px;
}
.needs-circles-strip__title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.needs-circles-strip ol { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; list-style: none; margin: 0; padding: 0; color: var(--ink-2); }
.needs-circles-strip b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: .4rem; border: 1px solid var(--rule-strong); border-radius: 50%; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.needs-circles-strip a { margin-left: auto; color: var(--accent); font-weight: 600; text-decoration: none; }
.needs-circles-strip a:hover { text-decoration: underline; }
@media (max-width: 700px) { .needs-circles-strip a { margin-left: 0; } }

/* Decision pillars preview */
.pillar-card { border-left: 3px solid var(--p); }
.pillar-card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pillar-card .glyph { width: 30px; height: 30px; }
.pillar-card__q { margin: .1rem 0 .55rem; font-family: var(--font-serif); font-size: 15.5px; color: var(--ink); }
.layers-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
  margin-top: 1.75rem; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  font-size: 14px;
}
.layers-strip__title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.layers-strip ol { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; color: var(--ink-2); }
.layers-strip b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: .4rem; border: 1px solid var(--rule-strong); border-radius: 50%; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.layers-strip a { margin-left: auto; color: var(--accent); font-weight: 600; text-decoration: none; }
.layers-strip a:hover { text-decoration: underline; }
@media (max-width: 700px) { .layers-strip a { margin-left: 0; } }

/* Tool cards */
.tool-card { display: flex; flex-direction: column; min-height: 100%; }
.tool-card__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule-strong); border-radius: 50%; color: var(--accent); margin-bottom: 1rem; }
.tool-card__icon svg { width: 22px; height: 22px; }
.tool-card .card__foot { margin-top: auto; padding-top: 1.1rem; }

/* Notes list */
.note-list { border-top: 1px solid var(--rule); }
.note-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 160px; gap: 1.5rem; align-items: baseline;
  padding: 1.4rem 0; border-bottom: 1px solid var(--rule);
  color: inherit; text-decoration: none;
}
.note-row:hover .note-row__title { color: var(--accent); }
.note-row__n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.note-row__title { margin: 0 0 .3rem; font-family: var(--font-serif); font-size: 1.22rem; font-weight: 700; line-height: 1.4; transition: color .15s; }
.note-row__desc { margin: 0; font-size: 15px; color: var(--ink-2); }
.note-row__meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3); text-align: right; }
@media (max-width: 700px) {
  .note-row { grid-template-columns: 1fr; gap: .35rem; }
  .note-row__meta { text-align: left; }
}

/* Method */
.method-card h3 { font-size: 1.1rem; margin: .9rem 0 .4rem; }
.method-card p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 24px 24px;
}
.cta-band > * { position: relative; }
.cta-band .eyebrow { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.cta-band h2 { margin: 0 0 .5rem; color: var(--paper); font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 52ch; }
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }

/* Generated hero art behind the headline (assets/img/gen/home-hero) */
.hero-wrap { isolation: isolate; }
.hero-wrap__art { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-wrap__art .hero-art__media { position: absolute; inset: 0; }
.hero-wrap__art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.hero-wrap__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--paper) 88%, transparent) 0%, color-mix(in srgb, var(--paper) 0%, transparent) 30%),
    linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 80%, transparent) 34%, color-mix(in srgb, var(--paper) 0%, transparent) 64%);
}
@media (max-width: 900px) {
  .hero-wrap__art { opacity: .42; }
  .hero-wrap__art::after { background: linear-gradient(180deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 55%, transparent) 55%, color-mix(in srgb, var(--paper) 0%, transparent) 100%); }
}
:root[data-theme="dark"] .hero-wrap__art .hero-art__media { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(1.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-wrap__art .hero-art__media { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(1.05); } }

.flow__img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 .9rem;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
}

/* Keep the hero caption legible over the art */
.hero__ask {
  position: relative; padding: .7rem .9rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--rule); border-radius: 2px;
}
@media (max-width: 900px) {
  .hero-wrap__art::after { background: linear-gradient(180deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 88%, transparent) 60%, color-mix(in srgb, var(--paper) 0%, transparent) 100%); }
}

/* ---------- Generated illustrations (P2) ---------- */
/* Hero art direction: the <picture> swaps in the portrait home-hero-mobile below 900px; its motif sits in the lower half */
@media (max-width: 900px) {
  .hero-wrap__art img { object-position: center bottom; }
}
/* Tool cards: native 3:2 art above the icon */
.tool-card .card-img { --card-ar: 3 / 2; }
/* CTA band: decorative 14-blot art, motifs on the right, behind the text (beats `.cta-band > *`) */
.cta-band > .cta-band__art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center; opacity: .6; pointer-events: none;
}
@media (max-width: 700px) { .cta-band > .cta-band__art { opacity: .3; } }
/* the band turns light in dark theme (--ink flips), so flip the art with it */
:root[data-theme="dark"] .cta-band > .cta-band__art { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band > .cta-band__art { filter: invert(1) hue-rotate(180deg); } }
