/* patsoocloudlab.fr — V6 home page ("Monumental" data plane).
   Spec: docs/superpowers/specs/2026-10-13-site-redesign-v6-design.md
   Layout: full-bleed 3D hero (title on top, scene in the middle), then flat sections on charcoal,
   contact panel with the scene above the text. Single dark theme on purpose. */

:root {
  --green: #22E06B; --green-deep: #0E8F43; --on-green: #04210F;
  --bg: #0C0D0D; --deep: #070908; --fg: #EDEFEB; --soft: #C3CAC5; --mut: #8E978F;
  --line: #232726; --card: #131515; --card2: #1A1D1C;
  --sora: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --gut: 20px; --max: none; --sec: 96px; --hero-top: 68px;
  --fs-eye: 11px; --fs-h1: 24px; --fs-h2: 20px; --fs-h3: 16px; --fs-body: 14px; --fs-sm: 14px; --fs-stat: 30px;
  --g-cards: 20px; --g-split: 48px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 1024px) {
  :root { --gut: 60px; --hero-top: 100px; --fs-h1: 36px; --fs-h2: 24px; --fs-h3: 18px; --fs-body: 16px; --fs-stat: 36px; --g-cards: 32px; --g-split: 80px; }
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #2E3331 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--sora); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--green); color: var(--on-green); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.035em; }
p, figure { margin: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--green); color: var(--on-green); padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600; }
.skip:focus { left: 0; }

/* i18n: both languages in the markup, the inactive one is hidden (site.js sets html[data-lang]) */
html[data-lang="en"] [data-lang="fr"],
html:not([data-lang="en"]) [data-lang="en"] { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font: 600 14px/20px var(--sora); border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn.pri { min-width: 224px; justify-content: space-between; background: var(--green); color: var(--on-green); }
.btn.pri:hover { transform: translateY(-2px); }
.btn.ghost { box-shadow: inset 0 0 0 1px rgb(237 239 235 / .22); color: var(--fg); background: rgb(12 14 13 / .5); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--mut); }
.btn .ar { transition: transform .2s; }
.btn:hover .ar { transform: translateX(3px); }
.ctas { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(34 224 107 / .55); } 70%, 100% { box-shadow: 0 0 0 9px rgb(34 224 107 / 0); } }

/* ---------- 3D stage (hero + contact) ---------- */
.gl { position: absolute; inset: 0; z-index: 0; }
.gl canvas { display: block; width: 100% !important; height: 100% !important; }
.labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.labels span {
  position: absolute; left: 0; top: 0; display: flex; gap: 6px; align-items: center; opacity: 0;
  font: 500 .64rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #D7DDD8; white-space: nowrap;
  padding: 3px 9px 3px 7px; border-radius: 999px; background: rgb(7 9 8 / .78); box-shadow: inset 0 0 0 1px rgb(34 224 107 / .32); will-change: transform; transition: opacity .3s;
}
.labels span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.labels span.core { color: var(--green); box-shadow: inset 0 0 0 1px rgb(34 224 107 / .6); }
.fade-b { position: absolute; inset: auto 0 0; height: 26%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent, var(--deep) 90%); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; display: flex;
  min-height: clamp(620px, calc(100svh - 64px), 920px); background: var(--deep);
  /* soft glow while WebGL loads or if it is unavailable */
  background-image: radial-gradient(70% 55% at 70% 62%, rgb(34 224 107 / .10), transparent 70%);
}
.hero .inner {
  position: relative; z-index: 2; width: 100%; display: grid; gap: 24px 32px; padding-block: var(--hero-top) 40px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "t t" "sp sp" "lead ctas";
  grid-template-rows: auto 1fr auto;
}
.hl { grid-area: t; font-weight: 800; letter-spacing: -.055em; line-height: .92; }
.hl .name { display: flex; align-items: center; gap: 16px; font-size: var(--fs-h1); line-height: 1.15; }
.hl .name img {
  width: 62px; height: 62px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; filter: grayscale(1) contrast(1.06);
  box-shadow: 0 0 0 .04em rgb(34 224 107 / .6), 0 0 0 .2em rgb(34 224 107 / .08);
}
.hl .name .nm { display: block; }
.hl .name i { font-style: normal; color: var(--green); }
.hl .tag { display: block; max-width: 36rem; margin-top: 24px; font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -.03em; font-weight: 600; color: #DDE2DE; }
.hl em, .serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--green); }
.hero .sp { grid-area: sp; min-height: 40px; }
.hero .lead { grid-area: lead; align-self: end; max-width: 36rem; color: var(--soft); font-weight: 300; font-size: var(--fs-body); line-height: 1.625; }
.hero .lead b { color: var(--fg); font-weight: 600; }
.hero .ctas { grid-area: ctas; align-self: end; justify-self: end; }
.live { position: absolute; z-index: 2; right: var(--gut); top: 24px; display: flex; gap: 10px; align-items: center; font: 500 var(--fs-eye) var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mut); }
@media (max-width: 760px) {
  /* scene sits between the title (top) and the lead + buttons (bottom) */
  .hero .gl, .hero .labels { top: 30%; bottom: auto; height: 50%; }
  .hero .fade-b { top: 62%; bottom: auto; height: 18%; }
  .hero .inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "sp" "lead" "ctas"; grid-template-rows: auto 1fr auto auto; padding-block: 32px 40px; }
  .hero .ctas { justify-self: start; }
  .hero .sp { min-height: 46vw; }
  .hl .name { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hl .name img { width: 48px; height: 48px; }
  .live { display: none; }
}

