/* evergreen only: accent variables and page-specific components */

  body{--a1:#34D399;--a2:#22D3EE}
  .cs-hero{padding:150px 0 50px;overflow:hidden}
  .back{display:inline-flex;align-items:center;gap:9px;font-size:13.5px;font-weight:600;color:var(--muted);margin-bottom:30px}
  .back:hover{color:var(--text)}
  .cs-lede{font-size:clamp(19px,2.1vw,24px);line-height:1.5;color:var(--text);max-width:58ch;margin:26px 0 0;font-family:var(--serif)}
  .cs-body{padding:56px 0 40px}
  .sec{padding:60px 0 0}
  .sec h2{font-size:14px;font-family:var(--sans);font-weight:700;letter-spacing:.01em;color:var(--dim);margin-bottom:12px}
  .sec > h3{font-size:clamp(24px,2.8vw,34px);line-height:1.15;margin:0 0 20px;color:var(--text)}
  .cs-body .body,.cs-body .cap,.cs-body .stackline p{max-width:76ch}
  .steps-n{list-style:none;padding:0;margin:0;counter-reset:s}
  .artifacts{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:24px 0 0}
  @media(max-width:700px){.artifacts{grid-template-columns:1fr;gap:22px}}
  .subq{font-family:var(--serif);font-weight:500;letter-spacing:-.018em;
    font-size:clamp(19px,2vw,25px);line-height:1.3;color:var(--text);max-width:none;
    text-wrap:balance;margin:0 0 18px}
  .artifacts h4{font-family:var(--sans);font-size:12px;font-weight:700;letter-spacing:.14em;
    text-transform:uppercase;color:var(--text);margin:0 0 5px}
  .artifacts .who{font-size:13.5px;line-height:1.5;color:var(--dim);margin:0 0 14px;font-style:italic}
  .artifacts ul{list-style:none;padding:0;margin:0}
  .artifacts li{position:relative;padding-left:18px;font-size:16px;line-height:1.75;color:var(--muted)}
  .artifacts li::before{content:"";position:absolute;left:2px;top:.72em;width:5px;height:5px;
    border-radius:50%;background:var(--a1);opacity:.8}
  .stackline{margin-top:26px}
  .stackline p{font-size:15px;line-height:1.7;color:var(--muted);max-width:70ch;margin:0 0 8px}
  .stackline b{color:var(--text);font-weight:600}
    /* story timeline: all steps visible, connected rail */
  .tl{margin-top:10px}
  .tl-item{display:grid;grid-template-columns:auto 1fr;gap:24px;padding-bottom:36px;position:relative}
  .tl-item:last-child{padding-bottom:0}
  .tl-item-mark{position:relative;z-index:1}
  .tl-num{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:700;color:#12100E;background:linear-gradient(140deg,var(--a1),var(--a2))}
  .tl-item::before{content:"";position:absolute;left:19px;top:46px;bottom:-6px;width:2px;background:linear-gradient(180deg,var(--a1),var(--a2));opacity:.32;z-index:0}
  .tl-item:last-child::before{display:none}
  .tl-item h4{font-family:var(--serif);font-weight:500;font-size:clamp(20px,2.3vw,26px);letter-spacing:-.02em;margin:0 0 10px;padding-top:7px}
  .tl-item .body{margin:0}
  @media(max-width:760px){
    .tl-item{gap:16px;padding-bottom:28px}
    .tl-num{width:34px;height:34px;font-size:12.5px}
    .tl-item::before{left:16px;top:40px}
    .tl-item h4{font-size:18px;padding-top:4px}
  }
  .steps-n li{counter-increment:s;position:relative;padding-left:54px;margin-bottom:26px;color:var(--muted);font-size:16.5px;line-height:1.7;max-width:68ch}
  .steps-n li b{color:var(--text);font-weight:700}
  .steps-n li::before{content:counter(s,decimal-leading-zero);position:absolute;left:0;top:1px;font-family:var(--serif);font-size:18px;
    background:linear-gradient(90deg,var(--a1),var(--a2));-webkit-background-clip:text;background-clip:text;color:transparent}
  .todo{border:1px dashed var(--line);border-radius:14px;padding:20px 22px;color:var(--dim);font-size:14.5px;line-height:1.65;max-width:68ch}
  .todo b{display:block;color:var(--muted);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;margin-bottom:7px}
  .loading-video{display:block;width:100%;height:auto}
  .voice-states-figure{margin:30px 0 0}
  .voice-states-figure>img,.repo-figure>img{display:block;width:100%;height:auto}
  .repo-figure{margin:34px 0 0}
  .voice-motion{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:clamp(28px,5vw,64px);align-items:center}
  .voice-motion>.cap{margin:0;max-width:48ch}
  .voice-video-crop{width:min(100%,320px);aspect-ratio:710/1540;background:transparent}
  .voice-video{display:block;width:100%;height:100%;object-fit:contain;margin:0;background:transparent;
    clip-path:inset(2.1% 5.8% 2.1% 5.8% round 14px)}
  .foundation-study{margin:30px 0 0}
  .foundation-screens{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,3vw,38px);align-items:start}
  .foundation-screen img{display:block;width:100%;height:auto}
  .foundation-screen p{margin:14px 0 0;font-size:13.5px;line-height:1.55;color:var(--muted)}
  .foundation-screen p b{color:var(--text);font-weight:650}
  .foundation-study>.cap{margin-top:26px}
  .foundation-motion{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:clamp(28px,5vw,64px);align-items:center;margin:34px 0 0}
  .foundation-motion>.cap{margin:0}
  .foundation-video-crop{position:relative;width:min(100%,320px);aspect-ratio:867/1791;overflow:hidden}
  .foundation-video{position:absolute;display:block;width:128.3%;max-width:none;height:auto;left:-17.2%;top:-4%;margin:0;background:transparent}
  .dark-mode-video{display:block;width:100%;height:auto;margin:0}
  .type-system-figure{margin:30px 0 0}
  .type-system-figure>img{display:block;width:100%;height:auto}
  .heebo-numeral-figure{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,360px);justify-content:start;gap:clamp(28px,5vw,64px);align-items:center;margin:34px 0 0}
  .heebo-numeral-figure>img{display:block;width:100%;height:auto}
  .heebo-numeral-figure>.cap{margin:0}
  @media(max-width:760px){
    .foundation-screens{grid-template-columns:1fr;gap:32px}
    .foundation-screen img{width:min(100%,390px)}
    .foundation-screen p{max-width:390px}
    .foundation-motion{grid-template-columns:1fr;gap:18px}
    .foundation-video-crop{width:min(100%,300px)}
    .voice-motion{grid-template-columns:1fr;gap:18px}
    .voice-video-crop{width:min(90%,320px)}
    .heebo-numeral-figure{grid-template-columns:1fr;gap:18px}
    .heebo-numeral-figure>img{width:min(100%,300px)}
  }
  .nextprev{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:70px 0 90px;border-top:1px solid var(--line);margin-top:70px}

  /* chart palette light/dark: one wide slot, not the three-up phone grid the
     .ba component was built for. 711px is the 1422px source at 2x, so it stays sharp. */
  .palette-ba .ba-row{grid-template-columns:1fr;max-width:none;margin-inline:0}
  /* the figure has no in-flow content (both images are absolutely positioned),
     so without an explicit width it shrink-wraps to the stage border. */
  .palette-ba .ba-slot{width:100%;max-width:711px}
  .palette-ba .ba-stage{aspect-ratio:1422/1836;border-radius:14px}
  .palette-ba .ba-stage img{object-fit:contain;object-position:top center}
  .palette-ba + .cap{margin-top:14px}
