/* Landing sections hero → under the hood (Figma 8016:797 … 8016:1038, mobile 8016:1360 … 8016:1587).
   Prefix la- ("landing A"). Builds on tokens.css + site.css. Breakpoints: phone < 768, tablet 768–1023, desktop ≥ 1024.

   --la-u     1 Figma px at 1440, scaled down with the viewport (art + the scattered stat cards).
   --la-cx    left edge of .container content, --la-cw its width — for hairlines that follow the grid. */

.page-landing {
  --la-u: calc(min(100vw, 1440px) / 1440);
  --la-cx: max(var(--gutter), (100% - var(--page-max)) / 2 + var(--gutter));
  --la-cw: (min(100%, var(--page-max)) - 2 * var(--gutter));
  --la-hair-light: rgba(255, 255, 255, .22);
  --la-wire: #b4b3b0;
}

/* ------------------------------------------------------------- shared bits */
.la-sec { position: relative; overflow: clip; }
.la-br { display: none; } /* Figma's hard line breaks, only where the column is as wide as in the design */
@media (min-width: 1280px) { .la-br { display: inline; } }
.la-br-t { display: none; }
@media (min-width: 768px) { .la-br-t { display: inline; } }
/* Desktop H1 72/1.05 −4 %, phone 36 (Figma mobile H1) */
.la-h1 { font-size: clamp(36px, 5vw, 72px); line-height: 1.05; letter-spacing: var(--track-tight); font-weight: 600; }

/* blurred glass-cube glow (Figma: the cube image rotated −55.75°, heavy layer blur) — pre-rendered, so no
   runtime filter. Box = Figma's rotated frame (1831 × 1955) + 400 px margin each side, scaled by --k. */
.la-glow {
  --k: var(--la-u);
  position: absolute; z-index: 0; pointer-events: none;
  width: calc(2631.08 * var(--k)); height: calc(2755.25 * var(--k));
  background: url("/static/site/img/la-glow.webp") center / 100% 100% no-repeat;
}

/* =============================================================== hero + stats */
.la-top { position: relative; isolation: isolate; overflow: clip; background: var(--sage); color: var(--white); }
/* Figma 8016:800: radial vignette, charcoal 0 → 10 % */
.la-top::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(62, 61, 59, 0) 0%, rgba(62, 61, 59, .1) 100%);
}
.la-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.la-ring { position: absolute; z-index: 0; max-width: none; height: auto; opacity: .9; }

/* hairlines (Figma lines 8016:829–833): verticals follow the 1440 frame */
.la-top__lines { position: absolute; inset: 0; z-index: 3; pointer-events: none; max-width: var(--page-max); margin-inline: auto; }
.la-top__lines i { position: absolute; top: 0; width: 1px; background: var(--la-hair-light); }
.la-top__lines i:nth-child(1) { left: var(--gutter); bottom: 0; }
.la-top__lines i:nth-child(2) { left: 20.49%; height: calc(1143 * var(--la-u)); }
.la-top__lines i:nth-child(3) { left: 65.14%; height: calc(1118 * var(--la-u)); }
.la-top__lines i:nth-child(4) { display: none; }

.la-hero { position: relative; display: flex; flex-direction: column; min-height: calc(786 * var(--la-u)); }
.la-hero__glow { left: calc(50% - 1214.04 * var(--la-u)); top: calc(-895.02 * var(--la-u)); }
.la-hero__ring { left: calc(50% - 305.5 * var(--la-u)); top: calc(15.3 * var(--la-u)); width: calc(612 * var(--la-u)); }
/* Hero crystal video (1080 × 1080 square crop, 60 fps, opaque Mist-Sage-like background). --w = the width the
   static ring had; the object is ~80 % of the frame height (the ring image: ~79 % of its 4:3 box), so the square
   box is 1.307 × --w, centred on the object the way the ring was. The circular mask fades the frame edges into the
   sage band, so no square shows. */
