/* =============================================================================
   Substrate — "Dusk Ledger"
   Built as if the useportal.net team had taken Substrate as a client.

   The Portal grammar being carried over, deliberately:
     · a painted world at both ends, an almost empty page in between
     · one narrow centred column of type; only pictures may break it
     · a high-contrast editorial serif set at line-height 1.00, sentence case,
       nowhere any uppercase or letterspaced label
     · one enormous jump in the type scale (58 / 40 → 19) and nothing between
     · every physical object sits 1–4° off true
     · the button recipe: 50px radius, inset top light-catch, hairline ring,
       short drop shadow — and hover BRIGHTENS, it never lifts
     · dotted hairline separators exactly as wide as the text column
     · rotate-and-settle entrances instead of fade-up
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* ground — warm oat paper, not a screen grey */
  --ground:        #f5ece0;
  --ground-deep:   #e5d6c3;   /* sampled from the top edge of footer.webp */
  --card:          #fdf9f2;
  --well:          #ebdfcd;

  /* ink — sampled from the top of hero.webp */
  --ink:           #101f19;
  --ink-sky:       #10191a;
  --ink-panel:     #16281f;

  --ink-90:        rgba(16, 31, 25, .92);
  --ink-75:        rgba(16, 31, 25, .74);
  --ink-58:        rgba(16, 31, 25, .58);
  --ink-38:        rgba(16, 31, 25, .38);
  --rule:          rgba(16, 31, 25, .17);
  --rule-soft:     rgba(16, 31, 25, .10);

  --cream:         #fdf9f2;
  --cream-75:      rgba(253, 249, 242, .76);
  --cream-52:      rgba(253, 249, 242, .55);
  --sage:          #b9c3ac;
  --sage-rule:     rgba(185, 195, 172, .22);

  /* the earth accents. saturated colour lives in illustrations, chips and
     the one accent — never in page chrome, never as a gradient. */
  --amber:         #c28b3e;
  --amber-lit:     #d29a49;
  --amber-band:    #bc965c;   /* the horizon line in hero.webp */
  --moss:          #5f7a55;
  --forest:        #16452f;
  --soil:          #6a4a30;
  --stone:         #8c8271;

  /* geometry */
  --col:           660px;     /* the text column. nothing widens it. */
  --wide:          1180px;    /* the only width pictures may take */
  --gutter:        clamp(20px, 5vw, 40px);
  --hero-h:        1252px;
  --sky-x:         30%;              /* keeps the mast and the amber band in frame */
  --panel-top:     648px;
  --panel-w:       940px;
  /* --vw is written by JS as documentElement.clientWidth so the panel's copy of
     the sky lines up with the page's copy to the pixel, scrollbar included. */
  --vw:            100vw;
  --panel-w-eff:   min(var(--panel-w), calc(var(--vw) - var(--gutter) * 2));
  --panel-x:       calc((var(--vw) - var(--panel-w-eff)) / 2);

  --ease-settle:   cubic-bezier(.16, 1, .3, 1);
  --ease-soft:     cubic-bezier(.32, .72, 0, 1);

  --shadow-pill:
    inset 0 1px 0 0 rgba(255, 255, 255, .95),
    0 0 0 1px rgba(16, 31, 25, .17),
    0 3px 2px 0 rgba(16, 31, 25, .10);
  --shadow-card:
    0 0 0 1px rgba(16, 31, 25, .07),
    0 1px 1px rgba(16, 31, 25, .04),
    0 10px 26px -14px rgba(16, 31, 25, .40);
  --shadow-lift:
    0 0 0 1px rgba(16, 31, 25, .09),
    0 2px 2px rgba(16, 31, 25, .05),
    0 26px 50px -22px rgba(16, 31, 25, .48);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;        /* Portal does not hijack the scroll. neither do we */
}

body {
  margin: 0;
  /* the canvas colour is the base of the closing mountain, so the page can only
     ever end IN the painting — never on a strip of paper below it */
  background: #222d23;
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.34px;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: rgba(194, 139, 62, .28); }

.u-skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 18px; border-radius: 50px;
  background: var(--cream); color: var(--ink);
  font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow-pill);
  transition: top .22s var(--ease-settle);
}
.u-skip:focus-visible { top: 16px; }

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

/* --------------------------------------------------------------- lockups -- */
/* Every heading is the serif at line-height 1.00. That single decision is
   most of Portal's voice — lines nearly touch, so it reads as print. */
.t-display, .t-section {
  font-family: Fraunces, "Perfectly Nineties", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-optical-sizing: none;
  letter-spacing: -.4px;
  margin: 0;
  text-wrap: balance;
}
.t-display { font-size: 58px; line-height: 1.00; }
.t-section { font-size: 40px; line-height: 1.00; letter-spacing: -.2px; }

