  :root {
    --bg:#0b0e13; --surface:#141922; --surface-2:#1b212c; --ink:#e8e9ea; --dim:#a2a9b4; --accent:#ff453a; --accent-ink:#0b0e13;
    --m: clamp(20px, 3vw, 44px);
    --sans:"Work Sans", system-ui, sans-serif; --serif:"Gambarino", Georgia, serif;
    --mono: ui-monospace, "SF Mono", Menlo, monospace; /* taste-skill-ignore: only for code, pre and command output */
    --ease: cubic-bezier(.2,.7,.1,1);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { background: var(--bg); }
  body { background: var(--bg); color: var(--ink); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
  a { color: inherit; }
  ::selection { background: var(--accent); color: var(--accent-ink); }
  code, pre, output { font-family: var(--mono); }
  .btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 12px 20px; font-weight: 500; font-size: 16px; text-decoration: none; transition: transform .25s var(--ease), background .25s; }
  .btn:hover { transform: translateY(-2px); background: #ff6a61; }
  .btn:active { transform: translateY(0); }
  a.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s; }
  a.link:hover { color: var(--accent); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  /* reveal on scroll */
  .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .rv.in { opacity: 1; transform: none; }
  .mask { display: block; overflow: hidden; }
  .mask > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
  .in .mask > span, .mask.in > span { transform: none; }

  /* ---------- 1. hero ---------- */
  .hero { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 0 var(--m); position: relative; overflow: hidden; }
  .bar { display: flex; justify-content: space-between; align-items: center; height: 84px; font-size: 15px; }
  .bar nav { display: flex; gap: 32px; align-items: center; }
  .bar nav a:not(.btn) { text-decoration: none; transition: color .2s; }
  .bar nav a:not(.btn):hover { color: var(--accent); }
  .hero .core { align-self: center; max-width: 1100px; margin-left: 12vw; padding-bottom: 4vh; }
  .hero h1 { font-weight: 300; font-size: clamp(32px, 6.2vw, 100px); line-height: 1.02; letter-spacing: -.035em; min-height: 2.04em; }
  .hero h1 .cur { display: inline-block; width: .06em; height: .8em; background: var(--accent); margin-left: .06em; vertical-align: -.04em; animation: blink 1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .hero .sub { margin-top: 28px; font-size: 19px; max-width: 46ch; color: var(--ink); }
  .versions { display: flex; gap: 6px; margin-top: 34px; flex-wrap: wrap; align-items: center; }
  .versions span { font-size: 15px; color: var(--dim); margin-right: 8px; }
  .versions button { font: 400 15px/1 var(--sans); background: var(--surface); color: var(--ink); border: 0; padding: 11px 14px; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
  .versions button:hover { background: var(--surface-2); transform: translateY(-2px); }
  .versions button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
  .monument { font-weight: 300; font-size: 15.2vw; line-height: .78; letter-spacing: -.05em; white-space: nowrap; margin: 0 calc(var(--m) * -.2); padding-bottom: 2.4vw; }
  .monument .mask > span { transition-delay: .2s; }
  .served { margin-top: 22px; font-size: 15px; color: var(--dim); }
  .served b { color: var(--accent); font-weight: 400; }

  /* ---------- 2. stair ---------- */
  .stair { min-height: 84svh; display: flex; flex-direction: column; justify-content: center; padding: 0 4vw; background: #05070a; }
  .stair p.big { font-weight: 500; font-size: clamp(36px, 4.6vw, 70px); line-height: 1.04; letter-spacing: -.025em; }
  .stair p.big .mask:nth-child(2){padding-left:6vw} .stair p.big .mask:nth-child(3){padding-left:12vw;color:var(--accent)}
  .stair p.big .mask:nth-child(4){padding-left:18vw} .stair p.big .mask:nth-child(5){padding-left:24vw}
  .stair p.big .mask:nth-child(2) > span{transition-delay:.08s} .stair p.big .mask:nth-child(3) > span{transition-delay:.16s}
  .stair p.big .mask:nth-child(4) > span{transition-delay:.24s} .stair p.big .mask:nth-child(5) > span{transition-delay:.32s}
  .stair .note { margin-top: 72px; font-size: 16px; color: var(--dim); max-width: 44ch; }

  /* ---------- 3. same problem, my way ---------- */
  .systems { padding: 160px var(--m) 120px; }
  .systems h2 { font-weight: 400; font-size: clamp(30px, 2.8vw, 44px); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 64px; max-width: 24ch; }
  .sys { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: center; padding: 30px 0; }
  .sys + .sys { margin-top: 8px; }
  .sys h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7.4vw, 124px); line-height: .96; letter-spacing: -.02em; transition: color .3s; white-space: nowrap; }
  .sys h3 i { font-style: normal; color: #4a5260; transition: color .3s; }
  .sys:hover h3 i { color: var(--accent); }
  .sys .desc { font-size: 17px; color: var(--dim); margin-top: 14px; max-width: 52ch; }
  .sys .desc b { color: var(--ink); font-weight: 500; }
  .frag { background: var(--surface); padding: 18px 20px; font: 400 15px/1.6 var(--sans); color: var(--ink); height: 190px; overflow: hidden; position: relative; }
  .frag .k { color: var(--accent); }
  .frag .d { color: var(--dim); }
  .frag canvas { width: 100%; height: 136px; display: block; }
  .frag .cap { font: 400 13px/1.4 var(--sans); color: var(--dim); margin-top: 8px; }
  .bucket { display: flex; gap: 5px; margin: 10px 0 14px; }
  .bucket i { flex: 1; height: 26px; background: var(--ink); transition: background .2s; }
  .bucket i.empty { background: var(--surface-2); }
  .frag button { font: 500 14px/1 var(--sans); background: var(--ink); color: var(--bg); border: 0; padding: 10px 14px; cursor: pointer; transition: transform .15s var(--ease); }
  .frag button:active { transform: scale(.96); }
  .frag .status { display: inline-block; margin-left: 12px; }
  .frag .status.no { color: var(--accent); }

  /* ---------- 4. any version of me ---------- */
  .frag pre { font: 400 13.5px/1.65 var(--mono); }
  .history { padding: 140px var(--m); display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; background: #0e1219; }
  .history h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.8vw, 76px); line-height: 1; letter-spacing: -.02em; }
  .history .lede { margin-top: 24px; max-width: 40ch; color: var(--ink); }
  .term .scrub { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
  .term .scrub button { font: 400 15px/1 var(--sans); padding: 11px 14px; border: 0; cursor: pointer; background: var(--surface); color: var(--ink); transition: background .2s, transform .2s var(--ease); }
  .term .scrub button:hover { transform: translateY(-2px); background: var(--surface-2); }
  .term .scrub button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
  .term pre { display: block; padding: 24px; min-height: 270px; white-space: pre-wrap; font-size: 14.5px; line-height: 1.65; background: var(--surface); }
  .term pre .k { color: var(--accent); }

  /* ---------- 5. shipped ---------- */
  .work { padding: 200px var(--m) 120px; }
  .work > h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.8vw, 76px); letter-spacing: -.02em; margin-bottom: 96px; }
  .proj { display: grid; grid-template-columns: 8fr 4fr; gap: 56px; align-items: end; margin-bottom: 180px; }
  .proj.flip { grid-template-columns: 4fr 8fr; }
  .proj.flip .media { order: 2; }
  .media { overflow: hidden; }
  .media img { width: 100%; height: auto; display: block; transform: scale(1.06); transition: transform 1.6s var(--ease); }
  .in .media img, .media.in img { transform: scale(1); }
  .proj h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 6vw, 96px); line-height: .92; letter-spacing: -.02em; }
  .proj .what { margin: 18px 0 22px; font-size: 21px; line-height: 1.4; }
  .proj .facts { font-size: 15px; color: var(--dim); }
  .proj .facts b { color: var(--ink); font-weight: 500; }
  /* project fragments, built in HTML */
  [data-ui] { font-family: var(--sans); }
  .verdict { background: var(--surface); padding: 32px; }
  .verdict .motion { font-size: 22px; line-height: 1.35; max-width: 34ch; }
  .verdict .split { display: flex; height: 44px; margin: 26px 0 12px; }
  .verdict .split div { display: flex; align-items: center; padding: 0 14px; font-size: 15px; font-weight: 500; }
  .verdict .split .for { background: var(--ink); color: var(--bg); width: 50%; transition: width 1s var(--ease); white-space: nowrap; }
  .verdict .split .against { background: var(--surface-2); color: var(--dim); flex: 1; justify-content: flex-end; }
  .verdict .row { display: flex; justify-content: space-between; font-size: 15px; color: var(--dim); padding: 8px 0; }
  .verdict .row b { color: var(--ink); font-weight: 500; }
  .verdict .feed { list-style: none; min-height: 102px; font-size: 15px; }
  .verdict .feed li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; color: var(--dim); animation: rise .6s var(--ease); }
  .verdict .feed li b { color: var(--ink); font-weight: 500; white-space: nowrap; }
  .verdict .feed li b.ag { color: var(--accent); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
  .verdict .ruling { opacity: 0; transition: opacity .8s; }
  .verdict .ruling.on { opacity: 1; }
  .verdict .ruling { margin-top: 18px; font-size: 16px; line-height: 1.55; color: var(--ink); max-width: 56ch; }
  .quote { background: var(--surface); padding: 32px; }
  .quote .src { font-size: 14px; color: var(--dim); margin-bottom: 14px; }
  .quote blockquote { font-family: var(--serif); font-size: 30px; line-height: 1.2; max-width: 30ch; }
  .quote .ok { margin-top: 20px; font-size: 15px; color: var(--ink); display: flex; gap: 10px; align-items: center; }
  .quote blockquote span { color: #8a929e; transition: color .25s; }
  .quote blockquote span.hit { color: var(--ink); }
  .quote .ok i { transition: background .3s; } .quote .ok:not(.done) i { background: #4a5260; }
  .quote .ok i { width: 10px; height: 10px; background: #4cd07d; border-radius: 50%; }
  .quote .dec { margin-top: 18px; font-size: 15px; color: var(--dim); }

  .mcp { background: var(--surface); padding: 32px; }
  .mcp pre { font-size: 16px; line-height: 1.7; white-space: pre-wrap; min-height: 12em; }
  .mcp .k { color: var(--accent); } .mcp .d { color: var(--dim); }

  /* ---------- one project per screen ---------- */
  .work { padding: 160px var(--m) 0; }
  .work > h2 { margin-bottom: 0; }
  .show { min-height: 100svh; display: grid; grid-template-columns: 9fr 3fr; gap: 48px; align-items: center; padding: 24px var(--m); }
  .show.flip { grid-template-columns: 3fr 9fr; }
  .show.flip .show-media { order: 2; }
  .show-media { overflow: hidden; }
  .show-media video { width: 100%; height: auto; display: block; background: var(--surface); }
  .show h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 7vw, 120px); line-height: .9; letter-spacing: -.02em; }
  .show .what { margin: 22px 0 32px; font-size: 22px; line-height: 1.4; max-width: 30ch; }
  .facts div { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 7px 0; font-size: 15px; }
  .facts dt { color: var(--dim); }
  .facts dd { color: var(--ink); }
  .show .link { display: inline-block; margin-top: 28px; font-size: 17px; }
  .show-media.quote { padding: 48px; }
  .show-media.quote { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
  .show-media.quote blockquote { font-size: clamp(22px, 2.2vw, 32px); max-width: 34ch; }

  /* ---------- tools ---------- */
  .tools { padding: 140px var(--m); background: #0e1219; }
  .tools-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
  .tools h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.8vw, 76px); line-height: 1; letter-spacing: -.02em; }
  .filter { display: flex; gap: 6px; flex-wrap: wrap; }
  .filter button { font: 400 15px/1 var(--sans); padding: 12px 16px; border: 0; cursor: pointer; background: var(--surface); color: var(--ink); transition: background .2s, transform .2s var(--ease); }
  .filter button:hover { transform: translateY(-2px); background: var(--surface-2); }
  .filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
  .cloud { list-style: none; display: flex; flex-wrap: wrap; font-weight: 300; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.22; letter-spacing: -.025em; max-width: 1280px; }
  .cloud button { font: inherit; letter-spacing: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: default; transition: color .35s, opacity .35s; }
  .cloud button sup { font: 400 13px/1 var(--sans); letter-spacing: 0; color: var(--dim); margin-left: 3px; vertical-align: super; }
  .cloud button.now { color: #c8ccd2; } .cloud button.next { color: #6e7682; }
  .cloud button:hover, .cloud button:focus-visible { color: var(--accent); }
  .cloud button.off { opacity: .14; }
  .cloud li { display: inline; }
  .cloud .sep { color: #3a414d; margin: 0 .28em; }
  .where { margin-top: 40px; font-size: 17px; color: var(--dim); min-height: 1.6em; max-width: 60ch; }
  .where b { color: var(--ink); font-weight: 500; }

  /* ---------- 6. contact ---------- */
  .contact { min-height: 100svh; position: relative; padding: 56px var(--m); background: #05070a; overflow: hidden; }
  .contact p { font-size: 23px; max-width: 30ch; }
  .contact .mail { position: absolute; left: var(--m); right: var(--m); bottom: 15vh; font-weight: 300; font-size: 7.6vw; line-height: 1; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; transition: color .3s; }
  .contact .mail:hover { color: var(--accent); }
  .contact .corners { position: absolute; left: var(--m); right: var(--m); bottom: 36px; display: flex; justify-content: space-between; font-size: 15px; color: var(--dim); }
  .contact .corners a { color: var(--ink); text-decoration: none; margin-left: 24px; }
  .contact .corners a:hover { color: var(--accent); }

  @media (max-width: 860px) {
    .hero .core { margin-left: 0; }
    .sys { grid-template-columns: 1fr; gap: 20px; }
    .sys h3 { font-size: 11vw; white-space: normal; }
    .frag { height: auto; min-height: 170px; }
    .tools-head { align-items: start; }
    .history, .proj, .proj.flip { grid-template-columns: 1fr; }
    .proj.flip .media { order: 0; }
    .show, .show.flip { grid-template-columns: 1fr; min-height: auto; padding: 56px var(--m); }
    .stair { padding: 140px 20px; min-height: auto; }
    .stair p.big { font-size: 8.4vw; }
    .stair p.big .mask:nth-child(n) { padding-left: 0; }
    .stair p.big .mask:nth-child(3) { padding-left: 5vw; } .stair p.big .mask:nth-child(4) { padding-left: 10vw; } .stair p.big .mask:nth-child(5) { padding-left: 15vw; }
    .term pre { font-size: 12.5px; padding: 18px; }
    .show-text { order: -1; }
    .show-media.quote { min-height: auto; padding: 28px; }
    .contact { min-height: 72svh; }
    .show.flip .show-media { order: 0; }
    .contact .mail { font-size: 13vw; white-space: normal; }
  }
  @media (max-width: 520px) {
    .bar nav a:not(.btn) { display: none; }
  }
  .btn { white-space: nowrap; }
  @media (prefers-reduced-motion: reduce) {
    .rv, .mask > span, .media img { transition: none !important; opacity: 1 !important; transform: none !important; }
    .hero h1 .cur { animation: none; }
  }