.la-crystal {
  --w: calc(612 * var(--la-u)); --top: calc(15.3 * var(--la-u));
  position: absolute; z-index: 0; display: block; max-width: none; height: auto; aspect-ratio: 1;
  width: calc(var(--w) * 1.307); left: calc(50% - var(--w) * .645); top: var(--top);
  background: transparent; object-fit: cover; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 49%, #000 82%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 49%, #000 82%, transparent 100%);
}
.la-hero__inner {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
  padding-top: max(var(--header-h) + 48px, 160 * var(--la-u)); padding-bottom: calc(72 * var(--la-u));
}
.la-hero__title {
  max-width: 8.7em; text-wrap: wrap; /* "Do something real / for the planet" (no balance: it would split after "something") */
  font-size: var(--fs-d1); line-height: 1; letter-spacing: var(--track); font-weight: 600;
}
.la-hero__foot {
  display: grid; grid-template-columns: minmax(0, 708px) auto; justify-content: start; align-items: center;
  column-gap: clamp(32px, 158 * var(--la-u), 158px);
}
/* white on sage is the design. A soft charcoal vignette sits behind the title and the lead (over the art,
   under the copy), and a halo on the text keeps it legible where it crosses the light glass of the ring. */
.la-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(52% 34% at 30% 30%, rgba(46, 46, 42, .24), rgba(46, 46, 42, 0) 100%),
    radial-gradient(48% 18% at 30% 82%, rgba(46, 46, 42, .30), rgba(46, 46, 42, 0) 100%);   /* fades out by the hero's bottom edge: no seam */
}
.la-hero__title { text-shadow: 0 2px 28px rgba(46, 46, 42, .22); }
.la-hero__lead { text-shadow: 0 1px 2px rgba(46, 46, 42, .45), 0 0 18px rgba(46, 46, 42, .35); }
.la-stat { text-shadow: 0 1px 3px rgba(62, 61, 59, .22); }
/* the outline button's white label sits on bare sage: a faint charcoal glass behind it (darker, not lighter, on hover) */
.la-hero .btn--ghost-light { background: rgba(46, 46, 42, .12); text-shadow: 0 1px 2px rgba(46, 46, 42, .35); }
.la-hero .btn--ghost-light:hover { background: rgba(46, 46, 42, .24); }
.la-hero__lead { font-size: var(--fs-lg); line-height: var(--lh-body); }
.la-hero__actions { position: relative; display: flex; gap: 12px; }
.la-hero__actions .btn--light { min-width: 150px; }
/* the two full-width hairlines that frame the CTA row (Figma y 635 / 706) */
.la-hero__actions::before, .la-hero__actions::after {
  content: ""; position: absolute; left: -100vw; right: -100vw; height: 1px; background: var(--la-hair-light); pointer-events: none;
}
.la-hero__actions::before { top: -8px; }
.la-hero__actions::after { bottom: -8px; }

/* stats: three glass cards around the second ring */
.la-stats { position: relative; min-height: calc(896 * var(--la-u)); }
.la-stats__glow { left: calc(50% - 2123.04 * var(--la-u)); top: calc(-963.02 * var(--la-u)); }
.la-stats__ring { left: calc(50% - 343.7 * var(--la-u)); top: calc(-50.2 * var(--la-u)); width: calc(726.6 * var(--la-u)); }
.la-stats__inner { position: relative; z-index: 2; }
.la-stats__list { list-style: none; margin: 0; padding: 0; }
.la-stat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  /* Figma: 40 px padding, but the 242 px label runs into the right padding */
  padding: clamp(24px, 40 * var(--la-u), 40px) clamp(20px, 24 * var(--la-u), 24px) clamp(24px, 40 * var(--la-u), 40px) clamp(24px, 40 * var(--la-u), 40px);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.la-stat__num { font-size: var(--fs-h2); line-height: 1; letter-spacing: var(--track); font-weight: 600; white-space: nowrap; }
.la-stat__label { max-width: 242px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; font-weight: 500; }

@media (min-width: 1024px) {
  .la-stats__inner { position: static; }
  .la-stat {
    position: absolute; z-index: 2;
    width: clamp(250px, 306 * var(--la-u), 306px); min-height: clamp(220px, 280 * var(--la-u), 280px);
  }
  /* Figma 8016:838 / 8016:841 / 8016:844 — positions in the 1440 frame */
  .la-stat--a { left: calc(50% - 458 * var(--la-u)); top: calc(80 * var(--la-u)); }
  .la-stat--b { left: calc(50% + 238 * var(--la-u)); top: calc(473 * var(--la-u)); }
  .la-stat--c { left: calc(50% - 522 * var(--la-u)); top: calc(496 * var(--la-u)); }
}