.t-feature {
  margin: 0;
  font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.38px;
}
.t-body   { margin: 0; font-size: 17px; line-height: 1.35; color: var(--ink-75); }
.t-strong { font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.t-meta   { font-size: 14px; line-height: 1.3; font-weight: 500; letter-spacing: -.28px; }
.t-cap    { font-size: 12.5px; line-height: 1.35; letter-spacing: -.2px; color: var(--ink-58); }
.t-micro  { font-size: 11px; line-height: 1.2; letter-spacing: -.05px; font-weight: 500; }
.t-num {
  font-family: Fraunces, Georgia, serif; font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.t-hand {
  font-family: Caveat, "Bradley Hand", cursive;
  font-size: 21px; line-height: 1.05; font-weight: 600; letter-spacing: 0;
  color: var(--soil);
}

/* ---------------------------------------------------------------- layout -- */
.shell   { position: relative; overflow: hidden; }
.col     { width: min(var(--col), 100% - var(--gutter) * 2); margin-inline: auto; }
.wide    { width: min(var(--wide), 100% - var(--gutter) * 2); margin-inline: auto; }
.centred { text-align: center; }

/* the separator. exactly as wide as the column, never wider. */
.rule {
  width: min(var(--col), 100% - var(--gutter) * 2);
  margin: 0 auto;
  height: 1px;
  border: 0;
  border-top: 1px dotted var(--rule);
  opacity: .9;
}

/* ----------------------------------------------------------------- pills -- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px 15px;
  border: 0; border-radius: 50px;
  font-size: 17px; font-weight: 600; letter-spacing: -.34px;
  text-decoration: none; cursor: pointer;
  background: var(--cream); color: #1e3a2e;
  box-shadow:
    inset 0 1px 0 0 #ffffff,
    0 0 0 1px rgba(16, 31, 25, .18),
    0 3px 2px 0 rgba(6, 14, 10, .18);
  /* hover is a brightening only. no lift, no scale, no shadow growth. */
  transition: background-color .22s ease, color .22s ease;
}
.pill:hover { background: #ffffff; }

.pill--amber {
  background: var(--amber); color: #12211a;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .55),
    0 0 0 1px rgba(16, 31, 25, .20),
    0 3px 2px 0 rgba(16, 31, 25, .14);
}
.pill--amber:hover { background: var(--amber-lit); }

.pill--sm { padding: 9px 18px 10px; font-size: 14px; }

/* a text link that stays a text link */
.tlink {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink-38);
  padding-bottom: 1px;
  transition: border-color .2s ease, color .2s ease;
}
.tlink:hover { border-color: var(--ink); }

/* =============================================================================
   0 — HERO. The painting is the page.
   ========================================================================== */
.hero {
  position: relative;
  /* --sky-h is declared HERE, not on :root: a var() inside a custom property is
     substituted where the property is declared, so a per-hero --hero-h has to
     be resolved on the hero itself. */
  --sky-h: calc(var(--hero-h) + 130px);
  height: var(--hero-h);
  overflow: hidden;
  background: var(--ink-sky);
  isolation: isolate;
}

.hero__sky, .panel__sky {
  position: absolute;
  width: var(--vw);
  height: var(--sky-h);
  max-width: none;
  object-fit: cover;
  object-position: var(--sky-x) 50%;
  transform: translate3d(0, var(--parallax, 0px), 0);
  will-change: transform;
}
.hero__sky { top: 0; left: 0; z-index: 0; }

/* darkens the upper sky just enough to hold 58px cream type without turning
   the painting into a scrim. no blend modes: this hero must never jank. */
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(10, 20, 17, .58) 0%,
      rgba(10, 20, 17, .34) 26%,
      rgba(10, 20, 17, .06) 46%,
      rgba(10, 20, 17, 0) 58%);
}

/* the sensor field. reads as stars at a glance, as a monitoring graph on a
   second look. eight of the points breathe on independent phases. */
.hero__stars {
  position: absolute; top: 0; left: 50%; z-index: 2;
  width: max(1560px, 108vw); height: 460px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  animation: starsIn 1.6s var(--ease-settle) .35s forwards;
}
@keyframes starsIn { to { opacity: 1; } }
.hero__stars .lnk { stroke: var(--sage); stroke-width: 1; opacity: .10; }
.hero__stars .pt  { fill: var(--sage); opacity: .30; }
.hero__stars .pt--live { animation: breathe var(--dur, 6s) ease-in-out var(--del, 0s) infinite; }
@keyframes breathe {
  0%, 100% { opacity: .10; }
  50%      { opacity: .48; }
}

.hero__inner {
  position: relative; z-index: 3;
  padding-top: 190px;
}

.hero h1 {
  color: var(--cream);
  width: min(760px, 100% - var(--gutter) * 2);   /* breaks the column, as Portal's does */
  margin: 0 auto;
  text-shadow: 0 1px 30px rgba(8, 18, 14, .38);
}
.hero__lead {
  width: min(600px, 100% - var(--gutter) * 2);
  margin: 40px auto 0;
  color: var(--cream-75);
  font-size: 17px; line-height: 1.5;
  text-shadow: 0 1px 20px rgba(8, 18, 14, .40);
}
.hero__cta { margin-top: 42px; }

.hero__topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  height: 118px;
  display: flex; align-items: center;
  padding-inline: clamp(20px, 4.4vw, 64px);
  /* NOT sticky. It scrolls away with the painting and never comes back —
     what returns further down is a different, smaller object. */
}

/* --------------------------------------------------------------- wordmark - */
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark__glyph {
  display: inline-block; overflow: hidden;
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 6px rgba(6, 14, 10, .28);
}
.mark__word {
  font-family: Fraunces, Georgia, serif; font-weight: 400;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: 27px; line-height: 1; letter-spacing: -.4px;
}
.mark--onink .mark__word { color: var(--cream); }

/* ------------------------------------------------------------------- nav -- */
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 16px; border-radius: 50px;
  font-size: 15px; font-weight: 500; letter-spacing: -.3px;
  color: var(--cream-75); text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] {
  background: rgba(253, 249, 242, .15);
  color: var(--cream);
}
.nav__burger { display: none; }

/* the returning header. a small object, not a bar — it belongs to the same
   family as the buttons, so it reads as part of the furniture. */
