/* Layout: dark "régie" (control room) world. Full-bleed photo bands framed like a camera viewfinder, gold as the single light source. */
:root {
  --ink: #0a0d13;
  --panel: #121722;
  --panel-2: #181f2d;
  --line: #262e40;
  --fg: #eef0f4;
  --muted: #9ba4b6;
  --gold: #f2b233;
  --gold-deep: #c98a12;
  --rec: #e5484d;
  --tile: #f3f4f6;
  --tile-fg: #1b2230;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --s-xs: .8125rem;
  --s-sm: .9375rem;
  --s-md: 1.0625rem;
  --s-lg: 1.375rem;
  --s-xl: clamp(1.75rem, 3.2vw, 2.5rem);
  --s-2xl: clamp(2.4rem, 6vw, 4.75rem);

  --wrap: 1200px;
  --radius: 6px;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--s-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

h1, h2, h3 { font-family: var(--f-display); font-stretch: 115%; font-weight: 800; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--s-2xl); }
h2 { font-size: var(--s-xl); }
h3 { font-size: var(--s-lg); font-stretch: 105%; font-weight: 700; }
p { margin: 0; }
.gold { color: var(--gold); }
.lead { font-size: var(--s-lg); line-height: 1.5; color: var(--fg); max-width: 40ch; }
.prose { max-width: 65ch; color: var(--muted); display: grid; gap: 1em; }
.prose strong { color: var(--fg); font-weight: 600; }

