/* Worlds: Developer · Designer journey · Website library · Reel studio.
   One brand family (warm black, cream, orange, bronze) holds every world together; each project/chapter may then
   bring its own palette — the portfolio is one exhibition with different rooms. */

@property --pal-bg { syntax: "<color>"; inherits: true; initial-value: #0a0705; }
@property --pal-bg2 { syntax: "<color>"; inherits: true; initial-value: #0a0705; }
@property --pal-ink { syntax: "<color>"; inherits: true; initial-value: #f4ece0; }
@property --pal-accent { syntax: "<color>"; inherits: true; initial-value: #ff6a2b; }

/* shared */
.world__label { margin: 0 0 22px; font: 500 11px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--orange-hot); }
.world h2 { margin: 0; text-transform: uppercase; }
.world__text { max-width: 30em; margin: 24px 0 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; }
.world__list { list-style: none; margin: 34px 0 0; padding: 0; max-width: 30em; }
.world__list li { display: flex; gap: 18px; padding: 15px 0; border-top: 1px solid currentColor; font-size: 15px; }
.world__list li:last-child { border-bottom: 1px solid currentColor; }
.world__list span { opacity: .6; font: 500 11px/1.8 var(--mono); }
.world__link-row { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 34px 0 0; }
.world__link { display: inline-flex; gap: 12px; font: 600 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid currentColor; color: var(--orange-hot); }
.world__link--quiet { color: var(--muted); }
.world__link i { font-style: normal; transition: transform 200ms; }
.world__link:hover i { transform: translateX(6px); }

/* ───────── 01 Developer — technical and precise, still in the brand family ───────── */
.world { position: relative; min-height: min(100svh, 860px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 80px); padding: clamp(80px, 12vh, 140px) clamp(22px, 6vw, 100px); overflow: hidden; }
.world--developer {
  background:
    linear-gradient(rgba(244, 236, 224, .045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(244, 236, 224, .045) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(ellipse 60% 70% at 85% 50%, rgba(255, 106, 43, .13), transparent),
    #0e0a07;
  font-family: var(--mono); border-top: 1px solid rgba(214, 160, 104, .28);
}
.world--developer h2 { font: 700 clamp(34px, 4.4vw, 70px)/1 var(--mono); letter-spacing: -.06em; color: var(--cream); text-transform: none; }
.world--developer .world__text, .world--developer .world__list { font-family: var(--sans); color: #d6cabb; }
.world--developer .world__list li { border-color: rgba(214, 160, 104, .28); }
.world__art { position: relative; min-height: 360px; }
.code-window { position: absolute; left: 6%; top: 8%; width: min(100%, 460px); padding: 38px 24px 22px; background: rgba(14, 10, 8, .92); border: 1px solid rgba(214, 160, 104, .55); border-radius: 6px; box-shadow: 0 40px 100px -30px rgba(255, 106, 43, .4); transform: perspective(900px) rotateY(-12deg) rotateX(4deg); }
.code-window i { position: absolute; top: 14px; width: 9px; height: 9px; border-radius: 50%; }
.code-window i:nth-child(1) { left: 16px; background: var(--orange); } .code-window i:nth-child(2) { left: 32px; background: var(--bronze); } .code-window i:nth-child(3) { left: 48px; background: var(--cream); }
.code-window pre { margin: 0; font: 500 13px/1.8 var(--mono); color: var(--cream); white-space: pre-wrap; }
.code-window b { color: var(--orange-hot); font-weight: 500; } .code-window u { color: var(--bronze); text-decoration: none; } .code-window s { color: var(--orange); text-decoration: none; } .code-window em { color: #7a6a58; font-style: normal; }
.ui-wire { position: absolute; right: 2%; bottom: 6%; width: min(70%, 320px); aspect-ratio: 4 / 3; border: 1px solid rgba(244, 236, 224, .5); border-radius: 4px; background: rgba(14, 10, 8, .86); padding: 14px; display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: 1fr 1fr; gap: 10px; transform: perspective(900px) rotateY(-12deg) translateZ(40px); }
.ui-wire span { border: 1px dashed rgba(244, 236, 224, .4); border-radius: 2px; }
.ui-wire span:first-child { grid-row: span 2; }
.ui-wire .is-selected { border: 2px solid var(--cobalt); }   /* the single cobalt accent: a purposeful "selected" state */
.ui-wire b { position: absolute; right: 14px; bottom: 14px; width: 38%; height: 26%; background: repeating-linear-gradient(90deg, var(--orange) 0 7px, transparent 7px 14px); opacity: .85; clip-path: polygon(0 100%, 0 60%, 14% 60%, 14% 100%, 28% 100%, 28% 30%, 42% 30%, 42% 100%, 56% 100%, 56% 70%, 70% 70%, 70% 100%, 84% 100%, 84% 10%, 100% 10%, 100% 100%); }

/* ───────── 02 Designer — scroll-driven journey ───────── */
.dz { --dz-n: 5; position: relative; background: #0a0705; }
.dz__track { position: relative; }
.dz__stage { position: relative; }
.dz__head { display: none; }
.dz__doors, .dz__bar, .dz__rail { display: none; }

[data-theme="cream"]    { --bg: #f4ece0; --fg: #1a0c05; --accent: #ff6a2b; --soft: rgba(26, 12, 5, .72); --kick: #a63a0a; --tick: .65; }
[data-theme="orange"]   { --bg: #ff6a2b; --fg: #190b04; --accent: #fff3e4; --soft: rgba(25, 11, 4, .8); --kick: #190b04; --tick: .9; }
[data-theme="cobalt"]   { --bg: #1f4bff; --fg: #f4ece0; --accent: #ff9a5c; --soft: rgba(244, 236, 224, .96); --kick: #ffd9bf; --tick: 1; }
[data-theme="graphite"] { --bg: #130d0a; --fg: #f4ece0; --accent: #ff6a2b; --soft: rgba(244, 236, 224, .7); --kick: #ff6a2b; --tick: .65; }
[data-theme="paper"]    { --bg: #ece3d3; --fg: #140a05; --accent: #c24a14; --soft: rgba(20, 10, 5, .72); --kick: #a63a0a; --tick: .65; }

.dz__ch { position: relative; min-height: 92svh; display: grid; align-content: center; padding: clamp(90px, 14vh, 150px) clamp(22px, 6vw, 100px); background: var(--bg); color: var(--fg); overflow: hidden; }
.dz__copy { position: relative; z-index: 3; max-width: 36rem; }
.dz__kicker { margin: 0 0 22px; font: 500 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--kick, var(--accent)); }
[data-theme="cream"] .dz__kicker, [data-theme="paper"] .dz__kicker { color: var(--kick); }
.dz__copy h3 { margin: 0; font: 400 clamp(52px, 7.4vw, 124px)/.88 var(--display); text-transform: uppercase; letter-spacing: .004em; }
.dz__copy p { margin: 24px 0 0; max-width: 28em; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; color: var(--soft); }
.dz__copy .dz__kicker { color: var(--kick, var(--accent)); }
[data-theme="orange"] .dz__kicker { color: var(--fg); opacity: 1; }
.dz__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px !important; }
.dz__btn { display: inline-flex; gap: 12px; align-items: center; min-height: 48px; padding: 0 20px; font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--bg); background: var(--fg); border: 1px solid var(--fg); border-radius: 999px; transition: transform 180ms, background 180ms; }
.dz__btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: #fff; }
.dz__btn--ghost { background: transparent; color: var(--fg); }
.dz__btn i { font-style: normal; }

/* art layers — positions are CSS; scroll-driven offsets arrive through custom properties set by js/designer.js */
.dz__art { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.dz__art > * { position: absolute; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--r, 0deg)) scale(var(--s, 1)); will-change: transform; }
.dz__word { font: 400 clamp(110px, 17vw, 300px)/.8 var(--display); text-transform: uppercase; white-space: nowrap; letter-spacing: .01em; right: -2vw; bottom: -2vw; }
.dz__word--outline { color: transparent; -webkit-text-stroke: 2px var(--accent); right: 3vw; left: auto; bottom: -1.2vw; opacity: .9; }
.dz__word--ink { -webkit-text-stroke-color: var(--fg); }
.dz__word--extrude { color: var(--accent); text-shadow: 1px 1px 0 #c24a14, 2px 2px 0 #b8420f, 3px 3px 0 #a93b0c, 4px 4px 0 #9b350a, 5px 5px 0 #8c2f08, 6px 6px 0 #7e2906, 8px 8px 0 #702405, 10px 14px 24px rgba(60, 14, 0, .45); right: 3vw; bottom: 2vh; }
.dz__word--ghost { color: transparent; -webkit-text-stroke: 1.5px rgba(244, 236, 224, .6); right: 3vw; left: auto; bottom: -1vw; }
.dz__word--glitch { color: var(--fg); position: absolute; right: 3vw; bottom: 2vh; }
.dz__word--glitch::before, .dz__word--glitch::after { content: attr(data-text); position: absolute; inset: 0; mix-blend-mode: screen; opacity: calc(var(--g, 0) * .9); }
.dz__word--glitch::before { color: #ff6a2b; transform: translateX(calc(var(--g, 0) * -18px)); clip-path: inset(0 0 52% 0); }
.dz__word--glitch::after { color: #6ef3ff; transform: translateX(calc(var(--g, 0) * 18px)); clip-path: inset(48% 0 0 0); }
.dz__orb { right: 7%; top: 12%; width: clamp(180px, 28vw, 430px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 32% 26%, #fff 0 4%, transparent 5%), radial-gradient(circle at 50% 50%, #fff 0%, #ffe6cc 16%, #8a4a2a 34%, #190b07 48%, #ff9a5c 62%, #ff4fa0 80%, #6ef3ff 94%, #fff 100%); box-shadow: 0 40px 90px rgba(255, 106, 43, .4), inset 0 -24px 50px rgba(0, 0, 0, .5); }
.dz__orb--small { width: clamp(90px, 14vw, 200px); right: 10%; top: auto; bottom: 16%; }
.dz__circle { left: 8%; bottom: 8%; width: clamp(160px, 22vw, 340px); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--accent); }
.dz__sticker { right: 14%; bottom: 14%; padding: 14px 18px; font: 600 11px/1.5 var(--mono); letter-spacing: .16em; color: #190b04; background: var(--accent); border-radius: 10px; transform-origin: center; }
.dz__slab { right: 8%; top: 14%; width: clamp(180px, 26vw, 400px); aspect-ratio: 3 / 4; border-radius: 22px; background: linear-gradient(150deg, #fff3e4, #ffb27d); box-shadow: 0 40px 80px rgba(60, 14, 0, .35); }
.dz__slab--b { right: auto; left: 55%; top: 50%; width: clamp(120px, 16vw, 240px); background: linear-gradient(150deg, #190b04, #4a1d08); }
.dz__ticker { left: 0; top: 17%; font: 500 12px/1 var(--mono); letter-spacing: .3em; white-space: nowrap; color: var(--fg); opacity: var(--tick, .65); }
.dz__chrome { right: 10%; top: 12%; width: clamp(200px, 30vw, 460px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 20deg, #fff, #9bb2ff, #1a2a8a, #fff, #ffb27d, #5c6bd9, #fff); -webkit-mask: radial-gradient(circle, transparent 35%, #000 36%); mask: radial-gradient(circle, transparent 35%, #000 36%); filter: drop-shadow(0 30px 40px rgba(0, 0, 40, .5)); }
.dz__star { right: 34%; top: 54%; width: clamp(80px, 12vw, 180px); aspect-ratio: 1; background: linear-gradient(135deg, #fff, #ff9a5c 50%, #fff); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 16px rgba(255, 154, 92, .8)); }
.dz__ring { left: 40%; top: 7%; width: clamp(120px, 18vw, 280px); aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 0 40px rgba(255, 154, 92, .5); }
.dz__iri { right: 8%; top: 10%; width: clamp(220px, 34vw, 520px); aspect-ratio: 1.1; border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%; background: conic-gradient(from 40deg, #ff6a2b, #ff4fa0, #8a6bff, #6ef3ff, #ffe6cc, #ff6a2b); filter: blur(2px) saturate(1.1); opacity: .9; }
.dz__scan { inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 6px); }

/* pinned (desktop, motion allowed): sticky stage, chapters stacked, doors fold between chapters */
.dz[data-mode="pinned"] .dz__track { height: calc(var(--dz-n) * 160svh); }
.dz[data-mode="pinned"] .dz__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 1700px; background: #0a0705; }
.dz[data-mode="pinned"] .dz__ch { position: absolute; inset: 0; min-height: 0; background: transparent; padding-top: 0; padding-bottom: 0; align-content: center; overflow: visible; }
.dz[data-mode="pinned"] .dz__ch::before, .dz[data-mode="pinned"] .dz__ch::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; background: var(--bg); z-index: 0; backface-visibility: hidden; filter: brightness(var(--shade, 1)); will-change: transform; }
.dz[data-mode="pinned"] .dz__ch::before { left: 0; transform-origin: 0 50%; transform: rotateY(var(--fold, 0deg)); }
.dz[data-mode="pinned"] .dz__ch::after { right: 0; transform-origin: 100% 50%; transform: rotateY(calc(var(--fold, 0deg) * -1)); }
.dz[data-mode="pinned"] .dz__art { overflow: visible; }
.dz[data-mode="pinned"] .dz__ch .dz__art { clip-path: inset(0); }
.dz[data-mode="pinned"] .dz__head { display: block; position: absolute; z-index: 20; left: clamp(22px, 6vw, 100px); top: 84px; }
.dz[data-mode="pinned"] .dz__head .world__label { margin: 0; color: var(--head, var(--orange-hot)); transition: color .4s; }
.dz[data-mode="pinned"] .dz__doors { display: block; position: absolute; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
.dz__slice { position: absolute; left: -5%; right: -5%; opacity: 0; mix-blend-mode: screen; }
.dz[data-mode="pinned"] .dz__rail { display: flex; flex-direction: column; gap: 4px; position: absolute; z-index: 20; left: clamp(14px, 2vw, 32px); bottom: 34px; color: var(--head-fg, var(--cream)); }
.dz__rail button { display: flex; align-items: baseline; gap: 12px; padding: 7px 10px; background: none; border: 0; color: inherit; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; opacity: .92; transition: opacity .2s, transform .3s; text-align: left; }
.dz__rail button b { font-weight: 500; }
.dz__rail button span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--ease); }
.dz__rail button:hover, .dz__rail button:focus-visible, .dz__rail button[aria-current="true"] { opacity: 1; }
.dz__rail button[aria-current="true"] span, .dz__rail button:hover span, .dz__rail button:focus-visible span { max-width: 120px; }
.dz__rail button[aria-current="true"] { transform: translateX(6px); }
.dz[data-mode="pinned"] .dz__bar { display: block; position: absolute; z-index: 20; left: 0; right: 0; top: 0; height: 3px; background: rgba(127, 127, 127, .25); }
.dz__bar i { display: block; height: 100%; width: calc(var(--dz-p, 0) * 100%); background: var(--orange); }

/* ───────── 03 Website library — horizontal showcase + book-style open ───────── */
.lib { position: relative; padding: clamp(80px, 12vh, 140px) clamp(22px, 5vw, 80px) clamp(70px, 10vh, 120px); background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 106, 43, .12), transparent), #0d0906; border-top: 1px solid rgba(214, 160, 104, .22); overflow: hidden; }
.lib h2 { margin: 0; font: 400 clamp(48px, 7vw, 112px)/.9 var(--display); text-transform: uppercase; }
.lib__note { max-width: 44em; margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.lib__note b { color: var(--orange-hot); font-weight: 600; }
.lib__stage { position: relative; margin-top: clamp(28px, 5vh, 56px); }
.lib__browse { transition: opacity .45s var(--ease), transform .6s var(--ease), filter .45s; }
.lib__stage.is-open .lib__browse { opacity: 0; transform: translateZ(-200px) scale(.94); filter: blur(6px); pointer-events: none; position: absolute; inset: 0 0 auto 0; visibility: hidden; transition: opacity .35s, transform .5s, filter .35s, visibility 0s .5s; }
/* Website showcase: a horizontal scroll-snap track of equal cards. Each card is the real 16:9 desktop hero, with title, tag, description and links
   UNDER the image. Nothing is rotated, stacked or drawn over a neighbour. */
.lib__shelf { --pad: clamp(22px, 5vw, 80px); list-style: none; margin: 0 calc(-1 * var(--pad)); padding: 6px var(--pad) 22px; display: flex; gap: clamp(18px, 2.4vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(214, 160, 104, .55) transparent; }
.panel { flex: none; width: min(640px, 86vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel__btn { all: unset; box-sizing: border-box; display: block; cursor: pointer; overflow: hidden; border-radius: 12px; border: 1px solid rgba(214, 160, 104, .32); background: #000; box-shadow: 0 18px 40px rgba(0, 0, 0, .42); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.panel__btn img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.panel__btn:hover { transform: translateY(-3px); border-color: var(--orange-hot); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }
.panel__btn:focus-visible { outline: 2px solid #ffc29c; outline-offset: 5px; }
.panel__cap { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 4px; min-width: 0; }
.panel__title { margin: 0; font: 400 clamp(26px, 2.4vw, 34px)/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.panel__cap .chip { margin: 0; max-width: 100%; white-space: normal; line-height: 1.5; }
.panel__desc { margin: 0; max-width: 40em; font-size: 14px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: auto; padding-top: 8px; }
.panel__open, .panel__live { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.panel__open { border: 1px solid rgba(214, 160, 104, .5); background: transparent; color: var(--cream); }
.panel__live { border: 1px solid var(--orange); background: var(--orange); color: #190b04; }
.panel__open:hover, .panel__open:focus-visible { border-color: var(--orange-hot); color: #fff; }
.panel__live:hover, .panel__live:focus-visible { background: var(--orange-hot); border-color: var(--orange-hot); }
.chip { display: inline-block; padding: 3px 8px; margin-left: 8px; border: 1px solid var(--orange-hot); color: var(--orange-hot); border-radius: 999px; font: 600 9px/1.3 var(--mono); letter-spacing: .14em; }
.lib__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.lib__nav { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 236, 224, .06); border: 1px solid rgba(244, 236, 224, .3); color: var(--cream); font-size: 18px; cursor: pointer; transition: background .2s, transform .2s; }
.lib__nav:hover { background: var(--orange); border-color: var(--orange); transform: scale(1.06); }
.lib__index { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.lib__index a, .lib__index button { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; font: 600 11px/1 var(--mono); letter-spacing: .1em; color: var(--muted); background: none; border: 1px solid rgba(244, 236, 224, .22); cursor: pointer; }
.lib__index [aria-current="true"] { color: #190b04; background: var(--cream); border-color: var(--cream); }
.lib__index a:hover, .lib__index button:hover { border-color: var(--orange-hot); color: var(--cream); }
.lib__hint { margin: 14px 0 0; text-align: center; font: 500 10px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

/* fixture page mock (CSS only — a stand-in, never a real site) */
.fx { --fx-bg: #1f4bff; --fx-ink: #f4ece0; --fx-accent: #ff9a5c; --fx-paper: #e9efff; position: relative; background: var(--fx-bg); color: var(--fx-ink); overflow: hidden; container-type: inline-size; }
.fx__nav { position: absolute; left: 4%; right: 4%; top: 5%; height: 6%; display: flex; align-items: center; gap: 3%; }
.fx__nav i { height: 36%; width: 7%; background: var(--fx-ink); opacity: .75; border-radius: 99px; }
.fx__nav i:first-child { width: 12%; height: 70%; opacity: 1; border-radius: 4px; }
.fx__nav i:last-child { margin-left: auto; width: 11%; height: 80%; background: var(--fx-accent); opacity: 1; }
.fx__h { position: absolute; left: 4%; top: 18%; width: 54%; display: grid; gap: 3.2cqw; }
.fx__h b { display: block; height: 7.8cqw; background: var(--fx-ink); border-radius: 3px; }
.fx__h b:nth-child(2) { width: 78%; } .fx__h b:nth-child(3) { width: 56%; background: var(--fx-accent); }
.fx__p { position: absolute; left: 4%; top: 52%; width: 36%; display: grid; gap: 1.6cqw; }
.fx__p i { height: 1.4cqw; background: var(--fx-ink); opacity: .5; border-radius: 2px; } .fx__p i:nth-child(2) { width: 82%; } .fx__p i:nth-child(3) { width: 64%; }
.fx__btn { position: absolute; left: 4%; top: 68%; width: 14%; height: 6.5%; background: var(--fx-accent); border-radius: 99px; }
.fx__img { position: absolute; right: 5%; top: 16%; width: 34%; aspect-ratio: .86; background: var(--fx-accent); border-radius: 50% 50% 8px 8px; box-shadow: inset -2cqw -2cqw 0 rgba(0, 0, 0, .12); }
.fx__cards { position: absolute; left: 4%; right: 4%; bottom: 5%; height: 17%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.fx__cards i { background: var(--fx-paper); opacity: .92; border-radius: 6px; }
.fx[data-id="b"] .fx__img { border-radius: 8px; width: 40%; aspect-ratio: 1.1; transform: rotate(-5deg); }
.fx[data-id="b"] .fx__h b { height: 11cqw; }
.fx[data-id="c"] .fx__img { border-radius: 14px; width: 38%; aspect-ratio: 1.3; background: linear-gradient(135deg, var(--fx-accent), #8a6bff); }
.fx[data-id="c"] .fx__cards i { border: 1px solid rgba(36, 20, 61, .18); }
.fx[data-id="d"] .fx__img { border-radius: 0; width: 30%; aspect-ratio: .7; background: repeating-linear-gradient(90deg, #101010 0 6px, transparent 6px 14px); }
.fx[data-id="d"] .fx__h b { background: #101010; } .fx[data-id="d"] .fx__h b:nth-child(3) { background: #ff6a2b; }
.fx[data-id="d"] .fx__nav i { background: #101010; } .fx[data-id="d"] .fx__nav i:last-child { background: #101010; }
.fx[data-id="d"] .fx__cards i { background: #fff; border: 1px solid #101010; }
.fx__tag { position: absolute; left: 4%; bottom: 24%; font: 600 1.7cqw/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: .9cqw 1.4cqw; border: 1px solid currentColor; border-radius: 99px; opacity: .85; }

/* book detail */
.lib__detail { position: relative; }
.lib__detail[hidden] { display: none; }
.detail__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 26px; }
.detail__back, .detail__step { min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(244, 236, 224, .06); border: 1px solid rgba(244, 236, 224, .3); color: var(--cream); font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s, border-color .2s; }
.detail__back { background: var(--orange); border-color: var(--orange); color: #190b04; }
.detail__back:hover { background: var(--orange-hot); } .detail__step:hover { border-color: var(--orange-hot); }
.detail__title { margin: 0; font: 400 clamp(28px, 3.4vw, 48px)/1 var(--display); text-transform: uppercase; }
.detail__steps { display: flex; gap: 8px; margin-left: auto; }
.book { --open: 0; position: relative; width: min(1120px, 100%); height: clamp(420px, 66vh, 620px); margin: 0 auto; perspective: 2600px; transform: translateX(-25%); transition: transform .85s var(--ease); }
.book[data-open="true"] { transform: none; }
.book__page { background: #f7f1e6; color: #1a0c05; }
.book__right { position: absolute; right: 0; top: 0; width: 50%; height: 100%; padding: clamp(14px, 2vw, 26px); border-radius: 0 10px 10px 0; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.book__right::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 40px; background: linear-gradient(90deg, rgba(0, 0, 0, .22), transparent); pointer-events: none; }
.browser { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid rgba(26, 12, 5, .35); border-radius: 8px; overflow: hidden; background: #fff; }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #e9e0d0; font: 500 10px/1 var(--mono); color: rgba(26, 12, 5, .7); }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(26, 12, 5, .3); }
.browser__bar span { margin-left: 8px; padding: 4px 10px; background: #f7f1e6; border-radius: 99px; flex: 1; }
.browser .fx { flex: 1; min-height: 0; }
.assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.assets div { height: 54px; border: 1.5px dashed rgba(26, 12, 5, .35); border-radius: 6px; display: grid; place-items: center; text-align: center; font: 500 9px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(26, 12, 5, .55); padding: 4px; }
.book__leaf { position: absolute; right: 0; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.6, .05, .25, 1); z-index: 2; }
.book[data-open="true"] .book__leaf { transform: rotateY(-180deg); }
.leaf__face { position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden; }
.leaf__front { border-radius: 0 10px 10px 0; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); }
.leaf__front .fx { position: absolute; inset: 0; }
.leaf__front::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 26px; background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent); }
.leaf__front h3 { position: absolute; left: 6%; bottom: 7%; margin: 0; font: 400 clamp(30px, 4vw, 58px)/.95 var(--display); text-transform: uppercase; color: var(--fx-ink); text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.leaf__back { transform: rotateY(180deg); border-radius: 10px 0 0 10px; padding: clamp(18px, 2.6vw, 38px); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); }
.leaf__back::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 40px; background: linear-gradient(270deg, rgba(0, 0, 0, .2), transparent); pointer-events: none; }
.leaf__back h3 { margin: 0; font: 400 clamp(26px, 3vw, 42px)/1 var(--display); text-transform: uppercase; }
.leaf__back .kick { font: 600 10px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #c24a14; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(26, 12, 5, .2); font-size: 13px; }
.facts dt { font: 600 10px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(26, 12, 5, .6); }
.facts dd { margin: 0; color: rgba(26, 12, 5, .75); }
.leaf__back .stamp { margin-top: auto; padding: 10px 12px; border: 1.5px dashed #c24a14; color: #c24a14; font: 600 10px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; border-radius: 6px; }

/* ───────── 04 Reel studio ───────── */
.reels { position: relative; background: #0a0705; border-top: 1px solid rgba(214, 160, 104, .22); }
.reels__track { position: relative; }
.reels__stage { --pal-bg: #0a0705; --pal-bg2: #0a0705; --pal-ink: #f4ece0; --pal-accent: #ff6a2b; position: relative; min-height: 100svh; padding: clamp(70px, 10vh, 110px) clamp(22px, 5vw, 80px) 28px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; color: var(--pal-ink); overflow: hidden; transition: --pal-bg .8s ease, --pal-bg2 .8s ease, --pal-ink .5s ease, --pal-accent .6s ease; }
.reels[data-mode="pinned"] .reels__track { height: calc((var(--rn, 4) + 1) * 78svh); }
.reels[data-mode="pinned"] .reels__stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.reels__bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 80% 70% at 30% 42%, var(--pal-bg), transparent 75%), var(--pal-bg2); }
.reels__stage > * { position: relative; z-index: 1; }
.reels__stage > .reels__bg { position: absolute; z-index: 0; }
.reels__stage h2 { margin: 0; font: 400 clamp(44px, 6vw, 96px)/.9 var(--display); text-transform: uppercase; }
.reels__stage .world__label { color: var(--pal-accent); }
.reels__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.reels__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.reels__tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; background: transparent; border: 1px solid color-mix(in srgb, var(--pal-ink) 40%, transparent); color: var(--pal-ink); font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.reels__tabs button[aria-selected="true"] { background: var(--pal-ink); color: var(--pal-bg2); border-color: var(--pal-ink); }
.reels__tabs button small { opacity: .6; margin-left: 6px; }
.reels__note { margin: 0; max-width: 60em; font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--pal-ink) 78%, transparent); }
.reels__note b { color: var(--pal-accent); }
.reels__main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 64px); align-items: center; min-height: 0; }
.reels__viewport { position: relative; height: min(58vh, 620px); perspective: 1700px; display: grid; place-items: center; }
.rslot { position: absolute; inset: 0; display: block; transform-style: preserve-3d; visibility: hidden; }
.rslot.is-on { visibility: visible; }
.rslot.is-in { animation: rIn .66s var(--ease) both; }
.rslot.is-out { animation: rOut .5s cubic-bezier(.5, 0, .8, .4) both; visibility: visible; }
@keyframes rIn { 0% { transform: translateY(calc(34% * var(--dir, 1))) rotateX(calc(-22deg * var(--dir, 1))) scale(.84); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes rOut { 0% { transform: none; opacity: 1; } 100% { transform: translateY(calc(-34% * var(--dir, 1))) rotateX(calc(22deg * var(--dir, 1))) scale(.84); opacity: 0; } }
.rslot.is-in .rframe { animation: rGlitch .34s steps(1, end) .18s both; }
@keyframes rGlitch { 0% { clip-path: inset(0); transform: none; } 20% { clip-path: inset(10% 0 62% 0); transform: translateX(-10px); } 40% { clip-path: inset(54% 0 14% 0); transform: translateX(12px); } 60% { clip-path: inset(0 0 40% 0); transform: translateX(-4px); } 100% { clip-path: inset(0); transform: none; } }
.rframe { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.rframe video, .rframe .poster { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--pal-bg2); }
.rframe[data-kind="phone"] .rscreen { height: 100%; aspect-ratio: 9 / 16; border: 9px solid #0b0a09; border-radius: 40px; background: #000; overflow: hidden; position: relative; box-shadow: 0 50px 90px -20px rgba(0, 0, 0, .65), 0 0 0 2px rgba(255, 255, 255, .12); }
.rframe[data-kind="phone"] .rscreen::before { content: ""; position: absolute; z-index: 3; top: 8px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); background: #0b0a09; border-radius: 99px; }
.rframe[data-kind="story"] .rscreen { height: 100%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; position: relative; border: 2px solid color-mix(in srgb, var(--pal-ink) 45%, transparent); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .5); }
.rframe[data-kind="story"] .rscreen::before { content: ""; position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #fff 55%, rgba(255, 255, 255, .35) 55%); }
.rframe[data-kind="laptop"] .rscreen { width: min(92%, 700px); aspect-ratio: 16 / 9; height: auto; flex: none; border: 10px solid #15110e; border-bottom-width: 14px; border-radius: 14px 14px 4px 4px; overflow: hidden; position: relative; box-shadow: 0 50px 90px -24px rgba(0, 0, 0, .6); }
.rframe[data-kind="laptop"] { flex-direction: column; }
.rbase { width: min(112%, 790px); height: 14px; margin-top: -1px; background: linear-gradient(180deg, #3a322c, #15110e); border-radius: 0 0 14px 14px; box-shadow: 0 30px 40px -10px rgba(0, 0, 0, .5); }
.rframe[data-kind="film"] .rscreen { width: min(100%, 700px); aspect-ratio: 2.39 / 1; border: 2px dashed color-mix(in srgb, var(--pal-ink) 45%, transparent); border-radius: 6px; display: grid; place-items: center; text-align: center; padding: 24px; font: 500 12px/1.7 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.rbadge { position: absolute; z-index: 4; left: 12px; bottom: 12px; padding: 5px 9px; background: rgba(0, 0, 0, .72); color: #fff; font: 600 9px/1.2 var(--mono); letter-spacing: .14em; border-radius: 4px; }
.reels__info { display: grid; gap: 16px; align-content: center; }
.reels__info .cat { display: inline-flex; width: fit-content; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--pal-accent); color: var(--pal-accent); font: 600 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.reels__info .count { font: 500 11px/1 var(--mono); letter-spacing: .2em; opacity: .7; }
.reels__info h3 { margin: 0; font: 400 clamp(36px, 4.8vw, 76px)/.92 var(--display); text-transform: uppercase; }
.reels__info p { margin: 0; max-width: 30em; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.6; color: color-mix(in srgb, var(--pal-ink) 82%, transparent); }
.reels__info dl { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; width: fit-content; font-size: 12px; }
.reels__info dt { font: 600 9px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.reels__info dd { margin: 0; font: 500 13px/1.4 var(--mono); }
.swatches { display: flex; gap: 6px; } .swatches i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--pal-ink) 40%, transparent); }
.reels__info .fixture-badge { width: fit-content; padding: 6px 10px; background: var(--pal-accent); color: var(--pal-bg2); border-radius: 4px; font: 700 10px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.reels__ctrl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.reels__ctrl > button { min-height: 44px; padding: 0 18px; border-radius: 999px; background: transparent; border: 1px solid color-mix(in srgb, var(--pal-ink) 50%, transparent); color: var(--pal-ink); font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.reels__ctrl > button:hover { background: var(--pal-ink); color: var(--pal-bg2); }
.reels__list { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; flex: 1; }
.reels__list button { min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: transparent; border: 1px solid color-mix(in srgb, var(--pal-ink) 30%, transparent); color: var(--pal-ink); font: 600 11px/1 var(--mono); letter-spacing: .08em; cursor: pointer; opacity: .75; }
.reels__list button[aria-current="true"] { background: var(--pal-accent); color: var(--pal-bg2); border-color: var(--pal-accent); opacity: 1; }
.reels__list button:hover { opacity: 1; border-color: var(--pal-ink); }

/* ───────── focus + responsive + reduced motion ───────── */
.dz__rail button:focus-visible, .dz__btn:focus-visible, .reels__tabs button:focus-visible, .reels__list button:focus-visible, .reels__ctrl > button:focus-visible, .lib__nav:focus-visible, .lib__index a:focus-visible, .detail__back:focus-visible, .detail__step:focus-visible { outline: 2px solid #ffc29c; outline-offset: 3px; }
@media (max-width: 960px) {
  .world { grid-template-columns: 1fr; }
  .world__art { min-height: 340px; }
  .reels__main { grid-template-columns: 1fr; }
  .reels__viewport { height: min(60svh, 560px); }
  .reels__info dl { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 800px) {
  .book { transform: none; height: auto; display: grid; gap: 16px; perspective: none; }
  .book__right, .book__leaf { position: static; width: 100%; height: auto; transform: none !important; }
  .book[data-open="true"] .book__leaf { transform: none; }
  .leaf__front { display: none; }
  .leaf__face.leaf__back { position: relative; transform: none; backface-visibility: visible; border-radius: 10px; }
  .book__right { order: 2; min-height: 380px; border-radius: 10px; }
  .browser { min-height: 260px; }
  .detail__steps { margin-left: 0; }
}

/* natural-scroll Designer on narrow screens: art sits in its own block above the copy, nothing overlaps */
@media (max-width: 860px) {
  .dz:not([data-mode="pinned"]) .dz__ch { display: flex; flex-direction: column; justify-content: flex-start; padding: 0 22px 64px; min-height: 0; }
  .dz:not([data-mode="pinned"]) .dz__art { position: relative; inset: auto; order: -1; height: 44svh; min-height: 280px; margin: 0 -22px 28px; flex: none; }
  .dz:not([data-mode="pinned"]) .dz__word { font-size: clamp(90px, 30vw, 170px); right: 4vw; bottom: -2vw; }
  .dz:not([data-mode="pinned"]) .dz__word--outline, .dz:not([data-mode="pinned"]) .dz__word--ghost { right: auto; left: 3vw; }
  .dz:not([data-mode="pinned"]) .dz__orb { width: 46vw; right: 6vw; top: 10%; }
  .dz:not([data-mode="pinned"]) .dz__slab { width: 34vw; right: 8vw; top: 12%; }
  .dz:not([data-mode="pinned"]) .dz__slab--b { left: 14vw; right: auto; top: 40%; width: 22vw; }
  .dz:not([data-mode="pinned"]) .dz__chrome { width: 52vw; right: 6vw; top: 8%; }
  .dz:not([data-mode="pinned"]) .dz__star { right: 12vw; top: 56%; width: 20vw; }
  .dz:not([data-mode="pinned"]) .dz__ring { left: 6vw; top: 10%; width: 28vw; }
  .dz:not([data-mode="pinned"]) .dz__iri { width: 62vw; right: 4vw; top: 8%; }
  .dz:not([data-mode="pinned"]) .dz__ticker { top: 8%; }
  .dz:not([data-mode="pinned"]) .dz__circle { width: 34vw; left: 6vw; bottom: 14%; }
  .dz:not([data-mode="pinned"]) .dz__sticker { right: 8vw; bottom: 12%; }
  .dz:not([data-mode="pinned"]) .dz__copy h3 { font-size: clamp(44px, 14vw, 72px); }
}
@media (prefers-reduced-motion: reduce) {
  .rslot.is-in, .rslot.is-out, .rslot.is-in .rframe { animation: none !important; }
  .panel, .book, .book__leaf, .lib__browse, .reels__stage, .dz__rail span { transition-duration: 1ms !important; }
}

/* ───────── 05 Social media designs — carousel concepts (grid + in-place slide viewer) ───────── */
.soc { position: relative; padding: clamp(80px, 12vh, 140px) clamp(22px, 5vw, 80px) clamp(70px, 10vh, 120px); background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(214, 160, 104, .1), transparent), #0a0705; border-top: 1px solid rgba(214, 160, 104, .22); }
.soc h2 { margin: 0; font: 400 clamp(48px, 7vw, 112px)/.9 var(--display); text-transform: uppercase; }
.soc__note { max-width: 44em; margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.soc__note b { color: var(--orange-hot); font-weight: 600; }
.soc__stage { margin-top: clamp(28px, 5vh, 56px); }
.soc__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(14px, 2vw, 28px); }
.soc__open { display: block; width: 100%; padding: 0; text-align: left; background: none; border: 0; cursor: pointer; }
.soc__cover { display: block; aspect-ratio: var(--rw, 1086) / var(--rh, 1448); overflow: hidden; border-radius: 10px; background: var(--graphite); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 0 0 0 var(--c); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.soc__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.soc__open:hover .soc__cover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 14px 40px -14px var(--c); }
.soc__cap { display: block; margin-top: 12px; }
.soc__cap b { display: block; font: 400 clamp(20px, 2vw, 26px)/1.05 var(--display); letter-spacing: .02em; color: var(--c); }
.soc__cap span { display: block; margin-top: 6px; font: 500 10px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.soc__stage.is-open .soc__grid { display: none; }
.soc__detail[hidden] { display: none; }
.socv__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.socv__back { min-height: 40px; padding: 0 16px; border-radius: 999px; background: transparent; border: 1px solid rgba(244, 236, 224, .3); color: var(--cream); font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.socv__back:hover { border-color: var(--orange-hot); }
.socv__title { margin: 0; font: 400 clamp(26px, 3.4vw, 44px)/1 var(--display); letter-spacing: .02em; color: var(--c); }
.socv__main { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 28px); margin-top: 22px; }
.socv__frame { position: relative; margin: 0; flex: 0 1 auto; width: min(100%, calc(68svh * var(--rw, 1086) / var(--rh, 1448))); }
.socv__img { display: block; width: 100%; height: auto; aspect-ratio: var(--rw, 1086) / var(--rh, 1448); border-radius: 10px; background: var(--graphite); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.socv__count { margin-top: 10px; text-align: center; font: 600 12px/1 var(--mono); letter-spacing: .2em; color: var(--c); }
.socv__nav { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 236, 224, .06); border: 1px solid rgba(244, 236, 224, .3); color: var(--cream); font-size: 18px; cursor: pointer; transition: background .2s, transform .2s; }
.socv__nav:hover { background: var(--c); border-color: var(--c); color: #120a05; transform: scale(1.06); }
.socv__note { max-width: 40em; margin: 16px auto 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted); }
.socv__thumbs { list-style: none; display: flex; gap: 8px; margin: 22px auto 0; padding: 0 0 6px; max-width: 100%; width: max-content; overflow-x: auto; }
.socv__thumbs button { display: block; width: 64px; padding: 0; background: none; border: 2px solid transparent; border-radius: 6px; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.socv__thumbs button:hover, .socv__thumbs button[aria-current="true"] { opacity: 1; }
.socv__thumbs button[aria-current="true"] { border-color: var(--c); }
.socv__thumbs img { display: block; width: 100%; height: auto; aspect-ratio: var(--rw, 3) / var(--rh, 4); border-radius: 4px; }
.socv__hint { margin: 12px 0 0; text-align: center; font: 500 10px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.soc__open:focus-visible, .socv__back:focus-visible, .socv__nav:focus-visible, .socv__thumbs button:focus-visible { outline: 2px solid #ffc29c; outline-offset: 3px; }
@media (max-width: 640px) {
  .soc__grid { grid-template-columns: repeat(2, 1fr); }
  .socv__main { flex-wrap: wrap; }
  .socv__frame { order: -1; flex: 1 0 100%; width: min(100%, calc(66svh * var(--rw, 1086) / var(--rh, 1448))); margin: 0 auto; }
  .socv__nav { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .soc__cover, .socv__nav { transition-duration: 1ms !important; } }

/* ───────── Phase 1 additions (2026-10-28): featured project, real website screens, approved disclosures ───────── */
.proj { position: relative; padding: clamp(80px, 12vh, 140px) clamp(22px, 5vw, 80px) clamp(70px, 10vh, 120px); background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(214, 160, 104, .1), transparent), #0b0806; border-top: 1px solid rgba(214, 160, 104, .22); }
.proj h2 { margin: 0; font: 400 clamp(48px, 7vw, 112px)/.9 var(--display); text-transform: uppercase; }
.proj__note { max-width: 46em; margin: 22px 0 0; font-size: 15px; line-height: 1.65; color: var(--cream); }
.proj__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.proj__chips li { padding: 9px 14px; border: 1px solid rgba(214, 160, 104, .5); border-radius: 999px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
.proj__shots { list-style: none; margin: clamp(28px, 5vh, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.proj__shots figure { margin: 0; }
.proj__shots img { display: block; width: 100%; height: auto; aspect-ratio: 1040 / 959; border-radius: 10px; border: 1px solid rgba(214, 160, 104, .3); background: var(--graphite); }
.proj__shots figcaption { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.fx--shot { background: var(--fx-bg); }
.fx--shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leaf__front .fx--shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(20, 8, 24, .82)); pointer-events: none; }
.lib__browse[data-single="true"] .lib__controls { display: none; }
.browser img.shot__main { display: block; flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #f7f1e6; }
.assets { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.assets button { display: grid; gap: 0; padding: 0; background: #fff; border: 1.5px solid rgba(26, 12, 5, .25); border-radius: 6px; overflow: hidden; cursor: pointer; text-align: left; }
.assets button img { display: block; width: 100%; height: 38px; object-fit: cover; object-position: top; }
.assets button span { padding: 3px 5px 4px; font: 500 9px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(26, 12, 5, .7); }
.assets button[aria-current="true"] { border-color: #c24a14; }
.assets button:focus-visible { outline: 2px solid #c24a14; outline-offset: 2px; }
.leaf__back .disc { margin: auto 0 0; padding-top: 12px; border-top: 1px solid rgba(26, 12, 5, .2); font-size: 13px; line-height: 1.55; color: rgba(26, 12, 5, .85); }
.soc__cap .soc__badge { color: var(--c); opacity: .9; margin-top: 4px; }
.socv__disc { max-width: 46em; margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.socv__thumbs { scroll-behavior: auto; }
@media (max-width: 720px) { .proj__shots { grid-template-columns: 1fr; } }


/* Video: Help Desk Hero full recording (in #projects) and the approved-video showcase (#videos). Never cropped: object-fit contain. */
.proj__video { margin: clamp(28px, 5vh, 56px) 0 0; }
.vid__fig { margin: 0; }
.vid__frame { width: 100%; max-width: 100%; background: #000; border: 1px solid rgba(214, 160, 104, .3); border-radius: 10px; overflow: hidden; }
.vid__frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vid__fig figcaption { margin-top: 10px; max-width: 60em; font-size: 13px; line-height: 1.55; color: var(--muted); }
.vid__fig figcaption b { color: var(--cream); font-weight: 600; }
.vids { position: relative; padding: clamp(80px, 12vh, 140px) clamp(22px, 5vw, 80px) clamp(70px, 10vh, 120px); background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(214, 160, 104, .1), transparent), #0a0705; border-top: 1px solid rgba(214, 160, 104, .22); }
.vids h2 { margin: 0; font: 400 clamp(48px, 7vw, 112px)/.9 var(--display); text-transform: uppercase; }
.vids__note { max-width: 44em; margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.vids__note b { color: var(--orange-hot); font-weight: 600; }
.vid__disc { max-width: 46em; margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Video gallery (batch 2): groups, a 2-column grid, a full-width featured card, and 4:5 vertical explainers. Frames never crop: object-fit contain. */
.vids__list { margin-top: clamp(28px, 5vh, 56px); display: grid; gap: clamp(44px, 8vh, 88px); }
.vids__gtitle { margin: 0; font: 400 clamp(26px, 3.2vw, 44px)/1 var(--display); text-transform: uppercase; }
.vids__gnote { max-width: 46em; margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.vids__grid { margin-top: clamp(20px, 3.5vh, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(18px, 2.6vw, 40px); align-items: start; }
.vid { min-width: 0; }
.vid--feature { grid-column: 1 / -1; max-width: 1100px; }
.vid__title { margin: 0; font: 400 clamp(24px, 2.6vw, 36px)/1 var(--display); text-transform: uppercase; }
.vid__meta { margin: 8px 0 12px; font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
.vid__desc { max-width: 46em; margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--cream); }
.vid__desc + .vid__disc { margin-top: 8px; }
@media (max-width: 760px) { .vids__grid { grid-template-columns: 1fr; } }

/* Fictional-concept label next to a video player (Morrow AI): readable on phones, calm on desktop. */
.vid__flag { display: inline-block; margin: 12px 0 0; padding: 9px 14px; border: 1px solid var(--orange-hot); border-radius: 8px; background: rgba(255, 154, 92, .12); font: 700 12px/1.45 var(--mono); letter-spacing: .06em; color: #ffe3d2; }
@media (max-width: 520px) { .vid__flag { display: block; font-size: 12.5px; } }
/* touch target: the carousel viewer's back button */
.socv__back { min-height: 44px; }

/* Help Desk Hero campaign assets and Brand studies */
.proj__campwrap { margin-top: clamp(40px, 7vh, 80px); }
.proj__sub { margin: 0; font: 400 clamp(26px, 3.2vw, 44px)/1 var(--display); text-transform: uppercase; }
.proj__subnote { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.proj__camp { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(14px, 2vw, 26px); align-items: start; }
.proj__camp li.is-wide { grid-column: span 2; }
.proj__camp figure, .brand__grid figure { margin: 0; }
.proj__camp img, .brand__grid img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(214, 160, 104, .3); background: var(--graphite); }
.proj__camp figcaption, .brand__grid figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.brands { position: relative; padding: clamp(80px, 12vh, 140px) clamp(22px, 5vw, 80px) clamp(70px, 10vh, 120px); background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(214, 160, 104, .1), transparent), #0a0705; border-top: 1px solid rgba(214, 160, 104, .22); }
.brands h2 { margin: 0; font: 400 clamp(48px, 7vw, 112px)/.9 var(--display); text-transform: uppercase; }
.brands__note { max-width: 46em; margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.brands__list { margin-top: clamp(28px, 5vh, 56px); display: grid; gap: clamp(44px, 8vh, 88px); }
.brand__name { margin: 0; font: 400 clamp(26px, 3.2vw, 44px)/1 var(--display); text-transform: uppercase; }
.brand__shows { margin: 8px 0 0; font-size: 14px; color: var(--cream); max-width: 46em; }
.brand__grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); align-items: start; }
@media (max-width: 960px) { .brand__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .proj__camp { grid-template-columns: 1fr; } .proj__camp li.is-wide { grid-column: auto; } .brand__grid { grid-template-columns: 1fr; } }

/* Reels group in the video section, concept gallery and LinkedIn concepts */
/* Vertical reels: js/videos.js sets --cols so the items split into even rows and spread across the full row (no blank area on the right). */
.vids__grid--reels { grid-template-columns: repeat(var(--cols, 4), minmax(0, 320px)); justify-content: space-between; gap: clamp(22px, 2.6vw, 36px) clamp(18px, 2.4vw, 32px); }
@media (max-width: 1100px) { .vids__grid--reels { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; } }
@media (max-width: 820px) { .vids__grid--reels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .vids__grid--reels { grid-template-columns: minmax(0, 1fr); } }
.vid--reel .vid__title { font-size: clamp(20px, 1.8vw, 26px); }
.vid--reel .vid__meta { margin: 6px 0 10px; }
.vid--reel .vid__frame { background: #000; }
.cg, .lic, .asl { position: relative; padding: clamp(80px, 12vh, 140px) clamp(22px, 5vw, 80px) clamp(70px, 10vh, 120px); background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(214, 160, 104, .1), transparent), #0a0705; border-top: 1px solid rgba(214, 160, 104, .22); }
.cg h2, .lic h2, .asl h2 { margin: 0; font: 400 clamp(48px, 7vw, 112px)/.9 var(--display); text-transform: uppercase; }
.cg__note, .lic__note, .asl__note { max-width: 46em; margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.lic__note { padding: 12px 16px; border: 1px solid var(--orange-hot); border-radius: 8px; background: rgba(255, 154, 92, .1); color: #ffe3d2; font-weight: 500; }
.cg__list { margin-top: clamp(28px, 5vh, 56px); display: grid; gap: clamp(44px, 8vh, 88px); }
.cgrp__title { margin: 0; font: 400 clamp(26px, 3.2vw, 44px)/1 var(--display); text-transform: uppercase; }
.cgrp__note { max-width: 48em; margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cgrp__grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(14px, 2vw, 26px); align-items: start; }
/* groups of up to five images fill the row in one line on wide screens instead of leaving a short last row */
.cgrp__grid[style*="--cols"] { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
@media (max-width: 1000px) { .cgrp__grid[style*="--cols"] { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.cgrp__grid figure { margin: 0; }
.cgrp__grid img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(214, 160, 104, .3); background: var(--graphite); }
.cgrp__grid figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.lic__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(28px, 5vh, 56px); }
@media (max-width: 760px) { .lic__grid { grid-template-columns: 1fr; } .cgrp__grid { grid-template-columns: 1fr; } }

/* Developer software projects (live demos) and the Help Desk Hero live link */
.proj__live { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 22px 0 0; }
.proj__livenote { flex: 1 1 320px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.swc__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 20px; border-radius: 999px; background: var(--orange); color: #1a0c05; font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .16s, transform .16s; }
.swc__btn:hover { background: var(--orange-hot); transform: translateY(-1px); }
.swc__btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.swc__btn--quiet { background: transparent; color: var(--cream); border: 1px solid rgba(244, 236, 224, .4); }
.swc__btn--quiet:hover { background: rgba(244, 236, 224, .1); }
.sw { position: relative; padding: clamp(80px, 12vh, 140px) clamp(22px, 5vw, 80px) clamp(70px, 10vh, 120px); background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(214, 160, 104, .1), transparent), #0a0705; border-top: 1px solid rgba(214, 160, 104, .22); }
.sw h2 { margin: 0; font: 400 clamp(48px, 7vw, 112px)/.9 var(--display); text-transform: uppercase; }
.sw__list { display: grid; gap: clamp(36px, 6vh, 72px); margin-top: clamp(32px, 5vh, 56px); }
.swc { padding: clamp(22px, 3vw, 40px); border: 1px solid rgba(214, 160, 104, .28); border-radius: 16px; background: rgba(23, 18, 15, .72); }
.swc__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; }
.swc__head h3 { margin: 0; font: 400 clamp(30px, 3.6vw, 52px)/1 var(--display); text-transform: uppercase; }
.swc__status { padding: 7px 12px; border: 1px solid rgba(110, 243, 196, .55); border-radius: 999px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8ff0c9; }
.swc__sum { max-width: 54em; margin: 16px 0 0; font-size: 16px; line-height: 1.65; color: var(--cream); }
.swc__links { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.swc__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(24px, 4vh, 40px); align-items: start; }
.swc__facts { margin: 0; display: grid; gap: 14px; }
.swc__facts div { padding-top: 14px; border-top: 1px solid rgba(244, 236, 224, .14); }
.swc__facts dt { font: 600 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.swc__facts dd { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--cream); }
.swc__shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.swc__shots figure { margin: 0; }
.swc__shots img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(214, 160, 104, .3); background: var(--graphite); }
.swc__shots figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.swc__note { max-width: 62em; margin: 22px 0 0; font-size: 14px; line-height: 1.65; color: var(--cream); }
.swc__note b { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-hot); margin-right: 6px; }
.swc__note--care { color: var(--muted); }
@media (max-width: 900px) { .swc__body { grid-template-columns: 1fr; } }
.detail__live { margin: 14px 0 0; }
@media (min-width: 700px) { .vid--reel .vid__title { min-height: 2em; line-height: 1; } }

/* ── AI Style Lab: native-ratio poster grid + lightbox (js/ai-style-lab.js) ── */
.asl__note b { color: var(--orange-hot); font-weight: 600; }
.asl__btn { display: block; width: 100%; padding: 0; border: 1px solid rgba(214, 160, 104, .3); border-radius: 10px; overflow: hidden; background: var(--graphite); cursor: zoom-in; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.asl__btn:hover, .asl__btn:focus-visible { transform: translateY(-3px); border-color: var(--orange-hot); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.asl__btn img { display: block; width: 100%; height: auto; }
.asl__cap-unused { margin: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.asl__cap b { color: var(--cream); font-weight: 600; }
.asl__cap span { font: 600 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
.asl__lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(8, 5, 3, .96); color: var(--cream); }
.asl__lb[open] { display: flex; flex-direction: column; }
.asl__lb::backdrop { background: rgba(8, 5, 3, .9); }
.asl__bar { display: flex; align-items: center; gap: 14px; padding: 12px clamp(14px, 3vw, 32px); font: 600 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.asl__pos { color: var(--bronze); flex: none; }
.asl__lcap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cream); }
.asl__close { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid rgba(214, 160, 104, .5); border-radius: 999px; background: transparent; color: var(--cream); font: inherit; cursor: pointer; }
.asl__close:hover, .asl__close:focus-visible { border-color: var(--orange-hot); color: #fff; }
.asl__stagebox { flex: 1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(6px, 2vw, 24px); padding: 0 clamp(8px, 2vw, 28px) clamp(12px, 3vh, 28px); }
.asl__full { justify-self: center; max-width: 100%; max-height: calc(100dvh - 110px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.asl__arrow { width: 48px; height: 48px; border: 1px solid rgba(214, 160, 104, .5); border-radius: 50%; background: rgba(23, 18, 15, .8); color: var(--cream); font-size: 20px; cursor: pointer; }
.asl__arrow:hover, .asl__arrow:focus-visible { border-color: var(--orange-hot); color: #fff; }
@media (max-width: 560px) {
  .asl__stagebox { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .asl__arrow { position: absolute; bottom: 14px; }
  .asl__prev { left: 14px; } .asl__next { right: 14px; }
  .asl__full { max-height: calc(100dvh - 150px); }
}
@media (prefers-reduced-motion: reduce) { .asl__btn { transition: none; } }

/* ── AI Style Lab marquee: two rows moving in opposite directions; each lane = the posters once + a hidden copy for a seamless loop ── */
.asl { overflow-x: clip; --ph: clamp(300px, 31vw, 440px); }
.asl__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(22px, 4vh, 40px); }
.asl__toggle { min-height: 44px; padding: 0 18px; border: 1px solid rgba(214, 160, 104, .5); border-radius: 999px; background: transparent; color: var(--cream); font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.asl__toggle:hover, .asl__toggle:focus-visible { border-color: var(--orange-hot); color: #fff; }
.asl__hint { font-size: 13px; color: var(--muted); }
.asl__rows { display: grid; gap: clamp(14px, 2vw, 24px); margin: 22px calc(-1 * clamp(22px, 5vw, 80px)) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.asl__row { overflow: hidden; }
.asl__lane { display: flex; width: max-content; animation: asl-left var(--dur, 100s) linear infinite paused; }
.asl__row--rev .asl__lane { animation-name: asl-right; }
.asl__track { display: flex; gap: clamp(14px, 2vw, 24px); list-style: none; margin: 0; padding: 0 clamp(7px, 1vw, 12px); }
.asl__item { flex: none; height: var(--ph); }
.asl__btn { height: 100%; width: auto; }
.asl__btn img { height: 100%; width: auto; }
/* The lanes only run while the opening is finished AND the section is on screen (js/ai-style-lab.js sets data-live), and not while hovered, focused or paused. */
html[data-intro="complete"] .asl[data-live="true"] .asl__rows:not(:hover):not(:focus-within):not([data-paused="true"]) .asl__lane { animation-play-state: running; }
@keyframes asl-left { to { transform: translateX(-50%); } }
@keyframes asl-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
/* reduced motion and touch screens: no animation; each row is an ordinary swipeable / scrollable strip and the hidden copy is not drawn */
@media (prefers-reduced-motion: reduce), (hover: none) and (pointer: coarse), (max-width: 700px) {
  .asl__lane { animation: none; }
  .asl__track--dup { display: none; }
  .asl__row { overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; padding-bottom: 6px; }
  .asl__item { scroll-snap-align: start; }
  .asl__rows { margin-inline: calc(-1 * clamp(22px, 5vw, 80px)); -webkit-mask-image: none; mask-image: none; }
  .asl__track { padding-inline: clamp(22px, 5vw, 80px); }
  .asl__toggle { display: none; }
}
@media (max-width: 700px) { .asl { --ph: clamp(240px, 66vw, 340px); } }
.lib__nav:disabled { opacity: .35; cursor: default; pointer-events: none; }

/* ───────── 13 Contact ───────── */
.contact { position: relative; padding: clamp(80px, 12vh, 140px) clamp(22px, 5vw, 80px) clamp(70px, 10vh, 120px); background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(214, 160, 104, .1), transparent 70%), var(--ink); }
.contact h2 { margin: 0; font: 400 clamp(48px, 7vw, 112px)/.9 var(--display); text-transform: uppercase; }
.contact__note { max-width: 44em; margin: 20px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.contact__grid { list-style: none; margin: clamp(28px, 5vh, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.ccard { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 18px 20px; border: 1px solid rgba(214, 160, 104, .32); border-radius: 14px; background: rgba(244, 236, 224, .04); color: var(--cream); text-decoration: none; transition: transform .25s var(--ease), border-color .25s, background .25s; }
a.ccard:hover, a.ccard:focus-visible { transform: translateY(-3px); border-color: var(--orange-hot); background: rgba(255, 106, 43, .1); }
a.ccard:focus-visible { outline: 2px solid #ffc29c; outline-offset: 3px; }
.ccard__mark { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--bronze); color: var(--orange-hot); font: 700 14px/1 var(--mono); letter-spacing: .02em; }
.ccard__body { display: grid; gap: 4px; min-width: 0; flex: 1; }
.ccard__body b { font: 400 24px/1 var(--display); text-transform: uppercase; }
.ccard__body span { font-size: 13px; color: var(--muted); overflow-wrap: break-word; }
.ccard__go { flex: none; font-size: 18px; color: var(--orange-hot); }
.ccard--off { opacity: .55; border-style: dashed; cursor: default; }
.contact__cta-row { margin: clamp(24px, 4vh, 40px) 0 0; }
.btn-hire { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--orange); color: #190b04; font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .2s, transform .2s; }
a.btn-hire:hover, a.btn-hire:focus-visible { background: var(--orange-hot); transform: translateY(-2px); }
.btn-hire--off { background: transparent; border: 1px dashed rgba(214, 160, 104, .5); color: var(--muted); }
@media (min-width: 1200px) { .ccard { gap: 12px; padding: 16px 14px; } .ccard__mark { width: 40px; height: 40px; } }
@media (max-width: 1199px) { .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .contact__grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }

/* ───────── Website library: rotatable 3D ring (wide screens, motion allowed). Narrow screens / reduced motion keep the flat track above. ───────── */
.lib { overflow-x: clip; }
.lib--3d .lib__persp { perspective: 1900px; perspective-origin: 50% 38%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lib--3d .lib__shelf { --cw: clamp(420px, 44vw, 640px); --a: 0; --r: 560px; --step: 60deg; position: relative; display: block; width: 100%; height: var(--ch, 560px); margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateY(calc(var(--a) * -1deg)); transition: transform .85s cubic-bezier(.22, .72, .18, 1); }
.lib--3d .panel { position: absolute; left: 50%; top: 0; width: var(--cw); margin-left: calc(var(--cw) / -2); transform: rotateY(calc(var(--i) * var(--step))) translateZ(var(--r)); -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: opacity .6s, filter .6s; }
.lib--3d .panel:not([data-active="true"]) { opacity: .5; filter: brightness(.7); cursor: pointer; }
.lib--3d .panel:not([data-active="true"]):not([data-near="true"]) { opacity: 0; pointer-events: none; }
.lib--3d .panel:not([data-active="true"]) .panel__cap { visibility: hidden; }
.lib--3d .panel:not([data-active="true"]) .panel__btn { pointer-events: none; }
.lib--3d .panel[data-active="true"] .panel__btn:hover { transform: none; }
.lib--3d .lib__controls { margin-top: 30px; }
@media (prefers-reduced-motion: reduce) { .lib--3d .lib__shelf, .lib--3d .panel { transition: none; } }
.contact__cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn-hire--ghost { background: transparent; border: 1px solid var(--bronze); color: var(--cream); }
a.btn-hire--ghost:hover, a.btn-hire--ghost:focus-visible { background: rgba(255, 106, 43, .12); border-color: var(--orange-hot); }


/* ───────── Designer chapters: subtle pointer / scroll / entrance motion (js/designer.js sets --mx/--my, data-on) ─────────
   Everything below is additive. The pointer values are registered numbers, so CSS eases them (no script loop); the animations only run on the
   active chapter; reduced-motion and touch screens keep the original static artwork. */
@property --mx { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --my { syntax: "<number>"; inherits: true; initial-value: 0; }
.dz__ch { transition: --mx .7s cubic-bezier(.22, .72, .18, 1), --my .7s cubic-bezier(.22, .72, .18, 1); }
.dz__flow { inset: 0; pointer-events: none; }
.dz__ripples { position: absolute; inset: 0; pointer-events: none; transform: none !important; will-change: auto !important; }
.dz__dot { position: absolute; left: var(--x); top: var(--y); width: var(--sz); height: var(--sz); border-radius: 50%; background: var(--fg); opacity: var(--o, .4); }
.dz__line { position: absolute; left: -10%; top: var(--y); width: 70%; height: 1px; background: linear-gradient(90deg, transparent, var(--fg), transparent); opacity: .32; transform: rotate(var(--a, 0deg)); }
.dz__ripple { position: absolute; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); box-shadow: 0 0 0 12px rgba(110, 243, 255, .12), 0 0 26px rgba(110, 243, 255, .35), inset 0 0 22px rgba(110, 243, 255, .3); mix-blend-mode: screen; pointer-events: none; animation: dz-ripple .95s ease-out forwards; }
@keyframes dz-float { to { transform: translate3d(var(--dx), var(--dy), 0); } }
@keyframes dz-flow { from { transform: translateX(-12%) rotate(var(--a, 0deg)); } to { transform: translateX(34%) rotate(var(--a, 0deg)); } }
@keyframes dz-ripple { from { transform: scale(.15); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* Motion: dots drift and lines flow, only while this chapter is the active one */
  .dz__dot { animation: dz-float var(--dur) ease-in-out var(--del) infinite alternate paused; }
  .dz__line { animation: dz-flow var(--dur) linear var(--del) infinite paused; }
  .dz__ch[data-on] .dz__dot, .dz__ch[data-on] .dz__line { animation-play-state: running; }
  /* Work: the decorative elements ease into place when the chapter comes into view */
  .dz__ch[data-ch="4"] .dz__word, .dz__ch[data-ch="4"] .dz__orb { translate: 0 0; transition: translate 1.1s cubic-bezier(.22, .72, .18, 1), opacity .9s; }
  .dz__ch[data-ch="4"]:not([data-on]) .dz__word { translate: -70px 0; }
  .dz__ch[data-ch="4"]:not([data-on]) .dz__orb { translate: 0 90px; }
  .dz__ch[data-ch="4"] .dz__orb { transition-delay: .15s; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  /* Identity: portrait-style orb, rings and sticker follow the mouse, each by its own depth */
  .dz__ch[data-ch="0"] .dz__art > [data-depth] { translate: calc(var(--mx, 0) * var(--d, 1) * -20px) calc(var(--my, 0) * var(--d, 1) * -14px); }
  .dz__ch[data-ch="0"] .dz__orb { rotate: calc(var(--mx, 0) * 5deg); }
  /* Form: the shapes turn gently in 3D with the mouse */
  .dz__ch[data-ch="2"] .dz__chrome, .dz__ch[data-ch="2"] .dz__ring { transform: perspective(900px) rotateX(calc(var(--my, 0) * -10deg)) rotateY(calc(var(--mx, 0) * 14deg)) translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--r, 0deg)) scale(var(--s, 1)); }
  .dz__ch[data-ch="2"] .dz__chrome { rotate: calc(var(--mx, 0) * 22deg); }
  .dz__ch[data-ch="2"] .dz__star { rotate: calc(var(--mx, 0) * 30deg); translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -10px); }
  /* Experiments: the artwork leans a little towards the cursor (air-distortion feel); ripples are added by script */
  .dz__ch[data-ch="3"] .dz__iri { translate: calc(var(--mx, 0) * 16px) calc(var(--my, 0) * 12px); rotate: calc(var(--mx, 0) * -4deg); }
}

/* ───────── Compact projects + lightbox (2026-10-29 update) ─────────
   Help Desk Hero: the two videos share one row at equal height and the gameplay screens sit four across. Software: a featured card
   (lead screenshot + thumbnail row) and a grid of smaller cards; long facts live in a details block. Screenshots are never cropped
   (object-fit: contain) and every thumbnail opens full size in the lightbox. */
.proj__video { display: flex; gap: clamp(16px, 2.4vw, 32px); align-items: flex-start; }
.proj__vid { flex: var(--w, 1.5) 1 0; min-width: 0; }
.proj__shots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.proj__zoom { display: block; cursor: zoom-in; }
.proj__camp { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 1099px) { .proj__shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .proj__video { flex-direction: column; } .proj__vid { flex: none; width: 100%; } .proj__camp li.is-wide { grid-column: 1 / -1; } }

.sw__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); align-items: start; margin-top: clamp(24px, 4vh, 40px); }
.swc { display: flex; flex-direction: column; min-width: 0; padding: clamp(18px, 2vw, 28px); }
.swc__head h3 { font-size: clamp(26px, 2.4vw, 38px); }
.swc__sum { max-width: none; margin-top: 12px; font-size: 15px; line-height: 1.6; }
.swc .proj__chips { margin-top: 14px; gap: 6px; }
.swc .proj__chips li { padding: 7px 10px; font-size: 10px; }
.swc__links { margin-top: 16px; }
.swc__private { font-size: 13px; line-height: 1.55; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--bronze); }
.swc__status--private { border-color: rgba(214, 160, 104, .6); color: var(--bronze); }
.swc__shots { margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.swc__zoom { display: block; overflow: hidden; border: 1px solid rgba(214, 160, 104, .3); border-radius: 10px; background: var(--graphite); cursor: zoom-in; }
.swc__zoom:hover { border-color: var(--orange-hot); }
.swc__zoom:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.swc__shots .swc__zoom img { aspect-ratio: 4 / 3; object-fit: contain; border: 0; border-radius: 0; }
.swc__shots figcaption, .swc__lead figcaption { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.swc__shots li:only-child { grid-column: 1 / -1; }
.swc__lead { margin: 0; }
.swc__lead .swc__zoom img { display: block; width: 100%; height: auto; }
.swc__more { margin-top: 16px; border-top: 1px solid rgba(244, 236, 224, .14); }
.swc__more > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; font: 600 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.swc__more > summary::-webkit-details-marker { display: none; }
.swc__more > summary::after { content: "+"; font-size: 16px; }
.swc__more[open] > summary::after { content: "\2212"; }
.swc__more > summary:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.swc__more .swc__facts { margin-top: 6px; }
.swc__more .swc__note { margin-top: 14px; }
.swc--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px clamp(24px, 3vw, 44px); align-items: start; }
.swc--feature .swc__text { grid-column: 1; grid-row: 1; }
.swc--feature .swc__lead { grid-column: 2; grid-row: 1; }
.swc--feature .swc__shots { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.swc--feature .swc__shots .swc__zoom img { aspect-ratio: 16 / 9; }
.swc--feature .swc__more { grid-column: 1 / -1; margin-top: 0; }
.swc--feature .swc__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(20px, 3vw, 44px); }
@media (max-width: 1199px) { .sw__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .swc:last-child:nth-child(even) { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .swc--feature { grid-template-columns: minmax(0, 1fr); }
  .swc--feature .swc__text, .swc--feature .swc__lead { grid-column: 1; grid-row: auto; }
  .swc--feature .swc__shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swc--feature .swc__facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) { .sw__list { grid-template-columns: minmax(0, 1fr); } .swc:last-child:nth-child(even) { grid-column: auto; } }

.lb { position: fixed; inset: 0; margin: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; border: 0; background: transparent; color: var(--cream); }
.lb::backdrop { background: rgba(8, 5, 3, .93); }
.lb__fig { margin: 0; width: 100%; height: 100%; box-sizing: border-box; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; padding: 64px clamp(12px, 5vw, 84px) 18px; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: #fff; }
.lb__cap { padding-top: 12px; max-width: 60em; text-align: center; font-size: 14px; line-height: 1.5; }
.lb__btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(244, 236, 224, .45); border-radius: 50%; background: rgba(23, 18, 15, .85); color: var(--cream); font: 400 26px/1 var(--mono); cursor: pointer; }
.lb__btn:hover { border-color: var(--orange-hot); }
.lb__btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.lb__x { top: 14px; right: 14px; }
.lb__p { left: 10px; top: 50%; transform: translateY(-50%); }
.lb__n { right: 10px; top: 50%; transform: translateY(-50%); }
.lb__btn[hidden] { display: none; }
html.lb-open { overflow: hidden; }