.railpill {
  position: fixed; z-index: 90;
  top: 16px; left: 50%;
  display: flex; align-items: center; gap: 4px;
  padding: 7px 7px 7px 16px;
  border-radius: 50px;
  background: var(--card);            /* near-opaque. no backdrop-filter on a fixed bar. */
  box-shadow:
    inset 0 1px 0 0 #ffffff,
    0 0 0 1px rgba(16, 31, 25, .14),
    0 8px 22px -10px rgba(16, 31, 25, .45);
  transform: translate3d(-50%, -22px, 0) rotate(-1.4deg);
  opacity: 0; visibility: hidden;
  transition:
    opacity .42s var(--ease-settle),
    transform .58s var(--ease-settle),
    visibility 0s linear .42s;
}
.railpill.is-on {
  opacity: 1; visibility: visible;
  transform: translate3d(-50%, 0, 0) rotate(0deg);
  transition-delay: 0s, 0s, 0s;
}
.railpill .pill { white-space: nowrap; }
.railpill .mark__glyph { width: 26px; height: 26px; border-radius: 8px; }
.railpill .mark__word { font-size: 19px; }
.railpill__links { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.railpill__links a {
  padding: 7px 12px; border-radius: 50px;
  font-size: 14px; font-weight: 500; letter-spacing: -.28px;
  color: var(--ink-58); text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.railpill__links a:hover { color: var(--ink); background: var(--well); }

/* =============================================================================
   The diagnostic surface. Its background IS the hero's background, continued —
   the page and the product are one image. Portal's single best move.
   ========================================================================== */
.panel {
  position: absolute; z-index: 4;
  top: var(--panel-top); left: 50%;
  width: min(var(--panel-w), 100% - var(--gutter) * 2);
  height: 584px;
  transform: translateX(-50%);
  border-radius: 40px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(185, 195, 172, .26),
    inset 0 1px 0 rgba(219, 228, 208, .22),
    0 40px 90px -40px rgba(4, 10, 8, .8);
}
.panel__sky {
  z-index: 0;
  top: calc(-1 * var(--panel-top));
  left: calc(-1 * var(--panel-x));
}
.panel__tint {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(14, 30, 23, .80) 0%,
      rgba(14, 30, 23, .74) 42%,
      rgba(12, 25, 19, .84) 100%);
}
.panel__body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; color: var(--cream); }

.panel__head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--sage-rule);
}
.panel__title { font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.panel__sub { font-size: 12.5px; color: var(--sage); letter-spacing: -.2px; }
.simchip {
  display: inline-flex; align-items: center; gap: 7px;
  flex: none;
  padding: 6px 13px 7px; border-radius: 50px;
  background: rgba(194, 139, 62, .17);
  box-shadow: inset 0 0 0 1px rgba(194, 139, 62, .38);
  font-size: 12px; font-weight: 600; letter-spacing: -.2px;
  color: #e0b473;
}
.simchip__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.panel__grid { display: grid; grid-template-columns: 1fr 300px; flex: 1; min-height: 0; }
.panel__feed {
  padding: 4px 0 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
}
.panel__rail { border-left: 1px solid var(--sage-rule); padding: 22px 26px; }

.feedrow {
  display: grid; grid-template-columns: 10px 1fr auto;
  align-items: baseline; gap: 14px;
  padding: 12px 26px;
  border-bottom: 1px solid rgba(185, 195, 172, .10);
}
.feedrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss); transform: translateY(-2px); }
.feedrow--flag .feedrow__dot { background: var(--amber); }
.feedrow__txt { font-size: 13.5px; letter-spacing: -.26px; color: var(--cream-75); }
.feedrow__txt b { color: var(--cream); font-weight: 600; }
.feedrow__ref { font-size: 11.5px; color: var(--sage); opacity: .8; font-variant-numeric: tabular-nums; }
/* a newly-arrived row never fades in from nothing — an empty slot in a feed
   reads as a gap. It lands solid and the amber marker decays off it. */
.feedrow.is-new { animation: rowFlash 1.1s ease-out; }
@keyframes rowFlash {
  0%   { background-color: rgba(194, 139, 62, .18); }
  100% { background-color: rgba(194, 139, 62, 0); }
}

.stage { margin-bottom: 16px; }
.stage__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.stage__name { font-size: 13px; font-weight: 500; letter-spacing: -.26px; color: var(--cream-75); }
.stage__pct { font-size: 11.5px; color: var(--sage); font-variant-numeric: tabular-nums; }
.stage__bar { height: 3px; border-radius: 3px; background: rgba(185, 195, 172, .17); overflow: hidden; }
.stage__fill { height: 100%; width: 0%; background: var(--moss); border-radius: 3px; transition: width .5s var(--ease-soft); }
.stage.is-active .stage__fill { background: var(--amber); }
.stage.is-active .stage__name { color: var(--cream); font-weight: 600; }

.railnote { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--sage-rule); }
.railnote p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--sage); letter-spacing: -.2px; }

/* the ambient toast loop, reborn as diagnostic events. */
.toasts { position: relative; width: 330px; height: 106px; }
.toast {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: rotate(8deg) scale(1.02);
  transition: opacity .42s var(--ease-settle), transform .62s var(--ease-settle);
}
.toast.is-front  { opacity: 1;   transform: rotate(3.4deg) scale(1); z-index: 3; }
.toast.is-mid    { opacity: .48; transform: translateY(-11px) rotate(-1.6deg) scale(.945); z-index: 2; }
.toast.is-back   { opacity: .18; transform: translateY(-21px) rotate(2.2deg) scale(.89); z-index: 1; }
.toast__ico {
  width: 30px; height: 30px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--forest);
}
.toast__ico svg { width: 15px; height: 15px; }
.toast__body { min-width: 0; }
.toast__title { font-size: 13.5px; font-weight: 600; letter-spacing: -.28px; color: var(--ink); }
.toast__val { font-size: 12.5px; font-weight: 600; letter-spacing: -.2px; color: var(--moss); margin-top: 2px; }
.toast__val--flag { color: var(--soil); }
.toast__time { margin-left: auto; flex: none; font-size: 11px; color: var(--ink-38); font-variant-numeric: tabular-nums; }
.toast__tag {
  margin-top: 7px; display: inline-block;
  font-size: 10.5px; font-weight: 600; letter-spacing: -.1px;
  color: var(--stone);
}

.hero__toasts {
  position: absolute; z-index: 5;
  /* hung off the panel's top-right corner, the way Portal's payment toast hangs
     off its project card — and clear of the "simulated feed" label */
  top: calc(var(--panel-top) - 44px);
  right: max(20px, calc(50% - 594px));
}