/* tablet + phone: the stats become a swipe row under the ring (Figma 8016:1385) */
@media (max-width: 1023px) {
  .la-stats { min-height: 0; --la-ring-w: clamp(263px, 52vw, 420px); padding-top: calc(var(--la-ring-w) * 1.0736); padding-bottom: 20px; }
  .la-stats__ring { width: var(--la-ring-w); left: calc(50% - var(--la-ring-w) / 2); top: -8px; }
  .la-stats__glow { --k: 1px; left: calc(50% - 1590.54px); top: -1083.02px; width: 2631.08px; height: 2755.25px; }
  .la-stats__scroller {
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .la-stats__scroller::-webkit-scrollbar { display: none; }
  .la-stats__scroller:focus-visible { outline-offset: -2px; }
  .la-stats__list { display: flex; gap: 10px; width: max-content; }
  .la-stat { flex: none; width: min(335px, calc(100vw - 2 * var(--gutter))); min-height: 164px; justify-content: flex-start; gap: 0; padding: 40px; scroll-snap-align: start; }
  .la-stat__num { font-size: 32px; margin-bottom: 0; }
  .la-stat__label { max-width: 255px; font-size: var(--fs-md); }
}

/* tablet: keep the desktop composition, scaled */
@media (min-width: 768px) and (max-width: 1023px) {
  .la-hero__inner { gap: 48px; padding-bottom: 56px; }
  .la-hero__foot { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .la-hero__lead { max-width: 600px; }
  .la-hero__actions::before, .la-hero__actions::after { display: none; }
  .la-top__lines i:nth-child(n+2) { display: none; }
}

/* landscape phones: title, lead and both buttons fit one short screen; the ring shrinks to stay inside the hero */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 600px) and (max-width: 1023px) {
  .la-hero { min-height: 0; }
  .la-hero__ring { width: 250px; left: calc(50% - 125px); top: 24px; }
  .la-crystal { --w: 250px; --top: 24px; }
  .la-hero__inner { gap: 24px; padding-top: calc(var(--header-h) + 24px); padding-bottom: 40px; }
  .la-hero__title { font-size: 44px; max-width: none; }
  .la-hero__lead { font-size: var(--fs-md); }
  .la-hero__foot { row-gap: 20px; }
}

/* phone (Figma 8016:1360 / 8016:1385) */
@media (max-width: 767px) {
  .la-hero { min-height: 0; }
  .la-hero__glow { --k: .519px; left: calc(50% - 682.75px); top: -420.2px; width: 1365.5px; height: 1430px; }
  .la-hero__ring { width: 263px; left: calc(50% - 131.5px); top: 88px; }
  .la-crystal { --w: 263px; --top: 88px; }
  .la-hero__inner { gap: 64px; padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px; }
  .la-hero__title { font-size: clamp(38px, 12.8vw, 48px); }   /* keeps the 8.7em cap: no lone "planet" on large phones */
  .la-hero__foot { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .la-hero__lead { font-size: var(--fs-md); }
  .la-hero::before {
    background:
      radial-gradient(85% 22% at 40% 27%, rgba(46, 46, 42, .22), rgba(46, 46, 42, 0) 100%),
      radial-gradient(100% 34% at 45% 66%, rgba(46, 46, 42, .30), rgba(46, 46, 42, 0) 100%);
  }
  .la-hero__actions { flex-direction: column; gap: 8px; }
  .la-hero__actions .btn { width: 100%; }
  .la-hero__actions::before, .la-hero__actions::after { display: none; }
  .la-top__lines { max-width: none; }
  .la-top__lines i:nth-child(n+2) { display: none; }
  .la-top__lines i:nth-child(4) { display: block; left: auto; right: var(--gutter); bottom: 0; height: auto; }
}

/* ============================================================ trust logos */
.la-logos { position: relative; overflow: clip; background: var(--cloud); color: var(--charcoal); }
.la-logos__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; padding-block: 80px; text-align: center; }
.la-logos__title { font-size: var(--fs-lg); line-height: 1.6; font-weight: 400; text-transform: uppercase; text-wrap: balance; }
.la-logos__list {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px clamp(40px, 6.7vw, 96px);
}
.la-logos__list img { display: block; height: 24px; width: auto; }
/* full-bleed hairlines on the logo row (Figma lines 8016:974/975) */
.la-logos__list::before, .la-logos__list::after {
  content: ""; position: absolute; left: -100vw; right: -100vw; height: 1px; background: var(--line); pointer-events: none;
}
.la-logos__list::before { top: 0; }
.la-logos__list::after { bottom: 0; }
@media (max-width: 767px) {
  .la-logos__inner { gap: 32px; padding-block: 64px 48px; }
  .la-logos__title { font-size: var(--fs-sm); max-width: 300px; }
  .la-logos__list { gap: 20px 28px; }
  .la-logos__list img { height: 16px; }
  .la-logos__list::before, .la-logos__list::after { display: none; }
}

/* ============================================================ the standard */
.la-standard { background: var(--cloud); color: var(--charcoal); padding-block: 80px; }
/* vertical hairline at Figma x 909 — continues through "where the line is drawn" */
.la-standard::before, .la-cutoff::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); pointer-events: none;
  left: calc(var(--la-cx) + .6477 * var(--la-cw));
}
.la-standard .container, .la-cutoff .container { position: relative; z-index: 1; }
.la-standard__head {
  display: grid; grid-template-columns: 64.77% minmax(0, 22.8%); column-gap: 4.375%; align-items: end;
}
.la-standard__intro { display: flex; flex-direction: column; align-items: flex-start; }
.la-standard__intro .la-h1 { margin-top: 24px; max-width: 646px; }
.la-standard__lead { margin-top: 56px; max-width: 708px; font-size: var(--fs-md); line-height: var(--lh-body); }
.la-standard__aside { font-size: var(--fs-md); line-height: var(--lh-body); }
.la-cards {
  position: relative; list-style: none; margin: 112px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
/* full-bleed hairline between intro and cards (Figma y 449) */
.la-cards::before { content: ""; position: absolute; top: -56px; left: -100vw; right: -100vw; height: 1px; background: var(--line); }
.la-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  min-height: 300px; padding: 20px 32px 32px; background: var(--white);
}
.la-card__icon { width: 110px; height: 110px; color: var(--charcoal); }
.la-card__body { display: grid; gap: 24px; }
.la-card__title { font-size: var(--fs-h5); line-height: 1; font-weight: 500; letter-spacing: var(--track); }
.la-card__text { font-size: var(--fs-md); line-height: var(--lh-body); }

