/* Process page. The CLEAR block reuses AlphaLeap's five-filter treatment (connected markers + five cards);
   tokens are aliased here so it sits on the main site's theme system in both modes. */
.proc { --card: #FFFFFF; --ink: #0B0B0C; --ink-mute: #6B6A66; --ink-2: #55534E; --tile-shadow: none; --fg-rgb: 255 255 255; padding-top: 72px; }
[data-theme="light"] .proc { --fg-rgb: 14 12 10; --tile-shadow: 0 0 0 1px rgba(14,12,10,.07), 0 18px 40px -26px rgba(40,38,34,.3); }
.proc .wrap { max-width: 1180px; }
.proc__hero { padding: clamp(64px, 12vh, 128px) 0 clamp(40px, 7vh, 72px); }
.proc__hero .h2 { margin-top: 18px; font-size: clamp(44px, 6vw, 88px); line-height: .98; }
.proc__hero .lede { margin-top: 22px; max-width: 58ch; }
.proc__toc { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.proc__toc a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--mute); font-size: 14.5px; text-decoration: none; transition: color .2s, border-color .2s; }
.proc__toc a:hover, .proc__toc a:focus-visible { color: var(--text); border-color: rgb(var(--fg-rgb) / .4); }
.proc__toc b { font-weight: 600; font-size: 12px; letter-spacing: .06em; color: var(--dim); }
.proc__s { padding: clamp(64px, 10vh, 112px) 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.proc__two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.proc__k { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--dim); }
.proc__h { margin-top: 10px; font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.proc__head { max-width: 760px; margin-bottom: clamp(32px, 5vh, 56px); }
.proc__head .h2 { margin-top: 10px; }
.proc__head .lede { margin-top: 16px; }
.proc__body p { font-size: var(--t-read); line-height: var(--t-read-lh); color: var(--mute); max-width: 62ch; }
.proc__body p + p, .proc__body .proc__list + p { margin-top: 16px; }
.proc__list { list-style: none; margin: 22px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.proc__list li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: var(--t-read); line-height: 1.5; color: var(--mute); }
.proc__list b { font-weight: 500; color: var(--text); }
.proc__link { display: inline-flex; gap: 8px; color: var(--text); font-size: 15.5px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.proc__link:hover { text-decoration-color: currentColor; }
.proc__fine { margin-top: 22px; font-size: 13.5px; color: var(--dim); }
.proc__prods { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.proc__prods li { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.proc__prods h3 { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.proc__prods p { flex: 1; font-size: var(--t-read); line-height: 1.55; color: var(--mute); }

/* CLEAR — AlphaLeap's five-filter section */
.proc .cl { list-style: none; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.proc .cl::before, .proc .cl::after { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: rgb(var(--fg-rgb) / .14); }
.proc .cl::after { right: auto; width: calc((100% - 44px) * var(--prog, 0)); background: var(--text); }
.proc .cl__i { position: relative; display: flex; flex-direction: column; gap: 18px; }
.proc .cl__n { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: "Poppins", "Geist", system-ui, sans-serif; font-weight: 700; font-size: 16px; color: rgb(var(--fg-rgb) / .6); background: var(--bg-2); border: 1px solid rgb(var(--fg-rgb) / .16); transition: background .5s, color .5s, border-color .5s; }
.proc .cl__i.is-in .cl__n { background: var(--text); color: var(--bg); border-color: var(--text); }
.proc .cl__card { flex: 1; display: flex; flex-direction: column; padding: 24px 22px 22px; border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: var(--tile-shadow); }
.proc .cl__k { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.proc .cl__card h3 { margin-top: 12px; font-size: 21px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.proc .cl__card p:not(.cl__k) { margin: 10px 0 18px; font-size: var(--t-read); line-height: 1.55; color: var(--ink-2); }
.proc .cl__count { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: var(--t-micro, 13px); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .proc .cl { grid-template-columns: minmax(0, 1fr); padding-left: 64px; }
  .proc .cl::before, .proc .cl::after { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .proc .cl::after { bottom: auto; height: calc((100% - 44px) * var(--prog, 0)); }
  .proc .cl__i { display: block; }
  .proc .cl__n { position: absolute; left: -64px; top: 18px; }
  .proc .cl__card { display: block; }
  .proc .cl__count { display: inline-flex; }
}
@media (max-width: 860px) { .proc__two { grid-template-columns: minmax(0, 1fr); } .proc__prods { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .proc .cl { padding-left: 52px; } .proc .cl__n { left: -52px; width: 38px; height: 38px; font-size: 14px; } .proc .cl::before, .proc .cl::after { left: 19px; } }
@media (prefers-reduced-motion: reduce) { .proc .cl__n { transition: none; } }
/* CLEAR explainer video: never autoplays; captions + text equivalent */
.pvid { max-width: 900px; margin: 0 auto clamp(48px, 8vh, 80px); }
.pvid__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0A0A0B; box-shadow: 0 0 0 1px var(--line-2); }
.pvid__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pvid__cap { margin-top: 10px; font-size: 14px; color: var(--dim); text-align: center; }
.pvid__text { margin-top: 12px; text-align: center; }
.pvid__text summary { cursor: pointer; font-size: 15px; color: var(--text); display: inline-block; }
.pvid__text p { margin: 12px auto 0; max-width: 64ch; text-align: left; font-size: var(--t-read); line-height: 1.55; color: var(--mute); }

/* ── 03/04 as graphics (Oct 2026): one line of copy beside a diagram ── */
.pv { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pv__copy p:not(.proc__k) { margin-top: 14px; font-size: var(--t-read); line-height: 1.55; color: var(--mute); max-width: 34ch; }
.pnote2, .ptl { margin: 0; border-radius: 26px; background: var(--card); color: var(--ink); padding: clamp(20px, 2.6vw, 32px); box-shadow: var(--tile-shadow); }
.pnote2__top { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pnote2__dot { width: 8px; height: 8px; border-radius: 50%; background: #0B0B0C; box-shadow: 0 0 0 4px #EDEDEA; }
.pnote2__top em { margin-left: auto; font-style: normal; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #6B6A66; border: 1px solid #E2E1DD; padding: 4px 9px; border-radius: 999px; }
.pnote2__parts { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.pnote2__parts > li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 14px; background: #F4F4F3; }
.pnote2__parts i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #0B0B0C; color: #fff; font: 600 13px/1 "Geist", sans-serif; font-style: normal; }
.pnote2__parts b { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.pnote2 .bar { display: block; height: 8px; width: calc(var(--w) * 100%); border-radius: 4px; background: #D6D5D1; }
.pnote2 .ticks { display: flex; gap: 6px; }
.pnote2 .ticks u { text-decoration: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #0B0B0C; color: #fff; font: 700 12px/1 "Poppins", sans-serif; }
.pnote2 .band { position: relative; display: block; height: 10px; border-radius: 5px; background: #E2E1DD; }
.pnote2 .band s { position: absolute; left: 30%; width: 34%; top: 0; bottom: 0; border-radius: 5px; background: #0B0B0C; }
.pnote2 .band em { position: absolute; left: 44%; top: -6px; width: 3px; height: 22px; border-radius: 2px; background: #0B0B0C; box-shadow: 0 0 0 3px #F4F4F3; }
.pnote2 small { display: block; margin-top: 8px; font-size: 12.5px; color: #6B6A66; }
.pnote2 .flags { display: grid; gap: 8px; }
.pnote2 .flags > span { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.pnote2 q { quotes: none; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid #C9C8C3; color: #3A3935; }
.pnote2 .pill { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: #0B0B0C; color: #fff; font-size: 13px; font-weight: 600; }
.ptl__line { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.3fr 1fr 1fr; align-items: center; padding: 34px 6px 26px; }
.ptl__line::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: #E2E1DD; }
.ptl__q { position: relative; justify-self: center; display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #6B6A66; }
.ptl__q i { order: -1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: #fff; border: 2px solid #E2E1DD; color: transparent; }
.ptl__q:not(.is-ok)::before { content: ""; order: -1; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px dashed #D0CFCB; }
.ptl__q.is-ok i { background: #0B0B0C; border-color: #0B0B0C; color: #fff; font-size: 13px; }
.ptl__fact { position: relative; justify-self: center; display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #0B0B0C; }
.ptl__fact b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #0B0B0C; color: #fff; font-size: 17px; box-shadow: 0 0 0 6px rgba(11,11,12,.1); }
.ptl__card { margin-top: 8px; padding: 20px; border-radius: 18px; background: #F4F4F3; text-align: center; }
.ptl__k { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #6B6A66; }
.ptl__big { margin-top: 4px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.03em; }
.ptl__opts { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.ptl__opts span { padding: 7px 14px; border-radius: 999px; border: 1px solid #C9C8C3; font-size: 14px; }
.ptl__you { margin-top: 14px; font-size: 14px; color: #3A3935; }
@media (prefers-reduced-motion: no-preference) {
  #revisit.is-seen .ptl__fact b { animation: ptlPulse 2.4s ease-out 2; }
}
@keyframes ptlPulse { 0% { box-shadow: 0 0 0 0 rgba(11,11,12,.35); } 100% { box-shadow: 0 0 0 16px rgba(11,11,12,0); } }
@media (max-width: 860px) {
  .pv { grid-template-columns: minmax(0, 1fr); }
  .ptl__line { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 30px 0 20px; }
  .ptl__fact { font-size: 11.5px; text-align: center; }
}
/* the page opens on the film: no hero above it, just room for the fixed header */
.proc .proc__film { padding-top: clamp(120px, 16vh, 170px); border-top: 0; }
.proc .proc__film .filmx__frame { margin-top: clamp(32px, 5vh, 56px); }

/* Header seam (16 Oct 2026): every section on Process and About is pure black, but the page itself was #08080A,
   so it showed through as a lighter strip in the transparent header and in the gap above About's first section.
   Dark theme only: the page behind those sections is the same black. Section colours are unchanged. */
html:not([data-theme="light"]) body:has(main.proc) { background: #000; }