/* =============================================================================
   The ground. A hard cut from painting to paper, exactly as Portal does it.
   ========================================================================== */
.ground {
  position: relative;
  background: var(--ground);
  padding-top: 132px;
  /* tilted paper is allowed to lean past the gutter without ever giving the
     page a horizontal scrollbar. clip (not hidden) keeps position:fixed sane. */
  overflow-x: clip;
}
/* fine paper tooth. 2% — you feel it, you don't see it. */
.ground::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(140, 130, 113, .10) 0 1px, transparent 1.4px),
    radial-gradient(circle at 68% 74%, rgba(140, 130, 113, .08) 0 1px, transparent 1.4px),
    radial-gradient(circle at 41% 51%, rgba(106, 74, 48, .06) 0 1px, transparent 1.4px);
  background-size: 37px 37px, 53px 53px, 71px 71px;
}
.ground > * { position: relative; z-index: 1; }

.sect { padding-bottom: 92px; }
.sect__lead { margin-top: 34px; }
.sect__lead p { margin: 0 0 34px; font-size: 17px; line-height: 1.5; color: var(--ink-75); }
.sect__lead p:last-child { margin-bottom: 0; }

/* ------------------------------------------------- the capability ledger -- */
.ledger {
  list-style: none;
  margin: 68px 0 0;
  padding: 0 0 0 56px;          /* the copy never widens — it only indents */
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px;
}
.ledger__item { display: flex; align-items: center; gap: 15px; }
.chip {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(16, 31, 25, .16);
  transition: transform .34s var(--ease-settle);
}
.chip svg { width: 16px; height: 16px; }
.ledger__item:hover .chip { transform: scale(1.14) rotate(-6deg); }
.chip--forest { background: var(--forest); }
.chip--moss   { background: var(--moss); }
.chip--amber  { background: var(--amber); }
.chip--soil   { background: var(--soil); }
.chip--stone  { background: var(--stone); }
.ledger__label { font-size: 16px; font-weight: 600; letter-spacing: -.32px; color: var(--ink); }

.annot {
  margin: 16px 0 0;
  padding-left: 56px;
  display: flex; justify-content: flex-end; align-items: flex-start; gap: 6px;
}
.annot svg { width: 54px; height: 34px; flex: none; margin-top: 4px; }
.annot span { transform: rotate(-4deg); display: block; max-width: 150px; }

/* ------------------------------------------------ alternating work blocks -- */
.blocks { margin-top: 62px; }
/* The proportion that makes Portal read the way it does: a narrow spine of
   text with 400px objects floating off it, alternating side. The copy never
   widens; only the pictures are allowed outside the column. */
.block {
  position: relative;
  min-height: 344px;
  display: flex;
  align-items: center;
  gap: 70px;
  margin-bottom: 84px;
}
.block:last-child { margin-bottom: 0; }
.block__copy { width: 330px; flex: none; }
.block__copy p { margin: 14px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink-75); }
.block__art { position: relative; width: 400px; flex: none; }

/* visual left of the column, copy inside it */
.block--vl { padding-left: max(var(--gutter), calc(50% - 420px)); }
/* copy at the column's left edge, visual hanging off the right */
.block--vr { padding-left: max(var(--gutter), calc(50% - 330px)); }
.block--vr .block__art  { order: 2; }
.block--vr .block__copy { order: 1; }

/* (a) the hand-dealt pile of layer cards */
.pile { position: relative; }
.pile__card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 18px 16px;
  background: var(--card);
  border-radius: 15px;
  box-shadow: var(--shadow-card);
  margin-bottom: 10px;
  transition: transform .42s var(--ease-settle), box-shadow .3s ease;
}
.pile__card:nth-child(1) { transform: rotate(-1.2deg) translateX(-4px); }
.pile__card:nth-child(2) { transform: rotate(.8deg)  translateX(6px); }
.pile__card:nth-child(3) { transform: rotate(-.6deg) translateX(-2px); }
.pile__card:nth-child(4) { transform: rotate(1.4deg) translateX(3px); }
.pile:hover .pile__card:nth-child(1) { transform: rotate(-2.4deg) translateX(-14px); }
.pile:hover .pile__card:nth-child(2) { transform: rotate(1.6deg)  translateX(12px); }
.pile:hover .pile__card:nth-child(3) { transform: rotate(-1.4deg) translateX(-9px); }
.pile:hover .pile__card:nth-child(4) { transform: rotate(2.6deg)  translateX(10px); }
.pile__ico { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; }
.pile__ico svg { width: 16px; height: 16px; }
.pile__t {
  font-family: Fraunces, Georgia, serif; font-weight: 400;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: 17px; line-height: 1.1; letter-spacing: -.2px;
}
.pile__d { margin: 4px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--ink-58); }