@media (max-width: 1023px) {
  .la-standard__head { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .la-standard__lead { margin-top: 32px; }
  .la-standard::before, .la-cutoff::before { display: none; }
}
@media (max-width: 899px) {
  .la-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 48px; }
  .la-cards::before { display: none; }
  .la-card { min-height: 0; justify-content: flex-start; gap: 20px; padding: 16px 24px 24px; }
  .la-card__icon { width: 64px; height: 64px; }
  .la-card__body { gap: 12px; }
}
@media (max-width: 767px) {
  .la-standard { padding-block: 48px 64px; }
  .la-standard__intro .la-h1 { margin-top: 16px; }
  .la-standard__lead, .la-standard__aside, .la-card__text { font-size: var(--fs-sm); }
  .la-card__title { font-size: 22px; }
}

/* ==================================================== where the line is drawn */
.la-cutoff { background: var(--cloud); color: var(--charcoal); padding-block: 80px; }
.la-cutoff__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.la-cutoff__copy { flex: 0 1 600px; min-width: 0; min-height: 432px; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; }
.la-cutoff__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.la-cutoff__text { display: grid; gap: 64px; max-width: 600px; font-size: var(--fs-md); line-height: var(--lh-body); }

/* the chart: Figma 8016:1014, 496 px square; everything placed in % of it */
.la-chart {
  position: relative; flex: none; margin: 0; overflow: hidden;
  width: clamp(360px, 34.45vw, 496px); aspect-ratio: 1;
  background: var(--sage); color: var(--white); font-size: var(--fs-sm); line-height: 1.6;
}
.la-chart__glow { --k: 1px; left: -211.1%; top: -182.67%; width: 530.46%; height: 555.49%; }
.la-chart__dot {
  position: absolute; z-index: 1; width: 4.032%; aspect-ratio: 1; border-radius: 50%; background: var(--white);
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
}
.la-chart__dot--pass { background: var(--lime); }
.la-chart__line {
  position: absolute; z-index: 1; left: 8.065%; width: 75.81%; top: 35.69%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 4px, transparent 4px 8px);
}
.la-chart__label {
  position: absolute; z-index: 2; top: 32.26%; right: 8.06%;
  padding: 12px; background: var(--lime); color: var(--charcoal); white-space: nowrap;
}
.la-chart__axis { position: absolute; z-index: 1; white-space: nowrap; }
.la-chart__axis--x { left: 40.3%; top: 88.9%; }
.la-chart__axis--y { left: 8.06%; top: 41.53%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.la-chart__axis--y svg { width: 16px; height: 16px; }
.la-chart__axis--y span { writing-mode: vertical-rl; transform: rotate(180deg); }
/* "Illustrative" — the dots are a sketch of the market, not plotted data */
.la-chart__note {
  position: absolute; z-index: 2; left: 8.06%; top: 5.5%;   /* top-left: the light corner, clear of dots and axes */
  font-size: 12px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: rgba(62, 61, 59, .78);
}

@media (max-width: 1023px) {
  .la-cutoff__inner { flex-direction: column; align-items: stretch; gap: 40px; }
  .la-cutoff__copy { flex: none; min-height: 0; gap: 32px; }
  .la-cutoff__text { gap: 24px; max-width: 640px; }
  .la-chart { width: min(100%, 496px); }
}
@media (max-width: 767px) {
  .la-cutoff { padding-block: 48px 64px; }
  .la-cutoff__head { gap: 16px; }
  .la-cutoff__text { font-size: var(--fs-sm); }
  .la-chart { width: 100%; font-size: 12px; }
  .la-chart__label { padding: 6px 8px; }
}

/* ========================================================== under the hood */
.la-hood { background: var(--white); color: var(--charcoal); padding-block: 120px 80px; }
/* container-edge hairlines (Figma x 80 / 1360) */
.la-hood::before {
  content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none;
  left: var(--la-cx); right: var(--la-cx); border-inline: 1px solid var(--line);
}
.la-hood > * { position: relative; }
.la-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.la-hood__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 56px; }
.la-hood__heading { flex: 0 1 611px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; } /* 24 in Figma, measured from the trimmed eyebrow box */
.la-hood__title { line-height: 1.1; }
/* Figma trims these text boxes to cap height / baseline (text-box-trim); browsers without it are just a little taller */
.la-hood__heading .eyebrow, .la-hood__title, .la-hood__lead { text-box: trim-both cap alphabetic; }
.la-hood__lead { flex: 0 1 606px; font-size: var(--fs-md); line-height: var(--lh-body); }
/* small laptops / landscape tablets: keep "One simple answer." on one line (no lone "answer.") */
@media (min-width: 1024px) { .la-hood__heading { min-width: min(611px, 5vw * 8.6); } }