/* ---------- section scaffolding ---------- */
.sec { padding-block: var(--sec); }
.sec-h { display: grid; gap: 0; margin-bottom: 48px; max-width: 42rem; }
.figs { padding-block: 40px 0; }
.kick { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; font: 500 var(--fs-eye) var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--green); }
.kick::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.sec-h h2 { font-size: var(--fs-h2); line-height: 1.25; font-weight: 800; }
.sec-h p { margin-top: 24px; color: var(--mut); font-size: var(--fs-body); line-height: 1.625; max-width: 36rem; }

/* reveal on scroll, progressive: content is visible where scroll timelines are unsupported */
@supports (animation-timeline: view()) {
  .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes rise { from { opacity: 0; transform: translateY(42px); } }
}

/* ---------- stack marquee ---------- */
.wall { padding-block: 40px; border-block: 1px solid var(--line); }
.wall small { display: block; text-align: center; margin-bottom: 20px; font: 500 var(--fs-eye) var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mut); }
.marq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marq .track { display: flex; gap: 40px; width: max-content; animation: marq 40s linear infinite; }
.marq:hover .track { animation-play-state: paused; }
.marq ul { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; }
.marq li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 16px; letter-spacing: -.02em; color: var(--soft); white-space: nowrap; }
.marq li i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--card2); color: var(--green); font: 700 .62rem var(--mono); font-style: normal; }
@keyframes marq { to { transform: translateX(calc(-50% - 20px)); } }