/* (b) the toast deck floating over a run-log card */
.runlog {
  position: absolute; top: 100px; left: 12px;
  width: 330px;
  background: var(--card);
  border-radius: 18px;
  padding: 16px 6px 8px;
  box-shadow: var(--shadow-card);
  transform: rotate(-1.8deg);
}
.runlog__h { padding: 0 14px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-58); letter-spacing: -.24px; }
.runlog__r {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--rule-soft);
}
.runlog__sw { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.runlog__n { font-size: 12.5px; font-weight: 600; letter-spacing: -.24px; }
.runlog__v { margin-left: auto; font-size: 11px; color: var(--stone); font-variant-numeric: tabular-nums; }
.deckwrap { position: relative; height: 396px; }
.deckwrap .toasts { position: absolute; top: 0; left: 46px; z-index: 4; }

/* (c) the inline diagnostic surface, landscape visible inside it */
.inlinepanel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transform: rotate(-1deg);
}
.inlinepanel img { width: 100%; height: 268px; object-fit: cover; object-position: 24% 60%; }
.inlinepanel__ov {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12, 27, 21, .58), rgba(10, 22, 17, .86));
  padding: 18px 20px;
  color: var(--cream);
  display: flex; flex-direction: column;
}
.inlinepanel__h { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: -.26px; }
.inlinepanel__rows { margin-top: 14px; display: grid; gap: 1px; }
.ipr {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline;
  padding: 8px 0; border-top: 1px solid rgba(185, 195, 172, .13);
  font-size: 12.5px; letter-spacing: -.24px;
}
.ipr span:first-child { color: var(--cream-75); }
.ipr__v { color: var(--cream); font-weight: 600; font-variant-numeric: tabular-nums; }
.ipr__s { font-size: 11px; color: var(--sage); }
.ipr__s--flag { color: #e0b473; }
.inlinepanel__f { margin-top: auto; font-size: 11px; color: var(--sage); letter-spacing: -.1px; }

/* (d) the signed-off report card */
.report {
  width: 340px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 20px 22px 18px;
  transform: rotate(1.4deg);
}
.report__h { font-size: 12.5px; font-weight: 600; color: var(--ink-58); letter-spacing: -.24px; }
.report__t {
  font-family: Fraunces, Georgia, serif; font-weight: 400;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: 21px; line-height: 1.08; letter-spacing: -.3px;
  margin: 10px 0 12px;
}
.report__l { padding: 9px 0; border-top: 1px solid var(--rule-soft); display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; }
.report__l span:last-child { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.report__sig { margin-top: 14px; display: flex; align-items: flex-end; gap: 12px; }
.report__sig svg { width: 104px; height: 38px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 7px; border-radius: 50px;
  background: rgba(95, 122, 85, .14);
  box-shadow: inset 0 0 0 1px rgba(95, 122, 85, .34);
  font-size: 11.5px; font-weight: 600; color: #47603f; letter-spacing: -.16px;
}
.badge--client {
  background: rgba(106, 74, 48, .10);
  box-shadow: inset 0 0 0 1px rgba(106, 74, 48, .26);
  color: var(--soil);
}
.badge--own {
  background: rgba(22, 69, 47, .10);
  box-shadow: inset 0 0 0 1px rgba(22, 69, 47, .24);
  color: var(--forest);
}

/* ---------------------------------------------------- the findings grid --- */
/* Portal's payments block: a 2×2 at the column edges, split by a dotted rule. */
.findings {
  margin: 74px auto 0;
  width: min(660px, 100% - var(--gutter) * 2);
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 0; row-gap: 52px;
}
.finding { padding: 0 34px; }
.findings > .finding:nth-child(odd)  { padding-left: 0; }
.findings > .finding:nth-child(odd):not(:last-child) { border-right: 1px dotted var(--rule); }
.findings > .finding:nth-child(even) { padding-right: 0; }
.finding__n {
  font-size: 46px; line-height: 1; color: var(--forest);
  display: block; margin-bottom: 14px;
}
.finding__t { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.34px; }
.finding__b { margin: 0 0 12px; font-size: 15.5px; line-height: 1.45; color: var(--ink-75); }

.emphline {
  margin: 56px auto 0;
  width: min(660px, 100% - var(--gutter) * 2);
  font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.34px;
}

/* --------------------------------------------------- the fanned deck ------ */
.fan {
  position: relative;
  width: min(1180px, 100% - 24px);
  height: 400px;
  margin: 78px auto 0;
}
.fan__card {
  position: absolute;
  top: 0; left: 50%;
  width: 372px; height: 300px;
  margin-left: -186px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink-panel);
  box-shadow: 0 0 0 1px rgba(16, 31, 25, .10), 0 30px 56px -26px rgba(16, 31, 25, .5);
  transform: rotate(var(--rot)) translate(var(--dx), var(--dy));
  transition: transform .52s var(--ease-settle), box-shadow .35s ease, z-index 0s;
  cursor: default;
}
.fan__card:hover {
  transform: rotate(0deg) translate(var(--dx), calc(var(--dy) - 14px)) scale(1.06);
  box-shadow: 0 0 0 1px rgba(16, 31, 25, .14), 0 44px 74px -28px rgba(16, 31, 25, .6);
  z-index: 20;
}
.fan__img {
  position: absolute; left: 0; top: var(--ot, 0px);
  width: 100%; height: 190%;
  object-fit: cover; object-position: 50% 50%;
}
.fan__ov { position: absolute; inset: 0; }
.fan__ui {
  position: absolute; inset: 0;
  width: 54%;
  background: linear-gradient(to right, rgba(11, 24, 19, .93) 54%, rgba(11, 24, 19, .12));
  padding: 16px 18px;
  color: var(--cream);
  display: flex; flex-direction: column;
}
.fan__name { font-size: 14px; font-weight: 600; letter-spacing: -.28px; }
.fan__note { margin: 3px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--sage); }
.fan__rows { margin-top: 14px; display: grid; gap: 7px; }
.fan__row { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; letter-spacing: -.1px; }
.fan__row span:first-child { color: var(--cream-52); }
.fan__row b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.fan__dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.fan__f { margin-top: auto; font-size: 10px; color: rgba(185, 195, 172, .72); }

/* ------------------------------------------------------------- timeline -- */
.steps { margin-top: 64px; }
.step {
  position: relative;
  display: grid; grid-template-columns: 34px 1fr; gap: 22px;
  padding-bottom: 34px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute;
  left: 16.5px; top: 40px; bottom: -4px;
  border-left: 1px dotted var(--rule);
}
.step:last-child::before { display: none; }
.step__n {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--forest); color: var(--cream);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  position: relative; z-index: 1;
}
.step__t { margin: 6px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.34px; }
.step__b { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink-75); max-width: 545px; }
.step__k { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--stone); max-width: 545px; }
.steps__after { margin-top: 40px; padding-left: 56px; font-size: 16px; font-weight: 600; }

