/* =========================================================
   Maïwenn Bazire — Portfolio
   ambiance cinéma : nuit profonde, halo de lumière, personnage 3D
   ========================================================= */
:root {
  --bg: #05060f;
  --bg-2: #0d1024;
  --card: #10132b;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, .58);
  --line: rgba(244, 241, 234, .14);
  --blue: #2546ff;
  --red: #ff3b2f;
  --yellow: #ffc93c;
  --glow: #2546ff;
  --sans: "Archivo", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

/* typographie très large et très grasse */
.wide { font-family: var(--sans); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .88; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- décor : halo + canvas ---------- */
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at var(--gx, 50%) 48%, color-mix(in srgb, var(--glow) 70%, transparent) 0%, transparent 62%),
    radial-gradient(80vmax 60vmax at 50% 120%, rgba(37, 70, 255, .18), transparent 70%);
  transition: background .1s;
  opacity: .9;
}
#gl { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: none; }
.no-webgl #gl { display: none; }
main > *, .header, .footer-wrap { position: relative; z-index: 2; }
.noise {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- curseur phare ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 150; width: 0; height: 0; pointer-events: none; }
.cursor .lamp {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 2px var(--text), 0 0 18px var(--red);
  transition: transform .35s var(--ease-out);
}
.cursor .beam {
  position: absolute; left: -100px; top: -100px; width: 200px; height: 200px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 201, 60, .5) 0deg, rgba(255, 201, 60, 0) 34deg, transparent 180deg, rgba(255, 201, 60, .5) 180deg, rgba(255, 201, 60, 0) 214deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #000 28%, transparent 70%);
          mask: radial-gradient(circle, #000 28%, transparent 70%);
  animation: beam 3.2s linear infinite;
}
@keyframes beam { to { transform: rotate(360deg); } }
.cursor .label {
  position: absolute; left: 16px; top: 12px; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 5px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(4px) scale(.9); transition: opacity .2s, transform .3s var(--ease-out);
}
.cursor.is-label .label { opacity: 1; transform: none; }
.cursor.is-link .lamp { transform: scale(1.8); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- en-tête ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
}
.logo { font-stretch: 125%; font-weight: 900; font-size: 18px; letter-spacing: -.01em; text-transform: uppercase; }
.logo span { color: var(--red); }
.nav { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(13, 16, 36, .55); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav a { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; transition: background .25s, color .25s; }
.nav a:hover { background: rgba(244, 241, 234, .08); }
.nav a.is-active { background: var(--text); color: var(--bg); }
.nav a.cta { background: var(--red); color: #fff; }
.menu-btn { display: none; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; background: rgba(13, 16, 36, .7); border: 1px solid var(--line); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--gutter);
  clip-path: circle(0% at calc(100% - 50px) 40px); transition: clip-path .8s var(--ease); pointer-events: none;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 50px) 40px); pointer-events: auto; }
.mobile-menu a { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 12vw; line-height: 1; }
@media (max-width: 820px) { .nav { display: none; } .menu-btn { display: block; } }

/* ---------- texte découpé ---------- */
.line { display: block; overflow: hidden; padding-top: .12em; margin-top: -.12em; }
.char, .word-in { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }

/* ---------- héros ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; z-index: auto !important; }
.hero-title {
  position: absolute; left: 0; right: 0; top: 10vh; z-index: 0;
  text-align: center;
  font-size: clamp(56px, 13.4vw, 260px);
  pointer-events: none;
}
.hero-title .l2 { color: transparent; -webkit-text-stroke: 2px rgba(244, 241, 234, .55); }
.hero-bottom {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 32px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero-bottom p { max-width: 340px; font-size: 16px; line-height: 1.45; color: var(--muted); }
.hero-bottom p strong { color: var(--text); font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(13, 16, 36, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.hint { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hint b { display: inline-block; width: 22px; height: 34px; border: 1.5px solid var(--muted); border-radius: 12px; position: relative; }
.hint b::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 60% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 760px) {
  .hero-title { top: 15vh; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hint { display: none; }
}

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(100px, 16vh, 200px) var(--gutter); }
.h2 { font-size: clamp(44px, 7.4vw, 140px); margin: 18px 0 clamp(32px, 6vh, 64px); }
.half { max-width: min(620px, 50%); }
@media (max-width: 860px) { .half { max-width: 100%; } }

/* à propos */
.about { min-height: 100vh; display: flex; align-items: center; }
.about .lead { font-size: clamp(24px, 2.4vw, 38px); line-height: 1.22; font-weight: 500; letter-spacing: -.01em; }
.about .lead em { font-style: normal; color: var(--red); }
.about p.body { margin-top: 24px; color: var(--muted); max-width: 540px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; }
.fact { padding: 16px; border-radius: 16px; background: rgba(16, 19, 43, .7); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fact span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fact strong { font-stretch: 112%; font-weight: 800; font-size: 17px; line-height: 1.2; }
.snaps { display: flex; gap: 10px; margin-top: 28px; }
.snaps img { width: 31%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; }
@media (max-width: 860px) { .about { padding-top: 46vh; } .facts { grid-template-columns: 1fr 1fr; } }

/* projets */
.projects { background: var(--bg); border-radius: 40px 40px 0 0; }
.projects-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.projects-head .h2 { margin-bottom: 0; }
.projects-head p { color: var(--muted); max-width: 360px; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: clamp(40px, 7vh, 80px); }
.card { position: relative; display: block; grid-column: span 6; }
.card:nth-child(4n + 1), .card:nth-child(4n + 4) { grid-column: span 7; }
.card:nth-child(4n + 2), .card:nth-child(4n + 3) { grid-column: span 5; }
.card-media {
  position: relative; overflow: hidden; border-radius: 24px;
  aspect-ratio: 4 / 3; background: var(--bg-card, var(--card));
  isolation: isolate;
}
.card-media img, .card-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.card-media.contain img { object-fit: contain; padding: 9%; }
.card:hover .card-media img, .card:hover .card-media canvas { transform: scale(1.06); }
.card-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.card-num { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(5, 6, 15, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 4px 0; }
.card-info h3 { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(22px, 2.3vw, 38px); line-height: 1; letter-spacing: -.02em; }
.card-info p { font-size: 14px; color: var(--muted); text-align: right; white-space: nowrap; }
.card-cat { font-size: 14px; color: var(--muted); padding: 6px 4px 0; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } .card, .card:nth-child(n) { grid-column: auto; } }

/* parcours */
.journey { min-height: 100vh; display: flex; justify-content: flex-end; }
.journey .half { margin-left: auto; }
.steps { list-style: none; border-top: 1px solid var(--line); }
.step { padding: 28px 0; border-bottom: 1px solid var(--line); }
.step-top { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.step h3 { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 3vw, 46px); line-height: 1; margin: 10px 0 4px; letter-spacing: -.02em; }
.step h4 { font-size: 15px; font-weight: 600; color: var(--red); margin-bottom: 12px; }
.step p { color: var(--muted); }
.step p + p { margin-top: .8em; }

/* citation */
.quote { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; text-align: center; padding-top: 22vh; }
.quote blockquote { font-size: clamp(34px, 5.6vw, 100px); max-width: 1300px; }
.quote blockquote .char { opacity: .18; }
.quote cite { margin-top: 24px; font-style: normal; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 600; }

/* contact */
.contact { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.contact .h2 { font-size: clamp(56px, 9.6vw, 180px); }
.contact .h2 em { font-style: normal; color: var(--red); }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 28px; border-radius: 999px;
  font-size: clamp(15px, 1.3vw, 18px); font-weight: 600;
  border: 1px solid var(--line); background: rgba(13, 16, 36, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: color .4s, border-color .4s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover { color: var(--bg); border-color: var(--text); }
.btn:hover::before { transform: none; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red::before { background: #fff; }
.btn.red:hover { color: var(--red); }
@media (max-width: 860px) { .contact { justify-content: flex-end; padding-top: 52vh; } }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px var(--gutter) 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); background: var(--bg); position: relative; z-index: 2; }

/* =========================================================
   PAGE PROJET
   ========================================================= */
.p-hero { min-height: 82vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--gutter) 48px; position: relative; }
.p-back { position: absolute; top: 96px; left: var(--gutter); }
.p-title { font-size: clamp(52px, 11vw, 210px); max-width: 80%; }
@media (max-width: 760px) { .p-title { max-width: 100%; } }
.p-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; align-items: center; }
.p-meta .intro { flex-basis: 100%; max-width: 560px; margin-top: 18px; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); line-height: 1.45; }
.p-cover { margin: 0 var(--gutter); border-radius: 28px; overflow: hidden; height: 82vh; position: relative; background: var(--bg-card); }
.p-cover img, .p-cover canvas { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; object-fit: cover; }
.p-cover.contain img { object-fit: contain; padding: 6%; top: 0; height: 100%; }
@media (max-width: 760px) { .p-cover { height: 56vh; border-radius: 20px; } }
.p-body { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 6vw, 100px); }
.p-block { display: contents; }
.p-block h2 { grid-column: 1; font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 42px); line-height: 1; letter-spacing: -.02em; position: sticky; top: 110px; align-self: start; }
.p-text { grid-column: 2; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.65; color: rgba(244, 241, 234, .82); margin-bottom: 64px; }
.p-text p + p, .p-text ul + p, .p-text p + ul { margin-top: 1em; }
.p-text ul { list-style: none; counter-reset: s; }
.p-text li { counter-increment: s; position: relative; padding: 16px 0 16px 56px; border-top: 1px solid var(--line); }
.p-text li:last-child { border-bottom: 1px solid var(--line); }
.p-text li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-weight: 800; color: var(--accent, var(--red)); }
@media (max-width: 760px) { .p-body { grid-template-columns: 1fr; } .p-block h2 { position: relative; top: 0; } .p-text { grid-column: 1; margin-bottom: 40px; } }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-stats > div { padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.p-stats strong { display: block; font-stretch: 125%; font-weight: 900; font-size: clamp(48px, 7vw, 120px); line-height: .9; color: var(--accent, var(--red)); }
.p-stats span { color: var(--muted); }
@media (max-width: 600px) { .p-stats { grid-template-columns: 1fr; } }
.p-quote { text-align: center; }
.p-quote blockquote { font-size: clamp(30px, 4.4vw, 76px); max-width: 1100px; margin: 0 auto; }
.p-quote cite { display: block; margin-top: 24px; font-style: normal; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 600; }
.p-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.g-item { border-radius: 24px; overflow: hidden; background: var(--gbg, var(--card)); }
.g-item img { width: 100%; height: auto; }
.g-item.wide { grid-column: 1 / -1; }
.g-item.half img { aspect-ratio: 16/10; object-fit: contain; }
.g-screens { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-screen { border-radius: 20px; background: var(--card); border: 1px solid var(--line); padding: 10px 10px 0; }
.g-screen .bar { display: flex; gap: 6px; padding: 2px 4px 10px; }
.g-screen .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.g-screen .viewport { height: 68vh; overflow: hidden; border-radius: 12px 12px 0 0; }
.g-screen .viewport img { width: 100%; transition: transform 6s var(--ease); }
.g-screen:hover .viewport img { transform: translateY(calc(-100% + 68vh)); }
.g-screen p { padding: 12px 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .p-gallery, .g-screens { grid-template-columns: 1fr; } }
.p-next { display: block; text-align: center; padding: clamp(100px, 18vh, 200px) var(--gutter); border-top: 1px solid var(--line); }
.p-next .eyebrow { justify-content: center; }
.p-next h2 { font-size: clamp(48px, 10vw, 190px); margin-top: 20px; transition: color .4s; }
.p-next:hover h2 { color: var(--red); }

/* ---------- accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  .cursor .beam, .hint b::after { animation: none; }
  .quote blockquote .char { opacity: 1; }
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* titres dans les demi-colonnes : un peu plus petits */
.half .h2 { font-size: clamp(40px, 5.4vw, 104px); }
.contact .half .h2 { font-size: clamp(40px, 5.2vw, 100px); }
@media (max-width: 760px) { .half .h2, .contact .half .h2 { font-size: 10.4vw; } }

/* =========================================================
   INTÉRIEUR — v2 : verre, lumière de phare, cartes empilées
   ========================================================= */
:root { --beam: linear-gradient(90deg, #ffd27a 0%, #ff8a3c 45%, #ff3b2f 100%); }

/* carte en verre avec bord lumineux dégradé */
.glass {
  position: relative; border-radius: 22px;
  background: linear-gradient(160deg, rgba(28, 33, 70, .62), rgba(10, 12, 30, .55));
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 210, 122, .55), rgba(244, 241, 234, .08) 35%, rgba(244, 241, 234, .04) 65%, rgba(37, 70, 255, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.beam-text { background: var(--beam); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: rgba(244, 241, 234, .06); border: 1px solid var(--line); }

/* ---------- à propos : bento ---------- */
.about .lead { margin-bottom: 28px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.stat strong {
  font-stretch: 125%; font-weight: 900; font-size: clamp(44px, 4.4vw, 76px); line-height: .9;
  background: var(--beam); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.bento .text { grid-column: 1 / -1; padding: 22px; }
.bento .text p { color: rgba(244, 241, 234, .8); }
.fan { grid-column: 1 / -1; position: relative; height: clamp(220px, 26vw, 340px); margin-top: 10px; }
.fan figure {
  position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 3/4;
  transform: translate(calc(-50% + var(--x)), -50%) rotate(var(--r));
  border-radius: 16px; overflow: hidden; padding: 6px; background: rgba(244, 241, 234, .92);
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .8);
  transition: transform .7s var(--ease-out), z-index 0s .2s;
}
.fan figure img { width: 100%; height: calc(100% - 22px); object-fit: cover; border-radius: 11px; }
.fan figcaption { height: 22px; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bg); }
.fan:hover figure { transform: translate(calc(-50% + var(--x) * 1.55), -54%) rotate(calc(var(--r) * 1.4)); }
.fan figure:hover { z-index: 3; transform: translate(calc(-50% + var(--x) * 1.55), -60%) rotate(0deg) scale(1.08); transition: transform .5s var(--ease-out); }
@media (max-width: 860px) { .about { padding-top: 40vh; } .bento { grid-template-columns: repeat(3, 1fr); } .stat { padding: 14px 12px; } }

/* ---------- bandeau compétences ---------- */
.skills { position: relative; padding: 4vh 0 10vh; overflow: hidden; }
.skills-row { overflow: hidden; }
.skills-row .track { display: flex; width: max-content; }
.skills-row span {
  font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(48px, 8vw, 150px); line-height: 1.02; padding-right: .45em; white-space: nowrap;
  background: var(--beam); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skills-row span.o { background: none; color: transparent; -webkit-text-stroke: 1.5px rgba(244, 241, 234, .4); }
.skills-row span::after { content: "✦"; display: inline-block; font-size: .3em; vertical-align: middle; margin-left: .9em; -webkit-text-stroke: 0; color: var(--red); background: none; }

/* ---------- projets : cartes qui s'empilent ---------- */
.projects { border-radius: 40px 40px 0 0; background: linear-gradient(180deg, var(--bg) 0%, #070918 100%); }
.stack { margin-top: clamp(40px, 7vh, 80px); }
.pcard {
  position: sticky; top: 12vh;
  height: 76vh; min-height: 520px; margin-bottom: 6vh;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(16px, 2.5vw, 36px);
  padding: clamp(16px, 2vw, 28px);
  border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
    linear-gradient(160deg, #15193a, #0a0c1f);
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(244, 241, 234, .1);
  transform-origin: 50% 0;
}
.pcard-info { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(8px, 1.5vw, 24px); min-width: 0; }
.pcard-num { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.pcard-num b { font-stretch: 125%; font-weight: 900; font-size: 15px; color: var(--accent); }
.pcard h3 { font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; font-size: clamp(36px, 4.6vw, 86px); line-height: .9; margin: 18px 0 14px; overflow-wrap: anywhere; }
.pcard p { color: rgba(244, 241, 234, .72); max-width: 420px; }
.pcard .chips { margin-top: 18px; }
.pcard .go {
  align-self: flex-start; margin-top: 24px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600;
  background: var(--text); color: var(--bg);
  transition: background .35s, color .35s, gap .35s var(--ease-out);
}
.pcard:hover .go { background: var(--red); color: #fff; gap: 18px; }
.pcard-media { position: relative; border-radius: 22px; overflow: hidden; background: var(--bg-card); }
.pcard-media img, .pcard-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pcard-media.contain img { object-fit: contain; padding: 8%; }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard .shade { position: absolute; inset: 0; background: #05060f; opacity: 0; pointer-events: none; border-radius: inherit; }
@media (max-width: 860px) {
  .pcard { position: relative; top: 0; height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .pcard-media { order: -1; aspect-ratio: 4/3; }
}

/* ---------- parcours : ligne de lumière ---------- */
.timeline { list-style: none; position: relative; padding-left: 34px; display: grid; gap: 16px; }
.timeline .beam { position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline .beam i { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, #ffd27a, #ff3b2f); box-shadow: 0 0 14px #ffb347; border-radius: 2px; }
.tl { padding: 22px 22px 24px; }
.tl::after {
  content: ""; position: absolute; left: -32px; top: 30px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(244, 241, 234, .3); transition: background .4s, border-color .4s, box-shadow .4s;
}
.tl.is-lit::after { background: #ffd27a; border-color: #ffd27a; box-shadow: 0 0 0 6px rgba(255, 210, 122, .15), 0 0 22px #ffb347; }
.tl-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(244, 241, 234, .08); color: var(--text); }
.badge.live { background: rgba(61, 220, 132, .14); color: #5ef0a0; }
.badge.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 8px #3ddc84; }
.tl h3 { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 42px); line-height: 1; letter-spacing: -.02em; margin: 14px 0 4px; }
.tl h4 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.tl h4 { background: var(--beam); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl p { color: var(--muted); }

/* ---------- contact ---------- */
.contact-card { padding: clamp(24px, 3.5vw, 48px); }
.contact-card .h2 { margin: 14px 0 18px; }
.contact-sub { color: rgba(244, 241, 234, .75); max-width: 460px; margin-bottom: 24px; }
.mail-row { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(5, 6, 15, .6); border: 1px solid var(--line); margin-bottom: 18px; max-width: 100%; }
.mail { flex: 1; min-width: 0; font-weight: 600; font-size: clamp(15px, 1.5vw, 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { flex-shrink: 0; font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 999px; background: rgba(244, 241, 234, .1); transition: background .3s, color .3s; }
.copy:hover { background: var(--text); color: var(--bg); }
.copy.done { background: #3ddc84; color: var(--bg); }
.contact .btn { padding: 15px 22px; }
@media (max-width: 860px) { .contact { padding-top: 44vh; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 160; transform: translate(-50%, 140%);
  padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px;
  transition: transform .5s var(--ease-out);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- pages projet : finitions ---------- */
.p-hero::after { content: ""; position: absolute; left: var(--gutter); bottom: 0; width: 120px; height: 3px; border-radius: 3px; background: var(--beam); }
.p-text p:first-child::first-letter { float: left; font-stretch: 125%; font-weight: 900; font-size: 3.4em; line-height: .85; margin: .06em .12em 0 0; color: var(--accent, var(--red)); }
.p-block h2 { padding-top: 6px; }
.p-block h2::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--accent, var(--red)); margin-bottom: 14px; }
.p-stats > div { position: relative; overflow: hidden; }
.p-stats > div::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); }
.g-item { cursor: zoom-in; position: relative; }
.g-item img { transition: transform .9s var(--ease-out); }
.g-item:hover img { transform: scale(1.03); }

.lightbox {
  position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; padding: 4vmin;
  background: rgba(5, 6, 15, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.lightbox.open { opacity: 1; pointer-events: auto; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 16px; transform: scale(.94); transition: transform .5s var(--ease-out); }
.lightbox.open img { transform: none; }
.lightbox button { position: absolute; top: 20px; right: 20px; font-weight: 700; padding: 10px 16px; border-radius: 999px; background: rgba(244, 241, 234, .12); }

.contact-card .h2, .contact .half .contact-card .h2 { font-size: clamp(34px, 3.7vw, 74px); }
@media (max-width: 760px) { .contact-card .h2, .contact .half .contact-card .h2 { font-size: 9.6vw; } }
.header { transition: background .4s, padding .4s, box-shadow .4s; }
.header.scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(5, 6, 15, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }

/* pas de dégradé sur les textes : couleurs pleines */
.beam-text { background: none; color: var(--yellow); }
.stat strong { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.bento .stat:nth-child(2) strong { color: var(--yellow); }
.bento .stat:nth-child(3) strong { color: var(--red); }
.skills-row span { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.skills-row span.o { color: transparent; }
.tl h4 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--yellow); }

/* ---------- phare du menu ---------- */
.nav { position: relative; }
.nav-lh { display: inline-grid; place-items: center; width: 30px; height: 34px; margin: 0 4px 0 6px; position: relative; z-index: 2; }
.lh { width: auto; height: 100%; overflow: visible; }
.lh .lh-lamp { animation: lamp 2.4s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { fill: #ffd27a; } 50% { fill: #fff3cf; } }
.nav-beam {
  position: absolute; z-index: 1; height: 44px; width: 0; opacity: 0; pointer-events: none;
  transform: translateY(-50%);
  clip-path: polygon(0 46%, 100% 0, 100% 100%, 0 54%);
  background: linear-gradient(90deg, rgba(255, 210, 122, .75), rgba(255, 210, 122, .18) 85%, rgba(255, 210, 122, .05));
  mix-blend-mode: screen;
  transition: width .55s cubic-bezier(.16, 1, .3, 1), opacity .3s;
}
.nav a { position: relative; z-index: 2; }
.nav a.is-active { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .55); }
.nav a.cta, .nav a.cta.is-active { background: var(--red); color: #fff; box-shadow: none; }
.menu-btn { display: none; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; }
.menu-btn .nav-lh { width: 22px; height: 28px; margin: 0; }
@media (max-width: 820px) { .menu-btn { display: inline-flex; } }
.mm-lh { position: absolute; right: 8vw; bottom: 6vh; height: 34vh; aspect-ratio: 20 / 36; opacity: .9; }
.mm-lh .lh { height: 100%; }
.mm-beam {
  position: absolute; left: 50%; top: 26%; width: 120vw; height: 18vh; transform-origin: 0 50%;
  clip-path: polygon(0 48%, 100% 0, 100% 100%, 0 52%);
  background: linear-gradient(90deg, rgba(255, 210, 122, .55), rgba(255, 210, 122, 0));
  animation: sweep 5s ease-in-out infinite alternate;
}
@keyframes sweep { from { transform: translateY(-50%) rotate(160deg); } to { transform: translateY(-50%) rotate(215deg); } }
@media (prefers-reduced-motion: reduce) { .lh .lh-lamp, .mm-beam { animation: none; } }

/* =========================================================
   PAGE PROJET v3 — étude de cas cinéma
   ========================================================= */
.read-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; }
.read-bar i { display: block; height: 100%; background: var(--accent, var(--red)); transform-origin: left; transform: scaleX(0); }

.cs-hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) 40px; }
.cs-media { position: absolute; inset: 0; background: var(--bg-card); transform-origin: 50% 40%; }
.cs-media img, .cs-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-media.contain img { object-fit: contain; padding: 12vh 12vw 26vh; }
.cs-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 15, .55) 0%, rgba(5, 6, 15, 0) 22%, rgba(5, 6, 15, 0) 45%, rgba(5, 6, 15, .92) 100%); }
.cs-hero .p-back { position: absolute; top: 100px; left: var(--gutter); z-index: 2; }
.cs-head { position: relative; z-index: 2; }
.cs-head .p-title { font-size: clamp(54px, 11vw, 220px); max-width: 100%; margin: 12px 0 18px; text-shadow: 0 8px 40px rgba(0, 0, 0, .35); }
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-down { position: absolute; right: var(--gutter); bottom: 44px; z-index: 2; font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) { .cs-down { display: none; } .cs-media.contain img { padding: 16vh 8vw 32vh; } }

.cs-intro { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.cs-lead { font-size: clamp(26px, 3vw, 50px); line-height: 1.18; font-weight: 500; letter-spacing: -.015em; }
.cs-facts { display: grid; gap: 10px; }
.cs-facts > div { padding: 16px 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cs-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs-facts dd { font-weight: 600; text-align: right; }
@media (max-width: 860px) { .cs-intro { grid-template-columns: 1fr; } }

.cs-chapters { padding-top: 0; }
.chapter { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(20px, 4vw, 64px); padding: clamp(48px, 9vh, 110px) 0; border-top: 1px solid var(--line); }
.ch-num { font-stretch: 125%; font-weight: 900; font-size: clamp(80px, 12vw, 220px); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px var(--accent, var(--red)); position: sticky; top: 110px; align-self: start; }
.ch-body h2 { font-size: clamp(34px, 4.4vw, 80px); margin-bottom: 28px; }
.ch-body .p-text { grid-column: auto; max-width: 760px; margin-bottom: 0; }
.ch-body .p-text p:first-child::first-letter { float: none; font-size: inherit; margin: 0; color: inherit; font-weight: inherit; }
@media (max-width: 760px) { .chapter { grid-template-columns: 1fr; } .ch-num { position: relative; top: 0; font-size: 22vw; } }

.plates { margin: 0 calc(var(--gutter) * -1) clamp(48px, 9vh, 110px); }
.plates.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-left: 0; margin-right: 0; }
.plate { position: relative; overflow: hidden; background: var(--gbg, var(--card)); }
.plates:not(.two) .plate { height: 92vh; }
.plates.two .plate { border-radius: 24px; aspect-ratio: 4 / 3; }
.plate .g-item { position: absolute; inset: 0; border-radius: 0; background: none; }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate.half img { object-fit: contain; padding: 6%; aspect-ratio: auto; }
.plate figcaption { position: absolute; left: 20px; bottom: 16px; z-index: 2; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(5, 6, 15, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 760px) { .plates:not(.two) .plate { height: 60vh; } .plates.two { grid-template-columns: 1fr; } }

.cs-stats .p-stats > div { border: 0; }
.cs-stats .p-stats strong { color: var(--accent, var(--red)); }
.cs-h { font-size: clamp(34px, 4.4vw, 80px); margin-bottom: 32px; }

.p-quote { position: relative; padding-top: clamp(120px, 18vh, 200px); }
.q-mark { display: block; font-stretch: 125%; font-weight: 900; font-size: clamp(120px, 16vw, 280px); line-height: .6; color: var(--accent, var(--red)); }

.cs-next { position: relative; display: flex; align-items: flex-end; height: 92vh; min-height: 520px; overflow: hidden; padding: 0 var(--gutter) 56px; }
.cs-next .cs-media img { transition: transform 1.2s var(--ease-out); }
.cs-next:hover .cs-media img { transform: scale(1.04); }
.cs-next-in { position: relative; z-index: 2; }
.cs-next h2 { font-size: clamp(56px, 11vw, 210px); margin: 12px 0 22px; transition: color .4s; }
.cs-next:hover h2 { color: var(--accent, var(--red)); }
.cs-next .go { display: inline-flex; gap: 12px; padding: 14px 22px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; transition: background .3s, color .3s, gap .3s; }
.cs-next:hover .go { background: var(--red); color: #fff; gap: 18px; }

.toast { transform: translate(-50%, 160px); visibility: hidden; transition: transform .5s var(--ease-out), visibility 0s .5s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease-out); }

/* =========================================================
   SOBRIÉTÉ : plus de dégradés bleu-violet
   ========================================================= */
:root { --bg: #0a0a0c; --bg-2: #121215; --card: #141417; --glow: #ffb347; }
html { background: var(--bg); }
.glow { background: radial-gradient(38vmax 38vmax at var(--gx, 50%) 42%, rgba(255, 179, 71, .10), transparent 65%) !important; opacity: 1; }
.glass { background: rgba(20, 20, 24, .72); box-shadow: none; }
.glass::before { background: rgba(244, 241, 234, .12); }
.nav, .menu-btn, .pill, .btn { background: rgba(20, 20, 24, .7); }
.projects { background: var(--bg); }
.pcard { background: #121215; box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .1); }
.pcard::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--accent); z-index: 2; }
.p-stats > div::after { display: none; }
.mobile-menu { background: #0e0e11; }
.mail-row { background: rgba(10, 10, 12, .7); }

/* =========================================================
   v6 — 3D facettée, manège de projets, motion design
   ========================================================= */
.glow { display: none !important; }
.line { perspective: 900px; }
.char { backface-visibility: hidden; transform-style: preserve-3d; }

/* iris de transition */
.iris { position: fixed; inset: 0; z-index: 190; background: #0a0a0c; pointer-events: none; clip-path: circle(0% at 50% 50%); }

/* faisceau du menu : couleur pleine */
.nav-beam { background: rgba(255, 210, 122, .42); }
.mm-beam { background: rgba(255, 210, 122, .32); }

/* manège de projets */
.orbit { position: relative; z-index: 2; }
.orbit-pin { position: relative; height: 100vh; height: 100svh; padding: 110px var(--gutter) 40px; }
.orbit-top .h2 { margin-bottom: 0; font-size: clamp(44px, 6vw, 112px); }
.orbit-info { position: absolute; left: var(--gutter); bottom: 48px; max-width: min(520px, 42vw); }
.o-count { display: flex; align-items: baseline; gap: 8px; font-weight: 700; color: var(--muted); }
.o-count b { font-stretch: 125%; font-weight: 900; font-size: 22px; color: var(--red); }
.o-title h3 { font-size: clamp(40px, 5.2vw, 96px); line-height: .92; margin: 10px 0 12px; }
#o-meta { color: var(--muted); margin-bottom: 20px; }
.orbit .go { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; font-weight: 600; background: var(--text); color: var(--bg); transition: background .3s, color .3s, gap .3s var(--ease-out); }
.orbit .go:hover { background: var(--red); color: #fff; gap: 18px; }
.o-dots { position: absolute; right: var(--gutter); bottom: 52px; display: grid; gap: 6px; justify-items: end; }
.o-dots a { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .3s; }
.o-dots a span { opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s; }
.o-dots a:hover span, .o-dots a.on span { opacity: 1; transform: none; }
.o-dots a.on, .o-dots a:hover { color: var(--text); }
.o-dots i { order: 2; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--muted); transition: background .3s, border-color .3s, transform .3s; }
.o-dots a.on i { background: var(--red); border-color: var(--red); transform: scale(1.3); }
.o-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.stack.fallback { display: none; padding: 0 var(--gutter) 80px; }
.no-webgl .stack.fallback { display: block; }
.no-webgl .orbit-info, .no-webgl .o-dots, .no-webgl .o-hint { display: none; }
.no-webgl .orbit-pin { height: auto; }
@media (max-width: 760px) {
  .orbit-info { max-width: none; right: var(--gutter); bottom: 120px; }
  .o-dots { left: var(--gutter); right: auto; bottom: 64px; display: flex; gap: 10px; }
  .o-dots a span { display: none; }
  .o-hint { display: none; }
}

/* sections au-dessus de la 3D : fond transparent, pas de halo */
.projects { background: transparent; }
.about, .journey, .contact { background: transparent; }

/* =========================================================
   v7 — phare du menu redessiné, typo rouge / blanc uniquement
   ========================================================= */
.nav-lh { width: 26px; height: 40px; margin: 0 2px 0 4px; }
.lh .lh-lamp { animation: none; }
.lh .lh-rays path { fill: #fff; opacity: .0; animation: rays 2.6s ease-in-out infinite; }
.lh .lh-rays path:last-child { animation-delay: 1.3s; }
@keyframes rays { 0%, 100% { opacity: 0; } 40%, 60% { opacity: .55; } }
.menu-btn .nav-lh { width: 18px; height: 28px; }
.mm-lh { aspect-ratio: 40 / 64; }
.nav-beam { background: rgba(255, 255, 255, .22); }
.mm-beam { background: rgba(255, 255, 255, .16); }
.nav a.is-active { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
@media (prefers-reduced-motion: reduce) { .lh .lh-rays path { animation: none; opacity: .4; } }

/* typographie : rouge ou blanc, rien d'autre */
:root { --muted: rgba(255, 255, 255, .6); }
.beam-text { color: var(--red); }
.bento .stat:nth-child(1) strong, .bento .stat:nth-child(2) strong { color: #fff; }
.bento .stat:nth-child(3) strong { color: var(--red); }
.tl h4 { color: var(--red); }
.badge.live { background: var(--red); color: #fff; }
.badge.live::before { background: #fff; box-shadow: none; }
.pcard-num b, .o-count b { color: var(--red); }
.p-text li::before, .cs-stats .p-stats strong, .p-stats strong, .q-mark, .ch-num { color: var(--red); }
.ch-num { color: transparent; -webkit-text-stroke-color: var(--red); }
.cs-next:hover h2, .p-next:hover h2 { color: var(--red); }
.p-block h2::before, .p-hero::after { background: var(--red); }
.pill i { background: var(--red); box-shadow: none; }
.skills-row span::after { color: var(--red); }
.copy.done { background: var(--red); color: #fff; }
.timeline .beam i { background: var(--red); box-shadow: none; }
.tl.is-lit::after { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgba(226, 35, 26, .18); }

/* manège : texte du projet lisible */
.orbit-info { padding: 22px 24px 24px; border-radius: 22px; background: rgba(10, 10, 12, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); max-width: min(480px, 38vw); }
.o-title h3 { font-size: clamp(36px, 4.2vw, 78px); }
.orbit-top { position: relative; z-index: 1; }
@media (max-width: 760px) { .orbit-info { max-width: none; padding: 18px; bottom: 96px; } .o-title h3 { font-size: 11vw; } }
@media (max-width: 760px) { .orbit-info { bottom: 70px; padding: 14px 16px; } .orbit-info p#o-meta { margin-bottom: 12px; } .o-dots { bottom: 36px; } }

/* =========================================================
   Projets — mise en page éditoriale (sans boîte)
   ========================================================= */
.orbit-info { background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 0 !important; bottom: 92px; max-width: min(560px, 42vw); }
.o-index { font-stretch: 125%; font-weight: 900; font-size: clamp(64px, 7vw, 132px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--red); margin-bottom: 6px; }
.o-title h3 { font-size: clamp(40px, 4.8vw, 92px); line-height: .9; margin: 0 0 14px; text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
#o-meta { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-bottom: 22px; }
.o-link { position: relative; display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 16px; color: #fff; padding-bottom: 6px; }
.o-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: #fff; transform-origin: right; transition: transform .5s var(--ease); }
.o-link:hover { color: var(--red); }
.o-link:hover::after { background: var(--red); transform: scaleX(.3); }
.orbit .go { display: none; }
.o-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px; display: flex; align-items: center; gap: 20px; }
.o-progress span { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #fff; white-space: nowrap; }
.o-bars { flex: 1; display: grid; grid-auto-flow: column; gap: 6px; position: static; }
.o-bars a { display: block; height: 18px; position: relative; }
.o-bars a i { position: absolute; left: 0; right: 0; top: 8px; height: 2px; border: 0; border-radius: 0; background: rgba(255, 255, 255, .22); transform: none !important; transition: background .4s; }
.o-bars a.on i { background: var(--red); }
.o-bars a:hover i { background: #fff; }
.o-dots { position: static !important; display: grid !important; }
.o-hint { bottom: auto; top: 128px; left: auto; right: var(--gutter); transform: none; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
@media (max-width: 760px) {
  .orbit-info { left: var(--gutter); right: var(--gutter); bottom: 78px; max-width: none; }
  .o-index { font-size: 56px; }
  .o-title h3 { font-size: 10.5vw; }
  .o-progress { bottom: 30px; }
  .o-hint { display: none; }
}

/* projection : le texte se place sous l'image projetée (à droite) */
@media (min-width: 761px) {
  .orbit-info { left: auto !important; right: var(--gutter); width: min(560px, 40vw); bottom: 96px; }
  .o-hint { display: none; }
}

@media (min-width: 761px) { .orbit-info { bottom: 70px; } .orbit-info .o-index { font-size: clamp(48px, 5vw, 96px); } .orbit-info .o-title h3 { font-size: clamp(34px, 3.8vw, 72px); } }
@media (min-width: 761px) { .orbit-info { bottom: 64px; } .orbit-info .o-index { font-size: 44px; margin-bottom: 4px; } .orbit-info .o-title h3 { font-size: clamp(30px, 3vw, 54px); margin-bottom: 10px; } #o-meta { margin-bottom: 14px; } }

.site-link { background: var(--red) !important; color: #fff; border-color: var(--red) !important; transition: background .3s, color .3s; }
.site-link:hover { background: #fff !important; color: var(--red); }

.cs-visit { padding-top: 0; text-align: center; }
.cs-visit .btn { font-size: clamp(16px, 1.6vw, 22px); padding: 20px 34px; }
.cs-hero .cs-media.contain img { padding: 22vh 18vw 40vh; }
@media (max-width: 760px) { .cs-hero .cs-media.contain img { padding: 22vh 10vw 44vh; } }

/* =========================================================
   Fin de page projet : « Autres projets » avec petit phare
   ========================================================= */
.cs-more { border-top: 1px solid var(--line); }
.more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.more-head h2 { font-size: clamp(36px, 4.6vw, 84px); margin-top: 12px; }
.more-all { font-weight: 600; color: rgba(255, 255, 255, .7); padding-bottom: 6px; border-bottom: 1.5px solid currentColor; white-space: nowrap; transition: color .3s; }
.more-all:hover { color: var(--red); }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ocard { position: relative; display: block; border-radius: 20px; overflow: hidden; background: #131316; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .5s var(--ease-out), box-shadow .4s; }
.ocard:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.ocard-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.ocard-media img, .ocard-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.ocard-media.contain img { object-fit: contain; padding: 13% 16%; }
.ocard:hover .ocard-media img { transform: scale(1.05); }
.ocard-info { padding: 16px 18px 20px; }
.ocard-info span { font-size: 12px; font-weight: 800; color: var(--red); letter-spacing: .1em; }
.ocard-info h3 { font-size: clamp(22px, 1.9vw, 32px); line-height: 1; margin: 6px 0 6px; }
.ocard-info p { font-size: 13px; color: rgba(255, 255, 255, .6); }
/* le petit phare et son faisceau qui balaie la carte au survol */
.ocard-lh { position: absolute; top: 12px; right: 14px; z-index: 3; width: 24px; height: 38px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.ocard-lh .lh { height: 100%; width: auto; }
.ocard-beam { position: absolute; z-index: 2; top: 23px; right: 26px; width: 0; height: 150px; transform: translateY(-50%); pointer-events: none;
  clip-path: polygon(100% 47%, 0 0, 0 100%, 100% 53%); background: rgba(255, 244, 220, .28); mix-blend-mode: screen; transition: width .7s var(--ease-out); }
.ocard:hover .ocard-beam { width: 88%; }
.ocard:hover .lh-rays path { opacity: .7; animation: none; }
.ocard:hover .lh-lamp { fill: #fff6d8; }
@media (max-width: 860px) {
  .more-head { flex-direction: column; align-items: flex-start; }
  .more-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .more-grid::-webkit-scrollbar { display: none; }
  .ocard { scroll-snap-align: start; }
  .ocard-beam { width: 60%; }
}
.ocard-beam { background: rgba(255, 228, 160, .42); mix-blend-mode: normal; }

/* un seul grand phare à gauche des cartes */
.ocard-lh, .ocard-beam { display: none !important; }
.more-wrap { position: relative; display: grid; grid-template-columns: clamp(140px, 13vw, 210px) 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.more-lh { position: sticky; top: 16vh; height: clamp(300px, 46vh, 460px); z-index: 2; display: flex; justify-content: center; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.more-lh .lh { height: 100%; width: auto; overflow: visible; }
.more-lh .lh-rays path { opacity: .55; animation: rays 2.6s ease-in-out infinite; }
.more-beam {
  position: absolute; z-index: 3; left: 0; top: 0; width: 0; height: 200px; pointer-events: none;
  transform-origin: 0 50%;
  clip-path: polygon(0 48%, 100% 0, 100% 100%, 0 52%);
  background: rgba(255, 228, 160, .2);
  transition: width .7s var(--ease-out), height .7s var(--ease-out), transform .7s var(--ease-out), top .3s, left .3s;
}
.more-wrap .more-grid { position: relative; z-index: 1; }
.ocard.lit { box-shadow: inset 0 0 0 1px rgba(255, 228, 160, .55); }
.ocard.lit .ocard-media img { transform: scale(1.04); }
@media (max-width: 860px) {
  .more-wrap { grid-template-columns: 1fr; }
  .more-lh, .more-beam { display: none; }
}
.more-lh .lh-rays { display: none; }

/* =========================================================
   Autres projets : rangée épurée (sans phare dessiné)
   ========================================================= */
.more-lh, .more-beam { display: none !important; }
.more-wrap { display: block !important; margin: 0 calc(var(--gutter) * -1); }
.more-wrap .more-grid {
  display: flex !important; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: auto;
  padding: 8px var(--gutter) 12px; scrollbar-width: none; cursor: grab;
}
.more-wrap .more-grid::-webkit-scrollbar { display: none; }
.more-wrap .more-grid.drag { cursor: grabbing; scroll-snap-type: none; }
.more-wrap .more-grid.drag .ocard { pointer-events: none; }
.more-wrap .ocard { flex: 0 0 clamp(260px, 28vw, 400px); scroll-snap-align: start; user-select: none; -webkit-user-drag: none; }
.more-wrap .ocard img { -webkit-user-drag: none; pointer-events: none; }
.ocard.lit { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ocard:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.more-nav { display: flex; gap: 8px; }
.more-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 18px; transition: background .3s, color .3s, border-color .3s; }
.more-nav button:hover { background: #fff; color: var(--bg); border-color: #fff; }
@media (max-width: 860px) { .more-wrap .ocard { flex-basis: 78%; } .more-nav { display: none; } }
.more-wrap .more-grid { scroll-padding-left: var(--gutter); scroll-padding-right: var(--gutter); }

/* =========================================================
   Navigation simple et intuitive
   ========================================================= */
/* accueil : deux boutons clairs */
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 15px 24px; font-size: 15px; }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(10, 10, 12, .35); }

/* projets : bouton bien visible + flèches */
.o-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.o-actions .o-link { padding: 14px 22px; border-radius: 999px; background: #fff; color: var(--bg); margin-right: 6px; transition: background .3s, color .3s; }
.o-actions .o-link::after { display: none; }
.o-actions .o-link:hover { background: var(--red); color: #fff; }
.o-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 17px; background: rgba(10, 10, 12, .4); transition: background .3s, color .3s, border-color .3s; }
.o-arrow:hover { background: #fff; color: var(--bg); border-color: #fff; }

/* projets : la liste des noms remplace les petites barres */
.o-progress { gap: 18px; }
.o-tabs { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.o-tabs::-webkit-scrollbar { display: none; }
.o-tabs button {
  flex: 1 0 auto; position: relative; padding: 14px 4px 8px; text-align: left; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .5); transition: color .3s;
}
.o-tabs button span { font-size: 11px; color: rgba(255, 255, 255, .35); margin-right: 8px; letter-spacing: .08em; }
.o-tabs button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, .2); transition: background .3s; }
.o-tabs button:hover { color: #fff; }
.o-tabs button:hover::before { background: rgba(255, 255, 255, .6); }
.o-tabs button.on { color: #fff; }
.o-tabs button.on span { color: var(--red); }
.o-tabs button.on::before { background: var(--red); }
.o-skip { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .6); white-space: nowrap; padding: 8px 0; transition: color .3s; }
.o-skip:hover { color: #fff; }
@media (min-width: 761px) { .orbit-info { bottom: 96px !important; } }
@media (max-width: 760px) {
  .o-progress { bottom: 22px; gap: 12px; }
  .o-progress > span { display: none; }
  .o-tabs { margin-left: calc(var(--gutter) * -1); padding-left: var(--gutter); }
  .o-tabs button { flex: 0 0 auto; padding-right: 14px; }
  .orbit-info { bottom: 84px !important; }
  .o-actions .o-link { padding: 12px 18px; }
  .o-arrow { width: 44px; height: 44px; }
}


/* =========================================================
   Typo des titres : Bricolage Grotesque (moderne, arrondie)
   ========================================================= */
:root { --display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif; }
.wide, .logo, .mobile-menu a, .card-info h3, .step h3, .p-block h2, .p-stats strong, .stat strong,
.skills-row span, .pcard-num b, .pcard h3, .tl h3, .p-text p:first-child::first-letter, .ch-num, .q-mark,
.o-count b, .o-index, .ocard-info h3, .o-title h3 {
  font-family: var(--display) !important; font-stretch: 100% !important; font-weight: 800 !important;
  font-variation-settings: "opsz" 96; text-transform: none !important; letter-spacing: -.035em !important;
}
.wide { line-height: .95; }
.hero-title { letter-spacing: -.045em !important; }
.logo { letter-spacing: -.02em !important; font-size: 20px; }
.ch-num, .o-index { -webkit-text-stroke-width: 1.5px; }
.hero-title { font-size: clamp(64px, 16vw, 300px) !important; line-height: .84 !important; }
@media (max-width: 760px) { .hero-title { font-size: 24vw !important; } }
/* téléphone : le texte du projet sur un fond sombre, lisible par-dessus le phare */
@media (max-width: 760px) {
  .orbit-info {
    left: 12px !important; right: 12px !important; bottom: 74px !important;
    padding: 16px 16px 16px !important; border-radius: 20px;
    background: rgba(10, 10, 12, .82) !important; -webkit-backdrop-filter: blur(12px) !important; backdrop-filter: blur(12px) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08) !important;
  }
  .orbit-info .o-index { font-size: 30px !important; margin-bottom: 2px; }
  .orbit-info .o-title h3 { font-size: clamp(28px, 8.5vw, 40px) !important; margin: 4px 0 6px !important; }
  #o-meta { font-size: 11px; margin-bottom: 12px !important; }
  .o-progress { bottom: 16px !important; }
}

/* =========================================================
   Écran d'ouverture : bateau + phare + barre de chargement
   ========================================================= */
html.intro-lock, html.intro-lock body { overflow: hidden; }
.intro {
  --p: 0; --hz: 62%;
  position: fixed; inset: 0; z-index: 400; overflow: hidden; background: #08080b; color: #fff;
  clip-path: inset(0 0 0 0); transition: clip-path 1.2s cubic-bezier(.76, 0, .24, 1);
}
.intro.out { clip-path: inset(0 0 100% 0); }
.intro.out .ld-boat { transition: transform 1.2s cubic-bezier(.5, 0, .75, 0); transform: translateX(110vw); }
.ld-stars { position: absolute; inset: 0; }
.ld-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: ldTw 3s ease-in-out infinite alternate; }
@keyframes ldTw { to { opacity: .1; } }
.ld-moon { position: absolute; right: 13%; top: 14%; width: clamp(38px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%; background: #efe9dc; box-shadow: 0 0 80px rgba(239, 233, 220, .22); }
.ld-logo { position: absolute; top: 26px; left: var(--gutter); z-index: 6; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.ld-logo span { color: var(--red); }

.ld-sea { position: absolute; left: 0; right: 0; top: var(--hz); bottom: 0; background: #0b1530; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.ld-lh { position: absolute; left: 50%; top: calc(var(--hz) + 1.2vh); height: clamp(200px, 38vh, 400px); transform: translate(-50%, -100%); z-index: 2; }
.ld-lh .lh { position: relative; z-index: 2; height: 100%; width: auto; display: block; overflow: visible; }
.ld-rock { position: absolute; z-index: 1; left: 50%; bottom: -3%; width: 210%; height: 13%; transform: translateX(-50%); background: #17181d; border-radius: 50% 50% 8px 8px / 100% 100% 8px 8px; }
.ld-beam {
  position: absolute; z-index: 1; left: 50%; top: 22.6%; width: 75vw; height: 20vh; margin-top: -10vh;
  transform-origin: 0 50%; background: rgba(255, 228, 160, .2);
  clip-path: polygon(0 47%, 100% 0, 100% 100%, 0 53%);
  animation: ldSweep 5s ease-in-out infinite;
}
.ld-beam.b2 { animation-delay: -2.5s; }
@keyframes ldSweep { 0% { transform: scaleX(1); opacity: .9; } 25% { opacity: .15; } 50% { transform: scaleX(-1); opacity: .9; } 75% { opacity: .15; } 100% { transform: scaleX(1); opacity: .9; } }
.ld-halo { position: absolute; z-index: 3; left: 50%; top: 22.6%; width: 18%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: #ffe7a3; filter: blur(14px); opacity: .55; animation: ldPulse 2.5s ease-in-out infinite; }
@keyframes ldPulse { 50% { opacity: .9; } }
.ld-glint { position: absolute; left: 50%; top: calc(var(--hz) + 2vh); width: 4px; height: 20vh; transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, rgba(255, 228, 160, .35) 0 3px, transparent 3px 11px); opacity: .7; }

.ld-boat {
  position: absolute; z-index: 4; left: 0; top: calc(var(--hz) + 15vh); width: clamp(360px, 64vw, 1000px);
  transform: translateX(calc(-100% + var(--p) * (100vw + 100%)));
  translate: 0 -76%;
}
.ld-bob { animation: ldBob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.ld-bob svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes ldBob { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(6px) rotate(.6deg); } }
.ld-smoke circle { fill: rgba(220, 220, 228, .28); animation: ldSmoke 3s linear infinite; transform-box: fill-box; transform-origin: center; }
.ld-smoke circle:nth-child(2) { animation-delay: -1s; }
.ld-smoke circle:nth-child(3) { animation-delay: -2s; }
@keyframes ldSmoke { from { transform: translate(0, 0) scale(.6); opacity: .9; } to { transform: translate(-70px, -60px) scale(2.2); opacity: 0; } }
.ld-mastlight { animation: ldBlink 1.2s steps(2) infinite; }
@keyframes ldBlink { 50% { opacity: .2; } }
.ld-wake { animation: ldWake 1.6s ease-in-out infinite; }
@keyframes ldWake { 50% { opacity: .2; } }

.ld-waves { position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--hz) + 12.5vh); bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='36'%3E%3Cpath d='M0 18 Q60 2 120 18 T240 18' fill='none' stroke='%23ffffff' stroke-opacity='.18' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0 / 240px 36px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='36'%3E%3Cpath d='M0 18 Q60 2 120 18 T240 18 V36 H0Z' fill='%230b1530'/%3E%3C/svg%3E") repeat-x 0 0 / 240px 36px;
  animation: ldWave 2.6s linear infinite; }
.ld-waves::after { content: ""; position: absolute; left: 0; right: 0; top: 34px; bottom: 0; background: #0b1530; }
@keyframes ldWave { to { background-position: -240px 0, -240px 0; } }

.ld-bar { position: absolute; z-index: 6; left: var(--gutter); right: var(--gutter); bottom: max(6vh, 34px); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ld-bar > div { display: grid; gap: 6px; padding-bottom: 6px; }
.ld-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.ld-msg { font-size: 15px; color: rgba(255, 255, 255, .75); }
.ld-pct { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 140px); line-height: .8; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ld-pct b { font-weight: inherit; }
.ld-line { position: absolute; left: 0; right: 0; bottom: -18px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.ld-fill { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
@media (max-width: 760px) {
  .intro { --hz: 56%; }
  .ld-boat { width: 118vw; top: calc(var(--hz) + 11vh); }
  .ld-waves { top: calc(var(--hz) + 9vh); }
  .ld-beam { width: 110vw; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-beam, .ld-bob, .ld-smoke circle, .ld-waves, .ld-stars i { animation: none; }
}

/* écran d'ouverture : formes plus douces */
.ld-rock { display: none; }
.ld-rocks { position: absolute; z-index: 1; left: 50%; bottom: -5%; width: 230%; height: auto; transform: translateX(-50%); overflow: visible; }
.ld-beam { clip-path: none; height: 22vh; margin-top: -11vh; background: none; }
.ld-beam::before {
  content: ""; position: absolute; inset: 0; background: rgba(255, 228, 160, .24);
  clip-path: polygon(0 46%, 100% 0, 100% 100%, 0 54%); filter: blur(10px);
}
.ld-beam { filter: blur(2px); border-radius: 0 50% 50% 0; }
.ld-moon { box-shadow: 0 0 0 10px rgba(239, 233, 220, .04), 0 0 0 26px rgba(239, 233, 220, .025), 0 0 90px rgba(239, 233, 220, .25); }
.ld-sea { box-shadow: none; }
.ld-sea::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='40'%3E%3Cpath d='M0 20 C40 4 120 4 160 20 S280 36 320 20 V40 H0Z' fill='%230e1a38'/%3E%3C/svg%3E") repeat-x 0 0 / 320px 40px; animation: ldWaveB 7s linear infinite; }
@keyframes ldWaveB { to { background-position: 320px 0; } }
.ld-waves { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='40'%3E%3Cpath d='M0 22 C35 8 95 8 130 22 S225 36 260 22 V40 H0Z' fill='%230b1530'/%3E%3Cpath d='M0 22 C35 8 95 8 130 22 S225 36 260 22' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='2'/%3E%3C/svg%3E") repeat-x 0 0 / 260px 40px; animation: ldWave 3.2s linear infinite; }
@keyframes ldWave { to { background-position: -260px 0; } }
.ld-waves::after { top: 38px; }
.ld-line { height: 4px; border-radius: 4px; }
.ld-fill { border-radius: 4px; }