/* the band: rows of 400 px with full-bleed hairlines (Figma 344 / 744 / 1144 / 1544) */
.la-hood__band {
  margin-top: 56px; border-block: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent 0 399px, var(--line) 399px 400px);
}
.la-hood__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 650px); column-gap: 24px; padding-block: 11px 12px; }
.la-hood__grid.container { padding-right: calc(var(--gutter) + 12px); }
.la-hood__note {
  align-self: start; height: 376px; padding: 20px 32px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
}
.la-hood__badge { width: 100px; height: 100px; color: var(--charcoal); }
.la-hood__note-body { display: grid; gap: 24px; }
.la-hood__note-title { font-size: var(--fs-h7); line-height: 1.2; font-weight: 600; }
.la-hood__note-text { max-width: 318px; font-size: var(--fs-md); line-height: var(--lh-body); font-weight: 500; }
.la-hood__caption { margin-top: 56px; text-align: center; font-size: var(--fs-md); line-height: var(--lh-body); font-weight: 600; text-wrap: balance; }

/* ---- the flow diagram (Figma 8016:1052). Geometry in CSS vars so the dashed feedback loop can be placed. */
.la-flow-card {
  --pad-t: 56px; --pad-x: 51px; --pad-b: 48px;
  --r: 28px;
  --h-src: 122px; --h-in: 131px; --bus-in: 93px; --h-pill: 40px; --h-stem: 89px;
  --h-engine: 108px; --w-engine: 140px; --h-out: 95px; --bus-out: 45px;
  --h-model: 50px; --h-in2: 125px; --bus-in2: 45px;
  --w-score: 140px; --dec-gap: 27px; --dec-exit: 41px; --dot-off: 30px; --out-gap: 50px;
  --h-monitor: 40px; --mon-gap: 22px;
  --loop-x: 34px;
  --c: var(--la-wire);
  position: relative; margin: 0; padding: var(--pad-t) var(--pad-x) var(--pad-b);
  background: var(--cloud); color: var(--charcoal);
}
.la-flow { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); line-height: 1.6; font-weight: 500; letter-spacing: var(--track); }
.la-flow ul { list-style: none; margin: 0; padding: 0; }
.la-flow p { margin: 0; }
.la-flow__stage { display: flex; flex-direction: column; align-items: center; }
.la-ico { display: block; flex: none; width: 24px; height: 24px; color: var(--charcoal); }
.la-src, .la-model, .la-node, .la-out { position: relative; background: var(--white); box-shadow: 0 4px 10px rgba(0, 0, 0, .06); }