/* ---------------------------------------------------------------- terms -- */
.terms__body { margin-top: 34px; padding-left: 96px; }
.terms__body p { margin: 0 0 26px; font-size: 17px; line-height: 1.5; color: var(--ink-75); }
.terms__body p:last-of-type { margin-bottom: 0; }
.terms__body p.terms__cap { margin-top: 26px; font-size: 12.5px; line-height: 1.45; color: var(--ink-58); }

/* ----------------------------------------------------------------- memo -- */
.memo {
  width: min(700px, 100% - var(--gutter) * 2);
  margin: 0 auto;
  background: var(--card);
  border-radius: 22px;
  padding: 48px 54px 40px;
  box-shadow: var(--shadow-card);
  --in-to: rotate(-1.6deg) scale(.985);
  --in-from: rotate(2.4deg) scale(.96);
  transform: rotate(-1.6deg) scale(.985);
}
.memo p { margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: var(--ink-75); }
.memo p:first-child { color: var(--ink); }
.memo__foot { display: flex; align-items: center; gap: 14px; margin-top: 34px; padding-top: 24px; border-top: 1px dotted var(--rule); }
.memo__av {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--forest); color: var(--cream);
  display: grid; place-items: center;
  font-family: Fraunces, Georgia, serif; font-size: 15px;
  font-variation-settings: "opsz" 144;
}
.memo__nm { font-size: 14px; font-weight: 600; letter-spacing: -.28px; }
.memo__rl { font-size: 14px; color: var(--ink-58); letter-spacing: -.28px; }
.memo__stamp {
  position: absolute; right: 46px; top: -18px;
  --in-to: rotate(-12deg);
  --in-from: rotate(6deg) scale(1.06);
  transform: rotate(-12deg);
}
.memo__wrap { position: relative; width: min(700px, 100%); margin: 0 auto; }
.stamp {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  color: var(--soil);
  box-shadow: inset 0 0 0 2px rgba(106, 74, 48, .34);
  background: rgba(235, 223, 205, .8);
  font-size: 10.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.1px;
  padding: 10px;
}

/* ---------------------------------------------------------- closing/CTA -- */
.closing { padding-top: 40px; padding-bottom: 96px; text-align: center; }
.closing .mark__glyph { display: block; width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 34px; }
.closing h2 { width: min(760px, 100% - var(--gutter) * 2); margin: 0 auto; }
.closing__lead { width: min(560px, 100% - var(--gutter) * 2); margin: 30px auto 0; font-size: 17px; line-height: 1.5; color: var(--ink-75); }
.closing__cta { margin-top: 40px; }

/* --------------------------------------------------------------- footer -- */
.foot {
  width: min(var(--col), 100% - var(--gutter) * 2);
  margin: 0 auto;
  padding-bottom: 92px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px;
}
.foot__prose { max-width: 400px; font-size: 16px; line-height: 1.5; color: var(--ink-75); }
.foot__prose p { margin: 0 0 18px; }
.foot__prose p:last-child { margin-bottom: 0; }
.foot__links { text-align: right; display: grid; gap: 11px; align-content: start; }
.foot__links a { font-size: 16px; font-weight: 500; text-decoration: none; color: var(--ink); transition: color .2s ease; }
.foot__links a:hover { color: var(--soil); }
.foot__legal {
  width: min(var(--col), 100% - var(--gutter) * 2);
  margin: 0 auto; padding-bottom: 84px;
}

/* -------------------------------------------------------- the bookend ----- */
/* the mountain's own base colour, so any trailing pixel reads as the
   painting bleeding off the bottom edge rather than a gap */
.bookend { position: relative; background: #222d23; }
/* dissolve the paper ground into the sky at the top of the painting */
.bookend__fade {
  height: 220px;
  background: linear-gradient(to bottom, var(--ground), var(--ground-deep));
}
.bookend img { width: 100%; height: auto; display: block; }

/* =============================================================================
   Motion — rotate-and-settle. Portal's signature is a rotation reveal, not a
   fade-up. Amplitudes stay tiny: 2–8° and 2–4% of scale.
   ========================================================================== */
/* The settled state is `--in-to`, not `none`, so an object that is meant to
   sit crooked keeps its tilt after it has arrived. */
[data-in] {
  opacity: 0;
  transform: var(--in-from, none);
  transition:
    opacity .62s var(--ease-settle),
    transform .82s var(--ease-settle);
}
[data-in="tilt"]   { --in-from: rotate(-2.2deg) scale(.982); }
[data-in="tilt-r"] { --in-from: rotate(2.2deg) scale(.982); }
[data-in="drop"]   { --in-from: rotate(6.5deg) scale(1.03) translateY(-8px); }
[data-in="rise"]   { --in-from: translateY(14px) scale(.99); }
[data-in].is-in    { opacity: 1; transform: var(--in-to, none); }

/* a group staggers in reading order */
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 62ms); }

