/* =========================================================
   Lucien Solutions case study: pieces not in the shared template
   (cover slider, concept directions, full before/after, live prototypes)
   ========================================================= */

/* flat before/after slider (no laptop) */
.flatcmp { max-width: 1100px; margin: 0 auto; padding: 46px 0 6px; }
.flatcmp__box { position: relative; aspect-ratio: 1600 / 832; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.flatcmp__box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.flatcmp .compare { left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; }

/* three directions */
.dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.dir { position: relative; border-radius: 20px; padding: 28px 26px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); }
.dir__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); margin-bottom: 22px; }
.dir h3 { font: 500 24px/1.2 "Geist", var(--font); letter-spacing: -.02em; color: #fff; margin-bottom: 6px; }
.dir__idea { font-size: 14px; color: #b3a8ff; font-weight: 600; margin-bottom: 14px; }
.dir p { font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .62); }
.dir--pick { background: linear-gradient(160deg, rgba(134, 116, 254, .24), rgba(134, 116, 254, .04)); border-color: rgba(134, 116, 254, .8); }
.dir--pick .dir__ic { background: var(--violet); }
.dir__tag { position: absolute; top: 22px; right: 22px; padding: 6px 12px; border-radius: 20px; background: #fff; color: #6a58f0; font: 700 12px/1 var(--font); letter-spacing: .04em; }

.livelink { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 22px; border-radius: 40px; background: linear-gradient(90deg, #d83000, #ec671f); color: #fff; font-weight: 600; font-size: 16px; transition: transform .2s, box-shadow .2s; }
.livelink:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(216, 48, 0, .35); }


/* full homepage: before and after, scrolled together */
.fullba { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.fullba__tag { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 15px; color: #6b6b6b; }
.fullba__tag b { font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 20px; background: #ececec; color: #151515; }
.fullba__tag--after b { background: var(--violet); color: #fff; }
.fullba .frame--scroll { max-height: 780px; }
.fullba__hint { margin-top: 14px; font-size: 13px; color: #8a8a8a; text-align: center; }
html[data-theme="dark"] .fullba__tag { color: var(--d-muted); }
html[data-theme="dark"] .fullba__tag b { background: var(--d-surface2); color: var(--ink); }
html[data-theme="dark"] .fullba__tag--after b { background: var(--violet); color: #fff; }

/* principles on dark */
.pillars--4 { grid-template-columns: repeat(4, 1fr); }
.pillars li small { display: block; margin-top: 10px; font-size: 14px; font-weight: 400; line-height: 1.55; color: rgba(255, 255, 255, .6); }
@media (max-width: 960px) { .pillars--4 { grid-template-columns: 1fr 1fr; } }
.proto__note { color: #8a8a8a; }
.cs-sec--deep .proto__note { color: rgba(255, 255, 255, .5); }
.cs-sec--deep .obs { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
/* ---------- prototype shell ---------- */
.proto { margin: 10px 0 18px; }
.proto__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #1c1d2b; border-radius: 16px 16px 0 0; }
.proto__dots { display: flex; gap: 6px; }
.proto__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.proto__dots i:nth-child(2) { background: #febc2e; } .proto__dots i:nth-child(3) { background: #28c840; }
.proto__url { flex: 1; max-width: 420px; margin: 0 auto; padding: 7px 14px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); font: 500 13px/1 "Inter", sans-serif; text-align: center; }
.proto__live { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 "Inter", sans-serif; color: rgba(255, 255, 255, .55); letter-spacing: .04em; }
.proto__note { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 13.5px; color: #8a8a8a; margin-top: 12px; }
.cs-sec--ink .proto__note { color: rgba(255, 255, 255, .45); }

/* shared Lucien tokens inside prototypes */
.lx { --or1: #d83000; --or2: #ec671f; --ink: #111221; --card: #17192c; --soft: #fff1eb; --bg: #f5f5f5; --body: #727272; font-family: "Inter", sans-serif; -webkit-font-smoothing: antialiased; }
.lx h2, .lx h3, .lx h4 { font-family: "Geist", sans-serif; letter-spacing: -.03em; }
.lx-pill { display: inline-block; padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(236, 103, 31, .5); background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 500; }
.lx-btn { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; border: 0; border-radius: 40px; background: linear-gradient(90deg, var(--or1), var(--or2)); color: #fff; font: 500 15px/1 "Inter", sans-serif; cursor: pointer; box-shadow: 0 10px 24px rgba(216, 48, 0, .28); transition: transform .2s, box-shadow .2s; }
.lx-btn i { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--or1); display: grid; place-items: center; font-style: normal; font-size: 16px; transition: transform .25s; }
.lx-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(216, 48, 0, .35); }
.lx-btn:hover i { transform: translateX(3px); }
.lx-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.lx-link { border: 0; background: none; padding: 8px 0; font: 500 15px/1 "Inter", sans-serif; cursor: pointer; color: inherit; opacity: .7; }
.lx-link:hover { opacity: 1; }
.lx-fade { animation: lxIn .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes lxIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Compass prototype ---------- */
.cmp { background: var(--bg); color: var(--ink); border-radius: 0 0 16px 16px; padding: clamp(24px, 4vw, 54px); min-height: 640px; position: relative; overflow: hidden; }
.cmp__top { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; margin-bottom: 30px; }
.cmp__top h2 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1; font-weight: 500; }
.cmp__top p { margin-top: 10px; color: var(--body); font-size: 15px; }
.cmp__grid { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 18px; align-items: center; }
.cmp__col { display: grid; gap: 16px; }
.brg { position: relative; text-align: left; border: 1px solid rgba(236, 103, 31, .18); background: var(--soft); border-radius: 14px; padding: 18px 18px 16px; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; font: inherit; color: inherit; }
.brg:hover, .brg:focus-visible, .brg.is-on { transform: translateY(-3px); border-color: var(--or2); box-shadow: 0 14px 30px rgba(236, 103, 31, .16); outline: 0; }
.brg h4 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.brg h4 svg { flex: none; }
.brg p { font-size: 13.5px; line-height: 1.55; color: var(--body); }
.brg p b { color: var(--ink); font-weight: 500; }
.brg__d { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 8px; background: #fff; display: grid; place-items: center; font: 600 12px/1 "Geist", sans-serif; color: var(--or1); }
.dial { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 56%, #f0eeee 57% 62%, #fff 63%); box-shadow: 0 30px 60px rgba(17, 18, 33, .1), inset 0 0 0 1px rgba(0, 0, 0, .04); }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial__needle { transform-origin: 50% 50%; transform: rotate(var(--a, -35deg)); transition: transform 1.1s cubic-bezier(.3, 1.6, .5, 1); }
.dial.is-idle .dial__needle { animation: needleIdle 5s ease-in-out infinite; }
@keyframes needleIdle { 0%, 100% { transform: rotate(-35deg); } 50% { transform: rotate(-20deg); } }
.cmp__cta { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.cmp__cta p { font: 500 20px/1.2 "Geist", sans-serif; letter-spacing: -.02em; }

/* questions */
.cq { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; align-items: start; max-width: 960px; margin: 0 auto; }
.cq__meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--body); margin-bottom: 10px; }
.cq__bar { height: 4px; border-radius: 4px; background: #ffe1d3; overflow: hidden; margin-bottom: 30px; }
.cq__bar i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--or1), var(--or2)); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.cq h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; margin-bottom: 22px; line-height: 1.2; }
.cq__opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 18px; border-radius: 12px; border: 1px solid #ebe7e5; background: #fff; font: 400 15px/1.4 "Inter", sans-serif; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.opt::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #d9d2cf; transition: border .2s, box-shadow .2s; }
.opt:hover { border-color: rgba(236, 103, 31, .55); transform: translateX(3px); }
.opt[aria-checked="true"] { border-color: var(--or2); background: var(--soft); }
.opt[aria-checked="true"]::before { border: 5px solid var(--or1); box-shadow: 0 0 0 4px rgba(216, 48, 0, .12); }
.opt:focus-visible { outline: 2px solid var(--or2); outline-offset: 2px; }
.cq__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.cq__side { position: sticky; top: 20px; text-align: center; }
.cq__side .dial { max-width: 220px; margin: 0 auto 14px; }
.cq__side p { font-size: 13px; color: var(--body); line-height: 1.5; }
.cq__side b { display: block; font: 500 18px/1.3 "Geist", sans-serif; color: var(--ink); margin-top: 4px; }

/* report */
.rep { max-width: 980px; margin: 0 auto; display: grid; gap: 14px; }
.rep__head { display: grid; grid-template-columns: 1fr 150px; gap: 24px; align-items: center; background: var(--ink); color: #fff; border-radius: 18px; padding: 26px 28px; }
.rep__head small { display: block; font: 600 12px/1 "Inter", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #ff8a4c; margin-bottom: 10px; }
.rep__head h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; line-height: 1.15; }
.rep__head p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .65); }
.rep__head .dial { background: radial-gradient(circle, #1f2134 0 56%, #2a2c40 57% 62%, #1f2134 63%); box-shadow: none; }
.rep__card { background: #fff; border-radius: 16px; padding: 22px 24px; border: 1px solid #efebea; }
.rep__card h4 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.rep__card h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--or2); }
.rep__card p, .rep__card li { font-size: 14.5px; line-height: 1.6; color: var(--body); }
.rep__card strong { display: block; font: 500 18px/1.3 "Geist", sans-serif; color: var(--ink); margin-bottom: 6px; }
.rep__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rep__card ul { display: grid; gap: 8px; }
.rep__card li { position: relative; padding-left: 24px; }
.rep__card li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.rep__ok li::before { content: "✓"; color: #1d9a5b; }
.rep__no li::before { content: "!"; color: var(--or1); left: 5px; }
.rep__lens { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--soft); border: 1px solid rgba(236, 103, 31, .3); }
.rep__lens h4::before { display: none; }
.rep__acts { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 16px; padding: 20px 24px; }
.rep__acts p { font: 500 18px/1.3 "Geist", sans-serif; }
.lx-toast { position: absolute; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 30px; background: var(--ink); color: #fff; font-size: 13.5px; transition: .3s; pointer-events: none; white-space: nowrap; }
.lx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Lens prototype ---------- */
.lns { background: var(--ink); color: #fff; border-radius: 0 0 16px 16px; padding: clamp(22px, 3.6vw, 48px); min-height: 600px; display: flex; flex-direction: column; }
.lns__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lns__brand { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.lns__brand i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--or1), var(--or2)); display: grid; place-items: center; font-style: normal; }
.lns__step { font-size: 13px; color: rgba(255, 255, 255, .6); }
.lns__step b { color: var(--or2); font-weight: 600; }
.lns__track { height: 2px; background: rgba(255, 255, 255, .1); margin: 16px 0 34px; border-radius: 2px; overflow: hidden; }
.lns__track i { display: block; height: 100%; width: var(--w, 16%); background: linear-gradient(90deg, var(--or1), var(--or2)); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.lns__stage { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.lns__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.lns__foot .lx-link { color: #fff; }
.lns__label { font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 12px; }
.lns__card { background: var(--card); border-radius: 16px; padding: clamp(22px, 3vw, 40px); border: 1px solid rgba(255, 255, 255, .06); }
.lns h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1.15; }
.lns__hint { font-size: 13px; color: rgba(255, 255, 255, .5); margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.lns__hint::before { content: "◎"; color: var(--or2); }

.ls1 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; background: radial-gradient(120% 140% at 0% 0%, rgba(236, 103, 31, .16), transparent 55%), var(--card); }
.ls1 small { display: block; font-size: 13px; color: rgba(255, 255, 255, .55); margin-bottom: 8px; }
.ls1 blockquote { font: 500 clamp(22px, 2.4vw, 32px)/1.25 "Geist", sans-serif; letter-spacing: -.02em; }
.ls1 blockquote + p { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .55); }

.ls2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; cursor: none; position: relative; touch-action: pan-y; user-select: none; }
.ls2__txt { position: relative; font-size: 15.5px; line-height: 1.75; }
.ls2__blur { color: rgba(255, 255, 255, .75); filter: blur(5px); }
.ls2__sharp { position: absolute; inset: 0; color: #fff; -webkit-mask-image: radial-gradient(circle var(--r, 0px) at var(--mx, 50%) var(--my, 50%), #000 92%, transparent 100%); mask-image: radial-gradient(circle var(--r, 0px) at var(--mx, 50%) var(--my, 50%), #000 92%, transparent 100%); }
.ls2__ring { position: absolute; left: 0; top: 0; width: calc(var(--r, 0px) * 2); height: calc(var(--r, 0px) * 2); margin: calc(var(--r, 0px) * -1) 0 0 calc(var(--r, 0px) * -1); border-radius: 50%; border: 2px solid rgba(236, 103, 31, .9); box-shadow: 0 0 0 6px rgba(236, 103, 31, .15), inset 0 0 30px rgba(236, 103, 31, .15); pointer-events: none; transform: translate(var(--px, -999px), var(--py, -999px)); transition: width .3s, height .3s, margin .3s; }
.ls2.is-done .ls2__blur { filter: none; transition: filter .8s; }

.ls3 h3 { text-align: center; margin-bottom: 22px; }
.ls3 small { display: block; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 8px; }
.cmpv { position: relative; display: grid; grid-template-columns: var(--p, 62%) 1fr; min-height: 230px; border-radius: 16px; overflow: hidden; background: var(--card); transition: grid-template-columns .05s; }
.cmpv__side { padding: 28px; display: flex; flex-direction: column; justify-content: center; transition: opacity .3s, filter .3s; }
.cmpv__side b { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .5); margin-bottom: 12px; }
.cmpv__side p { font-size: 15px; line-height: 1.7; }
.cmpv__a { border-right: 1px solid rgba(236, 103, 31, .6); }
.cmpv__b { background: linear-gradient(160deg, rgba(236, 103, 31, .14), transparent 70%); }
.cmpv__b b { color: #ff8a4c; }
.cmpv__knob { position: absolute; top: 50%; left: var(--p, 62%); width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: linear-gradient(135deg, var(--or1), var(--or2)); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(216, 48, 0, .5); pointer-events: none; }
.cmpv input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmpv__hint { font-size: 13px; color: rgba(255, 255, 255, .5); margin-top: 12px; }

.ls4 small { display: block; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 14px; }
.ls4 > p { font: 500 clamp(18px, 1.9vw, 24px)/1.5 "Geist", sans-serif; letter-spacing: -.01em; text-align: center; max-width: 900px; margin: 0 auto 26px; }
.ls4 .mark { background: linear-gradient(transparent 60%, rgba(236, 103, 31, .45) 60%); }
.ls4__ex { background: var(--card); border-radius: 14px; padding: 22px 24px; max-width: 900px; margin: 0 auto; border-left: 3px solid var(--or2); }
.ls4__ex b { display: block; font-size: 13px; color: rgba(255, 255, 255, .5); font-weight: 500; margin-bottom: 8px; }
.ls4__ex p { font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .8); }

.ls5 h3 { margin-bottom: 20px; }
.ls5 small { display: block; font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 8px; }
.lessons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lesson { text-align: left; border: 1px solid rgba(255, 255, 255, .06); background: var(--card); color: #fff; border-radius: 14px; padding: 20px 22px; cursor: pointer; font: inherit; transition: border-color .25s, transform .25s; min-height: 140px; }
.lesson:hover { border-color: rgba(236, 103, 31, .5); transform: translateY(-2px); }
.lesson small { color: rgba(255, 255, 255, .5); font-size: 12px; letter-spacing: .06em; }
.lesson h4 { font-size: 17px; font-weight: 500; line-height: 1.35; margin: 8px 0; }
.lesson__more { font-size: 13px; color: var(--or2); }
.lesson__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s; }
.lesson__body > p { overflow: hidden; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .7); }
.lesson.is-open { border-color: rgba(236, 103, 31, .55); background: linear-gradient(160deg, rgba(236, 103, 31, .14), var(--card) 70%); }
.lesson.is-open .lesson__body { grid-template-rows: 1fr; }
.lesson.is-open .lesson__more { display: none; }
.ls5__count { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .5); }

.ls6 small { display: block; font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 8px; }
.ls6 > p { margin: 12px 0 22px; color: rgba(255, 255, 255, .6); font-size: 15px; max-width: 760px; }
.ls6 .lns__card { border-top: 2px solid var(--or2); }
.ls6__who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.ls6__who::before { content: "◎"; color: var(--or2); }
.ls6 h4 { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.ls6 .lns__card p { color: rgba(255, 255, 255, .62); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .cmp__grid { grid-template-columns: 1fr 240px 1fr; } }
@media (max-width: 960px) {
  .dirs { grid-template-columns: 1fr; }
  .fullba { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cmp__top { grid-template-columns: 1fr; }
  .cmp__grid { grid-template-columns: 1fr 1fr; }
  .cmp__grid .dial { grid-column: 1 / -1; grid-row: 1; max-width: 260px; margin: 0 auto; }
  .cmp__col { display: contents; }
  .cq { grid-template-columns: 1fr; }
  .cq__side { display: none; }
  .ls1, .ls2 { grid-template-columns: 1fr; }
  .ls2 { cursor: crosshair; }
}
@media (max-width: 640px) {
  .lessons, .rep__two, .pillars--4 { grid-template-columns: 1fr; }
  .cmp__grid { grid-template-columns: 1fr; }
  .rep__head { grid-template-columns: 1fr; }
  .rep__head .dial { display: none; }
  .rep__lens { flex-direction: column; align-items: flex-start; }
  .cmpv { grid-template-columns: 1fr !important; }
  .cmpv__a { border-right: 0; border-bottom: 1px solid rgba(236, 103, 31, .6); }
  .cmpv__knob, .cmpv input { display: none; }
  .proto__url { display: none; }
  .fullba .frame--scroll { max-height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .proto__live::before, .dial.is-idle .dial__needle { animation: none; }
  .lx-fade { animation: none; }
}

/* metrics: small before → after line under each label */
.metrics span small { display: block; margin-top: 6px; font-size: 14px; color: #8a8a8a; }
.metrics__note { margin-top: 36px; font-size: 13px; color: #8a8a8a; font-style: italic; }
html[data-theme="dark"] .metrics span small, html[data-theme="dark"] .metrics__note { color: var(--d-muted); }

/* =========================================================
   Section pieces, in the shared portfolio theme (violet accent)
   ========================================================= */
.chap { font-family: "Inter", var(--font); font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.chap--light, .cs-sec--ink .chap { color: #b3a8ff; }
.story { max-width: 900px; font-size: 18px; line-height: 1.85; color: #555; margin-bottom: 30px; }
.story b { color: #151515; font-weight: 600; }
.story + .story { margin-top: -14px; }
.cs-sec--ink { background: #111; color: #fff; }
.cs-sec--ink .story { color: rgba(255, 255, 255, .7); }
.cs-sec--ink .story b, .cs-sec--ink .cs-h2, .cs-sec--ink .cs-h3 { color: #fff; }

/* overview */
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.glance li { background: #f6f4ff; border-radius: 16px; padding: 26px 24px; }
.glance > li > b { display: block; font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.glance p { font-size: 16px; line-height: 1.7; color: #2f2f2f; }
.glance p b { font-weight: 700; color: #151515; }

/* audit cards */
.probs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 50px; }
.prob { border-radius: 18px; padding: 28px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.prob h3 { font: 600 19px/1.3 var(--font); margin-bottom: 4px; }
.prob__who { font-size: 14px; color: #8a8a8a; margin-bottom: 16px; }
.prob ul { display: grid; gap: 10px; }
.prob li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.55; color: #555; }
.prob li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }

/* feedback quotes */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.say { position: relative; border-radius: 18px; background: #f6f4ff; padding: 30px 32px 28px 70px; margin: 0; }
.say::before { content: "“"; position: absolute; left: 24px; top: 10px; font: 400 64px/1 "Geist", serif; color: var(--violet); }
.say p { font-family: "Geist", var(--font); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; letter-spacing: -.01em; color: #151515; }
.say cite { display: block; margin-top: 14px; font: 600 13px/1 var(--font); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.reframe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0 10px; }
.reframe li { border-radius: 18px; padding: 28px; background: #111; color: #fff; }
.reframe li:nth-child(2) { background: var(--violet); }
.reframe b { display: block; font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-bottom: 12px; }
.reframe p { font-family: "Geist", var(--font); font-size: 21px; line-height: 1.45; letter-spacing: -.01em; }

/* homepage structure on dark */
.mapline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: m; }
.mapline li { counter-increment: m; border-radius: 16px; padding: 18px 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); }
.mapline li::before { content: counter(m, decimal-leading-zero); display: block; font: 600 13px/1 var(--font); color: #b3a8ff; margin-bottom: 12px; }
.mapline b { display: block; color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.mapline span { display: block; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .55); }
.cs-sec--ink .dec { border-top-color: rgba(255, 255, 255, .1); }
.cs-sec--ink .dec h3 { color: #fff; }
.cs-sec--ink .dec__n { color: #b3a8ff; }
.cs-sec--ink .dec__why { color: rgba(255, 255, 255, .7); }
.cs-sec--ink .dec__why b { color: #fff; }
.cs-sec--ink .dec__trade { background: rgba(134, 116, 254, .12); color: rgba(255, 255, 255, .75); }
.cs-sec--ink .dec__trade b { color: #b3a8ff; }

/* principles */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 44px; }
.rules li { border-radius: 16px; padding: 22px; background: #fff; border: 1px solid #ececec; }
.rules b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #151515; }
.rules span { display: block; font-size: 14.5px; line-height: 1.55; color: #6b6b6b; }
.cs-sec--ink .rules li { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.cs-sec--ink .rules b { color: #fff; }
.cs-sec--ink .rules span { color: rgba(255, 255, 255, .6); }

/* labelled screens */
.ann { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 34px; align-items: start; margin: 0 0 60px; }
.ann--wide { grid-template-columns: 1fr; }
.ann__cap { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: -16px; }
.ann__cap b { font: 600 20px/1.3 var(--font); letter-spacing: -.02em; }
.ann__cap span { font-size: 14px; color: #8a8a8a; }
.ann__shot { position: relative; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .08); border: 1px solid rgba(0, 0, 0, .05); }
.ann__shot.is-scroll { max-height: 720px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ann__img { position: relative; }
.ann__img img { display: block; width: 100%; height: auto; }
.ann__pin { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border-radius: 50%; border: 0; background: var(--violet); color: #fff; font: 700 13px/30px var(--font); text-align: center; cursor: pointer; box-shadow: 0 0 0 6px rgba(134, 116, 254, .25), 0 6px 16px rgba(0, 0, 0, .2); transition: transform .2s, background .2s; z-index: 1; }
.ann__pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(134, 116, 254, .55); animation: annPulse 2.4s ease-out infinite; }
.ann__pin.is-on, .ann__pin:hover, .ann__pin:focus-visible { transform: scale(1.18); background: #111; outline: 0; }
@keyframes annPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.ann__list { display: grid; gap: 10px; counter-reset: a; }
.ann__list li { counter-increment: a; display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; padding: 16px 18px 16px 16px; border-radius: 14px; background: #fff; border: 1px solid #ececec; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.ann__list li::before { content: counter(a, decimal-leading-zero); grid-row: span 3; font: 600 14px/1.5 var(--font); color: var(--violet); }
.ann__list li.is-on { border-color: rgba(134, 116, 254, .6); background: #f6f4ff; transform: translateX(4px); }
.ann__list b { font-size: 16px; font-weight: 600; line-height: 1.4; color: #151515; }
.ann__list .was { margin-top: 6px; font-size: 14px; line-height: 1.55; color: #8a8a8a; }
.ann__list .now { margin-top: 6px; font-size: 15px; line-height: 1.55; color: #3a3a3a; }
.ann--wide .ann__list { grid-template-columns: repeat(2, 1fr); }
.ann__hint { grid-column: 1 / -1; margin-top: -20px; font-size: 13px; color: #8a8a8a; }
.cs-sec--grey .ann__list li, .cs-sec--grey .rules li { background: #fff; }
.cs-sec--ink .ann__cap span, .cs-sec--ink .ann__hint { color: rgba(255, 255, 255, .5); }
.cs-sec--ink .ann__list li { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.cs-sec--ink .ann__list li.is-on { background: rgba(134, 116, 254, .16); border-color: rgba(134, 116, 254, .6); }
.cs-sec--ink .ann__list li::before { color: #b3a8ff; }
.cs-sec--ink .ann__list b { color: #fff; }
.cs-sec--ink .ann__list .was { color: rgba(255, 255, 255, .45); }
.cs-sec--ink .ann__list .now { color: rgba(255, 255, 255, .78); }

/* careers before → after */
.fixes { display: grid; gap: 8px; margin: 0 0 50px; }
.fixes li { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 12px; }
.fixes span { border-radius: 14px; padding: 16px 18px; font-size: 15.5px; line-height: 1.5; }
.fixes .b { background: #f2f2f2; color: #8a8a8a; }
.fixes .a { background: #f6f4ff; color: #151515; font-weight: 500; }
.fixes i { font-style: normal; text-align: center; color: var(--violet); font-weight: 700; }
.fixes__head span { background: none !important; padding: 0 4px !important; font: 600 13px/1 var(--font) !important; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a !important; }

/* tabs + type + palette */
.lx-type { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.lx-type div { border-radius: 18px; padding: 28px; background: #fff; }
.lx-type small { display: block; font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin-bottom: 18px; }
.lx-type .g { font: 600 clamp(54px, 6vw, 88px)/1 "Geist", sans-serif; letter-spacing: -.05em; color: #151515; }
.lx-type .i { font: 400 clamp(54px, 6vw, 88px)/1 "Inter", sans-serif; letter-spacing: -.03em; color: #151515; }
.lx-type p { margin-top: 14px; font-size: 15px; color: #6b6b6b; line-height: 1.6; }
.lx-pal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lx-pal li { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.lx-pal i { display: block; height: 96px; }
.lx-pal b { display: block; padding: 12px 14px 2px; font-size: 14px; font-weight: 600; color: #151515; }
.lx-pal code { display: block; padding: 0 14px 14px; font: 500 13px/1.4 "Inter", sans-serif; color: #8a8a8a; }
.livelink { background: var(--violet); }
.livelink:hover { box-shadow: 0 12px 30px rgba(134, 116, 254, .4); }

/* dark theme */
html[data-theme="dark"] .glance li, html[data-theme="dark"] .say, html[data-theme="dark"] .fixes .a { background: var(--d-tint); }
html[data-theme="dark"] .prob, html[data-theme="dark"] .rules li, html[data-theme="dark"] .ann__list li, html[data-theme="dark"] .lx-type div, html[data-theme="dark"] .lx-pal li, html[data-theme="dark"] .fixes .b { background: var(--d-surface); border-color: var(--d-border); }
html[data-theme="dark"] .ann__list li.is-on { background: var(--d-tint); }
html[data-theme="dark"] .glance p, html[data-theme="dark"] .glance p b, html[data-theme="dark"] .story b, html[data-theme="dark"] .prob h3, html[data-theme="dark"] .say p, html[data-theme="dark"] .rules b, html[data-theme="dark"] .ann__list b, html[data-theme="dark"] .ann__cap b, html[data-theme="dark"] .fixes .a, html[data-theme="dark"] .lx-type .g, html[data-theme="dark"] .lx-type .i, html[data-theme="dark"] .lx-pal b { color: var(--ink); }
html[data-theme="dark"] .story, html[data-theme="dark"] .prob li, html[data-theme="dark"] .rules span, html[data-theme="dark"] .ann__list .now, html[data-theme="dark"] .lx-type p { color: var(--d-muted); }
html[data-theme="dark"] .ann__shot { border-color: var(--d-border); }
html[data-theme="dark"] .cs-sec--ink { background: #0b0b0d; }

/* responsive */
@media (max-width: 960px) {
  .glance, .probs, .rules { grid-template-columns: 1fr 1fr; }
  .ann, .split { grid-template-columns: 1fr; }
  .ann--wide .ann__list { grid-template-columns: 1fr; }
  .lx-pal { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .glance, .probs, .rules, .reframe, .lx-type { grid-template-columns: 1fr; }
  .mapline { grid-template-columns: 1fr 1fr; }
  .fixes li { grid-template-columns: 1fr; gap: 4px; }
  .fixes i { transform: rotate(90deg); }
  .fixes__head { display: none !important; }
  .lx-pal { grid-template-columns: 1fr 1fr; }
  .say { padding: 26px 22px 22px 56px; }
}
@media (prefers-reduced-motion: reduce) { .ann__pin::after { animation: none; } }

/* cover mockup: fade the render's edges into the cover background */
.cs-cover__laptop--fade { max-width: 1060px; padding-top: clamp(70px, 8vw, 120px); padding-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent 98%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent 98%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect; }
.flatcmp--in { padding: 0 0 60px; }
.cs-cover--lucien { background: #0a0a0b; }
.cs-cover--lucien .cs-cover__laptop--fade {
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%), linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%), linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect; }

/* research: findings table + homepage changes */
.finds { display: grid; gap: 8px; margin: 18px 0 50px; }
.finds li { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 12px; align-items: stretch; }
.finds li > * { border-radius: 14px; padding: 16px 18px; font-size: 15.5px; line-height: 1.55; }
.finds b { background: #111; color: #fff; font-weight: 600; }
.finds p { background: #f2f2f2; color: #555; }
.finds .finds__so { background: #f6f4ff; color: #151515; font-weight: 500; }
.finds__head span { padding: 0 4px; font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; }
.shaped { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.shaped li { counter-increment: s; border-radius: 16px; padding: 22px; background: #fff; border: 1px solid #ececec; }
.shaped li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 13px/1 var(--font); color: var(--violet); margin-bottom: 12px; }
.shaped b { display: block; font-size: 16px; font-weight: 600; color: #151515; margin-bottom: 6px; }
.shaped span { display: block; font-size: 14.5px; line-height: 1.55; color: #6b6b6b; }
html[data-theme="dark"] .finds p, html[data-theme="dark"] .shaped li { background: var(--d-surface); border-color: var(--d-border); color: var(--d-muted); }
html[data-theme="dark"] .finds .finds__so { background: var(--d-tint); color: var(--ink); }
html[data-theme="dark"] .finds b { background: #f5f5f7; color: #111; }
html[data-theme="dark"] .shaped b { color: var(--ink); }
html[data-theme="dark"] .shaped span { color: var(--d-muted); }
@media (max-width: 960px) {
  .finds li { grid-template-columns: 140px 1fr 1fr; }
  .shaped { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .finds__head { display: none !important; }
  .finds li { grid-template-columns: 1fr; gap: 4px; margin-bottom: 10px; }
  .finds b { padding: 12px 16px; }
  .shaped { grid-template-columns: 1fr; }
}

/* Dark mode: ink sections a clear step darker than the base, cover matches the hero */
html[data-theme="dark"] .cs-sec--ink { background-color: #070708; }
html[data-theme="dark"] .cs-cover--lucien { background-color: #0f0f11; }

/* Light mode: cards inside dark (ink) sections stay dark, so their white text stays readable */
html:not([data-theme="dark"]) main.cs .cs-sec--ink :is(.dec__trade, .glance li, .say, .flip__f, .cs-callout) { background: #1b1b20 !important; }
html:not([data-theme="dark"]) main.cs .cs-sec--ink .ann__list li.is-on { background: rgba(255, 255, 255, .08) !important; }
