/* SOAL — soal.ma
   Layout: alternating night (#0B0B0F) and warm-white bands; one 3D hero, then explained schemas.
   Tokens follow the SOAL brand guide: noir + orange « Braise », Sora / IBM Plex. */

@font-face { font-family: "Sora"; src: url("../fonts/sora-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plexmono-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plexarabic-700.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --noir: #0b0b0f;
  --noir-2: #16161c;
  --noir-3: #1f1f27;
  --line-d: #2b2b35;
  --blanc: #faf8f5;
  --white: #ffffff;
  --sable: #f2e6d6;
  --orange: #ff6a13;
  --orange-ink: #b84300;
  --orange-ink-d: #ff8a42;
  --orange-soft: #fff0e6;
  --muted: #5e5b57;
  --muted-d: #a8a39c;
  --line: #e6e1d9;
  --success: #157a46;
  --success-d: #4ade80;
  --danger: #c4291d;

  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--noir); color: var(--white); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar { font-family: var(--ar); font-weight: 700; letter-spacing: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.band--light { background: var(--blanc); color: var(--noir); }
.band--sable { background: var(--sable); color: var(--noir); }
.band--dark { background: var(--noir); color: var(--white); }

.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); display: inline-flex; align-items: center; gap: 10px; }
.band--dark .eyebrow, .hero .eyebrow { color: var(--orange-ink-d); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.h2 { font-size: clamp(34px, 5vw, 60px); margin-top: 18px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 62ch; margin-top: 22px; color: var(--muted); }
.band--dark .lead { color: var(--muted-d); }
.head { display: grid; gap: 0; max-width: 820px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r-md); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; white-space: nowrap; }
.btn--primary { background: var(--orange); color: var(--noir); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(255, 106, 19, .7); }
.btn--ghost { border-color: #4a4a55; color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); }
.band--light .btn--ghost, .band--sable .btn--ghost { border-color: #8a857e; color: var(--noir); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(11, 11, 15, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-d); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; color: var(--muted-d); font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--white); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-d); border-radius: var(--r-md); width: 44px; height: 44px; cursor: pointer; }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--white); margin: 4px auto; }
@media (max-width: 900px) {
  .nav__links { position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; gap: 0; background: var(--noir); border-bottom: 1px solid var(--line-d); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s var(--ease); }
  .nav__links a { display: block; padding: 14px 0; font-size: 18px; color: var(--white); border-bottom: 1px solid var(--line-d); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__toggle { display: block; }
  .nav .btn--nav { display: none; }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; padding-block: 140px 90px; overflow: hidden; background: radial-gradient(1200px 700px at 78% 45%, #1a1210 0%, var(--noir) 60%); }
.hero__canvas { position: absolute; inset: 0; z-index: 0; }
.hero__canvas canvas { width: 100%; height: 100%; }
.hero__labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__label { position: absolute; translate: -50% -100%; left: 0; top: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--white); background: rgba(22, 22, 28, .78); border: 1px solid var(--line-d); padding: 4px 9px; border-radius: var(--r-sm); white-space: nowrap; will-change: transform; opacity: 0; transition: opacity .6s; }
.hero__label.is-tool { border-color: rgba(255, 106, 19, .5); }
.hero__label i { font-style: normal; color: var(--muted-d); margin-right: 6px; }
.hero__fallback { position: absolute; right: -6%; top: 50%; width: min(52vw, 640px); transform: translateY(-50%); opacity: .95; }
.has-webgl .hero__fallback { display: none; }
.hero__inner { position: relative; z-index: 2; pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__copy { max-width: 600px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 96px); letter-spacing: -0.045em; line-height: .96; margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__sub { font-size: clamp(18px, 1.7vw, 21px); color: #cfcac3; margin-top: 26px; max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 48px; font-size: 14px; color: var(--muted-d); }
.hero__meta .ar { font-size: 22px; color: var(--white); }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 42px; border: 1.5px solid #55555f; border-radius: 14px; transform: translateX(-50%); }
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: var(--orange); transform: translateX(-50%); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }
@media (max-width: 900px) {
  .hero { align-items: flex-end; min-height: 100svh; padding-top: 52vh; }
  .hero__canvas { bottom: 38%; }
  .hero__labels { display: none; }
  .hero__scroll { display: none; }
}

/* Logos strip */
.strip { border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); background: var(--noir); overflow: hidden; }
.strip__track { display: flex; gap: 56px; padding-block: 22px; width: max-content; animation: marquee 38s linear infinite; }
.strip__item { font-family: var(--display); font-weight: 700; font-size: 20px; color: #8d8880; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.strip__item::after { content: ""; width: 8px; height: 8px; background: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

/* How it works — interactive schema */
.flow { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 56px; align-items: start; }
@media (max-width: 1000px) { .flow { grid-template-columns: 1fr; } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
@media (max-width: 700px) { .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; } .tab { flex: none; } }
.tab { border: 1px solid var(--line); background: var(--white); color: var(--noir); border-radius: var(--r-md); padding: 10px 16px; font-size: 15px; font-weight: 600; cursor: pointer; transition: .2s; }
.tab:hover { border-color: var(--noir); }
.tab[aria-selected="true"] { background: var(--noir); color: var(--white); border-color: var(--noir); }
.tab small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.tab[aria-selected="true"] small { color: var(--orange-ink-d); }
.diagram { margin: 0; background: var(--noir); border-radius: var(--r-lg); padding: clamp(10px, 2vw, 22px); overflow: hidden; position: relative; }
.diagram svg { width: 100%; height: auto; }
.diagram .col-title { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; fill: var(--muted-d); text-transform: uppercase; }
.dnode rect { fill: var(--noir-2); stroke: var(--line-d); stroke-width: 1; transition: fill .3s, stroke .3s; }
.dnode text { fill: #cfcac3; font-family: var(--body); font-size: 14px; font-weight: 600; transition: fill .3s; }
.dnode .sub { font-family: var(--mono); font-size: 10px; font-weight: 400; fill: #77736d; }
.dnode.is-active rect { fill: #2a1508; stroke: var(--orange); }
.dnode.is-active text { fill: var(--white); }
.dpath { fill: none; stroke: #2e2e38; stroke-width: 1.5; transition: stroke .3s; }
.dpath.is-active { stroke: var(--orange); stroke-dasharray: 5 6; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.core-ring { fill: none; stroke: #3a2616; stroke-width: 1; }
.core-disc { fill: var(--orange); }
.core-px { fill: var(--noir); }
.chip rect { fill: var(--noir-3); stroke: var(--line-d); transition: .3s; }
.chip text { fill: var(--muted-d); font-family: var(--mono); font-size: 11px; transition: .3s; }
.chip.is-active rect { fill: var(--white); stroke: var(--white); }
.chip.is-active text { fill: var(--noir); }
.packet { fill: var(--orange); }
.packet-label { font-family: var(--mono); font-size: 11px; fill: var(--white); paint-order: stroke; stroke: var(--noir); stroke-width: 4px; }

.side { display: grid; gap: 18px; min-width: 0; }
.phone { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; min-height: 290px; display: flex; flex-direction: column; box-shadow: 0 24px 50px -30px rgba(11, 11, 15, .35); }
.phone__top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.phone__top img { width: 32px; height: 32px; }
.phone__name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.phone__status { font-size: 12px; color: var(--success); }
.phone__channel { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 3px 8px; border-radius: var(--r-sm); }
.msgs { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; flex: 1; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: var(--r-lg); font-size: 15px; line-height: 1.45; animation: pop .35s var(--ease) both; }
.msg--user { align-self: flex-end; background: var(--noir); color: var(--white); border-bottom-right-radius: var(--r-sm); }
.msg--agent { align-self: flex-start; background: var(--blanc); border: 1px solid var(--line); border-bottom-left-radius: var(--r-sm); }
.msg--typing { display: inline-flex; gap: 4px; padding: 14px; }
.msg--typing span { width: 6px; height: 6px; background: var(--muted); animation: blink 1s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; } .msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: s; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-radius: var(--r-md); color: var(--muted); transition: background-color .3s, color .3s; counter-increment: s; font-size: 15px; }
.step::before { content: counter(s); font-family: var(--mono); font-size: 12px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.step code { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--orange-ink); margin-top: 4px; overflow-wrap: anywhere; }
.step.is-active { background: var(--white); color: var(--noir); box-shadow: 0 1px 0 var(--line); }
.step.is-active::before { background: var(--orange); border-color: var(--orange); color: var(--noir); }
.step.is-done::before { background: var(--noir); border-color: var(--noir); color: var(--white); }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; perspective: 1400px; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--noir-2); border: 1px solid var(--line-d); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: grid; grid-template-rows: auto auto 1fr; gap: 14px; transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s; min-width: 0; }
.feature:hover { border-color: #4a3526; }
.feature h3 { font-size: clamp(24px, 2.4vw, 30px); }
.feature p { color: var(--muted-d); max-width: 52ch; }
.feature__viz { height: 200px; border-radius: var(--r-md); background: var(--noir); border: 1px solid var(--line-d); position: relative; overflow: hidden; transform: translateZ(30px); }
.feature__tag { font-family: var(--mono); font-size: 12px; color: var(--orange-ink-d); letter-spacing: .06em; }

/* viz: scenario nodes */
.viz-scen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 16px; }
.viz-scen .n { flex: none; font-family: var(--mono); font-size: 11px; padding: 8px 10px; border: 1px solid var(--line-d); border-radius: var(--r-sm); background: var(--noir-2); color: #cfcac3; position: relative; z-index: 1; animation: nodeOn 6s infinite; }
.viz-scen .n:nth-of-type(2) { animation-delay: 1.5s; } .viz-scen .n:nth-of-type(3) { animation-delay: 3s; } .viz-scen .n:nth-of-type(4) { animation-delay: 4.5s; }
.viz-scen .l { flex: 1; min-width: 12px; height: 2px; background: repeating-linear-gradient(90deg, #3a3a44 0 6px, transparent 6px 10px); }
@keyframes nodeOn { 0%, 20% { border-color: var(--orange); color: var(--white); background: #2a1508; } 30%, 100% { border-color: var(--line-d); color: #cfcac3; background: var(--noir-2); } }
/* viz: context layers */
.viz-ctx { position: absolute; inset: 0; display: grid; place-items: center; perspective: 700px; }
.viz-ctx .layer { grid-area: 1 / 1; width: 64%; padding: 12px 14px; border-radius: var(--r-md); font-family: var(--mono); font-size: 12px; color: var(--noir); background: var(--sable); transform: rotateX(55deg) rotateZ(-30deg) translateZ(calc(var(--i) * 26px)); box-shadow: 0 10px 20px rgba(0, 0, 0, .35); animation: lift 5s var(--ease) infinite alternate; animation-delay: calc(var(--i) * .2s); }
.viz-ctx .layer:nth-child(2) { background: var(--white); } .viz-ctx .layer:nth-child(3) { background: var(--orange); }
@keyframes lift { to { transform: rotateX(55deg) rotateZ(-30deg) translateZ(calc(var(--i) * 44px)); } }
/* viz: channels */
.viz-ch { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; align-content: center; }
.viz-ch span { font-family: var(--mono); font-size: 12px; text-align: center; padding: 10px 4px; border: 1px solid var(--line-d); border-radius: var(--r-sm); color: #cfcac3; animation: chOn 5s infinite; animation-delay: calc(var(--i) * .8s); }
@keyframes chOn { 0%, 16% { background: var(--orange); color: var(--noir); border-color: var(--orange); } 24%, 100% { background: transparent; } }
/* viz: API scope rings */
.viz-scope { position: absolute; inset: 0; display: grid; place-items: center; }
.viz-scope svg { width: 100%; height: 100%; }
.viz-scope .ring { fill: none; stroke: #3a3a44; stroke-dasharray: 3 5; }
.viz-scope .ring-t { font-family: var(--mono); font-size: 10px; fill: var(--muted-d); }
.viz-scope .rot { transform-origin: 50% 50%; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .viz-scen .n, .viz-ctx .layer, .viz-ch span, .viz-scope .rot, .dpath.is-active { animation: none; } }

/* Layers stack (3D architecture) */
.stack-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; margin-top: 40px; }
@media (max-width: 900px) { .stack-wrap { grid-template-columns: 1fr; } }
.stack { height: 520px; position: relative; perspective: 1600px; overflow: hidden; }
.stack__scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg) translate3d(0, 20px, 0); }
.slab { position: absolute; left: 50%; top: 50%; width: 300px; height: 190px; margin: -95px 0 0 -150px; border-radius: var(--r-lg); transform: translateZ(calc(var(--z) * var(--gap, 34px))); transition: transform .15s linear; display: flex; align-items: flex-end; padding: 16px; box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .55); border: 1px solid rgba(0, 0, 0, .12); }
.slab span { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .02em; }
.slab--1 { background: var(--noir-2); color: var(--white); border-color: var(--line-d); }
.slab--2 { background: var(--white); color: var(--noir); }
.slab--3 { background: var(--orange); color: var(--noir); }
.slab--4 { background: var(--sable); color: var(--noir); }
.slab--5 { background: var(--noir); color: var(--white); border-color: #3a3a44; }
.slab .px { position: absolute; right: 16px; top: 16px; display: grid; grid-template-columns: repeat(5, 8px); gap: 2px; }
.slab .px i { width: 8px; height: 8px; }
.slab .px i.on { background: var(--noir); }
.stack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stack-list li { display: grid; grid-template-columns: 14px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.stack-list li::before { content: ""; width: 14px; height: 14px; margin-top: 6px; background: var(--c); border: 1px solid rgba(0, 0, 0, .2); }
.stack-list h3 { font-size: 20px; letter-spacing: -0.01em; font-weight: 700; }
.stack-list p { color: var(--muted); font-size: 16px; margin-top: 4px; }
@media (max-width: 600px) { .stack { height: 420px; } .slab { width: 230px; height: 150px; margin: -75px 0 0 -115px; } }

/* Integrations */
.integ-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.integ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 24px; }
@media (max-width: 520px) { .integ-grid { grid-template-columns: 1fr 1fr; } .integ { padding: 16px; } .integ__name { font-size: 16px; } }
.integ { background: var(--noir-2); border: 1px solid var(--line-d); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; align-content: start; transition: transform .3s var(--ease), border-color .3s, opacity .3s; text-decoration: none; }
.integ:hover { transform: translateY(-4px); border-color: var(--orange); }
.integ.is-hidden { display: none; }
.integ__mono { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--noir-3); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--white); letter-spacing: -0.02em; }
.integ--tool .integ__mono { background: var(--orange); color: var(--noir); }
.integ__name { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.integ__cat { font-family: var(--mono); font-size: 12px; color: var(--muted-d); }
.integ--any { border-style: dashed; border-color: #55555f; background: transparent; }
.integ--any .integ__mono { background: transparent; border: 1px dashed #77737a; color: var(--orange); }
.band--dark .tab { background: transparent; color: var(--muted-d); border-color: var(--line-d); }
.band--dark .tab[aria-selected="true"] { background: var(--white); color: var(--noir); border-color: var(--white); }

/* Scope / trust */
.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--noir); }
.scope > div { padding: 28px 28px 0 0; min-width: 0; }
.scope > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.scope .k { font-family: var(--mono); font-size: 13px; color: var(--orange-ink); }
.scope h3 { font-size: 26px; margin-top: 10px; }
.scope p { color: var(--muted); margin-top: 10px; }
@media (max-width: 800px) { .scope { grid-template-columns: 1fr; } .scope > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Digital Hub */
.dhub { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 800px) { .dhub { grid-template-columns: 1fr; } }
.dhub__art { aspect-ratio: 4 / 3; max-width: 100%; position: relative; }
.dhub__art svg { width: 100%; height: 100%; }

/* FAQ */
.faq { margin-top: 48px; border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--noir), var(--noir)) center / 14px 2px no-repeat, linear-gradient(var(--noir), var(--noir)) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: linear-gradient(var(--orange-ink), var(--orange-ink)) center / 14px 2px no-repeat, linear-gradient(var(--orange-ink), var(--orange-ink)) center / 2px 14px no-repeat; }
.faq .a { padding: 0 0 26px; color: var(--muted); max-width: 70ch; }

/* Booking */
.book { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } }
.book__points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.book__points li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: #d7d2cb; }
.book__points b { display: block; color: var(--white); font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.book__points li::before { content: attr(data-n); width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--noir); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; }
.form { background: var(--blanc); color: var(--noir); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #8a857e; border-radius: var(--r-md); background: var(--white); color: var(--noir); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange-ink); box-shadow: 0 0 0 3px rgba(184, 67, 0, .18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { font-size: 13px; color: var(--danger); min-height: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips label { position: relative; font-weight: 400; font-size: 14px; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.chips span { display: inline-block; padding: 8px 14px; border: 1px solid #8a857e; border-radius: var(--r-md); background: var(--white); transition: .15s; }
.chips input:checked + span { background: var(--noir); color: var(--white); border-color: var(--noir); }
.chips input:focus-visible + span { outline: 2px solid var(--orange-ink); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13.5px; color: var(--muted); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--noir); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form__status { font-size: 15px; padding: 14px 16px; border-radius: var(--r-md); }
.form__status.is-ok { background: #e8f6ee; color: var(--success); }
.form__status.is-err { background: #fdecea; color: var(--danger); }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
.contact-alt { margin-top: 28px; font-size: 15px; color: var(--muted-d); }

/* Footer */
.footer { background: var(--noir); border-top: 1px solid var(--line-d); padding-block: 56px 36px; color: var(--muted-d); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; } }
.footer img { height: 28px; width: auto; }
.footer h4 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: #d7d2cb; }
.footer a:hover { color: var(--orange-ink-d); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-d); font-size: 13px; }

/* Mobile sticky CTA */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: none; transform: translateY(140%); transition: transform .35s var(--ease); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6); }
@media (max-width: 700px) { .sticky-cta { display: block; } }

/* Reveal (content stays visible at rest; motion only enhances) */
.reveal { transition: transform .8s var(--ease), opacity .8s var(--ease); }
.js .reveal.pre { transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) { .js .reveal.pre { transform: none; opacity: 1; } }

/* Sub pages */
.page-hero { padding-block: 150px 70px; background: var(--noir); }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); margin-top: 18px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 56px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; letter-spacing: -0.01em; font-weight: 700; }
.prose p, .prose li { color: #3d3a37; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; }
.prose .todo { background: var(--orange-soft); color: var(--orange-ink); padding: 0 4px; border-radius: var(--r-sm); font-family: var(--mono); font-size: .9em; }
.integ-detail { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-block: 44px; border-top: 1px solid var(--line); }
.integ-detail:first-of-type { border-top: 0; }
@media (max-width: 700px) { .integ-detail { grid-template-columns: 1fr; gap: 16px; } }
.integ-detail h2 { font-size: clamp(28px, 3vw, 38px); }
.integ-detail .integ__cat { color: var(--orange-ink); margin-top: 8px; display: block; }
.integ-detail ul { margin: 14px 0 0; padding-left: 20px; color: #3d3a37; }
.integ-detail p { color: #3d3a37; }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted-d); }
.crumbs a { color: var(--muted-d); }