/* lime connector dots */
.la-src::after, .la-model::before, .la-out::after {
  content: ""; position: absolute; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--lime); z-index: 1;
}
.la-src::after { bottom: -3px; }
.la-model::before { top: -3px; }

.la-flow__row { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; }
.la-src {
  width: min(120px, calc(100% - 8px)); height: var(--h-src); padding: 12px 6px 12px 12px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  overflow-wrap: break-word; hyphens: auto;
}
.la-model {
  width: min(130px, calc(100% - 6px)); height: var(--h-model); padding: 8px;
  display: flex; align-items: center; gap: 8px; line-height: 1.2;
}
.la-node--pill { height: var(--h-pill); padding: 8px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.la-node--engine {
  width: var(--w-engine); height: var(--h-engine); display: grid; place-items: center; text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}
.la-node--score {
  width: var(--w-score); padding: 16px 12px 12px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 11px; box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}
.la-score { position: relative; display: grid; place-items: center; width: 100px; height: 100px; flex: none; }
.la-score::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); opacity: .5; filter: blur(20px); }
.la-score > span {
  position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--lime); font-size: 32px; line-height: 1.2; font-weight: 600;
}
.la-score__label { text-transform: uppercase; white-space: nowrap; }

/* wires — "in": N columns merge into one stem; "out" is the same shape flipped */
.la-wire { position: relative; flex: none; width: 100%; }
.la-wire--in { height: var(--h-in); --bus: var(--bus-in); }
.la-flow__stage:nth-child(4) .la-wire--in { height: var(--h-in2); --bus: var(--bus-in2); }
.la-wire--out { height: var(--h-out); --bus: var(--bus-out); transform: scaleY(-1); }
.la-wire--stem { height: var(--h-stem); background: linear-gradient(var(--c), var(--c)) center / 1px 100% no-repeat; }
.la-wire i { position: absolute; top: 0; height: var(--bus); border: 0 solid var(--c); }
.la-wire i:nth-child(1), .la-wire i:nth-child(2) { right: calc(50% + var(--r)); border-left-width: 1px; border-bottom-width: 1px; border-bottom-left-radius: var(--r); }
.la-wire i:nth-child(3), .la-wire i:nth-child(4) { left: calc(50% + var(--r)); border-right-width: 1px; border-bottom-width: 1px; border-bottom-right-radius: var(--r); }
.la-wire i:nth-child(1) { left: 12.5%; }
.la-wire i:nth-child(2) { left: 37.5%; }
.la-wire i:nth-child(3) { right: 37.5%; }
.la-wire i:nth-child(4) { right: 12.5%; }
.la-wire b {
  position: absolute; top: calc(var(--bus) - 1px); bottom: 0; left: calc(50% - var(--r)); width: calc(2 * var(--r) + 1px);
  background: linear-gradient(var(--c), var(--c)) var(--r) 100% / 1px calc(100% - var(--r)) no-repeat;
}
.la-wire b::before, .la-wire b::after { content: ""; position: absolute; top: 0; width: calc(var(--r) + 1px); height: var(--r); border: 0 solid var(--c); border-top-width: 1px; }
.la-wire b::before { left: 0; border-right-width: 1px; border-top-right-radius: var(--r); }
.la-wire b::after { right: 0; border-left-width: 1px; border-top-left-radius: var(--r); }
.la-wire--arrow::after {
  content: ""; position: absolute; bottom: 0; left: calc(50% - 4px);
  border-style: solid; border-width: 5px 4.5px 0; border-color: var(--c) transparent transparent;
}

