/* Madelucid agence: brand board 2026-11-09 (cream paper, black ink, one orange) */
:root {
  --paper: #f4eee4; --paper-2: #ebe3d6; --ink: #0a0a0a; --ink-2: #1a1a1a;
  --orange: #ff5722; --cloud: #e6e6e6; --grey: #777; --green: #6ed28b;
  --muted: #55524d; --line: rgba(10,10,10,.14);
  --head: "Space Grotesk", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif; --hand: "Caveat", cursive;
  --ease: cubic-bezier(.22,1,.36,1);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .33 0 0 0 0 .25 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; letter-spacing: -.025em; line-height: 1.02; }
h1 { font-size: clamp(42px, 6.4vw, 92px); }
h2 { font-size: clamp(32px, 4.4vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.015em; line-height: 1.12; }
p + p { margin-top: 1em; }
.hand { font-family: var(--hand); font-weight: 600; color: var(--orange); font-size: 1.35em; line-height: 1.1; }
.kicker { font: 600 12px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--orange); }
.mark { position: relative; white-space: nowrap; }
.mark::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 70 4, 160 3, 297 9 M 20 17 C 110 10, 200 10, 280 14' fill='none' stroke='%23ff5722' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 24px; border-radius: 999px; font: 600 15px/1 var(--head);
  text-decoration: none; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease); box-shadow: 4px 4px 0 var(--orange); }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--orange); }
.btn i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-style: normal; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; padding-right: 24px; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn.orange i { background: var(--ink); color: var(--orange); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--head); letter-spacing: .06em; text-decoration: none; }
.logo svg { width: 34px; height: 30px; }
.nav { display: flex; gap: 26px; }
.nav a { font: 500 14px/1 var(--head); text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.top .btn { height: 42px; font-size: 13.5px; padding-left: 18px; box-shadow: 3px 3px 0 var(--orange); }
.top .btn i { width: 30px; height: 30px; }
.burger { display: none; background: none; border: 0; font: 600 14px var(--head); cursor: pointer; }
@media (max-width: 960px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 16px; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .burger { display: block; }
  .top .btn span { display: none; }
  .top .btn { padding: 0 6px; }
}

/* sections */
section { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.dark { background: var(--ink); color: var(--paper); }
.dark .muted, .dark .lede { color: #b9b3a9; }
.dark .kicker { color: #b9b3a9; }
.dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark .btn.ghost { background: transparent; color: var(--paper); }
.paper2 { background: var(--paper-2); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }

/* hero: centered at every width; copy on top, the art centered under it */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 900px; margin: 0 auto; }
.hero-copy .kicker { justify-content: center; }
.hero-copy .kicker::before { display: none; }
.hero h1 { margin: 22px auto 24px; font-size: clamp(40px, 6vw, 92px); max-width: 13em; }
.hero-copy .lede { margin-inline: auto; }
.hero-copy .btns { justify-content: center; }
.hero-bg { display: block; width: min(1240px, 100%); margin: clamp(8px, 2vw, 24px) auto 0; aspect-ratio: 4/3; object-fit: cover; object-position: 100% 60%; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); max-height: 70vh; }
.hero-bg.centered { aspect-ratio: 21/9; object-position: 50% 50%; max-height: none; }
@media (max-width: 860px) { .hero-bg { aspect-ratio: 4/5; max-height: 72svh; -webkit-mask-image: none; mask-image: none; } .hero-bg.centered { aspect-ratio: 4/5; } }
.page-hero { padding: clamp(48px, 7vw, 100px) 0 clamp(40px, 5vw, 70px); border-bottom: 1px solid var(--line); }
.page-hero .grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 76px); margin: 18px 0 22px; }
.page-hero img { border-radius: 24px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--orange); }
@media (max-width: 860px) { .page-hero .grid { grid-template-columns: 1fr; } }
.crumbs { font: 500 13px/1 var(--head); color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--orange); }

/* story chapters */
.chapter { display: grid; grid-template-columns: 140px 1fr; gap: 32px; padding: 48px 0; border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; }
.chapter .num { font: 700 64px/1 var(--head); color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.dark .chapter { border-color: rgba(244,238,228,.14); }
.dark .chapter .num { -webkit-text-stroke-color: var(--orange); }
.chapter h3 { margin-bottom: 14px; font-size: clamp(26px, 3vw, 40px); }
.chapter p { max-width: 38em; }
@media (max-width: 700px) { .chapter { grid-template-columns: 1fr; gap: 8px; } .chapter .num { font-size: 44px; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper);
  text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.card:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--orange); }