/* the load-in choreography */
.boot [data-boot] { opacity: 0; }
.boot-go [data-boot] {
  animation: bootIn .92s var(--ease-settle) both;
  animation-delay: var(--bd, 0ms);
}
@keyframes bootIn {
  from { opacity: 0; transform: translateY(12px) rotate(-1.4deg) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.boot .panel, .boot .hero__toasts { opacity: 0; }
.boot-go .panel {
  animation: panelIn 1.25s var(--ease-settle) 320ms both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateX(-50%) translateY(46px) rotate(1.6deg) scale(.975); }
  to   { opacity: 1; transform: translateX(-50%); }
}
.boot-go .hero__toasts { animation: bootIn .9s var(--ease-settle) 980ms both; }

/* ============================================================== responsive = */
@media (max-width: 1240px) {
  :root { --panel-w: 820px; }
  .block { gap: 48px; }
  .block--vl { padding-left: max(var(--gutter), calc(50% - 396px)); }
  .block--vr { padding-left: max(var(--gutter), calc(50% - 320px)); }
  .fan { transform: scale(.86); }
}

@media (max-width: 1040px) {
  :root { --col: 600px; --hero-h: 1020px; --panel-top: 470px; }
  .hero__inner { padding-top: 168px; }
  .t-display { font-size: 50px; }
  .block { min-height: auto; margin-bottom: 68px; flex-direction: column; gap: 34px; align-items: flex-start; padding-left: 0; }
  .block--vl, .block--vr { padding-left: 0; }
  .block__art { width: min(400px, 100%); order: 0 !important; }
  .block__copy { width: min(440px, 100%); order: 1 !important; }
  .blocks { width: min(var(--col), 100% - var(--gutter) * 2); margin-inline: auto; }
  .deckwrap { height: 360px; }
  .fan { transform: scale(.72); margin-top: 30px; height: 340px; }
  .hero__toasts { right: max(20px, calc(50% - 484px)); }
}

@media (max-width: 780px) {
  .fan { transform: scale(.6); height: 300px; }
  .findings { grid-template-columns: 1fr; row-gap: 44px; }
  .findings > .finding:nth-child(odd) { border-right: 0; padding-left: 0; }
  .finding { padding: 0; }
  .findings > .finding + .finding { border-top: 1px dotted var(--rule); padding-top: 40px; }
  .terms__body { padding-left: 40px; }
  .memo { padding: 38px 34px 32px; }
  .foot { grid-template-columns: 1fr; gap: 30px; }
  .foot__links { text-align: left; grid-auto-flow: column; justify-content: start; gap: 22px; }
}

/* ------------------------------------------------------ art-directed 390 -- */
@media (max-width: 620px) {
  :root {
    --gutter: 22px;
    --hero-h: 980px;
    --sky-x: 26%;
    --panel-top: 556px;
    --panel-w: 640px;
  }
  body { font-size: 16px; }

  /* Portal's display type gets LARGER on mobile — it is sized to the measure,
     not to the viewport. 52px in a 346px column is four dense lines of print. */
  .t-display { font-size: 52px; line-height: .98; }
  .t-section { font-size: 34px; }

  .hero__topbar { height: 92px; }
  .hero__inner { padding-top: 132px; }
  .hero h1 { width: calc(100% - var(--gutter) * 2); }
  .hero__lead { margin-top: 30px; font-size: 16px; }
  .hero__cta { margin-top: 34px; }
  .hero__stars { height: 340px; }

  .nav { display: none; }
  .nav__burger {
    display: grid; place-items: center;
    margin-left: auto;
    width: 44px; height: 44px; border-radius: 50px;
    border: 0; background: rgba(253, 249, 242, .14); cursor: pointer;
  }
  .nav__burger svg { width: 20px; height: 20px; }

  .panel { height: 392px; border-radius: 26px; }
  .panel__grid { grid-template-columns: 1fr; }
  .panel__rail { display: none; }
  .panel__head { padding: 15px 18px; }
  .panel__title { font-size: 14px; }
  .panel__sub { display: none; }
  .feedrow { padding: 11px 18px; gap: 10px; }
  .feedrow__txt { font-size: 12.5px; }
  /* the hero toast is dropped on mobile — the panel carries the feed alone */
  .hero__toasts { display: none; }

  .ground { padding-top: 84px; }
  .sect { padding-bottom: 78px; }

  .ledger { grid-template-columns: 1fr; gap: 20px; margin-top: 50px; padding-left: 30px; }
  .annot { justify-content: flex-start; padding-left: 30px; }

  .blocks { margin-top: 60px; }
  .block__copy { width: 100%; }
  .block--vl .block__art, .block--vr .block__art { width: 100%; }
  .runlog { width: 100%; left: 0; top: 66px; }
  .toasts { width: 100%; max-width: 320px; }
  .deckwrap { height: 336px; }
  .deckwrap .toasts { left: 0; }
  .report { width: 100%; }
  .inlinepanel img { height: 232px; }

  /* the fan re-stacks as an overlapping pile, keeping its rotation */
  .fan {
    position: relative; transform: none; width: 100%; height: auto;
    margin-top: 44px; display: flex; flex-direction: column; align-items: center;
  }
  .fan__card {
    position: relative; left: auto; top: auto; margin-left: 0;
    width: min(320px, 100%); height: 250px;
    transform: rotate(var(--mrot)) !important;
    margin-bottom: -34px;
  }
  .fan__card:last-child { margin-bottom: 0; }
  .fan__ui { width: 68%; }

  .steps__after { padding-left: 0; }
  .terms__body { padding-left: 0; border-left: 1px dotted var(--rule); padding-left: 24px; }
  .memo { padding: 32px 26px 28px; --in-to: rotate(-1.2deg); transform: rotate(-1.2deg); }
  .memo__stamp { right: 30px; top: -26px; }
  .stamp { width: 76px; height: 76px; font-size: 9.5px; }
  .closing { padding-bottom: 70px; }
  .closing__lead { font-size: 16px; }
  .foot { padding-bottom: 70px; }
  .foot__legal { padding-bottom: 64px; }
  /* the peak is cropped in on mobile so it still fills the closing frame */
  .bookend__fade { height: 130px; }
  .bookend img { width: 152%; max-width: none; margin-left: -26%; }

  .railpill { padding: 6px 6px 6px 10px; top: 12px; gap: 10px; }
  .railpill__links { display: none; }
  .railpill .mark__word { display: none; }
  .railpill .pill { font-size: 13.5px; padding: 8px 15px 9px; }
}

/* ------------------------------------------------------------ mobile nav -- */
.sheet {
  position: fixed; inset: 0; z-index: 120;
  background: var(--ink-sky);
  display: flex; flex-direction: column;
  padding: 26px var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-settle), visibility 0s linear .3s;
}
.sheet.is-open { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }
.sheet__top { display: flex; align-items: center; }
.sheet__close {
  margin-left: auto; width: 44px; height: 44px; border-radius: 50px; border: 0;
  background: rgba(253, 249, 242, .14); color: var(--cream);
  display: grid; place-items: center; cursor: pointer;
}
.sheet__close svg { width: 18px; height: 18px; }
.sheet nav { margin-top: 46px; display: grid; gap: 4px; }
.sheet nav a {
  font-family: Fraunces, Georgia, serif; font-weight: 400;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: 38px; line-height: 1.1; letter-spacing: -.4px;
  color: var(--cream); text-decoration: none;
  padding: 6px 0;
}
.sheet nav a[aria-current="page"] { color: var(--amber-band); }
.sheet__cta { margin-top: auto; }
.sheet__cta .pill { width: 100%; justify-content: center; }