/* decision: score → approved / rejected, approved → continuous monitoring */
.la-flow__stage--decide { align-items: stretch; padding-top: var(--dec-gap); }
.la-flow__outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: space-between; column-gap: var(--out-gap); padding-inline: 9px; }
.la-out { display: flex; align-items: center; gap: 8px; min-height: 62px; padding: 8px; line-height: 1.4; }
.la-out::after { top: -3px; left: calc(50% - var(--dot-off) - 3px); }
.la-out--no::after { left: calc(50% + var(--dot-off) - 3px); }
.la-out strong { display: block; font-size: var(--fs-md); line-height: 1.6; font-weight: 600; }
.la-ico--lg { width: 40px; height: 40px; }
.la-out--ok .la-ico { color: var(--lime); }
.la-out--no .la-ico { color: rgba(62, 61, 59, .3); }
/* wire from the side of the score card down to each outcome */
.la-out__wire, .la-out__link { position: absolute; pointer-events: none; border: 0 solid var(--c); }
.la-out__wire { top: calc(-1 * (var(--dec-gap) + var(--dec-exit))); height: calc(var(--dec-gap) + var(--dec-exit)); border-top-width: 1px; }
.la-out--ok .la-out__wire { left: calc(50% - var(--dot-off)); right: calc(var(--w-score) / 2 - var(--out-gap) / 2); border-left-width: 1px; border-top-left-radius: var(--r); }
.la-out--no .la-out__wire { right: calc(50% - var(--dot-off)); left: calc(var(--w-score) / 2 - var(--out-gap) / 2); border-right-width: 1px; border-top-right-radius: var(--r); }
.la-out__link { top: 100%; left: calc(50% - var(--dot-off)); height: var(--mon-gap); border-left-width: 1px; }
.la-out__link::after { content: ""; position: absolute; bottom: -3px; left: -3.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.la-flow .la-node--monitor {
  align-self: flex-start; margin: var(--mon-gap) 0 0 9px; height: var(--h-monitor); padding: 8px;
  display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; white-space: nowrap; z-index: 1;
}
/* dashed feedback loop: monitoring → back into the engine (Figma vector 16) */
.la-flow__loop {
  position: absolute; z-index: 0; pointer-events: none;
  left: var(--loop-x); width: calc(50% - var(--w-engine) / 2 - var(--loop-x));
  top: calc(var(--pad-t) + var(--h-src-total, var(--h-src)) + var(--h-in) + var(--h-pill) + var(--h-stem) + var(--h-engine) / 2);
  bottom: calc(var(--pad-b) + var(--h-monitor) / 2 + var(--r));
  border-top: 1px dashed var(--c); border-left: 1px dashed var(--c); border-top-left-radius: var(--r);
}
.la-flow__loop::after {
  content: ""; position: absolute; top: 100%; left: -1px; width: 64px; height: var(--r);
  border-left: 1px dashed var(--c); border-bottom: 1px dashed var(--c); border-bottom-left-radius: var(--r);
}

/* tablet + phone: head stacks, diagram first, the note under it */
@media (max-width: 1023px) {
  .la-hood { padding-block: 64px; }
  .la-hood__head { flex-direction: column; align-items: stretch; }
  .la-hood__heading, .la-hood__lead { flex: none; }
  .la-hood__lead { max-width: 640px; }
  .la-hood__band { margin-top: 40px; background: none; }
  .la-hood__grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; padding-block: 8px 24px; }
  .la-hood__grid.container { padding-right: var(--gutter); }
  .la-flow-card { order: -1; justify-self: center; width: min(100%, 650px); }
  .la-hood__note { height: auto; gap: 32px; padding: 0 12px; }
  .la-hood__caption { margin-top: 40px; }
}
@media (max-width: 767px) {
  .la-hood { padding-block: 64px 48px; }
  .la-hood__heading { gap: 16px; }
  .la-hood__title { line-height: 1.05; }
  .la-hood__lead { font-size: var(--fs-sm); }
  .la-hood__band { margin-top: 40px; }
  .la-hood__badge { width: 80px; height: 80px; }
  .la-hood__note-title { font-size: clamp(22px, 7vw, 24px); }
  .la-hood__caption { font-size: var(--fs-sm); max-width: 360px; }

  .la-flow-card {
    --pad-t: 20px; --pad-x: 20px; --pad-b: 20px;
    --r: 14px;
    --h-src: 96px; --h-in: 56px; --bus-in: 30px; --h-pill: 32px; --h-stem: 36px;
    --h-engine: 64px; --w-engine: 110px; --h-out: 32px;
    --h-model: 44px; --h-in2: 36px;
    --w-score: 112px; --dec-gap: 22px; --dec-exit: 30px; --dot-off: 20px; --out-gap: 10px;
    --h-monitor: 32px; --mon-gap: 16px;
    --loop-x: 8px;
  }
  .la-flow { font-size: 12px; line-height: 1.3; }
  .la-ico { width: 18px; height: 18px; }
  .la-src { width: calc(100% - 6px); padding: 6px; font-size: 11px; }
  .la-src .la-ico { width: 16px; height: 16px; }
  .la-node--pill, .la-node--monitor { padding: 6px 8px; gap: 6px; }
  /* models: 2 × 2 grid joined by a single stem */
  .la-flow__row--models { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .la-model { width: 100%; padding: 6px 8px; }
  .la-model::before { display: none; }
  .la-wire--out i, .la-flow__stage:nth-child(4) .la-wire--in i,
  .la-wire--out b::before, .la-wire--out b::after,
  .la-flow__stage:nth-child(4) .la-wire--in b::before, .la-flow__stage:nth-child(4) .la-wire--in b::after { display: none; }
  .la-wire--out b, .la-flow__stage:nth-child(4) .la-wire--in b { top: 0; background-size: 1px 100%; }
  .la-node--score { padding: 12px 8px 10px; gap: 6px; }
  .la-score { width: 72px; height: 72px; }
  .la-score > span { width: 62px; height: 62px; font-size: 22px; }
  .la-flow__outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; }
  .la-out { min-height: 56px; padding: 6px; gap: 6px; font-size: 11px; line-height: 1.3; }
  .la-out strong { font-size: 13px; line-height: 1.4; }
  .la-ico--lg { width: 28px; height: 28px; }
  .la-flow .la-node--monitor { margin-left: 0; }
}
/* very narrow phones: sources also go 2 × 2 so no word is squeezed */
@media (max-width: 359px) {
  .la-flow-card { --h-src: 62px; --h-src-total: 130px; --h-in: 32px; }
  .la-flow__row--sources { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .la-src { width: 100%; }
  .la-src::after { display: none; }
  .la-flow__stage:first-child .la-wire--in i,
  .la-flow__stage:first-child .la-wire--in b::before, .la-flow__stage:first-child .la-wire--in b::after { display: none; }
  .la-flow__stage:first-child .la-wire--in b { top: 0; background-size: 1px 100%; }
}

/* =============================================================== above the line (featured projects) */
/* Continues the Soft Cloud band of the cutoff section; one card per theme (templates/landing/_featured.html). */
.la-made { background: var(--cloud); color: var(--charcoal); padding-block: 0 96px; }
.la-made__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 72px; margin-bottom: 40px;
}
.la-made__head .eyebrow { margin-bottom: 16px; }
.la-made__title { margin: 0; }
.la-made__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.la-made__list > li { display: flex; }
.la-made__card {
  flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 300px; padding: 24px 32px 32px;
  background: var(--white); color: inherit; text-decoration: none; box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
  transition: box-shadow .2s ease, transform .2s ease;
}
.la-made__card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.la-made__card:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.la-made__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: var(--fs-sm); line-height: 1.4; }
.la-made__grade { padding: 4px 12px; background: var(--lime); font-weight: 600; letter-spacing: .02em; }
.la-made__name { margin: 0; font-size: var(--fs-h7); line-height: 1.2; font-weight: 600; letter-spacing: var(--track); text-wrap: balance; }
.la-made__place { font-size: var(--fs-sm); color: rgba(62, 61, 59, .78); }
.la-made__why { flex: 1; font-size: var(--fs-md); line-height: var(--lh-body); }
.la-made__more { font-size: var(--fs-md); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (prefers-reduced-motion: reduce) { .la-made__card, .la-made__card:hover { transition: none; transform: none; } }
@media (max-width: 1023px) {
  .la-made__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .la-made__card { min-height: 0; padding: 20px 24px 24px; }
}
@media (max-width: 767px) {
  .la-made { padding-bottom: 64px; }
  .la-made__head { padding-top: 48px; margin-bottom: 28px; }
  .la-made__all { width: 100%; }
}