.eyebrow {
  font-family: var(--f-display); font-stretch: 87%; font-weight: 600;
  font-size: var(--s-xs); text-transform: uppercase; letter-spacing: .2em;
  color: var(--gold); display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 1.6em; height: 1px; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font-family: var(--f-display); font-stretch: 100%; font-weight: 700; font-size: var(--s-sm);
  padding: .85em 1.35em; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffc54d; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(10, 13, 19, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: var(--s-sm); color: var(--muted); padding: .5em .8em; border-radius: 999px; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a[aria-current="page"] { color: var(--fg); background: var(--panel-2); }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-family: var(--f-display); font-stretch: 87%; font-weight: 600; font-size: var(--s-xs); letter-spacing: .08em; }
.lang a, .lang span { padding: .45em .8em; text-decoration: none; }
.lang span { background: var(--gold); color: var(--ink); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--fg); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-tools { margin-left: auto; }
  .nav-tools .btn { display: none; }
  .nav-links { order: 5; width: 100%; flex-direction: column; margin: 0; padding-bottom: 16px; display: none; }
  .nav-links a { display: block; padding: .8em 0; font-size: var(--s-md); border-radius: 0; border-top: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { background: none; color: var(--gold); }
  .site-header.open .nav-links { display: flex; }
}

/* Viewfinder frame (camera corners + REC) */
.viewfinder { position: absolute; inset: clamp(14px, 2.5vw, 28px); pointer-events: none; }
.viewfinder i { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255, 255, 255, .75); }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.rec { position: absolute; top: 6px; right: 44px; display: flex; align-items: center; gap: .5em; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: var(--s-xs); letter-spacing: .08em; color: #fff; font-variant-numeric: tabular-nums; }
.rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 13, 19, .94) 0%, rgba(10, 13, 19, .78) 45%, rgba(10, 13, 19, .25) 100%), linear-gradient(0deg, rgba(10, 13, 19, .9) 0%, rgba(10, 13, 19, 0) 40%); }
.hero-inner { padding-block: clamp(80px, 12vw, 150px) clamp(56px, 8vw, 96px); display: grid; gap: 28px; }
.hero h1 { max-width: 14ch; }
.hero .lead { color: #d5d9e2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tag { font-family: var(--f-display); font-stretch: 87%; font-size: var(--s-xs); letter-spacing: .2em; text-transform: uppercase; color: #c9ced9; }

.page-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .hero-inner { padding-block: clamp(64px, 9vw, 112px) clamp(44px, 6vw, 72px); }
.page-hero h1 { max-width: 18ch; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 0; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: clamp(16px, 3vw, 40px); }
.stat b { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.25rem, 4.5vw, 3rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: var(--s-sm); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head p { color: var(--muted); }
.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.05fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split > * { min-width: 0; }
.framed { position: relative; border-radius: var(--radius); overflow: hidden; }
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Métiers chips */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chip { background: var(--ink); padding: 22px 20px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: var(--s-sm); min-height: 76px; }
.chip svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.chip.more { color: var(--gold); text-decoration: none; }
.chip.more:hover { background: var(--panel-2); }

/* Pôles (services) */
.poles { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .poles { grid-template-columns: repeat(2, 1fr); } .poles > :first-child { grid-column: span 2; } .poles > :first-child img { aspect-ratio: 21 / 9; } }
@media (min-width: 1100px) { .poles { grid-template-columns: repeat(4, 1fr); } }
.pole { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; transition: border-color .25s; }
.pole:hover { border-color: var(--gold-deep); }
.pole img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pole-body { padding: 24px; display: grid; gap: 10px; align-content: start; }
.pole-body p { color: var(--muted); font-size: var(--s-sm); }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: var(--s-xs); color: var(--gold); letter-spacing: .06em; }

/* Service detail blocks (Métiers page) */
.service { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service .split { align-items: start; }
.service-text { display: grid; gap: 18px; }
.service-text > p { color: var(--muted); max-width: 60ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 10px; height: 10px; margin-top: .5em; border: 2px solid var(--gold); border-radius: 50%; }
.ticks.cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); column-gap: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: var(--s-sm); color: var(--fg); background: var(--panel); }
.service-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.service-nav a { text-decoration: none; }
.service-nav a:hover .tag { border-color: var(--gold); color: var(--gold); }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: inherit; font-size: var(--s-sm); font-weight: 600; background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .5em 1.1em; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.gallery { display: grid; grid-auto-flow: dense; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.work { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.work button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.work img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.work:hover img { transform: scale(1.03); }
.work figcaption { padding: 14px 16px 16px; display: grid; gap: 2px; }
.work figcaption b { font-weight: 600; font-size: var(--s-sm); }
.work figcaption span { font-size: var(--s-xs); color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-family: var(--f-display); font-stretch: 87%; }
.work.wide { grid-column: span 2; }
.gallery.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 680px) { .work.wide { grid-column: auto; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 7, 11, .94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox figure { margin: 0; display: grid; gap: 12px; max-width: min(1400px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox figcaption { text-align: center; color: var(--muted); font-size: var(--s-sm); }
.lightbox-close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }

/* Videos */
.videos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.video { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--logo) left 22px bottom 20px / 30% auto no-repeat, radial-gradient(circle at 50% 40%, var(--panel-2), var(--ink)); }
.video-thumb:not(:has(img)) .play { opacity: .9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.7); transition: filter .3s; }
.video:hover .video-thumb img { filter: none; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-thumb:not(:has(img)) { background-blend-mode: soft-light, normal; }
.play span { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--ink); box-shadow: 0 0 0 10px rgba(242, 178, 51, .18); }
.play svg { width: 24px; height: 24px; margin-left: 4px; }
.video .viewfinder { inset: 12px; }
.video .viewfinder i { width: 18px; height: 18px; }
.video-body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.video-body b { font-weight: 600; }
.video-body span { color: var(--muted); font-size: var(--s-sm); }
.video.pending { cursor: default; }
.badge { display: inline-block; font-size: var(--s-xs); font-weight: 600; color: var(--gold); border: 1px dashed var(--gold-deep); border-radius: 999px; padding: .15em .7em; justify-self: start; }

/* References */
.logos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.logo-tile { background: var(--tile); border-radius: var(--radius); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 16px; }
.logo-tile img { height: 100%; width: 100%; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .25s, opacity .25s; }
.logo-tile:hover img { filter: none; opacity: 1; }
.logos-note { color: var(--muted); margin-top: 20px; font-size: var(--s-sm); }

/* Mission / values */
.values { display: flex; flex-wrap: wrap; gap: 10px; }
.value { border: 1px solid var(--gold-deep); color: var(--gold); border-radius: 999px; padding: .5em 1.2em; font-family: var(--f-display); font-weight: 700; font-stretch: 100%; }
.mission-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.mission-grid > div { display: grid; gap: 16px; align-content: start; }
.mission-grid p { color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band .hero-media::after { background: linear-gradient(90deg, rgba(10, 13, 19, .95), rgba(10, 13, 19, .7)); }
.cta-inner { padding-block: clamp(64px, 9vw, 110px); display: grid; gap: 24px; justify-items: start; }
.cta-inner h2 { max-width: 20ch; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 8px 28px; color: #d5d9e2; font-variant-numeric: tabular-nums; }

/* Contact */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }
.contact-grid > * { min-width: 0; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 40px); display: grid; gap: 20px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--s-sm); font-weight: 600; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: var(--s-md); color: var(--fg); background: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: .75em .9em; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 178, 51, .2); }
.field .err { color: #ff8a8d; font-size: var(--s-xs); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.form-foot p { color: var(--muted); font-size: var(--s-xs); max-width: 44ch; }
.sent { border: 1px solid var(--gold-deep); background: var(--panel-2); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.sent pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: var(--s-sm); color: var(--muted); background: var(--ink); border-radius: 4px; padding: 14px; margin: 0; max-height: 260px; overflow: auto; }
.sent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.coords { display: grid; gap: 14px; align-content: start; }
.coord { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.coord .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; color: var(--gold); }
.coord .ic svg { width: 20px; height: 20px; }
.coord small { display: block; color: var(--muted); font-size: var(--s-xs); text-transform: uppercase; letter-spacing: .14em; }
.coord a, .coord strong { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.coord a:hover { color: var(--gold); }
.copy { font: inherit; font-size: var(--s-xs); background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: .35em .8em; cursor: pointer; }
.copy:hover { color: var(--gold); border-color: var(--gold); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; background: var(--ink); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.foot-grid > div { display: grid; gap: 10px; align-content: start; }
.foot-grid h4 { margin: 0 0 4px; font-family: var(--f-display); font-stretch: 87%; font-size: var(--s-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.foot-grid a { text-decoration: none; color: var(--fg); font-size: var(--s-sm); }
.foot-grid a:hover { color: var(--gold); }
.foot-grid p { color: var(--muted); font-size: var(--s-sm); }
.foot-logo img { height: 28px; width: auto; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: var(--s-xs); letter-spacing: .14em; text-transform: uppercase; }

.wa-float { position: fixed; right: max(18px, calc(env(safe-area-inset-right, 0px) + 18px)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 18px)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Motion ---------- */
/* Hero: slow camera push-in */
.hero-media img { animation: pushin 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes pushin { from { transform: scale(1); } to { transform: scale(1.12); } }

/* Stage spotlights sweeping over hero backgrounds */
.beams { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; mix-blend-mode: screen; }
.beams i { position: absolute; top: -20%; width: 34vw; min-width: 260px; height: 150%; transform-origin: 50% 0; filter: blur(18px); opacity: .55;
  background: linear-gradient(180deg, rgba(242, 178, 51, .55), rgba(242, 178, 51, .12) 45%, transparent 75%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); animation: sweep 9s ease-in-out infinite alternate; }
.beams i:nth-child(1) { left: 8%; animation-duration: 11s; }
.beams i:nth-child(2) { left: 42%; animation-delay: -4s; background: linear-gradient(180deg, rgba(120, 160, 255, .45), rgba(120, 160, 255, .1) 45%, transparent 75%); }
.beams i:nth-child(3) { left: 72%; animation-duration: 13s; animation-delay: -7s; }
@keyframes sweep { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
.hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-media::after { z-index: 0; }
.hero-media img { position: relative; z-index: -1; }

/* Hero text entrance */
.hero-inner > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: .12s; }
.hero-inner > :nth-child(3) { animation-delay: .24s; }
.hero-inner > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero h1 .gold { background: linear-gradient(90deg, var(--gold) 0%, #ffe3a1 45%, var(--gold) 55%, var(--gold-deep) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* Scroll reveal (only when JS adds .motion to <html>) */
.motion .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 70ms); }
.motion .reveal.in { opacity: 1; transform: none; }

/* Animated section backgrounds: drifting light */
.section-alt { position: relative; overflow: hidden; isolation: isolate; }
.section-alt::before { content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 178, 51, .10), transparent) 20% 30% / 50% 50% no-repeat,
              radial-gradient(closest-side, rgba(90, 120, 220, .10), transparent) 80% 70% / 55% 55% no-repeat;
  animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-6%, -4%) rotate(0deg); } to { transform: translate(6%, 5%) rotate(25deg); } }

/* Hover effects */
.pole, .video { transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .35s; }
.pole:hover, .video:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(242, 178, 51, .35); border-color: var(--gold-deep); }
.pole img { transition: transform .6s; }
.pole:hover img { transform: scale(1.05); }
.pole { overflow: hidden; }
.play span { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 178, 51, .5); } 70%, 100% { box-shadow: 0 0 0 18px rgba(242, 178, 51, 0); } }
.video:hover .play span { transform: scale(1.12); }
.play span { transition: transform .3s; }
.chip { transition: background .25s, color .25s; }
.chip:hover { background: var(--panel-2); }
.chip:hover svg { animation: wiggle .6s ease; }
@keyframes wiggle { 30% { transform: rotate(-12deg) scale(1.15); } 60% { transform: rotate(8deg) scale(1.1); } }
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: gleam 4.5s ease-in-out infinite; }
@keyframes gleam { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.wa-float { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* Logo marquee */
.logos-marquee { display: grid; gap: 12px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: scrollx 40s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 46s; }
.mg { display: flex; gap: 12px; padding-right: 12px; }
.marquee .logo-tile { width: 180px; height: 110px; aspect-ratio: auto; flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* Scroll progress bar */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 70; }

@media (prefers-reduced-motion: reduce) {
  .beams, .hero-media canvas { display: none; }
  .marquee-track, .mg { flex-wrap: wrap; width: auto; }
  .mg[aria-hidden] { display: none; }
  .motion .reveal { opacity: 1; transform: none; }
}

/* Intro video (first visit) */
.intro { position: fixed; inset: 0; z-index: 200; background: rgba(5, 7, 11, .94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); animation: intro-in .4s ease both; }
.intro-box { position: relative; width: min(1100px, 100%); display: grid; gap: 14px; }
.intro-frame { aspect-ratio: 16 / 9; max-height: 78vh; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.intro-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.intro-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: var(--s-sm); }
.intro-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.intro-close:hover { border-color: var(--gold); color: var(--gold); }
@keyframes intro-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .intro { animation: none; } }