/* ---------- counters ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats > div { padding: 20px 24px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-size: var(--fs-stat); font-weight: 400; font-family: var(--serif); font-style: italic; letter-spacing: -.02em; line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; }
.stats small { display: block; margin-top: 12px; color: var(--mut); font-size: var(--fs-sm); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- method (stepped tabs + screen) ---------- */
.method { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--g-split); align-items: start; }
.steps { display: grid; gap: 4px; }
.step { position: relative; display: grid; gap: 6px; text-align: left; background: transparent; border: 0; border-radius: 18px; padding: 16px 20px; color: var(--fg); cursor: pointer; font: inherit; transition: background .25s; }
.step:hover { background: rgb(255 255 255 / .03); }
.step b { display: flex; gap: 12px; align-items: baseline; font-size: var(--fs-h3); letter-spacing: -.02em; }
.step b small { font: 500 .74rem var(--mono); color: var(--mut); }
.step p { display: none; color: var(--mut); font-size: var(--fs-sm); }
.step .prog { display: none; height: 2px; margin-top: 8px; border-radius: 2px; overflow: hidden; background: var(--line); }
.step .prog i { display: block; width: 0; height: 100%; background: var(--green); }
.step[aria-selected="true"] { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.step[aria-selected="true"] p, .step[aria-selected="true"] .prog { display: block; }
.method.auto .step[aria-selected="true"] .prog i { animation: fill var(--step-ms, 6000ms) linear forwards; }
@keyframes fill { to { width: 100%; } }
.screen { position: sticky; top: 84px; display: flex; flex-direction: column; min-height: 420px; border-radius: 24px; overflow: hidden; background: #0A0C0B; color: #D7DDD8; box-shadow: inset 0 0 0 1px var(--line); }
.screen header { display: flex; gap: 7px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); font: 500 .74rem var(--mono); color: var(--mut); }
.screen header i { width: 10px; height: 10px; border-radius: 50%; background: #262B29; }
.screen header span { margin-left: 10px; }
.screen .pane { flex: 1; display: flex; flex-direction: column; }
.screen .pane[hidden] { display: none; }
.screen .pane.swap { animation: swap .45s ease-out; }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }
.screen pre { flex: 1; margin: 0; padding: 24px; overflow: auto; font: 400 13px/1.85 var(--mono); white-space: pre; }
.screen pre .c { color: #78837C; } .screen pre .k { color: var(--green); } .screen pre .s { color: #BFE9CC; }
.screen footer { display: flex; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); font: 500 .74rem var(--mono); color: var(--mut); }
.screen footer b { color: var(--green); font-weight: 500; }
@media (max-width: 900px) { .method { grid-template-columns: minmax(0, 1fr); } .screen { position: relative; top: 0; min-height: 0; } }

/* ---------- portfolio ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g-cards); }
.case { display: flex; flex-direction: column; min-width: 0; border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .3s; }
.case:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--green); }
.case .vis { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; overflow: hidden; background: #0A0C0B; }
.case .body { flex: 1; display: grid; gap: 12px; align-content: start; padding: 24px; }
.case .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font: 500 var(--fs-eye) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.case .meta > span:first-child { display: flex; gap: 8px; align-items: center; color: var(--green); }
.case h3 { font-size: var(--fs-h3); line-height: 1.375; }
.case p { color: var(--mut); font-size: var(--fs-sm); }
.case .go { margin-top: 8px; color: var(--green); font-weight: 600; font-size: var(--fs-sm); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 4px 9px; border-radius: 7px; background: var(--card2); color: var(--soft); font: 500 .7rem var(--mono); }
.v-nodes { display: grid; grid-template-columns: repeat(4, 64px); gap: 12px; }
.v-nodes div { height: 86px; padding: 9px; border-radius: 12px; background: #121614; box-shadow: inset 0 0 0 1px #233029; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; align-content: end; }
.v-nodes div::before { content: attr(data-n); grid-column: 1 / -1; font: 500 .58rem var(--mono); color: var(--mut); }
.v-nodes i { height: 10px; border-radius: 3px; background: var(--green); opacity: .25; animation: blink 2.8s infinite; }
@keyframes blink { 40% { opacity: .95; } }
.v-ad { width: 70%; display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: #F1F3EF; color: #0C0D0D; transform: rotate(-3deg); box-shadow: 0 20px 40px -16px #000; }
.v-ad .ph { height: 70px; border-radius: 10px; background: linear-gradient(135deg, #C9D3CC, #9FB2A5); }
.v-ad .ln { height: 9px; border-radius: 5px; background: #D5DBD5; }
.v-ad .ln.s { width: 55%; background: #BFE9CC; }
.v-ad .boost { justify-self: start; padding: 5px 10px; border-radius: 999px; background: var(--green); color: var(--on-green); font: 600 .7rem var(--sora); }
.v-dom { display: flex; gap: 8px; transform: rotate(4deg); }
.v-dom div { width: 44px; height: 88px; padding: 6px; display: grid; grid-template-rows: 1fr 1fr; gap: 6px; border-radius: 9px; background: #F1F3EF; box-shadow: 0 14px 30px -12px #000; }
.v-dom div:nth-child(2) { transform: translateY(-14px); background: var(--green); }
.v-dom i { display: flex; align-items: center; justify-content: center; border-top: 1px solid rgb(12 13 13 / .2); }
.v-dom i:first-child { border: 0; }
.v-dom i::before { content: "● ●"; font-size: .5rem; letter-spacing: 2px; color: #0C0D0D; font-style: normal; }
@media (max-width: 980px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cases .case:first-child { grid-column: 1 / -1; } }
@media (max-width: 620px) { .cases { grid-template-columns: minmax(0, 1fr); } }

.clients { margin-top: 48px; }
.clients h3 { margin-bottom: 20px; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; color: var(--mut); }
.cl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g-cards); }
.cl article { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cl .y { font: 500 .74rem var(--mono); color: var(--mut); }
.cl b { font-size: var(--fs-h3); letter-spacing: -.02em; }
.cl p { color: var(--mut); font-size: var(--fs-sm); }
.cl .num { order: 1; margin-top: auto; padding-top: 8px; font-family: var(--serif); font-style: italic; font-size: var(--fs-stat); line-height: 1; color: var(--green); }
@media (max-width: 980px) { .cl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cl { grid-template-columns: minmax(0, 1fr); } }

/* ---------- expertise ---------- */
.feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.feat article { display: grid; gap: 12px; align-content: start; padding: 24px; background: var(--bg); transition: background .3s; }
.feat article:hover { background: var(--card); }
.feat .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--card2); color: var(--green); }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: var(--fs-h3); line-height: 1.375; }
.feat p { color: var(--mut); font-size: var(--fs-sm); }
.feat .tags { margin-top: 4px; }
@media (max-width: 980px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feat { grid-template-columns: minmax(0, 1fr); } }