/* ----------------------------------------------------- reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-in] { opacity: 1 !important; transform: var(--in-to, none) !important; }
  .boot [data-boot], .boot .panel, .boot .hero__toasts { opacity: 1 !important; }
  .hero__stars { opacity: 1; animation: none; }
  .hero__sky, .panel__sky { transform: none !important; }
  .toast { transition: none !important; }
  .toast.is-mid, .toast.is-back { opacity: 0 !important; }
  .railpill { transition: none; }
}

/* =============================================================================
   Sub-pages — same grammar, shorter painting at the top.
   ========================================================================== */
.hero--short { --hero-h: 640px; --sky-x: 50%; }
.hero--short .hero__inner { padding-top: 214px; }
.hero--short .hero__stars { height: 320px; }
.hero--short h1 { width: min(820px, 100% - var(--gutter) * 2); }
.hero--short .hero__lead { width: min(620px, 100% - var(--gutter) * 2); margin-top: 34px; }

/* one record: a project, or a stage of the method */
.record { padding-bottom: 84px; }
.record__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-size: 13px; letter-spacing: -.26px; color: var(--ink-58);
}
.record__meta b { color: var(--ink); font-weight: 600; }
.record h2 { margin-bottom: 26px; }
.record p { margin: 0 0 24px; font-size: 17px; line-height: 1.5; color: var(--ink-75); }
.record__stack { font-size: 12.5px; line-height: 1.45; color: var(--stone); margin: 0; }

/* the metric strip — every figure keeps its framing */
.mstrip {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 34px;
  margin: 32px 0 22px;
  padding-left: 56px;
}
.mstrip__v { display: block; font-size: 34px; line-height: 1; color: var(--forest); margin-bottom: 9px; }
.mstrip__l { font-size: 14px; line-height: 1.35; color: var(--ink-75); display: block; margin-bottom: 10px; }

/* three tilted phase cards, dealt across the full picture width */
.phases {
  width: min(var(--wide), 100% - var(--gutter) * 2);
  margin: 40px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.phase {
  background: var(--card); border-radius: 18px;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-card);
  transition: transform .42s var(--ease-settle);
}
.phase:nth-child(1) { --in-to: rotate(-1.1deg); transform: rotate(-1.1deg); }
.phase:nth-child(2) { --in-to: rotate(.6deg);   transform: rotate(.6deg); }
.phase:nth-child(3) { --in-to: rotate(-.7deg);  transform: rotate(-.7deg); }
.phases:hover .phase:nth-child(1) { transform: rotate(-2deg) translateY(-3px); }
.phases:hover .phase:nth-child(2) { transform: rotate(1.3deg) translateY(-3px); }
.phases:hover .phase:nth-child(3) { transform: rotate(-1.5deg) translateY(-3px); }
.phase__p { font-size: 12.5px; font-weight: 600; color: var(--soil); letter-spacing: -.2px; }
.phase__t {
  font-family: Fraunces, Georgia, serif; font-weight: 400;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: 19px; line-height: 1.1; letter-spacing: -.3px;
  margin: 9px 0 8px;
}
.phase__b { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-75); }

/* the pull quote, on paper, off true */
.quote {
  width: min(700px, 100% - var(--gutter) * 2);
  margin: 44px auto 0;
  background: var(--card);
  border-radius: 20px;
  padding: 34px 38px 30px;
  --in-to: rotate(1.2deg); transform: rotate(1.2deg);
  box-shadow: var(--shadow-card);
}
.quote p {
  margin: 0;
  font-family: Fraunces, Georgia, serif; font-weight: 400;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: 22px; line-height: 1.2; letter-spacing: -.3px;
  color: var(--ink);
}
.quote cite { display: block; margin-top: 16px; font-size: 13px; font-style: normal; color: var(--ink-58); }

.deliverable {
  margin: 40px auto 0;
  width: min(var(--col), 100% - var(--gutter) * 2);
  font-size: 17px; font-weight: 600; line-height: 1.4;
}

/* the outcome chit that hangs off a method stage */
.outcome {
  background: var(--card); border-radius: 18px;
  padding: 22px 24px 24px;
  box-shadow: var(--shadow-card);
  --in-to: rotate(1.6deg); transform: rotate(1.6deg);
}
.outcome__k { font-size: 12.5px; font-weight: 600; color: var(--soil); }
.outcome__t {
  font-family: Fraunces, Georgia, serif; font-weight: 400;
  font-variation-settings: "opsz" 144, "WONK" 1;
  font-size: 22px; line-height: 1.08; margin: 10px 0 8px; letter-spacing: -.3px;
}
.outcome__b { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-75); }
.outcome__keep { margin: 16px 0 0; padding-top: 14px; border-top: 1px dotted var(--rule); font-size: 12.5px; line-height: 1.45; color: var(--stone); }

#stages-full .block { min-height: 280px; margin-bottom: 48px; }
#evidence .record { padding-bottom: 40px; }
#evidence .record + .record { border-top: 1px dotted var(--rule); padding-top: 44px; }

@media (max-width: 780px) {
  .phases { grid-template-columns: 1fr; gap: 16px; }
  .mstrip { padding-left: 0; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero--short { --hero-h: 560px; }
  .hero--short .hero__inner { padding-top: 150px; }
  .quote { padding: 26px 24px 24px; }
  .quote p { font-size: 19px; }
}
