/* JokyJoke « Interface » — navigation, home sections, inner pages. Loaded after site.css. */

/* ---------- global ---------- */
.skip { position: fixed; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #0b0b0c; font-weight: 500; font-size: 14px; transition: top .3s var(--ease); }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 8px; }
.pill:focus-visible { outline-offset: 4px; border-radius: 999px; }
.entering .veil { opacity: 1; transition: none; }
.veil { z-index: 80; }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].seen { opacity: 1; transform: none; }
.sec-head { max-width: 820px; }
.sec-head .h2 { margin-top: 18px; }
.sec-head .intro { margin: 18px 0 0; }
.top { transition: background .4s, border-color .4s; }
.top.scrolled { background: rgba(0, 0, 0, 0.72); }
.top .nav a.cur { color: var(--ink); }

/* ---------- burger + full-screen menu ---------- */
.menu { gap: 10px; }
.burger { position: relative; display: inline-block; width: 16px; height: 10px; }
.burger i { position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i:first-child { top: 1px; }
.burger i:last-child { top: 7.5px; }
.burger.x i:first-child { top: 4.5px; transform: rotate(45deg); }
.burger.x i:last-child { top: 4.5px; transform: rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; padding: 0 20px calc(26px + env(safe-area-inset-bottom)); overflow-y: auto;
  background: rgba(3, 3, 3, 0.95); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); opacity: 0; transition: opacity .45s var(--ease); }
.sheet[hidden] { display: none; }
.sheet.open { opacity: 1; }
.sheet-top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 52px; }
.sheet .menu.close { display: inline-flex; margin: 0; width: 42px; height: 42px; padding: 0; justify-content: center; }
.sheet-nav ol { list-style: none; margin: 26px 0 0; padding: 0; }
.sheet-nav li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 55ms + 60ms); }
.sheet.open .sheet-nav li { opacity: 1; transform: none; }
.sheet-nav a { display: flex; align-items: baseline; gap: 16px; padding: 15px 0; font-size: clamp(30px, 8.4vw, 46px); font-weight: 600; letter-spacing: -0.045em; }
.sheet-nav a .mono { font-size: 12px; color: var(--gold); }
.sheet-cards { margin-top: 30px; opacity: 0; transition: opacity .6s var(--ease) .35s; }
.sheet.open .sheet-cards { opacity: 1; }
.sheet-cards ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; }
.sheet-cards a { font-size: 15px; color: var(--ink-2); }
.sheet-cards a .mono { display: inline-block; min-width: 34px; color: var(--gold); }
.sheet-foot { margin-top: auto; padding-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
html.locked, html.locked body { overflow: hidden; }

/* ---------- manifesto (home) ---------- */
.manifesto .m-index { color: var(--gold); margin: 0 0 26px; }
.manifesto .m-note { margin: 28px auto 0; max-width: 60ch; color: var(--faint); }

/* ---------- the layers: an exploded stack ---------- */
.layers { position: relative; z-index: 2; height: 360vh; }
.l-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; align-items: center; padding: 80px var(--g) 30px; }
.strata { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 2px; max-width: 560px; }
.stratum { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 10px 14px; border-radius: 14px; border: 1px solid transparent; opacity: 0.4; transition: opacity .5s var(--ease), background .5s, border-color .5s; }
.stratum .mono { padding-top: 3px; color: var(--gold); }
.stratum h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.stratum p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.stratum p.tools { font-size: 12px; color: var(--ink-2); }
.stratum.on { opacity: 1; background: rgba(255, 255, 255, 0.035); border-color: var(--line); }
.stratum.on p { max-height: 90px; opacity: 1; margin-top: 6px; }
.l-caption { margin-top: 18px; color: var(--faint); }
.l-scene { position: relative; height: min(76vh, 680px); perspective: 2000px; }
.l-stack { position: absolute; left: 50%; top: 50%; width: min(30vw, 430px); aspect-ratio: 1; transform-style: preserve-3d; transform: translate(-50%, -50%) rotateX(57deg) rotateZ(-38deg); }
.slab { position: absolute; inset: 0; border-radius: 24px; border: 1px solid rgba(214, 193, 157, 0.26);
  background: linear-gradient(135deg, rgba(34, 31, 26, 0.86), rgba(9, 9, 10, 0.92)); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  transform: translateZ(var(--z, 0px)); transition: border-color .6s, box-shadow .6s, opacity .6s; }
.slab::before { content: ""; position: absolute; inset: 22px; border-radius: 14px; opacity: 0.55; transition: opacity .6s; }
.slab.s1::before { background-image: linear-gradient(rgba(214,193,157,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(214,193,157,.28) 1px, transparent 1px); background-size: 44px 30px; }
.slab.s2::before { background: radial-gradient(circle, rgba(214,193,157,.7) 1.6px, transparent 2.2px) 0 0 / 30px 30px; }
.slab.s3::before { background: repeating-linear-gradient(0deg, rgba(214,193,157,.3) 0 1px, transparent 1px 15px); }
.slab.s4::before { background: repeating-radial-gradient(circle at 50% 50%, rgba(214,193,157,.32) 0 1px, transparent 1px 17px); }
.slab.s5::before { background: repeating-linear-gradient(45deg, rgba(214,193,157,.24) 0 1px, transparent 1px 13px); }
.slab.s6::before { background: conic-gradient(rgba(214,193,157,.16) 25%, transparent 0 50%, rgba(214,193,157,.16) 0 75%, transparent 0) 0 0 / 36px 36px; }
.slab-n, .slab-name { position: absolute; left: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--gold); }
.slab-n { top: 18px; }
.slab-name { bottom: 16px; color: var(--ink-2); text-transform: uppercase; }
.slab.on { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(214,193,157,.4), 0 0 70px rgba(214,193,157,.2), 0 40px 80px rgba(0,0,0,.5); }
.slab.on::before { opacity: 1; }
.slab.dim { opacity: 0.55; }