/* ---------- career ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--g-split); align-items: start; }
.about .ph { position: sticky; top: 84px; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.about .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.06); }
.about .ph figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 11px; border-radius: 10px; background: rgb(8 10 9 / .8); color: var(--fg); font: 500 .74rem var(--mono); }
.about .sec-h { margin-bottom: 24px; }
.bio { display: grid; gap: 16px; max-width: 60ch; color: var(--soft); font-weight: 300; font-size: var(--fs-body); line-height: 1.625; }
.bio b { color: var(--fg); font-weight: 600; }
.tl { margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.tl li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 20px 0; font-size: var(--fs-body); border-bottom: 1px solid var(--line); }
.tl .y { font: 500 .82rem var(--mono); color: var(--mut); font-variant-numeric: tabular-nums; }
.tl li:first-child .y { color: var(--green); }
.tl b { font-weight: 600; }
.tl small { color: var(--mut); font-size: var(--fs-sm); text-align: right; }
.edu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.edu div { display: grid; gap: 4px; padding: 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); color: var(--mut); }
.edu b { font: 500 var(--fs-eye) var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--green); }
.about .ctas { margin-top: 40px; }
@media (max-width: 860px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about .ph { position: relative; top: 0; max-width: 340px; }
  .tl li { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .tl li { row-gap: 4px; }
  .tl small { grid-column: 2; text-align: left; }
  .edu { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- contact panel: scene on top, text in a band under it ---------- */
.close { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: minmax(300px, 1fr) auto; min-height: clamp(520px, 74vh, 680px); border-radius: 32px; background: var(--deep); background-image: radial-gradient(60% 50% at 50% 30%, rgb(34 224 107 / .10), transparent 70%); }
.close .gl, .close .labels { bottom: auto; height: 64%; }
.close .scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 42%, var(--deep) 66%); }
.close .txt { grid-row: 2; position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px 48px; align-items: start; padding: 40px 20px; }
.close .kick { grid-column: 1 / -1; }
.close h2 { font-size: var(--fs-h2); line-height: 1.25; font-weight: 800; max-width: 28rem; }
.close .side { display: grid; gap: 24px; justify-items: start; }
.close p { color: var(--soft); max-width: 46ch; font-weight: 300; font-size: var(--fs-body); line-height: 1.625; }
@media (max-width: 760px) {
  .close { grid-template-rows: minmax(240px, 1fr) auto; }
  .close .gl, .close .labels { height: 52%; }
  .close .scrim { background: linear-gradient(180deg, transparent 30%, var(--deep) 52%); }
  .close .txt { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- OpenWebUI scale: desktop paddings (after their base rules) ---------- */
@media (min-width: 1024px) {
  .feat article { padding: 32px; }
  .close .txt { padding: 60px; }
}

/* phones: stacked buttons share one width */
@media (max-width: 520px) {
  .ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn.pri { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