.card .ico { width: 54px; height: 54px; border-radius: 14px; border: 2px solid var(--ink); display: grid; place-items: center; background: var(--tile); box-shadow: 3px 3px 0 var(--ink); }
.card .ico svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .go { margin-top: auto; padding-top: 10px; font: 600 14px var(--head); color: var(--orange); }
.card img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; border: 1.5px solid var(--ink); }
.dark .card { background: var(--ink-2); border-color: #3a3833; }
.dark .card .ico { background: var(--ink); border-color: var(--orange); box-shadow: 3px 3px 0 var(--orange); color: var(--paper); }
.dark .card p { color: #b9b3a9; }

/* the tree */
.tree { position: relative; display: grid; gap: 0; justify-items: center; }
.trunk { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 34px; border: 2px solid var(--ink); border-radius: 22px; background: var(--ink); color: var(--paper); text-align: center; box-shadow: 6px 6px 0 var(--orange); }
.trunk b { font: 700 24px var(--head); }
.tree svg.branches { width: 100%; height: 90px; display: block; }
.tree svg.branches path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 6; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.limbs { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.limb { border: 2px solid var(--ink); border-radius: 20px; background: var(--paper); padding: 20px; display: grid; gap: 12px; align-content: start; }
.limb > a { font: 700 19px/1.15 var(--head); text-decoration: none; display: flex; justify-content: space-between; gap: 8px; }
.limb > a:hover { color: var(--orange); }
.limb .leaves { display: flex; flex-wrap: wrap; gap: 6px; }
.leaf { font: 500 12.5px/1 var(--head); text-decoration: none; padding: 7px 10px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.leaf:hover { background: var(--orange); border-color: var(--orange); }
.fruit { margin-top: 26px; }
@media (max-width: 900px) { .limbs { grid-template-columns: 1fr 1fr; } .tree svg.branches { display: none; } .trunk { margin-bottom: 22px; } }
@media (max-width: 520px) { .limbs { grid-template-columns: 1fr; } }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split img { border-radius: 24px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--orange); }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* lists */
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border: 2px solid var(--ink); border-radius: 6px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.dark .ticks li::before { border-color: var(--orange); }
.steps { counter-reset: s; display: grid; gap: 16px; }
.step { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 24px; border: 2px solid var(--ink); border-radius: 20px; background: var(--paper); }
.step::before { content: counter(s, decimal-leading-zero); font: 700 30px/1 var(--head); color: var(--orange); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); }
.dark .step { background: var(--ink-2); border-color: #3a3833; } .dark .step p { color: #b9b3a9; }

/* duo / partnership */
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.duo .x { align-self: center; font: 700 48px var(--head); color: var(--orange); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo .x { justify-self: center; } }

/* faq */
details { border-top: 1.5px solid var(--ink); padding: 22px 0; }
details:last-child { border-bottom: 1.5px solid var(--ink); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 600 20px/1.3 var(--head); }
summary::after { content: "+"; color: var(--orange); font-size: 28px; line-height: .8; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 14px; color: var(--muted); max-width: 44em; }

/* article */
.prose { font-size: 18.5px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 1.8em 0 .6em; }
.prose p, .prose ul { margin-top: 1em; }
.prose ul { padding-left: 1.2em; } .prose li { margin-top: .4em; }
.prose .tip { margin-top: 1.6em; padding: 22px 24px; border: 2px solid var(--ink); border-radius: 18px; background: var(--tile); box-shadow: 5px 5px 0 var(--orange); }
.meta { margin-top: 18px; font: 500 14px var(--head); color: var(--muted); }

/* cta band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 14em; margin: 18px auto 0; }
.cta-band .btns { justify-content: center; }
.cta-band .lede { margin: 20px auto 0; }

/* panorama + footer */
.pano img { width: 100%; height: clamp(180px, 26vw, 360px); object-fit: cover; }
footer { background: var(--ink); color: var(--paper); padding: 72px 0 40px; }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer h4 { font: 600 12px var(--head); letter-spacing: .16em; text-transform: uppercase; color: #8d877d; margin-bottom: 14px; }
footer a { display: block; text-decoration: none; color: #d9d2c6; padding: 4px 0; font-size: 15px; }
footer a:hover { color: var(--orange); }
footer .base { margin-top: 56px; padding-top: 22px; border-top: 1px solid #2b2a27; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8d877d; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* quiz */
.quiz { border: 2px solid var(--ink); border-radius: 28px; background: var(--tile); padding: clamp(24px, 4vw, 48px); box-shadow: 10px 10px 0 var(--orange); }
.quiz .bar { height: 6px; border-radius: 9px; background: var(--paper-2); overflow: hidden; margin-bottom: 30px; }
.quiz .bar b { display: block; height: 100%; width: 0; background: var(--orange); transition: width .5s var(--ease); }
.quiz h2 { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 26px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.opt { text-align: left; cursor: pointer; padding: 18px 20px; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); font: 600 16px/1.3 var(--head); color: var(--ink); transition: all .25s var(--ease); }
.opt small { display: block; font: 400 14px/1.4 var(--body); color: var(--muted); margin-top: 4px; }
.opt:hover, .opt:focus-visible { background: var(--ink); color: var(--paper); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--orange); outline: none; }
.opt:hover small { color: #cfc8bc; }
.back { margin-top: 22px; background: none; border: 0; font: 500 14px var(--head); color: var(--muted); cursor: pointer; }
.result-path { display: grid; gap: 12px; margin: 22px 0 30px; }
.result-path a { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 16px; text-decoration: none; background: var(--paper); }
.result-path a b { font: 700 22px var(--head); color: var(--orange); min-width: 32px; }
.result-path a:hover { box-shadow: 4px 4px 0 var(--orange); }
form.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form.lead label { display: grid; gap: 6px; font: 600 13px var(--head); }
form.lead input, form.lead textarea, form.lead select { font: 400 16px var(--body); padding: 13px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; }
form.lead .full { grid-column: 1 / -1; }
form.lead .consent { font: 400 13px/1.5 var(--body); color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
form.lead .consent input { width: auto; margin-top: 3px; }
@media (max-width: 600px) { form.lead { grid-template-columns: 1fr; } }

/* reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .tree svg.branches path { animation: none; } }

/* universe: phases, episodes, post-credit */
.phase { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.phase b { color: var(--orange); }
.ep { font: 700 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.postcredit { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 96px) 0; overflow: hidden; position: relative; }
.postcredit::before { content: "SCÈNE POST-GÉNÉRIQUE"; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font: 600 11px var(--head); letter-spacing: .4em; color: #6d675e; white-space: nowrap; }
.postcredit .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.postcredit h2 { font-size: clamp(28px, 3.6vw, 48px); max-width: 16em; }
.postcredit .hand { display: block; margin-bottom: 10px; }
.postcredit .btn { background: var(--orange); border-color: var(--orange); color: var(--ink); box-shadow: 4px 4px 0 var(--paper); }
.postcredit .btn i { background: var(--ink); color: var(--orange); }
@media (max-width: 760px) { .postcredit .wrap { grid-template-columns: 1fr; } }
.cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cast .card img { aspect-ratio: 4/3; }
@media (max-width: 860px) { .cast { grid-template-columns: 1fr; } }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; }
.phases > a { padding: 30px; text-decoration: none; display: grid; gap: 10px; align-content: start; border-right: 2px solid var(--ink); background: var(--paper); transition: background .3s; }
.phases > a:last-child { border-right: 0; }
.phases > a:hover { background: var(--tile); }
.phases .n { font: 700 72px/1 var(--head); color: var(--orange); }
.phases p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } .phases > a { border-right: 0; border-bottom: 2px solid var(--ink); } .phases > a:last-child { border-bottom: 0; } }

.arbre { width: 100%; max-width: 1100px; margin: 0 auto 24px; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); }
.demo-slot { max-width: 900px; margin: 0 auto; }

footer .cols > * { min-width: 0; }
footer a { overflow-wrap: anywhere; }

/* ---------- tighter sections (less scrolling) ---------- */
section.tight { padding: clamp(44px, 6vw, 84px) 0; }
.sec-head { margin-bottom: clamp(22px, 3vw, 40px); }
.postcredit { padding: clamp(40px, 5vw, 64px) 0; }
.pano img { height: clamp(140px, 18vw, 240px); }
footer { padding: 52px 0 32px; }
.beats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.beat { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 18px; border: 1.5px solid rgba(244,238,228,.16); }
.beat .num { font: 700 30px/1 var(--head); color: var(--orange); }
.beat b { font: 700 18px/1.2 var(--head); }
.beat p { color: #b9b3a9; font-size: 15px; }
section:not(.dark) .beat { border-color: var(--ink); } section:not(.dark) .beat p { color: var(--muted); }

/* ---------- forfaits ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; gap: 8px; align-items: center; }
.own { display: inline-block; flex: none; font: 600 11.5px/1 var(--head); padding: 5px 9px; border-radius: 99px; white-space: nowrap; }
.own-adovic { background: #d9c19e; color: #3a2f20; }
.own-madelucid { background: var(--ink); color: var(--paper); }
.own-duo { background: var(--orange); color: var(--ink); }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.pkg { position: relative; display: grid; gap: 12px; padding: 24px; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); }
.pkg.featured { box-shadow: 8px 8px 0 var(--orange); }
.pkg h3 { font-size: 22px; }
.price { font: 700 34px/1 var(--head); letter-spacing: -.02em; }
.price small { font: 500 14px var(--body); color: var(--muted); margin-left: 4px; }
.price .from { display: block; font: 600 11px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.feat { list-style: none; display: grid; gap: 8px; }
.feat li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; font-size: 14.5px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pkg-month summary { font-size: 15px; }
.pkg-month { border: 0; padding: 4px 0 0; } .pkg-month:last-child { border: 0; }
.month { display: grid; gap: 8px; margin-top: 10px; }
.wk { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); }
.wk-n { font: 600 11px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wk ul { list-style: none; display: grid; gap: 4px; font-size: 13px; }
.wk li b { display: inline-block; min-width: 72px; font: 600 11px var(--head); }
.wk .t-adovic b { color: #8a6a3b; } .wk .t-madelucid b { color: var(--ink); } .wk .t-client b { color: #1f4fa3; } .wk .t-auto b { color: var(--grey); }
.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.addon { display: flex; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.addon p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.addon-m { display: grid; justify-items: end; align-content: start; gap: 6px; text-align: right; }
.addon-m small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.proj { display: grid; gap: 10px; align-content: start; padding: 20px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); text-decoration: none; }
.proj:hover { box-shadow: 6px 6px 0 var(--orange); }
.proj p { color: var(--muted); font-size: 14.5px; }
.proj .price { font-size: 26px; }
.partner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; border-radius: 22px; background: var(--ink); color: var(--paper); }
.partner p { color: #b9b3a9; max-width: 40em; } .partner .price small { color: #b9b3a9; }
@media (max-width: 700px) { .partner { grid-template-columns: 1fr; } }

/* ---------- rapport ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stats div { display: grid; gap: 8px; }
.stats b { font: 700 clamp(36px, 4.4vw, 56px)/1 var(--head); color: var(--orange); letter-spacing: -.02em; }
.stats span { color: #b9b3a9; font-size: 15px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 15em) 1fr 3em 3.4em; gap: 12px; align-items: center; font-size: 14.5px; }
.bar-row .bt { height: 12px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar-row .bt i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.bar-row b { font-family: var(--head); text-align: right; } .bar-row small { color: var(--muted); }
@media (max-width: 600px) { .bar-row { grid-template-columns: 1fr 3em 3.4em; } .bar-row .bl { grid-column: 1 / -1; } .bar-row .bt { grid-column: 1; } }

/* ---------- quiz additions ---------- */
.opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--orange); }
.opt[aria-pressed="true"] small { color: #cfc8bc; }
.quiz .feat { margin-top: 14px; } .quiz .price { margin: 12px 0 0; }

/* ---------- Adovic Media page, in Adovic's own kit (sand on warm black, Lexend Exa) ---------- */
@font-face { font-family: "Lexend Exa"; src: url(/fonts/LexendExa.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
.adv { background: #121110; color: #f5f2ed; padding: clamp(40px, 6vw, 80px) 0; }
.adv .crumbs, .adv .crumbs a { color: #ada79f; }
.adv-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.adv-logo { width: min(360px, 70%); margin: 26px 0 8px; }
.adv-tag { font: 500 12px/1.4 "Lexend Exa", var(--head); letter-spacing: .18em; text-transform: uppercase; color: #d9c19e; }
.adv h1 { font: 600 clamp(30px, 3.8vw, 52px)/1.08 "Lexend Exa", var(--head); letter-spacing: -.01em; margin: 22px 0 18px; }
.adv h1 em { font-style: normal; color: #d9c19e; }
.adv-lede { color: #ada79f; font-size: 17px; max-width: 34em; }
.adv .btn.adv-btn { background: #d9c19e; border-color: #d9c19e; color: #17130e; box-shadow: none; }
.adv .btn.adv-btn i { background: #17130e; color: #d9c19e; }
.adv .btn.adv-ghost { color: #f5f2ed; border-color: rgba(245,242,237,.4); }
.adv-art { border-radius: 26px; border: 1px solid rgba(255,244,230,.12); filter: sepia(.15); }
.adv-card { background: #121110 !important; color: #f5f2ed; border-color: #121110 !important; }
.adv-card .kicker { color: #d9c19e; } .adv-card .kicker::before { background: #d9c19e; }
@media (max-width: 860px) { .adv-grid { grid-template-columns: 1fr; } }
.lienpro { border-style: dashed; }

/* ---------- parallax hero: background, terrain, characters ---------- */
.px { position: relative; width: 100%; height: clamp(300px, 46vw, 640px); max-height: calc(100svh - 300px); min-height: 300px; overflow: hidden; margin-top: clamp(4px, 1.5vw, 18px); }
.px-l { position: absolute; left: 50%; will-change: transform; user-select: none; pointer-events: none; }
.px-bg { bottom: 0; width: max(118%, 1100px); margin-left: calc(max(118%, 1100px) / -2); }
.px-terrain { bottom: -2%; width: max(112%, 1000px); margin-left: calc(max(112%, 1000px) / -2); }
.px-duo { bottom: 3%; height: 92%; width: auto; translate: -50% 0; }
.px-l { opacity: 0; transition: opacity 1s var(--ease); } .px.on .px-l, .px-l { opacity: 1; }
.px.on .px-duo { animation: rise 1.1s var(--ease) both; }
@keyframes rise { from { opacity: 0; translate: -50% 6%; } to { opacity: 1; translate: -50% 0; } }
.px::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--paper), transparent 9%, transparent 91%, var(--paper)); }
@media (max-width: 860px) { .px { height: 70vw; max-height: none; } .px-duo { height: 90%; } .px-bg { width: 190%; margin-left: -95%; } .px-terrain { width: 170%; margin-left: -85%; } }
/* hero fits one screen: compact copy, the stage takes what's left */
.hero { padding-top: clamp(20px, 3vh, 44px); }
.hero h1 { font-size: clamp(36px, min(4.6vw, 7.4vh), 72px); max-width: 16em; margin: 12px auto 14px; }
.hero-copy .lede { font-size: clamp(16px, 1.3vw, 19px); max-width: 40em; }
.hero-copy .btns { margin-top: 18px; }
.px { height: clamp(300px, calc(100svh - 68px - 330px - 3vh), 680px); max-height: none; }
@media (max-width: 860px) { .px { height: 78vw; } }
.px .px-l { max-width: none; }

/* ---------- forfaits, Apple-simple ---------- */
.ap-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(20px, 3vw, 36px); text-align: center; }
.ap-hero h1 { font-size: clamp(40px, 6vw, 84px); margin: 14px 0 14px; }
.ap-hero .kicker { justify-content: center; } .ap-hero .kicker::before { display: none; }
.ap-hero .lede { margin: 0 auto; }
.aps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.ap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 26px 28px; border-radius: 26px; background: var(--tile); border: 1.5px solid var(--line); }
.ap.featured { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--orange); }
.ap-badge { position: absolute; top: -13px; left: 50%; translate: -50% 0; font: 700 11px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; background: var(--orange); color: var(--ink); padding: 7px 12px; border-radius: 99px; white-space: nowrap; }
.ap h3 { font-size: 30px; letter-spacing: -.02em; }
.ap-name { color: var(--muted); margin-top: 6px; }
.ap-price { font: 700 clamp(40px, 4vw, 52px)/1 var(--head); letter-spacing: -.03em; margin-top: 22px; }
.ap-price small { font: 500 16px var(--body); color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.ap-yr { color: var(--muted); font-size: 14px; margin-top: 8px; }
.ap .btn { margin: 20px 0 22px; }
.ap-lead { font: 600 14px var(--head); align-self: stretch; text-align: left; padding-top: 18px; border-top: 1px solid var(--line); }
.ap-list { list-style: none; display: grid; gap: 10px; margin-top: 12px; align-self: stretch; text-align: left; font-size: 15px; }
.ap-list li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.ap-list li::before { content: ""; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%230a0a0a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.ap-terms { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.ap-launch { display: grid; grid-template-columns: 1.4fr .6fr; gap: 32px; align-items: center; }
.ap-launch h2 { margin: 12px 0 12px; }
.ap-launch-p { text-align: center; } .ap-launch-p .ap-price { margin-top: 0; } .ap-launch-p .btn { margin-top: 16px; }
.ap-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ap-opt { display: grid; gap: 6px; padding: 20px; border-radius: 18px; background: var(--tile); border: 1.5px solid var(--line); }
.ap-opt b { font: 700 18px var(--head); } .ap-opt span { color: var(--muted); font-size: 14.5px; } .ap-opt em { font: 700 18px var(--head); font-style: normal; margin-top: 4px; }
@media (max-width: 900px) { .aps, .ap-opts { grid-template-columns: 1fr; } .ap-launch { grid-template-columns: 1fr; } .aps { gap: 24px; } }

/* home: how it works + prices (2026-11-09) */
.how .card .num { font: 700 30px/1 var(--head); color: var(--orange); }
.how .card h3 { font-size: clamp(20px, 1.8vw, 24px); }
.prices > a { gap: 8px; }
.prices h3 { font: 700 20px/1.2 var(--head); }
.prices .n { font-size: clamp(38px, 4vw, 54px); color: var(--ink); white-space: nowrap; }
.prices .n small { font: 600 15px var(--head); color: var(--muted); margin-left: 4px; }
@media (max-width: 860px) {
  .how .card { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; row-gap: 4px; padding: 16px; align-items: start; }
  .how .card img { grid-row: 1 / 4; width: 112px; aspect-ratio: 1; }
  .how .card .num { font-size: 20px; }
  .how .card h3 { font-size: 18px; }
  .how .card p { font-size: 14.5px; }
}

/* ===== home hero: the Madelucid board (hero/: SVG circuit + Paper shader + three.js) ===== */
.hx { position: relative; isolation: isolate; overflow: hidden; background: #060607; color: var(--paper); padding: 0;
  height: clamp(700px, calc(100svh - 68px), 1040px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hx-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 50% 64%, #2a1208 0%, #0d0907 52%, #060607 100%); }
.hx-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--ease); }
.hx-poster { position: absolute; left: 50%; bottom: -14%; width: min(1500px, 132%); max-width: none; height: auto;
  transform: translateX(-50%) perspective(1500px) rotateX(46deg); transform-origin: 50% 100%; opacity: .85;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); }
.hx.gl-on .hx-gl { opacity: 1; }
.hx.gl-on .hx-poster { opacity: 0; transition: opacity .8s; }
.hx-copy { position: relative; z-index: 2; padding-top: clamp(30px, 5.5vh, 70px); }
.hx-copy::before { content: ""; position: absolute; inset: -60px -12% -50px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 58% at 50% 46%, rgba(6,6,7,.82), rgba(6,6,7,.5) 55%, rgba(6,6,7,0) 78%); }
.hx .kicker { color: #a39c91; justify-content: center; }
.hx .kicker::before { display: none; }
.hx h1 { margin: 12px auto 12px; font-size: clamp(30px, 3.5vw, 54px); max-width: 14em; color: #f4eee4; }
.hx .lede { margin-inline: auto; color: #c2bbb0; max-width: 32em; font-size: clamp(14.5px, 1.05vw, 16.5px); line-height: 1.5; }
.hx .btns { justify-content: center; margin-top: 26px; }
.hx .btn.orange { box-shadow: 4px 4px 0 #f4eee4; }
.hx .btn.orange:hover { box-shadow: 6px 6px 0 #f4eee4; }
.hx .btn.ghost { color: var(--paper); border-color: rgba(244,238,228,.5); background: rgba(6,6,7,.35); }
.hx .btn.ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
/* sector tags: a row by default (no JS, no WebGL, phones); pinned to the stores in 3D when the board runs */
.hx-tags { position: absolute; left: 0; right: 0; bottom: clamp(18px, 3vh, 34px); z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 0 16px; opacity: 0; transition: opacity .6s var(--ease); }
.hx.gl-on .hx-tags, .hx.no-gl .hx-tags { opacity: 1; }
.hx-tag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 7px 7px 13px; border-radius: 999px;
  font: 600 13.5px/1 var(--head); color: var(--paper); text-decoration: none; white-space: nowrap;
  background: rgba(12,10,9,.74); border: 1px solid rgba(255,87,34,.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .25s, border-color .25s, box-shadow .25s; }
.hx-tag i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-style: normal; }
.hx-tag i svg { width: 13px; height: 13px; }
.hx-tag:hover, .hx-tag:focus-visible { background: rgba(255,87,34,.18); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,87,34,.14); outline: none; }
.hx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.hx-outs { display: none; }
.hx-out { font: 600 10.5px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: rgba(244,238,228,.6); padding: 5px 8px; border: 1px solid rgba(244,238,228,.16); border-radius: 6px; background: rgba(6,6,7,.6); }
@media (min-width: 761px) {
  .hx.gl-on .hx-tags { inset: 0; padding: 0; display: block; pointer-events: none; }
  .hx.gl-on .hx-tag, .hx.gl-on .hx-out { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; }
  .hx.gl-on .hx-outs { display: contents; }
  .hx.gl-on .hx-out { pointer-events: none; }
}
@media (max-width: 760px) {
  .hx { height: auto; min-height: calc(100svh - 68px); padding-bottom: 150px; }
  .hx h1 { font-size: clamp(28px, 7.6vw, 38px); }
  .hx .lede { font-size: 15px; }
  .hx-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; bottom: 14px; }
  .hx-tag { font-size: 11.5px; padding: 6px 6px 6px 10px; gap: 6px; white-space: normal; text-align: left; line-height: 1.15; justify-content: space-between; }
  .hx-tag b { font-weight: 600; flex: 1; }
  .hx-dot { display: none; }
  .hx-tag i { width: 20px; height: 20px; flex: none; }
}
/* the header goes ink on the home page, so the hero reads as one block */
body:has(.hx) .top { background: rgba(6,6,7,.8); border-bottom-color: rgba(244,238,228,.08); color: var(--paper); }
body:has(.hx) .top .logo svg path:first-child { fill: #f4eee4; }
body:has(.hx) .nav a { color: #a39c91; }
body:has(.hx) .nav a:hover, body:has(.hx) .nav a[aria-current] { color: var(--paper); }
body:has(.hx) .top .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
body:has(.hx) .burger { color: var(--paper); }
@media (max-width: 960px) { body:has(.hx) .nav { background: #0b0b0c; border-bottom-color: rgba(244,238,228,.1); } body:has(.hx) .nav a { color: var(--paper); border-top-color: rgba(244,238,228,.08); } }

/* ===== how-it-works band: the Madelucid ship (hero/src/ship.js, baked lighting) ===== */
.sx-sec { overflow: hidden; }
.sx-sec .sec-head { margin-bottom: 0; }
.sx { position: relative; height: clamp(220px, 30vw, 420px); margin: clamp(-10px, -1vw, 0px) 0 clamp(6px, 1.5vw, 18px);
  background: radial-gradient(42% 60% at 50% 55%, rgba(255,87,34,.10), rgba(255,87,34,0) 70%); }
.sx canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--ease); }
.sx.gl-on canvas { opacity: 1; }
.sx.no-gl { display: none; }
@media (max-width: 760px) { .sx { height: 210px; } }

/* ===== home story, chapters 3–6: dark sections + baked scenes (hero/src/stage.js) ===== */
.scn-gl { position: fixed; inset: 0 auto auto 0; z-index: 2; pointer-events: none; display: block; }
.scn { height: clamp(230px, 30vw, 430px); margin: 0 0 clamp(14px, 2vw, 26px); border-radius: 22px;
  background: radial-gradient(46% 62% at 50% 62%, rgba(255,87,34,.13), rgba(255,87,34,0) 72%); }
.narrow .scn { height: clamp(220px, 34vw, 380px); }
.scn-off .scn { display: none; }
@media (max-width: 760px) { .scn { height: 230px; } }
.st { background: #060607; border-top: 1px solid rgba(244,238,228,.06); }
.st .sec-head { margin-bottom: clamp(6px, 1vw, 14px); }
.st .phases { border-color: #2c2a27; background: #0d0c0c; }
.st .phases > a { background: transparent; border-color: #2c2a27; color: var(--paper); transition: background .35s, box-shadow .35s; }
.st .phases > a:hover, .st .phases > a.on { background: rgba(255,87,34,.09); box-shadow: inset 0 3px 0 var(--orange); }
.st .phases p, .st .ap-terms, .st details p { color: #b9b3a9; }
.st .phases .n small { color: #b9b3a9; }
.st .trunk { background: #121110; border-color: var(--orange); box-shadow: 0 0 34px rgba(255,87,34,.22); }
.st .tree svg.branches path { stroke: rgba(255,87,34,.6); }
.st .limb { background: #0d0c0c; border-color: #2c2a27; color: var(--paper); transition: border-color .3s, box-shadow .3s; }
.st .limb:hover { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,87,34,.12); }
.st .leaf { background: #171514; border-color: #2c2a27; color: #d8d2c8; }
.st .leaf:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.st details, .st details:last-child { border-color: #2c2a27; }
.st .btn.orange { box-shadow: 4px 4px 0 var(--paper); }
.st a { color: inherit; }
.st .prices .n { color: var(--paper); }
.st .prices .n small { color: #b9b3a9; }
.sx-sec { background: #060607; }
.sx-sec .how .card { background: #0d0c0c; border-color: #2c2a27; }
.sx-sec .how .card img { border: 0; border-radius: 0; aspect-ratio: 1; object-fit: contain; width: min(78%, 300px); margin: -6px auto 0;
  filter: drop-shadow(0 18px 26px rgba(255,87,34,.16)); }
@media (max-width: 860px) { .sx-sec .how .card img { width: 112px; margin: 0; } }

/* ===== Adovic page: same direction as the home (black, graphite, Adovic sand + one orange) ===== */
.adv { background: #060607; padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 40px); }
.adv-scn { height: clamp(300px, 36vw, 520px); margin: 0; background: radial-gradient(50% 60% at 50% 60%, rgba(217,193,158,.14), rgba(217,193,158,0) 72%); }
.adv-st .kicker::before { background: #d9c19e; }
.adv-st .duo { margin-top: 4px; }
.adv-st .card { background: #0d0c0c !important; border-color: #2c2a27 !important; color: var(--paper); }
.adv-st .card.adv-card { border-color: rgba(217,193,158,.45) !important; }
.adv-st .card p, .adv-st .ticks li { color: #d8d2c8; }
.adv-st .ticks li::before { border-color: var(--orange); }
.adv-st .adv-card .ticks li::before { background-color: #d9c19e; border-color: #d9c19e; }
.adv-st .duo .x { color: #d9c19e; }
.adv-st .beat { background: #0d0c0c; border-color: #2c2a27; transition: border-color .35s, box-shadow .35s, background .35s; }
.adv-st .beat.on { border-color: var(--orange); background: rgba(255,87,34,.09); box-shadow: inset 0 3px 0 var(--orange); }
body:has(.adv) .top { background: rgba(6,6,7,.8); border-bottom-color: rgba(244,238,228,.08); color: var(--paper); }
body:has(.adv) .top .logo svg path:first-child { fill: #f4eee4; }
body:has(.adv) .nav a { color: #a39c91; }
body:has(.adv) .nav a:hover, body:has(.adv) .nav a[aria-current] { color: var(--paper); }
body:has(.adv) .top .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
body:has(.adv) .burger { color: var(--paper); }
@media (max-width: 960px) { body:has(.adv) .nav { background: #0b0b0c; } body:has(.adv) .nav a { color: var(--paper); border-top-color: rgba(244,238,228,.08); } }
@media (max-width: 860px) { .adv-scn { height: 260px; } }

/* ===== the whole platform, one direction: night everywhere (2026-11-13) =====
   The root tokens flip to night. Blocks that were already dark keep the day tokens they were written with. */
:root { --paper: #070708; --paper-2: #0c0b0b; --ink: #f4eee4; --ink-2: #e6dfd3; --muted: #b9b3a9; --line: rgba(244,238,228,.13); --tile: #121110; --edge: #2c2a27; color-scheme: dark; }
.dark, .hx, .st, .sx-sec, .adv, footer, .postcredit { --paper: #f4eee4; --paper-2: #ebe3d6; --ink: #0a0a0a; --ink-2: #1a1a1a; --line: rgba(10,10,10,.14); }
.dark { background: #0b0a0a; }
body::before { display: none; }
.top .logo svg path:first-child { fill: #f4eee4; }
.top .btn { box-shadow: 3px 3px 0 var(--orange); }
.card, .limb, .step, .quiz, .opt, .phases, .phases > a, .prose .tip, .result-path a, details, details:last-child, .page-hero, .beat { border-color: var(--edge); }
.card { background: var(--tile); }
.card img, .split img, .page-hero img { border-color: var(--edge); box-shadow: 8px 8px 0 rgba(255,87,34,.85); }
.trunk { background: #121110; color: #f4eee4; border-color: var(--orange); }
.tree svg.branches path { stroke: rgba(255,87,34,.6); }
.limb, .step, .opt, .result-path a { background: var(--tile); }
.leaf { background: #171514; border-color: var(--edge); }
.opt:hover, .opt:focus-visible { background: rgba(255,87,34,.14); color: var(--ink); border-color: var(--orange); }
.chapter .num { -webkit-text-stroke-color: var(--orange); }
.pano img { filter: brightness(.82) contrast(1.05); }
.mark::after { z-index: 0; opacity: .9; mix-blend-mode: screen; }
input, select, textarea { background: #0d0c0c; color: var(--ink); border-color: var(--edge); }
/* scenes outside the home page */
.scn-art { height: clamp(260px, 30vw, 430px); margin: 0; }
.scn-wrap { margin-top: clamp(8px, 2vw, 22px); }
.scn-band { height: clamp(220px, 28vw, 400px); }
.page-hero .grid > div:last-child { min-width: 0; }
.page-hero .grid:has(.scn-art) { grid-template-columns: 1fr 1fr; }
.scn-art { height: clamp(300px, 34vw, 500px); }
@media (max-width: 860px) { .page-hero .grid:has(.scn-art) { grid-template-columns: 1fr; } .scn-art { height: 250px; } }
.pano img { filter: none; object-position: 50% 42%; }
.cast .card img[src*='step-'] { border: 0; object-fit: contain; aspect-ratio: 4/3; filter: drop-shadow(0 16px 24px rgba(255,87,34,.16)); }
.cast .card img[src*='step-'] { box-shadow: none; }

/* ===== the statement: one bold line per page, under the title ===== */
.stmt { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px; max-width: 100%;
  font: 700 clamp(19px, 2.1vw, 30px)/1.15 var(--head); letter-spacing: -.015em; color: var(--orange); }
.stmt::before { content: ""; flex: none; width: 34px; height: 3px; border-radius: 2px; background: var(--orange); box-shadow: 0 0 14px rgba(255,87,34,.7); }
h1 + .stmt { margin-top: -6px; }
.hx .stmt { margin: -2px auto 10px; justify-content: center; font-size: clamp(15px, 1.25vw, 19px); }
.hx .stmt::after { content: ""; flex: none; width: 34px; height: 3px; border-radius: 2px; background: var(--orange); box-shadow: 0 0 14px rgba(255,87,34,.7); }
.adv .stmt { color: #d9c19e; } .adv .stmt::before { background: #d9c19e; box-shadow: 0 0 14px rgba(217,193,158,.6); }
.page-hero .stmt + .lede, .stmt + p { margin-top: 0; }
@media (max-width: 760px) { .stmt { gap: 10px; } .stmt::before, .hx .stmt::after { width: 20px; } }
/* header: fixed night colours on every page (the per-page rules above used tokens that have since flipped) */
.top, body:has(.hx) .top, body:has(.adv) .top { background: rgba(6,6,7,.82); border-bottom-color: rgba(244,238,228,.08); color: #f4eee4; }
.top .nav a, body:has(.hx) .nav a, body:has(.adv) .nav a { color: #a39c91; }
.top .nav a:hover, .top .nav a[aria-current], body:has(.hx) .nav a:hover, body:has(.hx) .nav a[aria-current], body:has(.adv) .nav a:hover, body:has(.adv) .nav a[aria-current] { color: #f4eee4; }
.top .btn, body:has(.hx) .top .btn, body:has(.adv) .top .btn { background: #f4eee4; color: #0a0a0a; border-color: #f4eee4; }
.top .btn i { background: var(--orange); color: #0a0a0a; }
.top .burger, body:has(.hx) .burger, body:has(.adv) .burger { color: #f4eee4; }
@media (max-width: 960px) { .top .nav, body:has(.hx) .nav, body:has(.adv) .nav { background: #0b0b0c; border-bottom-color: rgba(244,238,228,.1); } .top .nav a, body:has(.hx) .nav a, body:has(.adv) .nav a { color: #f4eee4; border-top-color: rgba(244,238,228,.08); } }
.scn[data-scene='board'] { background: radial-gradient(44% 56% at 50% 62%, rgba(255,87,34,.16), rgba(255,87,34,0) 72%); }
.scn-art[data-scene='board'] { height: clamp(320px, 38vw, 560px); }
.scn-band[data-scene='board'] { height: clamp(260px, 34vw, 480px); }

/* ---- Adovic Media landing (/adovic/): their logo in the header, their sand as the accent colour ---- */
body.brand-adovic { --orange: #d9c19e; }
body.brand-adovic .top { background: rgba(10,9,8,.86); border-bottom-color: rgba(217,193,158,.22); }
.blogo { display: flex; align-items: center; gap: 12px; }
.blogo img { display: block; height: 30px; width: auto; }
.blogo .bx { display: flex; align-items: center; gap: 8px; color: #8f887c; font: 500 13px/1 var(--head); text-decoration: none; opacity: .8; transition: opacity .2s; }
.blogo .bx:hover { opacity: 1; } .blogo .bx svg { width: 22px; height: auto; }
body.brand-adovic .top .nav a { font-family: "Lexend Exa", var(--head); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
body.brand-adovic .top .nav a:hover { color: #d9c19e; }
body.brand-adovic .top .btn { background: #d9c19e; border-color: #d9c19e; color: #17130e; box-shadow: none; }
body.brand-adovic .top .btn i { background: #17130e; color: #d9c19e; }
body.brand-adovic .adv { background: radial-gradient(70% 90% at 78% 40%, #1b1712 0%, #0b0a09 62%); }
body.brand-adovic .adv-logo { margin-top: 6px; }
body.brand-adovic .adv h1 { font-size: clamp(30px, 3.6vw, 50px); }
body.brand-adovic .st, body.brand-adovic .adv-st { background: #0b0a09; }
body.brand-adovic .adv-st h2 { font-family: "Lexend Exa", var(--head); font-weight: 600; letter-spacing: -.01em; font-size: clamp(24px, 2.7vw, 38px); }
body.brand-adovic .adv-st .kicker { color: #d9c19e; font-family: "Lexend Exa", var(--head); }
body.brand-adovic .adv-st .beat.on { border-color: rgba(217,193,158,.55); background: rgba(217,193,158,.07); box-shadow: inset 0 3px 0 #d9c19e; }
body.brand-adovic .adv-st .beat .num { color: #d9c19e; }
body.brand-adovic .adv-st .ticks li::before { border-color: #d9c19e; }
body.brand-adovic .adv-st .btn.adv-btn { background: #d9c19e; border-color: #d9c19e; color: #17130e; box-shadow: none; }
body.brand-adovic .adv-st .btn.adv-btn i { background: #17130e; color: #d9c19e; }
body.brand-adovic .adv-st .btn.adv-ghost { color: #f5f2ed; border-color: rgba(245,242,237,.4); }
/* Madelucid keeps its own orange inside an Adovic page */
body.brand-adovic .mdl-card { --orange: #ff5722; }
body.brand-adovic .mdl-card .kicker { color: #ff5722; } body.brand-adovic .mdl-card .kicker::before { background: #ff5722; }
.adv-end { margin-top: clamp(36px, 5vw, 64px); text-align: center; } .adv-end .btns { justify-content: center; margin-top: 18px; }
@media (max-width: 760px) { .blogo img { height: 24px; } .blogo .bx span { display: none; } }

/* ===== light mode (2026-11-14) =====
   The design is written night-first with many fixed colours. Light mode flips the whole document once
   (invert + half-turn of hue: dark becomes light, hues stay), then flips media back so photos and the
   3D canvases show their true pixels. The 3D scenes draw their own daylight look (uniform uLight in hero/src).
   html[data-theme] is set before first paint: the system preference, or the visitor's choice (header button). */
.tgl { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(244,238,228,.22); background: transparent; color: #f4eee4; cursor: pointer; transition: border-color .2s, background .2s; }
.tgl:hover { border-color: var(--orange); background: rgba(255,87,34,.12); }
html[data-theme="light"] { filter: invert(1) hue-rotate(180deg); background: #070708; color-scheme: light; }
html[data-theme="light"] :is(img, video, canvas, iframe) { filter: invert(1) hue-rotate(180deg); }
/* logos and the board poster are drawings, not photos: they follow the page */
html[data-theme="light"] :is(.adv-logo, .blogo img, .hx-poster, img[src$=".svg"]) { filter: none; }
/* the accent keeps its exact colour: these values come out as #ff5722 / the Adovic sand tone after the flip */
html[data-theme="light"] { --orange: #ff6833; }
html[data-theme="light"] .pano img { filter: invert(1) hue-rotate(180deg) brightness(1.05); }
html[data-theme="light"] .mark::after { mix-blend-mode: normal; }
html[data-theme="light"] .scn, html[data-theme="light"] .sx, html[data-theme="light"] .adv-scn { background: none; }
html[data-theme="light"] .hx-stage { background: #060607; }