/* ---------- the method ---------- */
.method, .studies, .about { position: relative; z-index: 2; padding: 150px var(--g) 120px; }
.m-track { position: relative; margin-top: 64px; }
.m-line { position: absolute; left: 18px; right: 18px; top: 18px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(214,193,157,.12)); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
.m-track.seen .m-line { transform: scaleX(1); }
.m-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.m-step { position: relative; padding: 64px 20px 24px; }
.m-node { position: absolute; left: 0; top: 0; width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; background: #000; border: 1px solid rgba(214,193,157,.6); box-shadow: 0 0 0 6px #000; transition: background .4s, box-shadow .4s; }
.m-node .mono { color: var(--gold); font-size: 11px; }
.m-step:hover .m-node { background: var(--gold); box-shadow: 0 0 0 6px #000, 0 0 30px rgba(214,193,157,.45); }
.m-step:hover .m-node .mono { color: #0b0b0c; }
.m-step { padding-left: 0; }
.m-step .gesture { color: var(--gold); margin: 0; }
.m-step h3 { margin: 10px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -0.035em; }
.m-sum { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.m-det { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.m-step .tags { margin-top: 16px; }
.m-step .tags li { height: 26px; font-size: 12px; padding: 0 10px; }
.m-cap { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--gold); font-size: 14px; font-style: italic; }
.m-complete { margin: 56px 0 0; text-align: center; font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink-2); }

/* ---------- the studies ---------- */
.disclaimer { display: flex; gap: 12px; align-items: flex-start; margin: 26px 0 0; max-width: 72ch; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(214,193,157,.32); background: rgba(214,193,157,.05); color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.disclaimer span { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 600 12px var(--mono); margin-top: 1px; }
.s-tools { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 44px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.flt { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; transition: background .35s var(--ease), color .3s, border-color .3s; }
.flt span { font-size: 11px; color: var(--faint); }
.flt:hover { color: var(--ink); border-color: rgba(214,193,157,.5); }
.flt.on { background: var(--ink); border-color: var(--ink); color: #0b0b0c; }
.flt.on span { color: #6a6863; }
.s-results { margin: 0; }
.s-results b { color: var(--ink-2); }
.s-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.study { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform .6s var(--ease), border-color .4s, opacity .45s var(--ease); }
.js .study { opacity: 0; transform: translateY(30px); transition-delay: calc(var(--i, 0) * 80ms); }
.js .study.seen { opacity: 1; transform: none; }
.study.seen:hover { transform: translateY(-6px); border-color: rgba(214,193,157,.42); transition-delay: 0s; }
.study.out { opacity: 0 !important; transform: scale(0.96) !important; }
.study[hidden] { display: none; }
.s-visual { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(80% 90% at 50% 40%, #17140f, #070707); border-bottom: 1px solid var(--line); }
.s-art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); }
.s-art g { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; }
.s-art g > * { opacity: 0.72; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 2.4s var(--ease) .2s; }
.study.seen .s-art g > * { stroke-dashoffset: 0; }
.s-art .lo { opacity: 0.32; }
.s-art .hi { stroke: var(--gold-hi); stroke-width: 1.6; opacity: 1; }
.s-art .dot, .s-art .hi-dot { fill: currentColor; stroke: none; opacity: 0.9; }
.s-art .hi-dot { fill: var(--gold-hi); }
.study:hover .s-art .hi { filter: drop-shadow(0 0 4px rgba(240, 214, 160, 0.6)); }
.s-badge { position: absolute; left: 14px; top: 14px; height: 26px; font-size: 12px; background: rgba(0,0,0,.55); }
.s-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 18px; }
.s-sector { margin: 0; color: var(--gold); }
.s-body h3 { margin: 10px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.s-body > p:not(.s-sector) { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.s-body .tags { margin-top: 16px; }
.s-body .link { margin-top: auto; padding-top: 12px; height: auto; }
.study.next { border-color: rgba(255, 240, 210, 0.5); }
.s-next { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 44px 26px; text-align: center; color: #15120c;
  background: linear-gradient(150deg, #f3e6c8 0%, #cbb083 38%, #e9d8b4 62%, #a98c5f 100%); }
.s-next .glyph { width: 84px; color: #15120c; }
.s-next p { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; max-width: 14ch; }
.s-next .pill { background: #0b0b0c; color: var(--ink); }
.s-next .pill:hover { background: #1d1b17; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* ---------- about ---------- */
.about .subtitle { margin: 22px 0 0; max-width: 30ch; font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink-2); }
.statements { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 64px; }
.stmt { padding: 26px 4px 0 0; border-top: 1px solid var(--line-2); }
.stmt .mono { color: var(--gold); }
.stmt h3 { margin: 16px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.035em; }
.stmt p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.lift { position: relative; display: grid; place-items: center; height: 64vh; margin: 50px 0 30px; overflow: hidden; text-align: center; }
.lift p { grid-area: 1 / 1; margin: 0; font-weight: 600; font-size: clamp(40px, 6.4vw, 112px); line-height: 1; letter-spacing: -0.055em; will-change: transform, opacity; }
.lift-from { color: #4a4844; }
.lift-to { background: linear-gradient(100deg, var(--gold-lo), var(--gold-hi) 45%, #c9a874 70%, var(--gold-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; }
.pillars-label { margin: 0; color: var(--gold); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.pillar { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); transition: border-color .4s, transform .55s var(--ease); }
.pillar.seen:hover { border-color: rgba(214,193,157,.45); transform: translateY(-4px); transition-delay: 0s; }
.pi { width: 12px; height: 12px; padding: 5px; color: var(--gold); border: 1px solid rgba(214,193,157,.5); border-radius: 50%; }
.pillar h3 { margin: 18px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.pillar p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- finale ---------- */
.finale { position: relative; z-index: 2; padding: 170px var(--g) 30px; text-align: center; }
.finale .chip { margin: 0 auto; }
.finale .big { max-width: 16ch; margin: 24px auto 0; }
.f-line { margin: 22px 0 0; font-size: clamp(22px, 2.2vw, 34px); font-weight: 600; letter-spacing: -0.03em; color: var(--gold); }
.finale .intro { margin-left: auto; margin-right: auto; }
.finale .ctas { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.contact { padding-top: 110px; }

/* ---------- form status ---------- */
.status { margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(214,193,157,.38); background: rgba(214,193,157,.06); color: var(--ink-2); font-size: 14.5px; line-height: 1.55; animation: errIn .4s var(--ease); }
.status[hidden] { display: none; }
.status.bad { border-color: rgba(226,131,111,.42); background: rgba(226,131,111,.07); color: #f3b3a4; }
.status a { color: var(--gold); border-bottom: 1px solid rgba(214,193,157,.4); }

/* ---------- footer ---------- */
footer.site-foot { position: relative; z-index: 2; display: block; padding: 84px var(--g) 28px; border-top: 1px solid var(--line); background: #000; }
.sf-top { display: grid; grid-template-columns: 1.3fr 0.8fr 1.4fr 1fr; gap: 44px; }
.sf-tag { margin: 20px 0 24px; max-width: 13ch; font-size: 28px; font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; }
.sf-col h2 { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--faint); }
.sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sf-col a { color: var(--ink-2); font-size: 14.5px; transition: color .25s; }
.sf-col a:hover { color: var(--gold); }
.sf-cards a .mono { display: inline-block; min-width: 38px; color: var(--gold); }
.sf-h2b { margin-top: 28px !important; }
.sf-note { margin: 0; color: var(--muted); font-size: 14px; }
.sf-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); }
.sf-bottom p { margin: 0; }
.sf-bottom a:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.lg-page { position: relative; z-index: 2; padding: 130px var(--g) 100px; }
.lg-hero { max-width: 900px; }
.lg-hero h1 { margin-top: 18px; }
.lg-hero .mono { margin: 16px 0 0; }
.lg-notice { margin: 24px 0 0; max-width: 72ch; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(214,193,157,.5); background: rgba(214,193,157,.05); color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
mark.todo { padding: 1px 7px; border-radius: 6px; border: 1px dashed rgba(214,193,157,.7); background: rgba(214,193,157,.14); color: var(--gold-hi); font-family: var(--mono); font-size: 0.84em; white-space: nowrap; }
.lg-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 72px; align-items: start; margin-top: 64px; }
.lg-toc { position: sticky; top: 90px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lg-toc a { display: flex; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; line-height: 1.35; transition: color .25s, background .25s; }
.lg-toc a:hover, .lg-toc a.on { color: var(--ink); background: rgba(255,255,255,.045); }
.lg-toc a .mono { color: var(--gold); }
.lg-toc > .link { height: auto; margin-top: 22px; }
.lg-body { max-width: 780px; }
.lg-sec { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.lg-sec h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.lg-sec h2 .mono { font-size: 12px; color: var(--gold); }
.lg-sec p, .lg-sec li { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.lg-sec p { margin: 0 0 12px; }
.lg-sec ul { margin: 0 0 14px; padding-left: 20px; }
.lg-sec li::marker { color: var(--gold); }

/* ---------- 404 ---------- */
.nf { position: relative; z-index: 2; min-height: 100svh; display: grid; grid-template-columns: auto minmax(0, 620px); gap: 80px; align-items: center; justify-content: center; padding: 120px var(--g) 80px; }
.nf-card { width: 250px; animation: nfFloat 7s ease-in-out infinite; }
.nf-card .face { transform: rotate(-6deg); border-color: rgba(214,193,157,.5); box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 60px rgba(214,193,157,.12); }
.nf-card .num { font-size: 16px; left: 20px; top: 18px; }
.nf-card .lbl { font-size: 30px; font-weight: 600; color: var(--gold); bottom: 26px; }
.nf-card .glyph { opacity: 0.35; }
@keyframes nfFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(2deg); } }
.nf .ctas { display: flex; gap: 26px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.nf .h2 { margin-top: 18px; }

/* ---------- expertise page ---------- */
.x-page { position: relative; z-index: 2; padding: 84px var(--g) 60px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); }
.crumbs a { color: var(--muted); transition: color .25s; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }
.x-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 4vw; margin-top: 10px; }
.x-hero { min-height: calc(100svh - 150px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.x-hero h1 { margin: 22px 0 0; font-weight: 600; font-size: clamp(40px, 4.8vw, 84px); line-height: 1; letter-spacing: -0.048em; }
.x-tagline { margin: 22px 0 0; max-width: 34ch; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; letter-spacing: -0.012em; color: var(--ink-2); }
.x-lead { margin: 14px 0 0; max-width: 50ch; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.x-hero .tags { margin-top: 24px; }
.x-hero .ctas, .x-cta .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.x-visual { position: relative; align-self: stretch; }
.x-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; margin-top: -84px; }
.x-sticky canvas { display: block; width: 100%; height: 100%; }
.x-proof { position: absolute; left: 50%; bottom: 26px; margin: 0; transform: translateX(-50%); white-space: nowrap; }
.x-sec { padding: 64px 0; border-top: 1px solid var(--line); }
.x-h2 { display: flex; align-items: baseline; gap: 16px; margin: 0 0 30px; font-size: clamp(26px, 2.4vw, 38px); font-weight: 600; letter-spacing: -0.035em; }
.x-h2 .mono { font-size: 12px; color: var(--gold); }
.x-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.x-cap { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); transition: border-color .4s, transform .55s var(--ease); }
.x-cap.seen:hover { border-color: rgba(214,193,157,.45); transform: translateY(-4px); transition-delay: 0s; }
.x-cap .mono { color: var(--gold); }
.x-cap h3 { margin: 14px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.x-cap p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.x-approach { list-style: none; margin: 0; padding: 0; counter-reset: a; }
.x-approach li { position: relative; padding: 0 0 32px 66px; counter-increment: a; }
.x-approach li::before { content: counter(a, decimal-leading-zero); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(214,193,157,.55); font: 12px var(--mono); color: var(--gold); }
.x-approach li::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 6px; width: 1px; background: linear-gradient(rgba(214,193,157,.4), transparent); }
.x-approach li:last-child::after { display: none; }
.x-approach h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.x-approach p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.x-deliv { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.x-deliv li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 16px; }
.x-deliv svg { flex: none; width: 10px; height: 10px; padding: 5px; border-radius: 50%; background: var(--gold); color: #0b0b0c; }
.x-stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.x-stack li { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; color: var(--ink-2); transition: border-color .3s, color .3s; }
.x-stack li:hover { border-color: var(--gold); color: var(--ink); }
.x-cta { margin-top: 70px; padding: 76px 48px; border-radius: 28px; text-align: center; border: 1px solid rgba(214,193,157,.25); background: radial-gradient(80% 120% at 50% 0%, rgba(214,193,157,.13), rgba(17,17,19,.6) 62%); }
.x-cta .intro { margin-left: auto; margin-right: auto; }
.x-cta .ctas { justify-content: center; }
.x-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.x-pn-a { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); transition: border-color .4s, transform .55s var(--ease); }
.x-pn-a b { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; }
.x-pn-a.next { align-items: flex-end; text-align: right; }
.x-pn-a:hover { border-color: rgba(214,193,157,.5); transform: translateY(-4px); }
.x-others { padding: 80px 0 10px; }
.x-minis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.x-minis .mini { display: block; }
.x-back { margin: 40px 0 0; text-align: center; }

/* ---------- tablet / phone ---------- */
@media (max-width: 1100px) {
  .m-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .m-line { display: none; }
  .statements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-top { grid-template-columns: 1fr 1fr; }
  .x-minis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .layers { height: auto; }
  .l-sticky { position: relative; height: auto; display: block; padding: 110px 16px 40px; }
  .l-scene { height: 300px; margin-top: 26px; perspective: 1200px; }
  .l-stack { width: 200px; }
  .slab-n, .slab-name { font-size: 9px; left: 16px; }
  .stratum { opacity: 1; }
  .stratum p { max-height: none; opacity: 1; margin-top: 6px; }
  .method, .studies, .about { padding: 110px 16px 80px; }
  .m-steps { grid-template-columns: 1fr; gap: 0; }
  .m-step { padding: 0 0 34px 56px; }
  .m-node { left: 0; top: 0; }
  .m-step::before { content: ""; position: absolute; left: 18px; top: 40px; bottom: 6px; width: 1px; background: linear-gradient(rgba(214,193,157,.45), transparent); }
  .m-step h3 { margin-top: 6px; }
  .s-grid, .statements, .pillars { grid-template-columns: 1fr; }
  .s-tools { flex-direction: column; align-items: flex-start; }
  .lift { height: 46vh; }
  .finale { padding: 120px 16px 20px; }
  .sheet-cards ul { grid-template-columns: 1fr 1fr; }
  footer.site-foot { padding: 60px 16px 24px; }
  .sf-top { grid-template-columns: 1fr; gap: 34px; }
  .sf-bottom { flex-direction: column; }
  .lg-page { padding: 104px 16px 70px; }
  .lg-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
  .lg-toc { position: static; }
  .lg-sec h2 { font-size: 22px; }
  mark.todo { white-space: normal; }
  .nf { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; padding: 100px 16px 60px; }
  .nf .ctas { justify-content: center; }
  .nf-card { width: 170px; }
  .x-page { padding: 70px 16px 40px; }
  .x-grid { display: flex; flex-direction: column; gap: 0; }
  .x-visual { order: -1; height: 56vh; margin: 0 -16px; }
  .x-sticky { position: relative; height: 100%; margin-top: 0; }
  .x-hero { min-height: 0; padding: 10px 0 30px; }
  .x-caps { grid-template-columns: 1fr; }
  .x-pn { grid-template-columns: 1fr; }
  .x-cta { padding: 50px 22px; }
  .x-minis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .study, .sheet, .sheet-nav li, .sheet-cards, .m-line, .s-art g > *, .slab, .stratum, .stratum p { transition: none !important; }
  .nf-card { animation: none; }
}
.x-sticky { background: radial-gradient(60% 50% at 50% 48%, rgba(214, 193, 157, 0.09), transparent 70%); }
.x-hero .chip, .lg-hero .chip, .nf-copy .chip, .sec-head .chip { align-self: flex-start; width: fit-content; }
.consent input { z-index: 1; }
.pi, .x-deliv svg { box-sizing: content-box; }

/* ---------- height-responsive: laptops at 125 % (≈1536×730, 1366×650, 1280×600) ---------- */
.brand { letter-spacing: 0.005em; font-size: 16.5px; font-weight: 600; }
.hero h1 { font-size: clamp(36px, min(4.5vw, 7.4vh), 78px); }
.big { font-size: clamp(30px, min(5vw, 8.2vh), 86px); }
.joker .big { font-size: clamp(28px, min(4.3vw, 7.2vh), 72px); }
.manifesto .big { font-size: clamp(32px, min(5vw, 8.6vh), 88px); }
.h2 { font-size: clamp(28px, min(4.1vw, 7.2vh), 70px); }
.statement { font-size: clamp(28px, min(3.9vw, 6.8vh), 66px); }
.center-top { top: max(76px, 12vh); }
.tour .beat { bottom: clamp(74px, 14vh, 160px); }
.x-hero h1 { font-size: clamp(34px, min(4.8vw, 8.4vh), 84px); }
/* wide or short screens: the copy on the left, the mask on the right (never under the text) */
@media (min-width: 761px) and (max-height: 820px), (min-width: 761px) and (min-aspect-ratio: 19/10) {
  .hero { --split: 1; text-align: left; align-items: flex-start; justify-content: center; padding: 72px var(--g) 76px; }
  .hero > .chip, .hero h1, .hero .lead, .hero .ctas { max-width: min(46vw, 660px); }
  .hero h1 { margin-top: clamp(12px, 2.4vh, 20px); font-size: clamp(34px, min(4.1vw, 8.6vh), 72px); }
  .hero h1 .l { display: inline; }
  .hero .lead { margin: clamp(12px, 2.4vh, 18px) 0 0; font-size: clamp(15px, 2.5vh, 19px); }
  .hero .ctas { justify-content: flex-start; margin-top: clamp(16px, 3.4vh, 28px); }
}
@media (min-width: 761px) and (max-height: 860px) {
  .l-sticky { padding: 64px var(--g) 14px; }
  .layers .sec-head .h2 { margin-top: 10px; }
  .layers .intro { margin-top: 10px; font-size: 15px; line-height: 1.5; }
  .strata { margin-top: 14px; }
  .stratum { padding: 6px 12px; }
  .stratum h3 { font-size: 15.5px; }
  .stratum p { font-size: 13.5px; }
  .stratum.on p { max-height: 64px; margin-top: 3px; }
  .l-caption { display: none; }
  .l-scene { height: min(72vh, 560px); }
  .l-stack { width: min(27vw, 52vh, 400px); }
}
@media (min-width: 761px) and (max-height: 660px) {
  .layers .chip { display: none; }
  .layers .intro { font-size: 14px; }
  .stratum.on p.tools { display: none; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .panel { padding: 22px 24px 18px; }
  .slide h3 { margin-top: 14px; font-size: clamp(22px, 4.4vh, 32px); }
  .slide p { margin-top: 10px; font-size: 15px; }
  .slide .tags { margin-top: 14px; }
  .rail button { height: 26px; }
  .x-hero { min-height: calc(100svh - 110px); padding-bottom: 24px; }
  .x-tagline { margin-top: 16px; font-size: clamp(17px, 2.8vh, 22px); }
  .x-lead { font-size: 15.5px; }
  .x-hero .ctas { margin-top: 22px; }
}
@media (max-width: 760px) { .hero h1 .l { display: inline; } }


/* ---------- quality pass (contrôle qualité) ---------- */
/* the consent box keeps its 22 px on every screen */
.f > label.consent { display: grid; grid-template-columns: 22px 1fr; justify-content: initial; align-items: start; }
.consent .box { flex: none; width: 22px; height: 22px; }
/* the project cards: every card neutral alike; the chosen one turns to gold leaf */
.mini.joker .face { background: radial-gradient(120% 80% at 30% 0%, #17140f 0%, #0a0908 46%, #040404 100%); border-color: rgba(214, 193, 157, 0.28); }
.mini.joker .face::before { border-color: rgba(214, 193, 157, 0.22); }
.mini.joker .num, .mini.joker .glyph { color: var(--gold); }
.mini.joker .num::after { background: var(--gold); }
.mini.joker .lbl { color: var(--ink-2); font-weight: 500; }
.mini input:checked + .face, .mini.joker input:checked + .face {
  background: linear-gradient(150deg, #f3e6c8 0%, #cbb083 38%, #e9d8b4 62%, #a98c5f 100%); border-color: rgba(255, 240, 210, 0.75);
  box-shadow: 0 24px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,236,200,0.6), 0 0 40px rgba(240,214,160,0.3); }
.mini input:checked + .face::before { border-color: rgba(30, 24, 14, 0.35); }
.mini input:checked + .face .num, .mini input:checked + .face .glyph { color: #15120c; filter: none; }
.mini input:checked + .face .num::after { background: #15120c; }
.mini input:checked + .face .lbl { color: #15120c; font-weight: 600; }
.mini input:checked + .face .tick { background: #15120c; color: var(--gold-hi); }
/* the done card keeps the gold of the chosen card */
.done .mini .face { background: linear-gradient(150deg, #f3e6c8 0%, #cbb083 38%, #e9d8b4 62%, #a98c5f 100%); }
.done .mini .num, .done .mini .glyph, .done .mini .lbl { color: #15120c; }
.done .mini .num::after { background: #15120c; }
.done .mini .tick { background: #15120c; color: var(--gold-hi); }
/* studies: the call tile becomes a full-width band (no orphan tile) */
.study.next { grid-column: 1 / -1; }
.s-next { flex-direction: row; justify-content: space-between; gap: 28px; padding: 34px 40px; text-align: left; }
.s-next p { max-width: none; flex: 1; font-size: clamp(22px, 2.2vw, 32px); }
.s-next .glyph { width: 64px; flex: none; }
/* « Le dessous des cartes »: the honest caption stays, smaller, on short screens */
.l-caption { display: block !important; font-size: 11px; }
@media (min-width: 761px) and (max-height: 860px) { .l-caption { margin-top: 10px; } }
/* no lone word at the end of a title */
.hero h1, .h2, .big, .statement, .x-hero h1, .lift p { text-wrap: balance; }
/* phone menu: room for « VIII » */
.sheet-cards a .mono { min-width: 44px; }
/* expertise: the « real time » caption sits inside the screen */
.x-proof { bottom: 58px; }
@media (max-width: 760px) { .x-proof { bottom: 16px; } }
/* the loading still of the mask, dissolved into the 3D */
.mask-still { position: absolute; z-index: 0; pointer-events: none; object-fit: contain; opacity: 1; transition: opacity .9s var(--ease); }
.mask-still.gone { opacity: 0; }
.no-webgl .mask-still.gone { opacity: 1; }
/* touch screens get a touch instruction */
.t-touch { display: none; }
@media (pointer: coarse) { .t-fine { display: none; } .t-touch { display: inline; } }
/* the lift: a clean hand-over, the first line is gone before the second arrives */
.lift-from { color: var(--ink-2); }
@media (max-width: 760px) {
  .shade-l { background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.72) 42%, transparent 70%); }
  .x-minis { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .x-minis li { scroll-snap-align: start; }
  .s-next { flex-direction: column; text-align: center; padding: 34px 22px; }
}
@media (max-width: 1100px) and (min-width: 761px) { .s-next { padding: 30px; } }
@media (prefers-reduced-motion: reduce) { .mask-still { transition: none; } }


/* ---------- card thumbnails (real renders of the cards, ./cartes/thumbs) ---------- */
.mini.pickc { aspect-ratio: auto; display: flex; flex-direction: column; gap: 10px; border-radius: 0; }
.pickc .face, .mini.joker.pickc .face, .mini.pickc input:checked + .face { position: relative; inset: auto; aspect-ratio: 5 / 7; overflow: visible; border: 0; background: none; border-radius: 9px; box-shadow: none; }
.pickc .face::before, .pickc .face::after { display: none; }
.pickc .thumb, .x-minis .thumb { position: absolute; left: 50%; top: 50%; width: 132.6%; max-width: none; height: auto; transform: translate(-50%, -50.3%); pointer-events: none; transition: filter .45s var(--ease); }
.pickc .face { transition: transform .55s var(--ease), box-shadow .45s var(--ease); }
.pickc:hover .face { transform: translateY(-8px) rotate(-1.2deg); }
.pickc:hover .thumb { filter: brightness(1.12); }
.mini.pickc input:checked + .face { transform: translateY(-12px); box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgba(214, 193, 157, 0.18), 0 22px 44px rgba(0, 0, 0, 0.55), 0 0 44px rgba(214, 193, 157, 0.28); }
.mini.pickc input:checked + .face .thumb { filter: brightness(1.18) saturate(1.05); }
.pickc .tick { right: 8px; top: 8px; z-index: 1; }
.mini.pickc input:checked + .face .tick { background: var(--gold); color: #0b0b0c; }
.pickc .cap { display: block; text-align: center; font-size: 12.5px; font-weight: 500; line-height: 1.25; color: var(--ink-2); transition: color .3s; }
.pickc input:checked ~ .cap { color: var(--gold-hi); }
.pickc input:focus-visible + .face { outline: 2px solid var(--gold-hi); outline-offset: 6px; }
.done .mini.pickc { width: 132px; }
.done .mini.pickc .face { background: none; box-shadow: 0 0 0 2px var(--gold), 0 0 44px rgba(214, 193, 157, 0.28); }
.done .mini.pickc .tick { transform: scale(1); opacity: 1; background: var(--gold); color: #0b0b0c; }
.done .mini.pickc .cap { color: var(--gold-hi); }
/* expertise pages: the other cards are their real thumbnails */
.x-minis .mini .face { background: none; border: 0; box-shadow: none; overflow: visible; border-radius: 9px; }
.x-minis .mini .face::before, .x-minis .mini .face::after { display: none; }
.x-minis .mini .cap { display: block; margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--ink-2); }
.x-minis .mini { aspect-ratio: auto; }
.x-minis .mini .face { position: relative; aspect-ratio: 5 / 7; display: block; transition: transform .5s var(--ease); }
.x-minis .mini:hover .face { transform: translateY(-8px); }
/* phone menu */
.sheet-cards a { display: inline-flex; align-items: center; gap: 8px; }
.sc-thumb { width: 30px; height: 37px; object-fit: cover; object-position: 50% 48%; border-radius: 3px; flex: none; transform: scale(1.32); margin: 0 4px; }
/* the waiting card: a still of the card where the 3D one will appear */
.card-wait { position: absolute; z-index: 0; pointer-events: none; opacity: 0.95; transition: opacity .5s var(--ease); }
.x-wait { position: absolute; left: 50%; top: 50%; height: 77%; width: auto; transform: translate(-50%, -52%); pointer-events: none; transition: opacity .8s var(--ease); }
.x-wait.gone { opacity: 0; }
@media (max-width: 760px) { .hand .pickc .cap { font-size: 11px; } }


/* ==========================================================================
   Passe mobile (7 novembre) : téléphones, tablettes, paysage.
   Aucune de ces règles ne s'applique sur ordinateur : elles visent un écran de
   760 px de large au plus, un pointeur tactile, un écran de 500 px de haut au plus
   en paysage, ou une tablette en portrait.
   ========================================================================== */

/* ---------- téléphones ---------- */
@media (max-width: 760px) {
  /* héros : les deux boutons ne se coupent plus sur deux lignes, le lien passe dessous s'il manque de place */
  .hero .ctas { flex-wrap: wrap; column-gap: 22px; row-gap: 4px; }
  .hero .ctas > * { white-space: nowrap; }
}
@media (max-width: 374px) {
  /* 360 px : les deux boutons tiennent encore sur une ligne, le masque garde sa place */
  .hero .ctas { column-gap: 14px; }
  .hero .ctas .pill { padding: 0 18px; font-size: 14px; }
  .hero .ctas .link { font-size: 14px; }
}
@media (max-width: 760px) {
  /* l'index des huit cartes tient dans l'écran : huit cibles de 44 px de haut, le trait sous le chiffre */
  .rail { left: 8px; right: 8px; top: 60px; transform: none; justify-content: space-between; gap: 0; }
  .rail button { flex: 1 1 0; min-width: 0; height: 44px; flex-direction: column; justify-content: center; gap: 7px; }
  .rail button i { width: 8px; }
  .rail button.on i { width: 18px; }
  /* menu : les noms des cartes ne sont plus coupés au bord de l'écran ; vignette à gauche, numéro au-dessus du nom */
  .sheet-cards ul { gap: 8px 12px; }
  .sheet-cards a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 1px; font-size: 14.5px; line-height: 1.2; }
  .sheet-cards a .sc-thumb { grid-row: span 2; }
  .sheet-cards a .mono { min-width: 0; align-self: end; font-size: 11px; }
  /* pages légales : « [À COMPLÉTER] » reste d'un seul tenant (il passe à la ligne entier) */
  mark.todo { white-space: nowrap; }
  /* petits textes lisibles */
  .slab-n, .slab-name { font-size: 10px; }
  .l-caption { font-size: 12px; }
  /* une seule colonne : chaque bloc arrive quand il entre à l'écran, sans attendre son rang */
  .js .study, .js .stmt[data-reveal], .js .pillar[data-reveal], .js .m-step[data-reveal], .js .x-approach li[data-reveal] { transition-delay: 0s; }
}

/* ---------- écrans tactiles : cibles de 44 px, pas de zoom au focus, pas de consigne de survol ---------- */
@media (max-width: 760px), (pointer: coarse) {
  /* 16 px minimum : iOS ne zoome plus quand on touche un champ */
  .f input[type=text], .f input[type=email], .f textarea { font-size: 16px; }
}
@media (pointer: coarse) {
  /* iOS grossit le texte en paysage si on ne le lui interdit pas : la mise en page casserait */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .f input[type=text], .f input[type=email], .f textarea { -webkit-appearance: none; appearance: none; }
  .top .brand, .sheet-top .brand, .sf-brand .brand { min-height: 44px; }
  .menu { height: 44px; padding: 0 16px; }
  .sheet .menu.close { width: 44px; height: 44px; }
  .sheet-cards a { min-height: 44px; }
  .slide .link { height: 44px; }
  .flt { height: 44px; }
  .s-body .link { min-height: 44px; }
  .seg span { height: 44px; }
  .done .again { height: 44px; }
  .lg-toc a { min-height: 44px; align-items: center; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .sf-col ul { gap: 0; }
  .sf-col a, .sf-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  /* « Survolez la carte pour l'incliner » n'a pas de sens au doigt (déjà retiré sur téléphone) */
  .hint { display: none; }
  /* le panneau des cartes : un fond plus opaque au lieu du flou d'arrière-plan, recalculé à chaque image sur la 3D */
  .panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(14, 14, 16, 0.93); }
}
/* au doigt, un survol reste « collé » après un toucher : pas de soulèvement fantôme */
@media (hover: none) {
  .pickc:hover .face, .hand .mini:hover .face, .x-minis .mini:hover .face { transform: none; }
  .pickc:hover .thumb { filter: none; }
  .study.seen:hover, .pillar.seen:hover, .x-cap.seen:hover, .x-pn-a:hover { transform: none; }
  .m-step:hover .m-node { background: #000; box-shadow: 0 0 0 6px #000; }
  .m-step:hover .m-node .mono { color: var(--gold); }
  .pill:hover::after { opacity: 0; }
  .beat { will-change: opacity, transform; }
}

/* ---------- formulaire : une colonne dès que le panneau est étroit (tablette, paysage) ---------- */
@media (max-width: 1100px) {
  .fields { container-type: inline-size; }
  @container (max-width: 520px) {
    .row2 { grid-template-columns: 1fr; gap: 0; }
    .seg { grid-template-columns: 1fr 1fr; }
  }
}

/* ---------- tablette en portrait : le panneau sous la carte, l'index au-dessus ---------- */
@media (min-width: 761px) and (max-aspect-ratio: 9/10) {
  .panel { left: 50%; right: auto; top: auto; bottom: 24px; transform: translateX(-50%); width: min(640px, calc(100% - 2 * var(--g))); }
  .rail { left: 50%; right: auto; top: 72px; transform: translateX(-50%); flex-direction: row; gap: 4px; }
  .rail button { height: 44px; min-width: 56px; flex-direction: column; justify-content: center; gap: 7px; }
  .rail button span { display: none; }
  .rail button i { width: 10px; }
  .rail button.on i { width: 20px; }
  .hint { display: none; }
}

/* ---------- téléphone en paysage (et toute fenêtre très basse) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  /* iPhone à encoche couché : la marge latérale s'écarte de l'encoche (viewport-fit=cover) */
  :root { --g: max(clamp(20px, 4vw, 64px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  /* le tour : le texte reste sous l'en-tête et au-dessus des chapitres */
  .tour .beat { left: var(--g); right: auto; bottom: 60px; width: min(460px, 50vw); }
  .tour .statement { margin-top: 8px; font-size: clamp(24px, min(3.4vw, 7.6vh), 32px); }
  .tour .beat p.sub { margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
  .tour .beat .mono { margin-top: 10px; }
  .chapters, .rot { bottom: 16px; }
  /* les cartes : un panneau plus compact et plus large, centré sous l'en-tête, jamais coupé */
  .panel { left: var(--g); right: auto; bottom: auto; top: calc(50% + 26px); transform: translateY(-50%); width: min(380px, 44vw);
    max-height: calc(100% - 72px); overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 8px; border-radius: 16px; }
  .slide h3 { margin-top: 10px; font-size: 21px; }
  .slide p { margin-top: 6px; font-size: 14px; line-height: 1.45; }
  .slide .tags { margin-top: 10px; gap: 6px; }
  .slide .tags li { height: 24px; font-size: 11.5px; padding: 0 9px; }
  .slide .link { margin-top: 2px; }
  .rail { left: auto; right: var(--g); top: calc(50% + 26px); transform: translateY(-50%); flex-direction: column; justify-content: center; gap: 0; }
  .rail button { flex: none; height: 40px; min-width: 44px; flex-direction: row; justify-content: flex-end; gap: 12px; }
  .hint { display: none; }
  /* « Le dessous des cartes » : plus de section collante, les six strates se lisent en entier, la pile reste à côté */
  .layers { height: auto; }
  .l-sticky { position: relative; height: auto; align-items: start; padding: 96px var(--g) 50px; }
  .l-scene { position: sticky; top: 64px; height: min(300px, calc(100svh - 84px)); }
  .stratum { opacity: 1; padding: 10px 14px; }
  .stratum p, .stratum.on p { max-height: none; opacity: 1; margin-top: 6px; }
  .stratum.on p.tools { display: block; }
  .layers .chip { display: inline-flex; }
  .l-caption { margin-top: 16px; }
  /* expertise : les savoir-faire en une colonne */
  .x-caps { grid-template-columns: 1fr; }
  /* le menu tient dans la hauteur : navigation à gauche, les huit cartes à droite, les boutons dessous */
  .sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr auto; column-gap: 40px; padding: 0 var(--g) calc(14px + env(safe-area-inset-bottom)); }
  .sheet-top { grid-column: 1 / -1; }
  .sheet-nav { grid-column: 1; grid-row: 2; }
  .sheet-nav ol { margin-top: 6px; }
  .sheet-nav a { align-items: center; min-height: 44px; padding: 6px 0; font-size: clamp(22px, 6.4vh, 28px); }
  .sheet-cards { grid-column: 2; grid-row: 2; margin-top: 12px; }
  .sheet-cards ul { margin-top: 8px; gap: 4px 14px; }
  .sheet-foot { grid-column: 1 / -1; grid-row: 3; flex-direction: row; align-items: center; gap: 22px; margin-top: 0; padding-top: 12px; }
}
/* téléphone étroit en paysage (moins de 761 px) : le héros passe aussi en deux colonnes */
@media (max-width: 760px) and (max-height: 500px) and (orientation: landscape) {
  .hero { --split: 1; min-height: 100svh; text-align: left; align-items: flex-start; justify-content: center; padding: 64px var(--g) 56px; }
  .hero > .chip, .hero h1, .hero .lead, .hero .ctas { max-width: min(52vw, 560px); }
  .hero h1 { margin-top: 10px; font-size: clamp(26px, min(4.4vw, 8.6vh), 40px); }
  .hero .lead { margin: 10px 0 0; font-size: 15px; }
  .hero .ctas { justify-content: flex-start; margin-top: 16px; }
  .tour .beat { width: min(420px, 54vw); }
  .rail button span { display: none; }
}
/* expertise, colonne étroite (tablette) : l'image d'attente a exactement la taille de la carte 3D qui la remplace
   (la 3D occupe au plus 66 % de la hauteur ou 72 % de la largeur ; la carte fait 75 % de la largeur de l'image) */
@media (max-width: 1100px), (pointer: coarse) {
  .x-wait { max-width: 95.5%; object-fit: contain; }
}
