/* Ines Kavald, example portfolio by Frostyh. Lilac sky #dcd8f4, ink #0b0b10, one signal orange for the squiggle.
   Anton for the giant words, captions and headings; Outfit for the logo and reading; Space Mono only for the reel's UI. */
@font-face { font-family: 'Anton'; src: url(../fonts/anton-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url(../fonts/outfit-var-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url(../fonts/space-mono-400-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --sky: #dcd8f4; --paper: #efedfa; --paper2: #dcd8f4; --ink: #0b0b10; --ink2: #34333f; --mute: #63616f; --line: rgba(11, 11, 16, .13);
  --accent: #ff5a1f; --r: 8px; --bar: 32px; --ease: cubic-bezier(.2, .7, .1, 1);
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { font: 400 16px/1.55 var(--sans); color: var(--ink); background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 20px; }

.fx-bar{position:fixed;inset:0 0 auto 0;z-index:1000;height:32px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px;background:#0d0d0d;color:#e9e9e6;font:500 12px/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:.01em;border-bottom:1px solid rgba(255,255,255,.08)}
.fx-bar a{color:#fff;text-decoration:underline;text-underline-offset:2px}
.fx-bar .fx-back{text-decoration:none;padding:5px 9px;border:1px solid rgba(255,255,255,.22);border-radius:5px;white-space:nowrap}
.fx-bar .fx-back:hover{background:rgba(255,255,255,.08)}
body{padding-top:32px}

/* ---------- header: logo with its squiggle, two links, one button ---------- */
.hd { position: fixed; z-index: 60; top: var(--bar); left: 0; right: 0; padding: 10px 12px 0; pointer-events: none; }
.hd-in { pointer-events: auto; max-width: 1420px; margin: 0 auto; height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 6px 0 8px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg { width: 34px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.logo span { font: 600 17px/1 var(--sans); letter-spacing: -.01em; }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; font: 500 15px/1 var(--sans); padding: 9px 12px; border-radius: 6px; border: 1px solid transparent; transition: border-color .25s, background .25s; }
.nav a:hover { border-color: var(--line); background: rgba(255, 255, 255, .5); }
.hd-cta { text-decoration: none; height: 40px; display: flex; align-items: center; padding: 0 14px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; transition: background .2s; }
.hd-cta:hover { background: #2a2a33; }

/* ---------- reel: a sticky stage on a 300vh track ---------- */
.reel { position: relative; height: 280vh; background: var(--sky); }
.stage { position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); overflow: hidden; }
.view { position: absolute; inset: 0; }
.view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fallback { display: none; position: absolute; inset: 0; place-items: center; background: linear-gradient(#f1effc, var(--sky)); }
.fallback span { font: 400 clamp(5rem, 22vw, 20rem)/1 var(--display); color: var(--ink); }
.fallback i { position: absolute; width: min(42vw, 40vh); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .75), rgba(255, 255, 255, .08) 60%); border: 1px solid rgba(255, 255, 255, .7); }
.no-gl .fallback { display: grid; }
.no-gl .view canvas { display: none; }

/* left index of the five words, Space Mono */
/* white with difference blending: dark on the lilac sky, light where a black word passes underneath */
.idx { display: none; list-style: none; position: absolute; left: 32px; top: 50%; transform: translateY(-50%); z-index: 3; mix-blend-mode: difference; }
.idx li { display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 7px 0; color: #fff; opacity: .45; transition: opacity .4s; }
.idx li::before { content: ''; width: 0; height: 2px; background: #fff; transition: width .5s var(--ease); }
.idx li.on { opacity: 1; }
.idx li.on::before { width: 18px; }

/* captions: Anton, cross-fading at fixed points of the scroll */
.caps { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 22px; }
.cap { position: absolute; left: 0; right: 0; bottom: 0; max-width: 30rem; will-change: opacity, transform; }
.cap + .cap { visibility: hidden; opacity: 0; }
.cap h1, .cap-t { font: 400 clamp(1.45rem, 2.5vw, 2.3rem)/1.04 var(--display); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.cap h1 + p { margin-top: 12px; max-width: 25rem; color: var(--ink2); font-size: 15px; }
.cap-t { max-width: 24rem; }

/* a thin scroll rail and the sound button */
.srail { position: absolute; z-index: 3; right: 16px; top: 50%; width: 2px; height: 120px; margin-top: -60px; background: rgba(11, 11, 16, .14); overflow: hidden; }
.srail i { display: block; width: 100%; height: 20%; background: var(--ink); will-change: transform; }
.snd { position: absolute; z-index: 3; right: 16px; top: 76px; height: 34px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(11, 11, 16, .22); background: rgba(255, 255, 255, .45); cursor: pointer;
  font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; transition: background .2s; }
.snd:hover { background: rgba(255, 255, 255, .8); }
.snd[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* the two panels after the words */
.panels { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.panel { position: absolute; left: 16px; right: 16px; bottom: 18px; border-radius: 10px; padding: 22px 20px; visibility: hidden; opacity: 0; pointer-events: auto; will-change: opacity, transform;
  background: rgba(247, 246, 253, .92); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 24px 48px -30px rgba(11, 11, 16, .45); }
.panel h2 { font: 400 clamp(2.2rem, 4.4vw, 3.8rem)/.95 var(--display); text-transform: uppercase; }
.panel p { margin-top: 12px; color: var(--ink2); font-size: 15px; max-width: 26rem; }
.panel-links { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px; border-radius: 6px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; border: 1px solid var(--ink); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: #2a2a33; }
.btn:active { transform: scale(.98); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: rgba(255, 255, 255, .6); }

/* back-to-top circle */
.totop { position: fixed; z-index: 50; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s; }
.totop.on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- section heads ---------- */
.sec-head { display: grid; gap: 12px; margin-bottom: 36px; }
.giant { font: 400 clamp(4.6rem, 17vw, 15rem)/.84 var(--display); text-transform: uppercase; margin-left: -.02em; }
.note { max-width: 28rem; color: var(--ink2); font-size: 14.5px; }

/* ---------- work ---------- */
.work { padding: 88px 0 40px; background: var(--paper); }
.works { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.wk { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.wk-art { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: #d4d0ec; }
.wk-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
@media (hover: hover) { .wk:hover .wk-art img { transform: scale(1.035); } }
.wk-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wk h3 { font: 400 clamp(1.7rem, 3vw, 2.4rem)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.yr { font: 400 15px/1 var(--sans); color: var(--mute); font-variant-numeric: tabular-nums; }
.wk-b > p { margin-top: 8px; color: var(--ink2); font-size: 15.5px; max-width: 34rem; }
.wk-b > p a { color: var(--ink); text-underline-offset: 3px; }
.wk-b > p.tags { margin-top: 6px; font-size: 14px; color: var(--mute); }

/* ---------- breakdown ---------- */
.bd { padding: 88px 0; background: var(--ink); color: #f1f0f7; }
.bd-grid { display: grid; gap: 32px; }
.bd h2 { font: 400 clamp(2.6rem, 6vw, 5.2rem)/.92 var(--display); text-transform: uppercase; }
.bd-copy > p { margin-top: 16px; color: #c6c4d4; max-width: 30rem; }
.bd-steps { list-style: none; margin-top: 24px; display: grid; gap: 2px; }
.bd-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); color: #8f8d9c; font-size: 14.5px; transition: color .3s; }
.bd-steps b { font-weight: 600; font-size: 15px; line-height: 1.4; }
.bd-steps li.on { color: #fff; }
.bd-steps li.on b { color: var(--sky); }
.bd-view { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 1000 / 640; background: #17171d; touch-action: pan-y; cursor: ew-resize; -webkit-user-select: none; user-select: none; }
.bd-stack { position: absolute; inset: 0; }
.bd-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.bd-view [data-bdlayer] { opacity: 0; }
.bd-view [data-bdlayer]:first-of-type { opacity: 1; }
.bd-tag { position: absolute; right: 12px; top: 12px; padding: 8px 11px; border-radius: 6px; font: 600 14px/1 var(--sans); color: var(--ink); background: rgba(247, 246, 253, .92); }
.bd-ctl { margin-top: 16px; }
.bd-ctl input { width: 100%; height: 28px; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.bd-ctl input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--sky) var(--fill, 0%), rgba(255, 255, 255, .18) var(--fill, 0%)); }
.bd-ctl input::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.bd-ctl input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--sky); }
.bd-ctl input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 6px; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.bd-ctl input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 6px; background: #fff; border: 0; }
.bd-ctl input:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.bd-ticks { display: flex; justify-content: space-between; margin-top: 6px; font: 400 14px/1 var(--sans); color: #8f8d9c; }

/* ---------- about ---------- */
.about { padding: 96px 0; background: var(--paper); }
.about-grid { display: grid; gap: 36px; }
.about h2 { font: 400 clamp(2.6rem, 6vw, 5.2rem)/.92 var(--display); text-transform: uppercase; }
.mono { margin-top: 28px; width: min(100%, 300px); aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--sky); }
.mono span { font: 400 clamp(6rem, 16vw, 10rem)/1 var(--display); color: var(--ink); }
.lead { font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; letter-spacing: -.01em; }
.about-r > p:not(.lead) { margin-top: 16px; color: var(--ink2); max-width: 38rem; }
.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--mute); }
.quote { margin-top: 32px; padding-left: 18px; border-left: 2px solid var(--accent); }
.ex { font: 600 13.5px/1 var(--sans); color: #c2410c; }
.quote blockquote p { margin-top: 12px; font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.4; }
.quote figcaption { margin-top: 8px; font-size: 13px; color: var(--mute); }

/* ---------- services ---------- */
.svc { padding: 96px 0; background: var(--paper2); }
.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.svc-list h3 { font: 400 clamp(1.8rem, 3.6vw, 3rem)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.svc-list li p:not(.svc-p) { margin-top: 8px; color: var(--ink2); max-width: 34rem; font-size: 15.5px; }
.svc-p { font: 600 18px/1.2 var(--sans); font-variant-numeric: tabular-nums; margin-top: 8px; }
.svc-p small { font-size: 14px; font-weight: 400; color: var(--mute); }
.flow-h { margin-top: 56px; font: 400 clamp(1.6rem, 2.8vw, 2.2rem)/1 var(--display); text-transform: uppercase; }
.flow { list-style: none; display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.flow li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.flow b { font-weight: 600; font-size: 17px; }
.flow span { color: var(--ink2); font-size: 15px; }
.flow i { font-style: normal; font-size: 15px; color: var(--mute); }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; padding: 96px 0; background: linear-gradient(180deg, var(--paper), var(--sky)); }
.contact-grid { display: grid; gap: 36px; }
.contact-l > p { margin-top: 16px; color: var(--ink2); max-width: 26rem; }
.contact .giant { font-size: clamp(4rem, 12vw, 10rem); line-height: .92; }
.mail { font: 600 17px/1.2 var(--sans); color: var(--ink) !important; user-select: all; overflow-wrap: anywhere; }
.form { border-radius: 10px; padding: 22px 18px; display: grid; gap: 16px; align-content: start; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .95); }
.row2 { display: grid; gap: 16px; }
.f { display: grid; gap: 6px; border: 0; min-width: 0; }
.f label, .f legend { font: 500 14px/1.3 var(--sans); color: var(--ink2); }
.f legend { margin-bottom: 8px; }
.f input:not([type="radio"]), .f select, .f textarea { width: 100%; min-width: 0; height: 46px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(11, 11, 16, .18); background: #fff; font-size: 16px; }
.f textarea { height: auto; padding: 12px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opts span { display: block; padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(11, 11, 16, .18); background: #fff; font-size: 14px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.opts input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.opts input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form .btn { justify-self: start; min-width: 140px; }
.form-note { font-size: 13px; color: var(--ink2); }
.form-note.on { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.ft { background: var(--ink); color: #c9c8d4; padding: 56px 0 32px; font-size: 14px; overflow: hidden; }
.ft-big { font: 400 clamp(3.6rem, 15vw, 13rem)/.85 var(--display); text-transform: uppercase; color: var(--sky); white-space: nowrap; }
.ft-row { display: grid; gap: 14px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ft-row b { color: #fff; font-weight: 600; }
.ft a { color: #fff; }
.ft-links { display: flex; gap: 18px; }
.ft-links a { text-decoration: none; }
.ft-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.credits { margin-top: 14px; font-size: 12.5px; color: #8d8b9a; }

/* reveal once */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (min-width: 640px) {
  .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { padding: 28px 26px; }
}
@media (min-width: 760px) {
  .wrap { padding: 0 32px; }
  .hd { padding: 12px 20px 0; }
  .idx { display: block; }
  .caps { left: 32px; right: auto; bottom: 40px; width: min(30rem, 42vw); }
  .srail { right: 32px; }
  .snd { right: 32px; top: auto; bottom: 40px; }
  .reel { height: 300vh; }
  .panel { left: 32px; right: auto; top: 50%; bottom: auto; width: min(30rem, 40vw); margin-top: -130px; padding: 30px 28px; }
  .panel + .panel { left: auto; right: 32px; }
  .totop { right: 24px; bottom: 24px; }
  .works { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 64px 24px; }
  .wk:nth-child(1) { grid-column: span 7; } .wk:nth-child(2) { grid-column: span 5; margin-top: 96px; }
  .wk:nth-child(3) { grid-column: span 5; } .wk:nth-child(4) { grid-column: span 7; margin-top: -40px; }
  .wk:nth-child(5) { grid-column: span 6; } .wk:nth-child(6) { grid-column: span 6; margin-top: 72px; }
  .svc-list li { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 30px 0; }
  .svc-p { grid-column: 2; grid-row: 1; margin-top: 0; text-align: right; font-size: 20px; }
  .flow li { grid-template-columns: 11rem minmax(0, 1fr) 8rem; align-items: baseline; }
  .flow i { text-align: right; }
  .ft-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}
@media (min-width: 1000px) {
  .nav { display: flex; }
  .work { padding: 140px 0 80px; }
  .sec-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-bottom: 56px; }
  .sec-head .note { text-align: right; justify-self: end; padding-bottom: 10px; }
  .bd { padding: 140px 0; }
  .bd-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
  .about { padding: 140px 0; }
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; }
  .svc { padding: 140px 0; }
  .contact { padding: 140px 0; }
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
}

/* reduced motion: a calm still page. The reel is one still frame and the panels sit in the flow. */
.rm .reel { height: auto; }
.rm .stage { position: relative; top: 0; height: auto; overflow: visible; }
.rm .view { position: relative; height: calc(100svh - var(--bar)); min-height: 560px; }
.rm .srail, .rm .snd { display: none; }
.rm .panels { position: relative; display: grid; gap: 12px; padding: 16px; background: var(--sky); }
.rm .panel { position: relative; inset: auto; width: auto; margin: 0; opacity: 1 !important; visibility: visible !important; transform: none !important; }
@media (min-width: 760px) { .rm .panels { grid-template-columns: 1fr 1fr; padding: 24px 32px 40px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ================= STACK (2026-11-03): sections overlap as cards, see /websites/js/stack.js =================
   Without .stk-on (no script, reduced motion) all of this is a plain column. */
:root { --stack-top: 32px; --stk-shade: #0b0b10; }
.stk-on body { background: #0b0b10; }

/* marquee bands: the tools, then what gets made */
.band { display: flex; align-items: center; overflow: hidden; white-space: nowrap; height: clamp(60px, 6.4vw, 96px); font: 400 clamp(30px, 4.4vw, 64px)/1 var(--display); text-transform: uppercase; background: var(--accent); color: var(--ink); }
.band span { padding: 0 .4em; flex: none; }
.band i { flex: none; width: .9em; height: .34em; border: 3px solid currentColor; border-radius: 50%; }
.band-ink { background: var(--ink); color: var(--sky); }
.bd { padding-top: 0 !important; }
.bd .band { margin-bottom: clamp(64px, 8vw, 120px); }
.svc { padding-top: 0 !important; }
.svc .band { margin-bottom: clamp(64px, 8vw, 120px); }

/* work: the six projects run sideways while the section holds (phones and tablets) */
.work-bar { display: none; }
.stk-on:not(.rb-on) .work { padding-bottom: 0; }
.stk-on:not(.rb-on) .work .sec-head { margin-bottom: 0; }
.stk-on:not(.rb-on) .work-stage { height: calc(100svh - var(--stack-top)); display: flex; flex-direction: column; justify-content: center; padding-top: 64px; }
.stk-on:not(.rb-on) .work-view { max-width: none; padding-inline: max(20px, calc((100vw - 1360px) / 2 + 32px)); }
.stk-on:not(.rb-on) .works { display: flex; gap: clamp(20px, 2.4vw, 40px); align-items: flex-start; }
.stk-on:not(.rb-on) .works > .wk { flex: none; width: clamp(280px, min(36vw, 62vh), 560px); margin-top: 0; }
.stk-on:not(.rb-on) .works > .wk:nth-child(even) { margin-top: clamp(24px, 6vh, 72px); }
.stk-on:not(.rb-on) .works .wk-b > p { font-size: 15px; }
.stk-on:not(.rb-on) .work-bar { display: block; margin-top: clamp(16px, 3vh, 32px); }
.work-bar i { display: block; position: relative; height: 3px; background: var(--line); overflow: hidden; max-width: 420px; }
.work-bar i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--hp, 0)); }

/* desktop (2026-11-03): the stills ride the ribbon (/websites/js/ribbon.js) and land in a grid, the list under it
   becomes the written index of the same six projects, in the same order */
.rb { --rb-h: 330vh; --rb-r: var(--r); --rb-cap: var(--ink); }
.rb-c figcaption b { font: 400 clamp(1.3rem, 1.9vw, 1.9rem)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.rb-c figcaption span { font: 400 13px/1 var(--mono); color: var(--mute); }
.rb-c img { box-shadow: 0 30px 50px -36px rgba(11, 11, 16, .45); }
.rb-on .work .sec-head { margin-bottom: 0; }
.rb-on .work-view { max-width: none; width: 74vw; padding-inline: 0; margin-top: clamp(24px, 4vh, 48px); }
.rb-on .works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 1.3vw; }
.rb-on .works > .wk { grid-column: auto; margin-top: 0; gap: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.rb-on .works .wk-art { display: none; }
.rb-on .works .wk h3 { font-size: clamp(1.3rem, 1.9vw, 1.9rem); }
.rb-on .works .wk-b > p { font-size: 15px; }
/* breakdown: the frame holds while the four stages scroll past */
.stk-on .bd-grid { align-items: start; }
.stk-on .bd-frame { --steps-top: 18vh; }
.stk-on .bd-steps { margin-top: 32px; padding-bottom: 20vh; }
.stk-on .bd-steps li { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 30vh; align-content: center; border-top: 0; border-left: 2px solid rgba(255, 255, 255, .14); padding: 0 0 0 18px; font-size: 16px; }
.stk-on .bd-steps li.is-on { border-left-color: var(--accent); }
.stk-on .bd-steps b { font: 400 clamp(1.6rem, 2.6vw, 2.4rem)/1 var(--display); text-transform: uppercase; }
.stk-on .bd-view [data-bdlayer] { transition: opacity .35s ease; }

/* pinned sections fill the screen, so the one under them never peeks out below */
.stk-on .about, .stk-on .svc, .stk-on .contact { display: flex; flex-direction: column; justify-content: center; }
.stk-on .about > .wrap, .stk-on .svc > .wrap, .stk-on .contact > .wrap { width: 100%; }

@media (max-width: 999px) {
  .stk-on .bd-grid { gap: 16px; }
  .stk-on .bd-copy { display: contents; }
  .stk-on .bd-frame { order: 1; --steps-top: 64px; z-index: 2; }
  .stk-on .bd-steps { order: 2; margin-top: 8px; }
  .stk-on .bd-ctl { background: var(--ink); padding: 8px 0 6px; margin-top: 0; }
  .stk-on .bd-steps li { min-height: 24svh; }
}
@media (max-width: 759px) {
  .stk-on .works > .wk { width: 80vw; }
  .stk-on .works > .wk:nth-child(even) { margin-top: 20px; }
  .stk-on .works .wk-b > p:not(.tags) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .stk-on .work-stage { padding-top: 62px; }
}