/* ================= 3D STAGES ================= */
.stage3d { position: absolute; inset: 0; }
.stage3d canvas { width: 100% !important; height: 100% !important; display: block; }
.stage3d__fb { position: absolute; inset: 0; display: none; place-items: center; }
.no-gl .stage3d__fb, .stage3d.static .stage3d__fb { display: grid; }
.box3d { position: relative; aspect-ratio: 4/3; background: radial-gradient(80% 80% at 50% 45%, #1c160b, var(--black)); overflow: hidden; }
.box3d--tall { aspect-ratio: 1/1; }
.box3d .tag { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.box3d__hint { position: absolute; right: 16px; bottom: 16px; z-index: 2; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }

/* ================= MODULE SHELL ================= */
.mod { position: relative; }
.mod__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); background: #fff; }
.dk .seg, .ch .seg { background: var(--char); border-color: var(--line-d); }
.seg button { font-family: var(--f-ui); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; transition: background .3s, color .3s; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--gold); color: var(--black); }

/* ---------- 01 Digital marketing: strategy journey ---------- */
.jrn { position: relative; padding: 20px 0; }
.jrn__svg { position: absolute; left: 50%; top: 0; height: 100%; width: 200px; transform: translateX(-50%); overflow: visible; }
.jrn__svg path { fill: none; stroke-width: 3; }
.jrn__svg .base { stroke: rgba(255,255,255,.1); }
.jrn__svg .draw { stroke: var(--gold); }
.jrn__st { position: relative; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
.jrn__st > div { padding: 30px; background: var(--char); border: 1px solid var(--line-d); transition: border-color .5s, transform .6s var(--ease); }
.jrn__st:nth-child(even) > div { grid-column: 3; }
.jrn__st.in > div { border-color: rgba(255,184,77,.6); }
.jrn__st::before { content: ""; grid-column: 2; grid-row: 1; justify-self: center; width: 22px; height: 22px; background: var(--black); border: 2px solid var(--gold); transform: rotate(45deg); transition: background .4s; z-index: 1; }
.jrn__st.in::before { background: var(--gold); }
.jrn__st > div { grid-row: 1; }
.jrn__st small { font-family: var(--f-mono); color: var(--gold); font-size: .72rem; letter-spacing: .12em; }
.jrn__st h3 { font-family: var(--f-disp); font-size: clamp(1.4rem, 2.4vw, 2rem); text-transform: uppercase; margin: 10px 0; }
.jrn__st p { color: #aaa; margin: 0; }

/* ---------- 02 SEO: search experience ---------- */
.serp { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: start; }
.serp > * { min-width: 0; }
.serp__win { background: #fff; border: 1px solid var(--line); box-shadow: 0 50px 90px -60px rgba(8,8,8,.5); }
.serp__top { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.serp__q { flex: 1; display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 20px; border: 1.5px solid var(--black); font-family: var(--f-ui); font-size: 1rem; min-width: 0; }
.serp__q span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp__q i { width: 2px; height: 22px; background: var(--gold-d); animation: blink 1s steps(2) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.serp__res { padding: 10px 22px 26px; min-height: 430px; }
.sr { padding: 16px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(80px) rotate(2deg); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.sr.in { opacity: 1; transform: none; }
.sr:nth-child(2) { transition-delay: .12s; } .sr:nth-child(3) { transition-delay: .24s; } .sr:nth-child(4) { transition-delay: .36s; }
.sr__u { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: #555; }
.sr__u b { width: 26px; height: 26px; display: grid; place-items: center; background: var(--warm-2); font-family: var(--f-mono); font-size: .62rem; }
.sr h4 { font-family: var(--f-head); font-weight: 500; letter-spacing: -.01em; font-size: 1.15rem; color: #1a3fa8; margin: 6px 0 4px; }
.sr p { margin: 0; font-size: .88rem; color: #555; }
.sr.you { background: linear-gradient(90deg, rgba(255,184,77,.18), transparent); margin: 0 -22px; padding: 16px 22px; border-left: 3px solid var(--gold); }
.sr.you h4 { color: var(--black); }
.serp__pile { position: relative; height: 470px; }
.pgm { position: absolute; width: 58%; aspect-ratio: 3/4; background: #fff; border: 1px solid var(--line); padding: 12px; box-shadow: 0 30px 60px -40px rgba(8,8,8,.5); transition: transform .9s var(--ease), opacity .6s; }
.pgm i { display: block; height: 7px; background: var(--warm-2); margin-bottom: 7px; }
.pgm i:first-child { height: 46px; background: var(--char); }
.pgm i:nth-child(2) { width: 70%; background: var(--gold); }
.pgm i:nth-child(4) { width: 85%; } .pgm i:nth-child(5) { width: 60%; }
.pgm:nth-child(1) { left: 4%; top: 6%; transform: rotate(-8deg); }
.pgm:nth-child(2) { left: 36%; top: 18%; transform: rotate(6deg); }
.pgm:nth-child(3) { left: 14%; top: 38%; transform: rotate(-3deg); }
.serp.go .pgm { transform: translateX(-140%) scale(.4) rotate(0); opacity: 0; }
.serp__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- 03 Social: content wall ---------- */
.wall { position: relative; columns: 4 220px; column-gap: 16px; }
.post-c { break-inside: avoid; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s; }
.post-c:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 40px 70px -40px rgba(8,8,8,.5); }
.post-c__h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-family: var(--f-ui); font-size: .76rem; font-weight: 600; }
.post-c__h i { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(var(--gold), var(--gold-d), var(--gold)); flex: none; }
.post-c__h span { margin-left: auto; font-family: var(--f-mono); font-size: .6rem; color: var(--grey); font-weight: 400; }
.post-c .media { aspect-ratio: 1; }
.post-c.tall .media { aspect-ratio: 4/5; }
.post-c.txt { background: var(--black); color: #fff; padding: 26px 22px; }
.post-c.txt p { font-family: var(--f-disp); font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; margin: 0; }
.post-c.gold { background: var(--gold); border-color: var(--gold); }
.post-c__f { display: flex; gap: 14px; padding: 12px 14px; color: #555; }
.post-c__f svg { width: 18px; height: 18px; }
.post-c__c { padding: 0 14px 14px; font-size: .84rem; color: #444; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal > div { background: var(--char); border: 1px solid var(--line-d); padding: 14px 12px 16px; min-height: 150px; display: flex; flex-direction: column; gap: 8px; }
.cal small { font-family: var(--f-mono); font-size: .66rem; color: var(--grey); letter-spacing: .1em; }
.cal span { font-size: .78rem; padding: 6px 8px; background: rgba(255,184,77,.12); border-left: 2px solid var(--gold); color: #eee; }

/* ---------- 04 Performance: ad ring ---------- */
.adr { position: relative; height: 520px; perspective: 1400px; display: grid; place-items: center; touch-action: pan-y; user-select: none; }
.adr__ring { position: relative; width: 260px; height: 340px; transform-style: preserve-3d; }
.adc { position: absolute; inset: 0; background: var(--char); border: 1px solid rgba(255,184,77,.35); overflow: hidden; display: flex; flex-direction: column; backface-visibility: hidden; }
.adc .media { flex: 1; }
.adc__b { padding: 14px 16px; }
.adc__b small { font-family: var(--f-mono); font-size: .6rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.adc__b strong { display: block; font-family: var(--f-disp); font-size: 1.15rem; line-height: 1.05; text-transform: uppercase; margin: 6px 0 10px; color: #fff; }
.adc__b span { display: inline-block; font-family: var(--f-ui); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--black); padding: 7px 10px; }
.mtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); margin-top: 30px; }
.mtile { background: var(--black); padding: 22px 20px; }
.mtile small { display: block; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.mtile strong { display: block; font-family: var(--f-head); font-size: 1.8rem; margin: 10px 0 6px; color: #fff; }
.mtile em { font-style: normal; font-family: var(--f-mono); font-size: .6rem; color: var(--gold); }
.spark { height: 40px; width: 100%; }
.spark path { fill: none; stroke: var(--gold); stroke-width: 2; }

/* ---------- 05 Google-style ad lab ---------- */
.adlab { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: start; }
.adlab > * { min-width: 0; }
.adlab .form { grid-template-columns: 1fr; }
.prev { background: #fff; border: 1px solid var(--line); padding: 26px; min-height: 380px; }
.prev__p { display: none; }
.prev__p.on { display: block; animation: paneIn .5s var(--ease); }
.sad { max-width: 620px; font-family: Arial, var(--f-body); }
.sad__s { font-size: .78rem; font-weight: 700; color: #202124; }
.sad__u { font-size: .82rem; color: #4d5156; margin: 2px 0 6px; overflow-wrap: anywhere; }
.sad h4 { font-family: Arial, sans-serif; font-weight: 400; letter-spacing: 0; font-size: 1.3rem; color: #1a0dab; margin-bottom: 4px; line-height: 1.3; overflow-wrap: anywhere; }
.sad p { font-size: .9rem; color: #4d5156; margin: 0; overflow-wrap: anywhere; }
.sad__ghost { margin-top: 26px; display: grid; gap: 8px; opacity: .5; }
.sad__ghost i { height: 10px; background: var(--warm-2); }
.sad__ghost i:nth-child(1) { width: 40%; } .sad__ghost i:nth-child(2) { width: 75%; height: 16px; } .sad__ghost i:nth-child(3) { width: 90%; }
.dban { width: min(100%, 336px); aspect-ratio: 336/280; margin: 0 auto; position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; isolation: isolate; }
.dban img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dban::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,8,.88), transparent 70%); z-index: -1; }
.dban strong { font-family: var(--f-disp); font-size: 1.35rem; line-height: 1.02; text-transform: uppercase; overflow-wrap: anywhere; }
.dban p { font-size: .8rem; color: #ddd; margin: 6px 0 10px; overflow-wrap: anywhere; }
.dban span { align-self: flex-start; background: var(--gold); color: var(--black); font-family: var(--f-ui); font-weight: 700; font-size: .7rem; padding: 8px 12px; text-transform: uppercase; }
.vad { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; color: #fff; }
.vad img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.vad__ov { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.vad__ov strong { font-family: var(--f-head); font-size: .95rem; background: rgba(0,0,0,.6); padding: 8px 10px; overflow-wrap: anywhere; }
.vad__skip { background: rgba(0,0,0,.7); border: 1px solid #fff5; padding: 8px 12px; font-size: .78rem; white-space: nowrap; }
.vad__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #fff3; }
.vad__bar i { display: block; height: 100%; width: 0; background: var(--gold); animation: vbar 6s linear infinite; }
@keyframes vbar { to { width: 100%; } }
.vad__lbl { position: absolute; left: 12px; top: 12px; font-size: .72rem; background: var(--gold); color: var(--black); padding: 3px 7px; font-weight: 700; }

/* ---------- 06 Meta-style phone ---------- */
.phx { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.phx > * { min-width: 0; }
.phone { width: 300px; height: 610px; border-radius: 44px; background: #0d0d0d; padding: 14px; box-shadow: 0 0 0 2px #333, 0 60px 100px -50px rgba(255,184,77,.35); position: relative; }
.phone__s { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; }
.phone__s::before { content: ""; position: absolute; top: 9px; left: 50%; width: 90px; height: 24px; border-radius: 14px; background: #0d0d0d; transform: translateX(-50%); z-index: 5; }
.fmt-p { position: absolute; inset: 0; display: none; flex-direction: column; }
.fmt-p.on { display: flex; animation: paneIn .5s var(--ease); }
.fp__h { display: flex; align-items: center; gap: 8px; padding: 46px 14px 10px; font-family: var(--f-ui); font-size: .74rem; font-weight: 600; color: #111; }
.fp__h i { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(var(--gold), var(--gold-d), var(--gold)); }
.fp__h small { display: block; font-weight: 400; color: #777; font-size: .64rem; }
.fp__m { position: relative; aspect-ratio: 1; overflow: hidden; background: #ddd; }
.fp__m img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.fp__cta { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f1f1f1; font-size: .74rem; color: #111; }
.fp__cta b { background: #111; color: #fff; padding: 6px 10px; font-size: .66rem; font-family: var(--f-ui); }
.fp__t { padding: 10px 14px; font-size: .74rem; color: #333; line-height: 1.45; }
.story { position: absolute; inset: 0; color: #fff; }
.story img { width: 100%; height: 100%; object-fit: cover; }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent 45%, rgba(0,0,0,.4)); }
.story__bars { position: absolute; top: 44px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.story__bars i { flex: 1; height: 3px; background: #fff6; overflow: hidden; }
.story__bars i:first-child::after { content: ""; display: block; height: 100%; background: #fff; animation: vbar 5s linear infinite; width: 0; }
.story__t { position: absolute; left: 18px; right: 18px; bottom: 80px; z-index: 2; font-family: var(--f-disp); font-weight: 800; font-size: 1.9rem; line-height: .95; text-transform: uppercase; }
.story__c { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; background: #fff; color: #111; font-family: var(--f-ui); font-weight: 700; font-size: .72rem; padding: 10px 18px; border-radius: 30px; white-space: nowrap; }
.car { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 14px; scrollbar-width: none; }
.car::-webkit-scrollbar { display: none; }
.car > div { flex: 0 0 82%; scroll-snap-align: start; border: 1px solid #e5e5e5; }
.car .media { aspect-ratio: 1; }
.car p { margin: 0; padding: 8px 10px; font-size: .72rem; font-weight: 600; color: #111; }
.abt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.abt button { text-align: left; padding: 16px; border: 1px solid var(--line-d); transition: border-color .3s, background .3s; }
.abt button[aria-pressed="true"] { border-color: var(--gold); background: rgba(255,184,77,.08); }
.abt small { display: block; font-family: var(--f-mono); font-size: .64rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.abt strong { font-family: var(--f-head); }

/* ---------- 07 Website build: browser mock ---------- */
.bmk { background: #fff; border: 1px solid var(--line); box-shadow: 0 60px 120px -70px rgba(8,8,8,.6); overflow: hidden; }
.bmk__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--warm-2); border-bottom: 1px solid var(--line); }
.bmk__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ccc; }
.bmk__bar span { margin-left: 14px; flex: 1; font-family: var(--f-mono); font-size: .72rem; background: #fff; padding: 6px 12px; color: #777; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bmk__vp { position: relative; aspect-ratio: 16/9.4; overflow: hidden; background: #fff; }
.bmk__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(8,8,8,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(8,8,8,.06) 1px, transparent 1px); background-size: 40px 40px; transition: opacity .8s; }
.bmk [data-b] { position: absolute; transition: all .9s var(--ease); }
.bmk [data-b="nav"] { left: 4%; right: 4%; top: 5%; height: 7%; }
.bmk [data-b="h1"] { left: 4%; top: 22%; width: 46%; height: 18%; }
.bmk [data-b="p"] { left: 4%; top: 44%; width: 38%; height: 8%; }
.bmk [data-b="btn"] { left: 4%; top: 57%; width: 16%; height: 8%; }
.bmk [data-b="img"] { right: 4%; top: 18%; width: 42%; height: 52%; overflow: hidden; }
.bmk [data-b="c1"] { left: 4%; top: 76%; width: 29%; height: 20%; }
.bmk [data-b="c2"] { left: 35.5%; top: 76%; width: 29%; height: 20%; }
.bmk [data-b="c3"] { right: 4%; top: 76%; width: 29%; height: 20%; }
.bmk [data-b] > * { transition: opacity .7s; }
/* stage 0 blank */
.bmk[data-st="0"] [data-b] { opacity: 0; transform: scale(.9); }
/* stage 1 wireframe */
.bmk[data-st="1"] [data-b] { background: transparent; border: 1.5px dashed #b9b4a8; }
.bmk[data-st="1"] [data-b] > *, .bmk[data-st="0"] [data-b] > * { opacity: 0; }
.bmk[data-st="1"] [data-b="img"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), #b9b4a8, transparent calc(50% + 1px)), linear-gradient(to top left, transparent calc(50% - 1px), #b9b4a8, transparent calc(50% + 1px)); }
/* stage 2 design */
.bmk[data-st="2"] [data-b] { background: var(--warm-2); }
.bmk[data-st="2"] [data-b="h1"] { background: var(--black); }
.bmk[data-st="2"] [data-b="btn"] { background: var(--gold); }
.bmk[data-st="2"] [data-b="nav"] { background: var(--black); }
.bmk[data-st="2"] [data-b] > * { opacity: 0; }
/* stage 3 complete */
.bmk[data-st="3"] .bmk__grid, .bmk[data-st="2"] .bmk__grid { opacity: 0; }
.bmk[data-st="3"] [data-b] { background: transparent; }
.bmk__nav { display: flex; align-items: center; justify-content: space-between; height: 100%; font-family: var(--f-ui); font-size: clamp(.45rem, .9vw, .72rem); font-weight: 600; }
.bmk__nav b { font-family: var(--f-disp); font-size: 1.3em; }
.bmk__nav span { display: flex; gap: 1.4em; }
.bmk__h { font-family: var(--f-disp); font-weight: 800; font-size: clamp(.9rem, 2.4vw, 2.1rem); line-height: .92; text-transform: uppercase; letter-spacing: -.03em; }
.bmk__h em { font-style: normal; color: var(--gold-d); }
.bmk__p { font-size: clamp(.45rem, .9vw, .78rem); color: #555; line-height: 1.4; }
.bmk__b { display: grid; place-items: center; height: 100%; background: var(--black); color: #fff; font-family: var(--f-ui); font-weight: 700; font-size: clamp(.4rem, .8vw, .68rem); letter-spacing: .08em; }
.bmk [data-b="img"] img { width: 100%; height: 100%; object-fit: cover; }
.bmk__c { height: 100%; background: var(--warm); padding: 8%; display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--f-head); font-weight: 600; font-size: clamp(.45rem, .9vw, .8rem); border-top: 3px solid var(--gold); }
.bmk__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-top: 20px; border: 1px solid var(--line); }
.bmk__steps button { text-align: left; padding: 16px; background: var(--warm); transition: background .3s; }
.bmk__steps button small { display: block; font-family: var(--f-mono); font-size: .66rem; color: var(--grey-d); }
.bmk__steps button strong { font-family: var(--f-head); font-size: 1rem; }
.bmk__steps button[aria-pressed="true"] { background: var(--black); color: #fff; }
.bmk__steps button[aria-pressed="true"] small { color: var(--gold); }

/* ---------- 08 Ecommerce demo store ---------- */
.shop { color: var(--black); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.shop__h { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.shop__h b { font-family: var(--f-disp); font-size: 1.2rem; text-transform: uppercase; }
.shop__cart { position: relative; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-size: .78rem; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line); }
.shop__cart span { min-width: 22px; height: 22px; display: grid; place-items: center; background: var(--gold); font-size: .7rem; border-radius: 11px; transition: transform .3s; }
.shop__cart.bump span { transform: scale(1.35); }
.shop__g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px; }
.prod { display: flex; flex-direction: column; }
.prod .media { aspect-ratio: 1; margin-bottom: 12px; }
.prod h4 { font-size: 1rem; letter-spacing: -.01em; }
.prod p { font-family: var(--f-mono); font-size: .76rem; color: #777; margin: 4px 0 10px; }
.prod button { margin-top: auto; padding: 10px; border: 1px solid var(--black); font-family: var(--f-ui); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .3s, color .3s; }
.prod button:hover { background: var(--black); color: var(--gold); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 90%); background: var(--black); color: #fff; padding: 22px; transform: translateX(100%); transition: transform .6s var(--ease); display: flex; flex-direction: column; z-index: 2; }
.drawer.open { transform: none; }
.drawer h4 { font-family: var(--f-disp); font-size: 1.3rem; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer ul { flex: 1; overflow-y: auto; }
.drawer li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-d); font-size: .88rem; }
.drawer li em { font-style: normal; font-family: var(--f-mono); color: var(--gold); }
.drawer__t { display: flex; justify-content: space-between; padding: 16px 0; font-family: var(--f-mono); }
.drawer .btn { width: 100%; justify-content: space-between; }

/* ---------- 09 Branding: identity lab ---------- */
.idlab { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.idlab > * { min-width: 0; }
.idctl h4 { font-family: var(--f-mono); font-size: .7rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 22px 0 10px; }
.idctl h4:first-child { margin-top: 0; }
.sw-set { display: grid; gap: 6px; }
.sw-set button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-d); font-size: .84rem; transition: border-color .3s; text-align: left; }
.sw-set button[aria-pressed="true"] { border-color: var(--gold); }
.sw-set button span { display: flex; }
.sw-set button span i { width: 18px; height: 18px; }
.idb { --c1: #FFB84D; --c2: #080808; --c3: #F6F4EF; --fh: "Syne"; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.idb > div { min-width: 0; transition: background .6s, color .6s; }
.idb__logo { grid-row: span 2; background: var(--c2); color: var(--c3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px; min-height: 380px; }
.idb__mk { width: 110px; height: 110px; transition: transform .8s var(--ease); }
.idb__mk path, .idb__mk circle, .idb__mk polygon, .idb__mk rect { fill: var(--c1); transition: fill .6s; }
.idb__wm { font-family: var(--fh), sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.03em; line-height: 1; text-align: center; transition: font-family .3s; }
.idb__card { background: var(--c3); color: var(--c2); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; border-left: 8px solid var(--c1); }
.idb__card b { font-family: var(--fh), sans-serif; font-size: 1.4rem; }
.idb__card small { font-family: var(--f-mono); font-size: .7rem; }
.idb__sw { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 180px; }
.idb__sw i { display: flex; align-items: flex-end; padding: 10px; font-family: var(--f-mono); font-size: .6rem; font-style: normal; transition: background .6s; }
.idb__sw i:nth-child(1) { background: var(--c1); color: var(--c2); } .idb__sw i:nth-child(2) { background: var(--c2); color: var(--c3); } .idb__sw i:nth-child(3) { background: var(--c3); color: var(--c2); }
.idb.swap .idb__mk { transform: rotate(-90deg) scale(.85); }

/* ---------- 10 Graphic design: format morph ---------- */
.fmt { display: grid; grid-template-columns: 1fr; gap: 24px; justify-items: center; }
.fmt__stage { width: 100%; height: clamp(360px, 46vw, 560px); display: grid; place-items: center; background: var(--warm-2); position: relative; overflow: hidden; }
.fmt__f { position: relative; height: 82%; aspect-ratio: 1; background: var(--black); color: #fff; overflow: hidden; transition: aspect-ratio .8s var(--ease), height .8s var(--ease), width .8s var(--ease); display: flex; flex-direction: column; justify-content: space-between; padding: 6%; isolation: isolate; max-width: 92%; }
.fmt__f img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; }
.fmt__f::after { content: ""; position: absolute; width: 34%; aspect-ratio: 1; right: -6%; top: -6%; background: var(--gold); clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 82%); z-index: -1; transition: all .8s var(--ease); }
.fmt__f small { font-family: var(--f-mono); font-size: clamp(.5rem, 1vw, .7rem); letter-spacing: .14em; color: var(--gold); }
.fmt__f strong { font-family: var(--f-disp); font-weight: 800; font-size: clamp(1.2rem, 3.4vw, 3rem); line-height: .9; text-transform: uppercase; letter-spacing: -.03em; transition: font-size .8s var(--ease); }
.fmt__f span { align-self: flex-start; background: var(--gold); color: var(--black); font-family: var(--f-ui); font-weight: 700; font-size: clamp(.5rem, .9vw, .7rem); padding: .8em 1.2em; letter-spacing: .08em; }
.fmt[data-f="story"] .fmt__f { aspect-ratio: 9/16; height: 92%; }
.fmt[data-f="banner"] .fmt__f { aspect-ratio: 16/9; height: auto; width: 86%; }
.fmt[data-f="deck"] .fmt__f { aspect-ratio: 16/9; height: auto; width: 86%; background: var(--warm); color: var(--black); }
.fmt[data-f="deck"] .fmt__f img { opacity: 0; }
.fmt[data-f="deck"] .fmt__f::after { width: 18%; right: 4%; top: auto; bottom: 8%; }
.fmt[data-f="poster"] .fmt__f { aspect-ratio: 3/4; height: 90%; }
.fmt[data-f="poster"] .fmt__f strong { font-size: clamp(1.6rem, 4.4vw, 3.8rem); }

/* ---------- 11 Video: cinematic reel ---------- */
.reel { display: flex; gap: 8px; height: clamp(380px, 46vw, 560px); }
.reel__p { position: relative; flex: 1; overflow: hidden; background: var(--char); transition: flex .9s var(--ease); cursor: pointer; min-width: 0; text-align: left; color: #fff; }
.reel__p.on { flex: 4.2; }
.reel__p img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.6); transition: filter .8s, transform 1.4s var(--ease); }
.reel__p.on img { filter: none; transform: scale(1.04); }
.reel__p::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,8,.9), transparent 55%); }
.reel__v { position: absolute; left: 50%; bottom: 30px; z-index: 2; transform: translateX(-50%) rotate(-90deg); transform-origin: center; white-space: nowrap; font-family: var(--f-disp); font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: .02em; transition: opacity .4s; }
.reel__p.on .reel__v { opacity: 0; }
.reel__b { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; opacity: 0; transform: translateY(20px); transition: opacity .5s .2s, transform .7s .2s var(--ease); }
.reel__p.on .reel__b { opacity: 1; transform: none; }
.reel__b small { font-family: var(--f-mono); font-size: .7rem; color: var(--gold); letter-spacing: .12em; }
.reel__b h3 { font-family: var(--f-disp); font-size: clamp(1.6rem, 3vw, 2.8rem); text-transform: uppercase; margin: 6px 0 14px; }
.reel__ui { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: .7rem; }
.reel__ui b { width: 38px; height: 38px; display: grid; place-items: center; background: var(--gold); color: var(--black); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.reel__ui i { flex: 1; height: 3px; background: #fff3; position: relative; overflow: hidden; }
.reel__ui i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: tl 8s linear infinite; }
@keyframes tl { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.reel__n { position: absolute; top: 18px; left: 18px; z-index: 2; font-family: var(--f-mono); font-size: .7rem; color: var(--gold); }
.slate { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line-d); }
.slate div { padding: 18px 14px; border-right: 1px solid var(--line-d); font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #ccc; }
.slate div:last-child { border: 0; }
.slate div::before { content: ""; display: block; width: 100%; height: 6px; margin-bottom: 14px; background: repeating-linear-gradient(-45deg, var(--gold) 0 8px, var(--black) 8px 16px); }

/* ---------- 12 Content: pillars ---------- */
.rot { display: inline-grid; height: 1em; overflow: hidden; vertical-align: bottom; color: var(--gold-d); }
.rot span { grid-area: 1 / 1; transform: translateY(110%); transition: transform .7s var(--ease); }
.rot span.on { transform: none; }
.rot span.out { transform: translateY(-110%); }
.pil { display: grid; grid-template-columns: 280px 1fr; gap: 30px; }
.pil > * { min-width: 0; }
.pil__tabs { display: grid; gap: 6px; align-content: start; }
.pil__tabs button { text-align: left; padding: 18px 20px; border: 1px solid var(--line); display: grid; gap: 4px; transition: background .3s, color .3s, border-color .3s; }
.pil__tabs button small { font-family: var(--f-mono); font-size: .66rem; color: var(--gold-d); }
.pil__tabs button strong { font-family: var(--f-disp); font-size: 1.4rem; text-transform: uppercase; }
.pil__tabs button[aria-selected="true"] { background: var(--black); color: #fff; border-color: var(--black); }
.pil__tabs button[aria-selected="true"] small { color: var(--gold); }
.pil__p { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pil__p[hidden] { display: none; }
.fcrd { background: #fff; border: 1px solid var(--line); padding: 22px; min-height: 200px; display: flex; flex-direction: column; animation: paneIn .5s var(--ease) both; }
.fcrd:nth-child(2) { animation-delay: .08s; } .fcrd:nth-child(3) { animation-delay: .16s; }
.fcrd small { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-d); }
.fcrd h4 { font-size: 1.2rem; margin: 30px 0 8px; }
.fcrd p { color: #555; font-size: .9rem; margin: 0; }

/* ---------- 13 Email ---------- */
.eml { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start; }
.eml > * { min-width: 0; }
.eml__seq { display: grid; gap: 0; position: relative; }
.eml__seq::before { content: ""; position: absolute; left: 22px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(var(--gold) 0 6px, transparent 6px 12px); }
.eml__seq button { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 12px 0; text-align: left; }
.eml__seq button b { width: 46px; height: 46px; display: grid; place-items: center; background: var(--char); border: 1px solid var(--line-d); font-family: var(--f-mono); font-weight: 400; font-size: .74rem; z-index: 1; transition: background .3s, color .3s; }
.eml__seq button[aria-selected="true"] b { background: var(--gold); color: var(--black); border-color: var(--gold); }
.eml__seq strong { display: block; font-family: var(--f-head); }
.eml__seq small { color: var(--grey); font-size: .8rem; }
.inbox { background: #fff; color: var(--black); border: 1px solid var(--line-d); }
.inbox__h { padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: .84rem; display: grid; gap: 4px; }
.inbox__h b { font-family: var(--f-head); font-size: 1.1rem; }
.inbox__h span { color: #777; font-family: var(--f-mono); font-size: .72rem; }
.etpl { display: none; padding: 26px; max-width: 560px; margin: 0 auto; }
.etpl.on { display: block; animation: paneIn .5s var(--ease); }
.etpl__ban { aspect-ratio: 16/7; background: var(--black); color: #fff; display: flex; align-items: flex-end; padding: 22px; position: relative; overflow: hidden; margin-bottom: 20px; }
.etpl__ban::after { content: ""; position: absolute; right: -20px; top: -20px; width: 120px; height: 120px; background: var(--gold); clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 82%); }
.etpl__ban strong { position: relative; z-index: 1; font-family: var(--f-disp); font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.etpl p { color: #444; font-size: .94rem; }
.etpl__b { display: inline-block; background: var(--black); color: #fff; font-family: var(--f-ui); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: 12px 20px; }
.etpl__ft { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .72rem; color: #999; }

/* ---------- 14 Automation: workflow ---------- */
.wf { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center; }
.wf > * { min-width: 0; }
.wf svg { width: 100%; height: auto; overflow: visible; }
.wf .ln { fill: none; stroke: rgba(255,184,77,.55); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.wf .nd { cursor: pointer; outline: none; }
.wf .nd rect { fill: var(--char); stroke: rgba(255,255,255,.18); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.wf .nd text { fill: #fff; font-family: var(--f-ui); font-size: 13px; font-weight: 600; pointer-events: none; }
.wf .nd text.k { fill: var(--gold); font-family: var(--f-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; }
.wf .nd:hover rect, .wf .nd:focus rect, .wf .nd.on rect { fill: var(--gold); stroke: var(--gold); }
.wf .nd:hover text, .wf .nd:focus text, .wf .nd.on text { fill: var(--black); }
.wf .pulse { fill: var(--gold); }
.wf__d { padding: 30px; border: 1px solid var(--line-d); background: var(--char); min-height: 240px; }
.wf__d small { font-family: var(--f-mono); color: var(--gold); font-size: .72rem; letter-spacing: .1em; }
.wf__d h3 { font-family: var(--f-disp); text-transform: uppercase; font-size: 1.8rem; margin: 10px 0 12px; }
.wf__d p { color: #bbb; margin: 0; }

/* ---------- Services page compositions ---------- */
.sgrp { padding: clamp(70px, 9vw, 130px) 0; }
.sgrp__hd { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.sgrp__hd h2 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: .88; text-transform: uppercase; letter-spacing: -.04em; }
.svc-row { display: grid; grid-template-columns: 90px 1.1fr 1fr; gap: clamp(20px, 3vw, 50px); padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.dk .svc-row, .ch .svc-row { border-color: var(--line-d); }
.svc-row > * { min-width: 0; }
.svc-row__n { font-family: var(--f-disp); font-weight: 800; font-size: 3rem; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold-d); }
.dk .svc-row__n, .ch .svc-row__n { -webkit-text-stroke-color: var(--gold); }
.svc-row h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); text-transform: uppercase; margin-bottom: 14px; }
.svc-row p { color: #555; }
.dk .svc-row p, .ch .svc-row p { color: #aaa; }
.svc-row ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-bottom: 20px; }
.svc-row li { font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dk .svc-row li, .ch .svc-row li { border-color: var(--line-d); }
.svc-row .bn { font-size: .88rem; color: #666; margin-bottom: 18px; }
.dk .svc-row .bn, .ch .svc-row .bn { color: #999; }
.svc-row .bn b { color: var(--gold-d); font-weight: 600; }
.dk .svc-row .bn b, .ch .svc-row .bn b { color: var(--gold); }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-cards--2 { grid-template-columns: repeat(2, 1fr); }
.scard { position: relative; display: flex; flex-direction: column; background: var(--char); border: 1px solid var(--line-d); overflow: hidden; transition: border-color .4s, transform .6s var(--ease); min-width: 0; }
.scard:hover { border-color: var(--gold); transform: translateY(-6px); }
.scard .media { aspect-ratio: 16/10; }
.scard__b { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.scard__b small { font-family: var(--f-mono); color: var(--gold); font-size: .7rem; }
.scard__b h3 { font-size: 1.6rem; text-transform: uppercase; margin: 10px 0 12px; }
.scard__b p { color: #aaa; font-size: .93rem; }
.scard__b ul { margin: 0 0 18px; }
.scard__b li { font-size: .86rem; color: #ccc; padding: 6px 0 6px 20px; position: relative; }
.scard__b li::before { content: ""; position: absolute; left: 0; top: 13px; width: 10px; height: 6px; background: var(--gold); clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 82%); }
.scard__b .lnk { margin-top: auto; align-self: flex-start; color: var(--gold); }
.wm .scard, .wh .scard { background: #fff; border-color: var(--line); }
.wm .scard__b p, .wh .scard__b p { color: #555; }
.wm .scard__b li, .wh .scard__b li { color: #333; }
.wm .scard__b small, .wh .scard__b small, .wm .scard__b .lnk, .wh .scard__b .lnk { color: var(--gold-d); }
.svc-band { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-d); }
.svc-band > div { padding: clamp(28px, 4vw, 54px); min-width: 0; }
.svc-band > div + div { border-left: 1px solid var(--line-d); }
.svc-band h3 { font-family: var(--f-disp); font-size: clamp(1.8rem, 3.4vw, 3rem); text-transform: uppercase; margin: 10px 0 16px; }
.svc-band ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.svc-band li { font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; padding: 6px 10px; border: 1px solid rgba(255,184,77,.4); color: var(--gold-s); }
.svc-band p { color: #aaa; }
.svc-band .bn { font-size: .88rem; }
.svc-band .bn b { color: var(--gold); font-weight: 600; }
