/* ==========================================================================
   So'rah case study — Chapter 07 · Brand identity (identity.html)
   Sources: brand presentation pbU865eMOIpFOGxttKJeDD (678:2, slides 1–12) and
   the So-ra file page "👓 Branding QA" (1426:69105, 3342:48651).
   Only local classes (id-*); shared tokens/components come from sorah.css.
   ========================================================================== */

/* ---------- hero: the opening slide (pack film poster) behind the title ---------- */
.id-hero { color: #fff; background: var(--s-night); }
.id-hero__film { position: absolute; inset: 0; z-index: -3; margin: 0; overflow: hidden; }
.id-hero__film img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 42%; transform: scale(1.06); will-change: transform; }
.id-hero__shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,30,4,.94) 0%, rgba(7,30,4,.82) 30%, rgba(7,30,4,.32) 62%, rgba(7,30,4,.05) 100%),
    linear-gradient(0deg, rgba(7,30,4,.75) 0%, rgba(7,30,4,0) 42%); }
.id-hero .ch-hero__lines { opacity: .25; }
.id-hero .ch-hero__title { max-width: 9ch; }
.id-hero .ch-hero__lead { color: rgba(255,255,255,.78); }
.id-hero .ch-hero__lead b { color: #fff; }
.id-hero .chip { color: #fff; }
.id-hero__sticker { align-self: end; justify-self: end; width: clamp(150px, calc(380 * var(--fx)), 380px); max-width: none; margin-bottom: var(--s-6); }
.id-hero__sticker img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.id-hero__cap { position: absolute; right: calc(var(--gutter) * .5); bottom: var(--s-3); color: rgba(255,255,255,.62); text-align: right; max-width: 40ch; }
@media (max-width: 900px) {
  .id-hero__shade { background: linear-gradient(0deg, rgba(7,30,4,.95) 0%, rgba(7,30,4,.78) 55%, rgba(7,30,4,.45) 100%); }
  .id-hero__sticker { order: -1; justify-self: end; width: 96px; margin: 0 0 calc(var(--s-5) * -1); }
  .id-hero__cap { left: var(--gutter); right: auto; bottom: var(--s-2); text-align: left; }
  .id-hero .ch-hero__cue { display: none; }
}

/* section heads: the shared .hd__title is sized for body text; let the big headings set their own measure */
.hd .hd__title { max-width: none; flex: 1 1 560px; }
.hd .hd__title .t-h1 { max-width: 15ch; }
.hd .hd__aside { flex: 0 1 46ch; }

/* pointer-tag anchor (absolute over images) */
.id-tag { position: absolute; z-index: 3; pointer-events: none; }

/* small "original slide" thumbnails */
.id-thumb { display: grid; gap: .6em; justify-items: start; }
.id-thumb img { width: clamp(200px, calc(360 * var(--fx)), 360px); height: auto; border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(7,30,4,.55); }
.id-thumb--sm img { width: clamp(150px, calc(230 * var(--fx)), 230px); }
.id-thumb--row { margin-top: var(--s-5); grid-auto-flow: column; justify-content: start; align-items: end; }

/* ---------- 1 · vocabulary: kinetic word wall (stand-in for the film) ---------- */
.id-vocab { padding-top: 0; }
.id-vocab__scene { position: relative; height: 240vh; }
.id-vocab__stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); padding-top: calc(var(--bar-h) * .7); }
.id-vocab__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); flex-wrap: wrap; }
.id-vocab__head .t-h1 { white-space: nowrap; }
.id-vocab__aside { max-width: 52ch; }
.id-vocab__aside b { color: var(--fg); }
.id-wall {
  position: relative; container-type: inline-size; aspect-ratio: 16 / 9; width: min(100%, calc((100svh - var(--bar-h) - 310px) * 1.7778)); min-width: min(100%, 520px); margin-inline: auto;
  border-radius: var(--r-card); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 30% 20%, #fff 0%, #F5F5F2 60%, #ECECE8 100%);
  box-shadow: inset 0 0 0 1px rgba(24,24,24,.04);
}
.id-wall::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background: repeating-linear-gradient(115deg, transparent 0 9cqw, rgba(0,0,0,.018) 9cqw 9.4cqw, transparent 9.4cqw 17cqw), repeating-linear-gradient(32deg, transparent 0 13cqw, rgba(0,0,0,.02) 13cqw 13.5cqw, transparent 13.5cqw 23cqw); }
.id-wall__w { position: absolute; z-index: 1; margin: 0; font-weight: 700; line-height: .78; letter-spacing: -.035em; white-space: nowrap; color: var(--c); transform-origin: 50% 50%; transition: filter .35s var(--ease), scale .45s var(--ease-back), color .3s; will-change: transform, opacity; }
.id-wall__w--v { writing-mode: vertical-rl; line-height: .86; }
.id-wall__w[data-s="outline"] { color: transparent; -webkit-text-stroke: max(1px, .028em) var(--c); }
.id-wall__glyph { position: absolute; z-index: 1; background: var(--c); -webkit-mask: url("../img/identity/glyph-heart.webp") center / contain no-repeat; mask: url("../img/identity/glyph-heart.webp") center / contain no-repeat; transition: filter .35s var(--ease), scale .45s var(--ease-back); will-change: transform, opacity; }
.id-wall__cookie { position: absolute; z-index: 2; left: 32.5%; top: 20.6%; width: 33.33%; height: auto; filter: drop-shadow(0 1.6cqw 2cqw rgba(60,40,10,.28)); will-change: transform; pointer-events: none; }
.id-wall.has-hot .id-wall__w:not(.is-hot), .id-wall.has-hot .id-wall__glyph { filter: opacity(.16); }   /* filter, so it composes with the GSAP-driven opacity */
.id-wall .id-wall__w.is-hot { scale: 1.05; z-index: 4; }
.id-vocab__under { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-2); width: min(100%, calc((100svh - var(--bar-h) - 310px) * 1.7778)); min-width: min(100%, 520px); margin-inline: auto; }
.id-replay { padding: .6em 1em; }
.id-vocab__data { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); align-items: start; margin-top: var(--s-6); }
.id-vocab__poster img { width: 100%; height: auto; border-radius: var(--r-card); }
.id-vocab__poster figcaption { margin-top: .6em; }
.id-vocab__list .t-eyebrow { margin-bottom: var(--s-3); }
.id-words { display: flex; flex-wrap: wrap; gap: 8px; }
.id-wchip { --c: var(--s-forest); display: inline-flex; align-items: baseline; gap: .45em; padding: .5em .9em; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 clamp(15px, calc(22 * var(--fx)), 22px)/1 var(--font); letter-spacing: -.02em; color: var(--c); transition: box-shadow .25s, background .25s, transform .35s var(--ease); }
.id-wchip[data-c="lime"] { --c: #6BB80F; }
.id-wchip[data-s="outline"] { color: transparent; -webkit-text-stroke: 1px var(--c); }
.id-wchip small { font: 500 11px/1 var(--font); letter-spacing: .02em; color: var(--fg-soft); -webkit-text-stroke: 0; }
.id-wchip:hover, .id-wchip:focus-visible { box-shadow: inset 0 0 0 1.5px var(--fg); transform: translateY(-2px); }
.id-wchip[aria-pressed="true"] { background: var(--s-forest); color: var(--s-lime); box-shadow: none; -webkit-text-stroke: 0; }
.id-wchip[aria-pressed="true"] small { color: rgba(255,255,255,.7); }
.id-vocab__glyphs { margin-top: var(--s-3); max-width: 60ch; }
@media (max-width: 900px) {
  .id-vocab { padding-top: var(--s-7); }
  .id-vocab__scene { height: auto; }
  .id-vocab__stage { position: relative; height: auto; padding-top: 0; }
  .id-vocab__head .t-h1 { white-space: normal; }
  .id-wall, .id-vocab__under { width: 100%; min-width: 0; }
  .id-vocab__data { grid-template-columns: 1fr; }
}

/* ---------- 2 · the brief ---------- */
.id-brief { --fg: #6F6F6F; background: #F2F2F2; color: var(--s-ink); min-height: 92svh; display: grid; align-items: center; overflow: clip; }
.id-brief__in { position: relative; z-index: 1; display: grid; justify-items: center; text-align: left; }
.id-brief__in .sec-num { justify-self: start; margin-left: max(0px, calc((100% - 34ch * 1.15) / 2)); }
.id-brief__text { max-width: 34ch; font: 600 clamp(22px, calc(46 * var(--fx)), 46px)/1.28 var(--font); letter-spacing: -.015em; color: #858585; }
.id-brief__hl { position: relative; color: var(--s-forest); background: linear-gradient(90deg, var(--s-lime), var(--s-lime)) 0 88% / 0% 42% no-repeat; transition: background-size 1.1s var(--ease) .2s; padding: 0 .08em; border-radius: 4px; }
.id-brief__hl.is-in { background-size: 100% 42%; }
.id-brief__aud { transition: color .3s, background-size .5s var(--ease); background: linear-gradient(90deg, rgba(141,219,29,.55), rgba(141,219,29,.55)) 0 92% / 0% 34% no-repeat; }
.id-brief__aud.is-hot { background-size: 100% 34%; }
.id-brief__aud.is-hot .w { opacity: 1; color: var(--s-ink); }
.id-brief__hl .w { color: var(--s-forest); }
.id-auds { margin-top: var(--s-6); width: 100%; max-width: 1180px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.id-aud { display: grid; gap: .5em; align-content: start; text-align: left; padding: var(--s-3) var(--s-3) var(--s-4); border-radius: var(--r-card); box-shadow: inset 0 0 0 1.5px rgba(24,24,24,.14); background: rgba(255,255,255,.5); transition: background .3s, box-shadow .3s, color .3s, transform .4s var(--ease); }
.id-aud small { font: 600 var(--t-micro)/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--s-grey); }
.id-aud b { font: 600 var(--t-body)/1.25 var(--font); }
.id-aud:hover { box-shadow: inset 0 0 0 1.5px var(--s-ink); transform: translateY(-3px); }
.id-aud[aria-pressed="true"], .id-aud.is-hot { background: var(--s-forest); color: #fff; box-shadow: none; }
.id-aud[aria-pressed="true"] small, .id-aud.is-hot small { color: var(--s-lime); }
.id-brief__stk { position: absolute; z-index: 0; width: clamp(130px, calc(300 * var(--fx)), 300px); height: auto; filter: drop-shadow(0 18px 30px rgba(7,30,4,.16)); }
.id-brief__stk--l { left: calc(clamp(130px, calc(300 * var(--fx)), 300px) * -.55); top: 20%; }
.id-brief__stk--r { right: calc(clamp(130px, calc(300 * var(--fx)), 300px) * -.55); top: 44%; }
@media (max-width: 900px) {
  .id-brief { min-height: 0; }
  .id-auds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .id-brief__in .sec-num { margin-left: 0; }
  .id-brief__stk--l { top: 2%; }
  .id-brief__stk--r { top: auto; bottom: 2%; }
}

/* ---------- 3 · sketch ---------- */
.id-sketch__in { align-items: center; }
.id-sketch__text .t-lead { margin-top: var(--s-4); max-width: 34ch; }
.id-sketch__fig { position: relative; }
.id-sketch__media { aspect-ratio: 4 / 3; border-radius: var(--r-card); }
.id-sketch__media img { transform-origin: 46% 50%; }

/* ---------- 4 · construction grid (scrubbed build) ---------- */
.id-grid { --fg: var(--s-ink); --fg-soft: #6a6a6a; --line: rgba(24,24,24,.14); background: #EBEBEB; color: var(--s-ink); }
.id-grid__scene { position: relative; height: 330vh; }
.id-grid__stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: calc(var(--bar-h) * .5); }
.id-grid__in { width: 100%; display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7fr); gap: var(--s-6); align-items: center; }
.id-grid__text .t-h2 b { font-weight: 700; }
.id-steps { margin-top: var(--s-5); display: grid; gap: var(--s-3); counter-reset: st; }
.id-steps li { position: relative; display: grid; gap: .25em; padding-left: 2.6em; opacity: .38; transition: opacity .45s var(--ease); counter-increment: st; }
.id-steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: .1em; font: 500 var(--t-micro)/1.6 var(--font-mono); color: var(--s-grey); }
.id-steps li::after { content: ""; position: absolute; left: 0; top: 1.9em; width: 1.6em; height: 2px; border-radius: 2px; background: var(--s-green); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.id-steps li.is-on, .id-steps li.is-done { opacity: 1; }
.id-steps li.is-on::after, .id-steps li.is-done::after { transform: none; }
.id-steps b { font: 600 var(--t-h4)/1.2 var(--font); }
.id-steps span { font-size: var(--t-small); color: var(--fg-soft); max-width: 44ch; }
.id-grid__ctrl { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.id-grid__fig { position: relative; }
.id-grid__svg { border-radius: var(--r-card); overflow: hidden; background: #EBEBEB; box-shadow: 0 30px 60px -40px rgba(7,30,4,.35), inset 0 0 0 1px rgba(255,255,255,.6); aspect-ratio: 1000 / 625; }
.id-grid__svg > svg, .id-grid__svg > img { display: block; width: 100%; height: 100%; }
.id-grid__svg img { object-fit: cover; }
.id-grid__svg .gl path { stroke: #AFAFAF; stroke-width: 1; vector-effect: non-scaling-stroke; }
.id-grid__svg .hd > g, .id-grid__svg .hd > path { transform-box: fill-box; transform-origin: center; }
.id-grid__svg .ol path { transition: stroke .4s; }
.id-grid__svg.is-tracing .ol path { stroke: var(--s-forest); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.id-grid__svg .gl, .id-grid__svg .hd { transition: opacity .5s var(--ease); }
.id-grid__svg.no-lines .gl, .id-grid__svg.no-lines .hd { opacity: 0 !important; }
.id-grid__bar { margin-top: var(--s-3); height: 3px; border-radius: 3px; background: rgba(24,24,24,.1); overflow: hidden; }
.id-grid__bar i { display: block; height: 100%; background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
@media (max-width: 900px) {
  .id-grid { padding-block: var(--s-7); }
  .id-grid__scene { height: auto; }
  .id-grid__stage { position: relative; height: auto; padding-top: 0; }
  .id-grid__in { grid-template-columns: 1fr; }
  .id-grid__fig { order: -1; }
}

/* ---------- 5 · wordmark construction ---------- */
.id-wm .hd__aside { color: var(--fg-soft); }
.id-wm .hd__aside b { color: var(--s-forest); }
.id-wm .t-h1 b { color: var(--s-forest); }
.id-wm__ctrl { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.id-wm .seg { box-shadow: inset 0 0 0 1.5px rgba(11,73,7,.3); }
.id-wm .seg button { color: rgba(11,73,7,.75); }
.id-wm .seg button[aria-pressed="true"] { background: var(--s-forest); color: var(--s-lime); }
.id-wm .ctrl { box-shadow: inset 0 0 0 1.5px rgba(11,73,7,.3); }
.id-wm .ctrl[aria-pressed="true"] { background: var(--s-forest); color: var(--s-lime); }
.id-wm__fig { position: relative; max-width: 1040px; margin-inline: auto; border-radius: var(--r-card); overflow: hidden; background: #8DDB1D; box-shadow: inset 0 0 0 1px rgba(11,73,7,.08), 0 30px 60px -40px rgba(7,30,4,.4); }
.id-wm__svg { aspect-ratio: 756 / 440; }
.id-wm__svg > svg, .id-wm__svg > img { display: block; width: 100%; height: 100%; }
.id-wm__svg img { object-fit: cover; }
.id-wm__svg .ar, .id-wm__svg .en { transition: opacity .55s var(--ease); }
.id-wm__svg .gd path { vector-effect: non-scaling-stroke; stroke-width: 1.2; transition: opacity .5s var(--ease); }
.id-wm__svg[data-show="ar"] .ar, .id-wm__svg[data-show="en"] .en { opacity: 1 !important; }
.id-wm__svg[data-show="ar"] .en, .id-wm__svg[data-show="en"] .ar { opacity: .1 !important; }
.id-wm__svg.no-guides .gd path { opacity: 0; }
.id-wm__ruler { position: absolute; left: 10.89%; width: 82.79%; top: 90.5%; height: 12px; border-inline: 1.5px solid var(--s-forest); display: grid; place-items: center; }
.id-wm__ruler::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--s-forest); }
.id-wm__ruler span { position: relative; padding: .2em .7em; border-radius: 999px; background: var(--s-forest); color: var(--s-lime); font: 600 var(--t-micro)/1.2 var(--font-mono); }

/* ---------- 6 · meaning ---------- */
.id-mean__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.id-mean__stage { position: sticky; top: calc(50svh - min(34svh, 300px)); height: min(68svh, 600px); display: grid; align-content: center; justify-items: center; gap: var(--s-4); }
.id-mean__mark { width: 100%; max-width: 560px; }
.id-mean__mark > svg, .id-mean__mark > img { display: block; width: 100%; height: auto; overflow: visible; }
.id-mean__word { width: 46%; max-width: 260px; min-height: 2em; }
.id-mean__word svg { display: block; width: 100%; height: auto; }
.id-mean__label { min-height: 1.4em; color: var(--s-lime); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.id-mean__list { display: grid; }
.id-mean__item { min-height: 62svh; display: grid; align-content: center; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4); opacity: .32; transition: opacity .5s var(--ease); }
.id-mean__item.is-on { opacity: 1; }
.id-mean__ico { grid-row: span 2; width: clamp(64px, calc(110 * var(--fx)), 110px); align-self: start; }
.id-mean__ico svg { display: block; width: 100%; height: auto; overflow: visible; }
.id-mean__n { color: var(--s-lime); font-size: var(--t-micro); }
.id-mean__item p { font: 500 clamp(19px, calc(34 * var(--fx)), 34px)/1.3 var(--font); letter-spacing: -.012em; max-width: 30ch; }
.id-mean__src { margin-top: var(--s-6); }
.id-mean__src .id-thumb figcaption { color: rgba(255,255,255,.6); }
/* the mark's layers (SVG built by ch-identity.js) */
.mk .mk-dim path { fill: rgba(255,255,255,.1); }
.mk .mk-hi { opacity: 0; transition: opacity .6s var(--ease); }
.mk .mk-fing { transition: transform .9s var(--ease-back), opacity .6s var(--ease); }
.mk .mk-fing { transform-box: view-box; } .mk .mk-fing--l { transform-origin: 136px 68px; } .mk .mk-fing--m { transform-origin: 198px 47px; } .mk .mk-fing--r { transform-origin: 262px 68px; }
.mk .mk-hi--top { transform-box: fill-box; }
.mk .mk-arrow { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 14; opacity: 0; transition: opacity .5s; }
.mk .mk-arrow-head { fill: #fff; opacity: 0; transition: opacity .5s; }
.mk[data-state="0"] .mk-hi--all { opacity: 1; }
.mk[data-state="1"] .mk-hi--top, .mk[data-state="2"] .mk-hi--all, .mk[data-state="4"] .mk-hi--base { opacity: 1; }
.mk[data-state="3"] .mk-hi--all { opacity: .28; }
.mk[data-state="3"] .mk-fing { opacity: 1; }
.mk .mk-fing { opacity: 0; }
.mk[data-state="3"] .mk-fing--l { transform: rotate(-11deg); }
.mk[data-state="3"] .mk-fing--m { transform: translateY(-10px); }
.mk[data-state="3"] .mk-fing--r { transform: rotate(11deg); }
.mk[data-state="4"] .mk-arrow, .mk[data-state="4"] .mk-arrow-head { opacity: 1; }
.mk.is-live[data-state="4"] .mk-arrow { animation: mk-flow 1.2s linear infinite; }
.mk.is-live[data-state="1"] .mk-hi--top { animation: mk-hop 1.6s var(--ease-io) infinite; }
@keyframes mk-flow { to { stroke-dashoffset: -48; } }
@keyframes mk-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-7px); } 60% { transform: translateY(-7px); } }
.wm-ar path { fill: rgba(255,255,255,.22); transition: fill .5s; }
.wm-ar .wm-sin path { fill: var(--s-lime); }
@media (max-width: 900px) {
  .id-mean__in { grid-template-columns: 1fr; }
  .id-mean__stage { display: none; }
  .id-mean__item { min-height: 0; opacity: 1; padding-block: var(--s-4); border-top: 1px solid var(--line); }
}

/* ---------- 7 · stickers & pattern ---------- */
.id-stp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--gap); }
.id-stp__stk { --bg: #DCDCDC; background: #DCDCDC; padding: var(--s-6) var(--s-6) var(--s-5); display: grid; gap: var(--s-4); }
.id-stp__head { max-width: 40ch; }
.id-stp__head .t-small { margin-top: var(--s-3); }
.id-stp__pile { position: relative; height: clamp(320px, calc(560 * var(--fx)), 560px); }
.id-stk { position: absolute; width: clamp(130px, calc(250 * var(--fx)), 250px); aspect-ratio: 295 / 300; border-radius: 50%; touch-action: none; cursor: grab; rotate: var(--r, 0deg); transition: scale .45s var(--ease-back), filter .4s; filter: drop-shadow(0 14px 24px rgba(7,30,4,.18)); }
.id-stk:hover { scale: 1.05; filter: drop-shadow(0 24px 34px rgba(7,30,4,.28)); }
.id-stk:active { cursor: grabbing; }
.id-stk svg, .id-stk img { display: block; width: 100%; height: 100%; pointer-events: none; }
.id-stk .stk-in { transform-origin: 50% 50%; transition: transform .9s var(--ease); }
.id-stk[data-stk="green"] { left: 0; top: 0; }
.id-stk[data-stk="lime"] { left: 34%; top: 26%; }
.id-stk[data-stk="dark"] { left: 66%; top: 52%; }
.id-stp__ways { display: grid; gap: .5em; }
.id-stp__ways li { display: flex; align-items: center; gap: .6em; }
.id-stp__ways i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.id-stp__pat { position: relative; display: grid; grid-template-rows: minmax(300px, 1fr) auto; min-height: 0; }
.id-stp__track { position: relative; overflow: hidden; display: grid; justify-items: center; -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.id-stp__track > div { position: absolute; left: 0; right: 0; top: 0; display: grid; justify-items: center; gap: clamp(60px, calc(150 * var(--fx)), 150px); padding-block: clamp(30px, calc(75 * var(--fx)), 75px) 0; }
.id-stp__track > div + div { top: 100%; }
.id-stp__track > div:first-child { padding-top: clamp(30px, calc(75 * var(--fx)), 75px); }
.id-stp__track.is-moving > div { animation: id-pat 9s linear infinite; }
.id-stp__track.is-paused > div { animation-play-state: paused; }
@keyframes id-pat { to { transform: translateY(-100%); } }
.id-stp__patcap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-4) var(--s-5); }
.id-stp__patcap .ctrl[aria-pressed="true"] { background: var(--s-forest); color: var(--s-lime); }
.id-stp__pat .id-thumb { position: absolute; right: var(--s-4); top: var(--s-4); }
.id-stp__pat .id-thumb figcaption { color: var(--s-forest); }
.id-glyph { display: block; background: var(--gc, var(--s-forest)); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.id-glyph--crown { width: clamp(70px, calc(118 * var(--fx)), 118px); aspect-ratio: 483 / 285; -webkit-mask-image: url("../img/identity/glyph-crown.webp"); mask-image: url("../img/identity/glyph-crown.webp"); }
.id-glyph--heart { width: clamp(56px, calc(96 * var(--fx)), 96px); aspect-ratio: 357 / 256; -webkit-mask-image: url("../img/identity/glyph-heart.webp"); mask-image: url("../img/identity/glyph-heart.webp"); }
@media (max-width: 900px) {
  .id-stp { grid-template-columns: 1fr; }
  .id-stp__stk { padding: var(--s-6) var(--gutter) var(--s-5); }
  .id-stp__pile { height: 320px; }
  .id-stk[data-stk="lime"] { left: 30%; }
  .id-stk[data-stk="dark"] { left: auto; right: 0; }
  .id-stp__track { height: 340px; }
}

/* ---------- 8 · lockup ---------- */
.id-lock__stage { position: relative; aspect-ratio: 16 / 7; border-radius: var(--r-card); background: var(--s-paper); display: grid; place-items: center; overflow: hidden; }
.id-lock__svg { width: min(62%, 860px); }
.id-lock__svg > svg, .id-lock__svg > img { display: block; width: 100%; height: auto; overflow: visible; }
.id-lock__svg .part { transition: transform 1s var(--ease-back); }
.id-lock__stage.is-apart .part--fold { transform: translate(-46px, 30px); }
.id-lock__stage.is-apart .part--mark { transform: translate(-14px, -22px); }
.id-lock__stage.is-apart .part--ar { transform: translate(44px, -34px); }
.id-lock__stage.is-apart .part--en { transform: translate(44px, 30px); }
.id-lock__tags { position: absolute; inset: 0; pointer-events: none; }
.id-lock__tags .ptr { position: absolute; opacity: 0; transform: translate(-8px, 8px) scale(.85); transition: opacity .4s, transform .6s var(--ease-back); }
.id-lock__stage.is-apart .id-lock__tags .ptr { opacity: 1; transform: none; transition-delay: .35s; }
.id-lock__btn { position: absolute; left: var(--s-4); bottom: var(--s-4); background: #fff; }
.id-lock__btn[aria-pressed="true"] { background: var(--s-ink); color: #fff; }
.id-files { margin-top: var(--s-6); }
.id-files .t-eyebrow { margin-bottom: var(--s-3); }
.id-files__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.id-file { display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-3); border-radius: var(--r-card); background: var(--s-paper); }
.id-file__pv { aspect-ratio: 16 / 9; border-radius: calc(var(--r-card) - 8px); background: var(--bg); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(24,24,24,.05); }
.id-file__pv img { width: 58%; height: auto; transition: transform .6s var(--ease); }
.id-file:hover .id-file__pv img { transform: scale(1.06); }
.id-file__t { display: grid; gap: .3em; padding-inline: var(--s-2); }
.id-file__t b { font: 600 var(--t-body)/1.2 var(--font); }
.id-file__t > span { font-size: var(--t-micro); color: var(--fg-soft); }
.id-file__a { display: flex; flex-wrap: wrap; gap: 6px; padding-inline: var(--s-2); }
.id-file__a .chip { font-size: 13px; padding: .5em .9em; }
@media (max-width: 900px) { .id-files__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .id-lock__stage { aspect-ratio: 4 / 3; } .id-lock__svg { width: 76%; } }
@media (max-width: 560px) { .id-files__grid { grid-template-columns: 1fr; } }

/* ---------- 9 · logo on colour + playground ---------- */
.id-oc__bento { display: grid; grid-template-columns: 799fr 1112fr; grid-template-rows: 346fr 713fr; gap: clamp(8px, calc(18 * var(--fx)), 18px); aspect-ratio: 1920 / 1079; }
.id-oc__p { position: relative; border-radius: var(--r-card); background: var(--bg); display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 0 rgba(255,255,255,0); transition: box-shadow .3s, transform .5s var(--ease); }
.id-oc__p:nth-child(1) { grid-column: 1; grid-row: 1; }
.id-oc__p:nth-child(2) { grid-column: 1; grid-row: 2; }
.id-oc__p:nth-child(3) { grid-column: 2; grid-row: 1 / 3; }
.id-oc__p img { width: 34%; height: auto; transition: transform .7s var(--ease); }
.id-oc__p:nth-child(2) img { width: 40%; }
.id-oc__p--mark img { width: 34%; }
.id-oc__p:hover img { transform: scale(1.08); }
.id-oc__p:hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.id-oc__p[aria-pressed="true"] { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--s-ink); }
.id-oc__lbl { position: absolute; left: var(--s-3); bottom: var(--s-3); padding: .45em .8em; border-radius: 999px; background: rgba(255,255,255,.18); color: var(--fg, #fff); font: 600 var(--t-micro)/1 var(--font); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.id-play { margin-top: var(--gap); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--gap); }
.id-play__stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); background: var(--bg); display: grid; place-items: center; transition: background-color .6s var(--ease); box-shadow: inset 0 0 0 1px rgba(24,24,24,.06); overflow: hidden; }
.id-play__stage img { width: 56%; height: auto; transition: opacity .3s, transform .6s var(--ease-back); }
.id-play__stage.is-mark img { width: 36%; }
.id-play__stage.is-swap img { opacity: 0; transform: scale(.92); }
.id-play__side { display: grid; align-content: center; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-card); background: #fff; }
.id-play__seg { flex-wrap: wrap; }
.id-play__seg button { display: inline-flex; align-items: center; gap: .5em; }
.id-play__seg i { width: 12px; height: 12px; border-radius: 50%; }
.id-play__note { font-size: var(--t-small); min-height: 3em; }
.id-play__act { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 900px) {
  .id-play { grid-template-columns: 1fr; }
  .id-oc__lbl { left: 8px; bottom: 8px; font-size: 10px; padding: .4em .6em; }
}
@media (max-width: 560px) {
  .id-oc__bento { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 150px 190px; }
  .id-oc__p:nth-child(1) { grid-column: 1; grid-row: 1; }
  .id-oc__p:nth-child(2) { grid-column: 2; grid-row: 1; }
  .id-oc__p:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .id-oc__p img, .id-oc__p:nth-child(2) img { width: 66%; }
  .id-oc__p--mark img { width: 34%; }
}

/* ---------- 10 · colour ---------- */
.id-pal { display: grid; grid-template-columns: 792fr 600fr 487fr; grid-template-rows: 347fr 346fr 347fr; gap: clamp(8px, calc(20 * var(--fx)), 20px); aspect-ratio: 1920 / 1100; }
.id-pal__t, .id-pal__g { position: relative; margin: 0; border-radius: var(--r-card); overflow: hidden; display: grid; align-content: end; justify-items: start; gap: .35em; padding: var(--s-4); text-align: left; color: #fff; }
.id-pal__t { transition: transform .5s var(--ease), box-shadow .3s; }
.id-pal__t:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--s-ink); }
.id-pal__t--dark { grid-column: 1; grid-row: 1 / 4; background: #0B4907; }
.id-pal__t--lime { grid-column: 2; grid-row: 1 / 3; background: #8DDB1D; color: #0B4907; }
.id-pal__t--green { grid-column: 3; grid-row: 1; background: #17B21A; }
.id-pal__g--yl { grid-column: 2; grid-row: 3; color: #0B4907; }
.id-pal__g--gl { grid-column: 3; grid-row: 2 / 4; }
.id-pal__g img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.id-pal__g { isolation: isolate; }
.id-pal__g .id-pal__logo { position: absolute; z-index: 1; inset: auto; left: 38%; top: 39%; width: 51%; height: auto; object-fit: contain; transition: opacity .5s; }
.id-pal__hex { font: 600 clamp(16px, calc(30 * var(--fx)), 30px)/1 var(--font); letter-spacing: -.01em; }
.id-pal__rgb { font-size: var(--t-micro); opacity: .8; }
.id-pal__use { font-size: var(--t-micro); opacity: .82; max-width: 30ch; line-height: 1.35; }
.id-pal__t::after { content: "Copy"; position: absolute; right: var(--s-3); top: var(--s-3); padding: .4em .75em; border-radius: 999px; font: 600 12px/1 var(--font); background: rgba(255,255,255,.2); opacity: 0; transform: translateY(-4px); transition: .3s var(--ease); }
.id-pal__t:hover::after, .id-pal__t:focus-visible::after { opacity: 1; transform: none; }
.id-col__note { margin-top: var(--s-2); }
@media (max-width: 760px) {
  .id-col .id-pal { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 170px 150px 150px 170px; }
  .id-col .id-pal__t--dark { grid-column: 1 / 3; grid-row: 1; }
  .id-col .id-pal__t--lime { grid-column: 1; grid-row: 2 / 4; }
  .id-col .id-pal__t--green { grid-column: 2; grid-row: 2; }
  .id-col .id-pal__g--yl { grid-column: 2; grid-row: 3; }
  .id-col .id-pal__g--gl { grid-column: 1 / 3; grid-row: 4; }
  .id-col .id-pal__g--gl .id-pal__logo { left: 52%; top: 30%; width: 40%; }
  .id-col .id-pal__t, .id-col .id-pal__g { padding: var(--s-3); }
  .id-col .id-pal__use { display: none; }
}

/* gradient builder (fill tile inside the white panel; the rows and the preview are the interactive parts) */
.id-gb { margin-top: var(--s-6); border-radius: var(--r-card); padding: var(--s-5); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s-4) var(--s-5); }
.id-gb__head { grid-column: 1 / -1; display: grid; gap: .5em; max-width: 60ch; }
.id-gb__list { display: grid; gap: 6px; align-content: start; }
.id-gb__row { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px var(--s-2); align-items: center; padding: .7em .8em; border-radius: 14px; text-align: left; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14); transition: box-shadow .25s, background .25s; }
.id-gb__row i { grid-row: span 2; width: 42px; height: 42px; border-radius: 10px; background: var(--g); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.id-gb__row b { font: 600 var(--t-small)/1.2 var(--font); }
.id-gb__row span { font-size: 12px; color: rgba(255,255,255,.62); }
.id-gb__row:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.id-gb__row[aria-checked="true"] { background: rgba(141,219,29,.14); box-shadow: inset 0 0 0 1.5px var(--s-lime); }
.id-gb__view { display: grid; gap: var(--s-3); align-content: start; }
.id-gb__pv { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-card); background: radial-gradient(80% 80% at 50% 40%, #13350D, #071E04); display: grid; place-items: center; cursor: grab; touch-action: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16); }
.id-gb__pv:active { cursor: grabbing; }
.id-gb__mark { width: 62%; height: auto; overflow: visible; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.id-gb__knob { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(141,219,29,.45); transform: rotate(var(--a, 90deg)) translateY(calc(-1 * min(15vw, 150px))) rotate(calc(-1 * var(--a, 90deg))); pointer-events: none; }
.id-gb__stops { position: relative; height: 34px; border-radius: 10px; background: var(--g); }
.id-gb__stops span { position: absolute; top: 100%; transform: translateX(-50%); margin-top: 6px; font: 500 11px/1 var(--font-mono); color: rgba(255,255,255,.75); white-space: nowrap; }
.id-gb__stops span::before { content: ""; position: absolute; left: 50%; top: -14px; width: 10px; height: 10px; margin-left: -5px; border-radius: 3px; transform: rotate(45deg); background: var(--c); box-shadow: 0 0 0 2px #fff; }
.id-gb__stops span.r { transform: translateX(-100%); }
.id-gb__stops span.r::before { left: auto; right: -5px; }
.id-gb__stops span.l { transform: none; }
.id-gb__stops span.l::before { left: 0; margin-left: -5px; }
.id-gb__code { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.id-gb__code code { flex: 1 1 260px; padding: .8em 1em; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 13px; overflow-wrap: anywhere; }
.id-gb .chip { color: #fff; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32); }
.id-gb .chip:hover { box-shadow: inset 0 0 0 1.5px #fff; }
@media (max-width: 900px) { .id-gb { grid-template-columns: 1fr; padding: var(--s-4); } }

/* ---------- 11 · typography ---------- */
.id-spec { border-radius: var(--r-card); background: var(--s-paper); padding: var(--s-4) var(--s-5) var(--s-5); }
.id-spec__ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.id-spec__range { display: flex; align-items: center; gap: var(--s-2); flex: 1 1 320px; max-width: 560px; }
.id-spec__range input { flex: 1; accent-color: var(--s-green); height: 28px; }
.id-spec__range output { min-width: 15ch; font-size: var(--t-micro); text-align: right; }
.id-spec__lines { display: grid; gap: var(--s-2); margin-top: var(--s-5); color: var(--s-forest); }
.id-spec__line { font-size: clamp(56px, calc(190 * var(--fx)), 190px); line-height: 1.05; letter-spacing: -.02em; font-weight: var(--w); outline: none; border-radius: 12px; overflow-wrap: anywhere; }
.id-spec__line:focus-visible { box-shadow: 0 0 0 2.5px var(--s-green); }
.id-spec__line--ar { letter-spacing: 0; text-align: right; }
.id-spec__lines[data-show="ar"] .id-spec__line--en, .id-spec__lines[data-show="en"] .id-spec__line--ar { display: none; }
.id-type__duo { margin-top: var(--gap); }
.id-tp { position: relative; border-radius: var(--r-card); padding: var(--s-5); display: grid; justify-items: center; align-content: start; color: var(--s-forest); min-height: clamp(460px, calc(780 * var(--fx)), 780px); }
.id-tp--ar { background: #8DDB1D; }
.id-tp--en { background: #EFEFEF; }
.id-tp__lang { justify-self: start; font: 600 var(--t-h4)/1 var(--font); }
.id-tp__glyph { margin-top: var(--s-5); --gc: var(--s-forest); width: clamp(44px, calc(76 * var(--fx)), 76px); }
.id-tp--en .id-tp__glyph { --gc: var(--s-lime); }
.id-tp__fam { margin-top: var(--s-2); font: 600 clamp(44px, calc(104 * var(--fx)), 104px)/1 var(--font); letter-spacing: -.02em; text-align: center; }
.id-tp__badge { margin-top: var(--s-2); padding: .5em .9em; border-radius: 10px; font: 600 var(--t-micro)/1 var(--font); }
.id-tp--ar .id-tp__badge { background: var(--s-forest); color: #BBEF54; }
.id-tp--en .id-tp__badge { background: var(--s-lime); color: var(--s-forest); }
.id-tp__ladder { margin-top: var(--s-5); width: min(100%, 440px); display: grid; gap: 4px; }
.id-tp__ladder button { width: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--s-3); padding: .55em 1.2em; border-radius: 999px; font-size: var(--t-h4); transition: background .3s, box-shadow .3s; box-shadow: inset 0 0 0 1.5px transparent; }
.id-tp__ladder button:hover { box-shadow: inset 0 0 0 1.5px rgba(11,73,7,.3); }
.id-tp__ladder button b { font-weight: 500; text-align: left; }
.id-tp__ladder li:nth-child(1) b { font-weight: 700; } .id-tp__ladder li:nth-child(2) b { font-weight: 500; } .id-tp__ladder li:nth-child(3) b { font-weight: 400; } .id-tp__ladder li:nth-child(4) b { font-weight: 300; }
.id-tp__ladder .t-ar { text-align: right; justify-self: start; }
.id-tp--ar .id-tp__ladder button[aria-pressed="true"] { background: rgba(255,255,255,.3); }
.id-tp--en .id-tp__ladder button[aria-pressed="true"] { background: #fff; }
.id-tp__note { margin-top: auto; padding-top: var(--s-4); justify-self: start; color: rgba(11,73,7,.75); }
@media (max-width: 900px) { .id-spec { padding: var(--s-4); } .id-tp { min-height: 0; } .id-spec__range { flex-wrap: wrap; } .id-spec__range output { min-width: 0; text-align: left; } }

/* ---------- 12 · Branding QA ---------- */
.id-qa__in { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr); gap: var(--s-6); align-items: start; }
.id-qa__map { position: sticky; top: calc(var(--bar-h) + var(--s-2)); display: grid; gap: var(--s-3); }
.id-qa__board { position: relative; margin: 0; width: min(100%, calc((100svh - var(--bar-h) - 190px) / 2.141)); border-radius: 14px; overflow: hidden; background: #F5F5F5; box-shadow: 0 20px 40px -26px rgba(7,30,4,.45); }
.id-qa__board img { width: 100%; height: auto; }
.id-qa__hl { position: absolute; left: 1.5%; right: 1.5%; top: var(--t, 1%); height: var(--h, 15%); border-radius: 8px; background: rgba(141,219,29,.18); box-shadow: inset 0 0 0 2px var(--s-green); transition: top .6s var(--ease), height .6s var(--ease); pointer-events: none; }
.id-qa__rows { display: flex; flex-wrap: wrap; gap: 6px; }
.id-qa__rows a { padding: .45em .8em; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 12px/1 var(--font); transition: background .25s, color .25s, box-shadow .25s; }
.id-qa__rows a:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.id-qa__rows a.is-on { background: var(--s-forest); color: var(--s-lime); box-shadow: none; }
.id-qa__rails { display: grid; gap: var(--s-6); min-width: 0; }
.id-qa__row { min-width: 0; scroll-margin-top: calc(var(--bar-h) + 20px); }
.id-qa__h { display: flex; align-items: center; gap: .5em; font: 400 var(--t-h3)/1.1 var(--font); letter-spacing: -.015em; margin-bottom: var(--s-3); }
.id-qa__h .t-mono { font-size: var(--t-micro); }
.id-qa__dot { width: .42em; height: .42em; border-radius: 50%; background: var(--s-sun); flex: none; }
.id-rail { padding: 10px 10px var(--s-3); margin: -10px -10px 0; }
.id-scr { width: clamp(150px, calc(232 * var(--fx)), 232px); margin: 0; display: grid; gap: .7em; }
.id-scr .phone { aspect-ratio: 430 / 932; box-shadow: 0 0 0 clamp(3px, .35vw, 6px) #111, 0 24px 40px -24px rgba(7,30,4,.5); }
.id-scr .phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.id-scr--tall .phone img { transition: object-position 6s linear; }
.id-scr--tall:hover .phone img { object-position: 50% 100%; }
.id-scr figcaption { font-size: var(--t-micro); line-height: 1.35; color: var(--fg); }
@media (max-width: 900px) {
  .id-qa__in { grid-template-columns: 1fr; }
  .id-qa__map { position: relative; top: 0; }
  .id-qa__map { grid-template-columns: 150px minmax(0, 1fr); align-items: start; }
  .id-qa__board { width: 150px; grid-row: span 2; }
}

/* ---------- 13 · QA copy vs presentation ---------- */
.id-diff__in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.id-cmp { position: relative; aspect-ratio: 1920 / 1100; border-radius: var(--r-card); overflow: hidden; background: #fff; }
.id-cmp__layer { position: absolute; inset: 0; padding: clamp(6px, 1.1%, 18px); background: #fff; }
.id-cmp__layer--a { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.id-cmp__layer .id-pal { height: 100%; aspect-ratio: auto; }
.id-cmp__layer .id-pal__t, .id-cmp__layer .id-pal__g { padding: clamp(8px, 2%, 24px); pointer-events: none; }
.id-cmp__layer .id-pal__use, .id-cmp__layer .id-pal__rgb, .id-cmp__layer .id-pal__t::after { display: none; }
.id-cmp__layer .id-pal__hex { font-size: clamp(11px, calc(22 * var(--fx)), 22px); }
.id-cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(7,30,4,.3); pointer-events: none; }
.id-cmp__handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6' fill='none' stroke='%23071E04' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.id-cmp:has(.id-cmp__range:focus-visible) .id-cmp__handle::after { box-shadow: 0 0 0 3px var(--s-lime), 0 8px 20px rgba(0,0,0,.3); }
.id-cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.id-cmp__tag { position: absolute; top: var(--s-3); z-index: 2; padding: .45em .8em; border-radius: 999px; background: var(--s-night); color: #fff; font: 600 12px/1 var(--font); pointer-events: none; }
.id-cmp__tag--a { left: var(--s-3); }
.id-cmp__tag--b { right: var(--s-3); background: var(--s-lime); color: var(--s-night); }
.id-diff__list { display: grid; gap: var(--s-3); }
.id-diff__i { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-card); background: var(--tile); }
.id-diff__i > .t-mono { color: var(--s-lime); font-size: var(--t-micro); padding-top: .3em; }
.id-diff__i b { font: 600 var(--t-h4)/1.2 var(--font); }
.id-diff__i p { margin-top: .5em; font-size: var(--t-small); color: rgba(255,255,255,.85); }
.id-diff__i .t-dim { color: rgba(255,255,255,.55); }
.id-layers { margin-top: var(--s-3); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.id-layers__col { display: grid; gap: 4px; align-content: start; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font: 500 12px/1.4 var(--font-mono); color: rgba(255,255,255,.85); }
.id-layers__col small { font: 600 10px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--s-lime); margin-bottom: 4px; }
.id-layers__col .in { padding-left: 1.4em; }
@media (max-width: 900px) { .id-diff__in { grid-template-columns: 1fr; } }

/* ---------- reduced motion: static, complete states ---------- */
@media (prefers-reduced-motion: reduce) {
  .id-vocab__scene, .id-grid__scene { height: auto; }
  .id-vocab__stage, .id-grid__stage { position: relative; height: auto; }
  .id-vocab { padding-top: var(--s-7); }
  .id-grid { padding-block: var(--s-7); }
  .id-stp__track > div { animation: none !important; }
  .id-scr--tall .phone img { transition: none; }
}
