/* Portail 2 — Ronny Vergara. Éditorial, sonore, cinétique. Aucune dépendance. */
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url("fonts/jetbrains-mono-600.woff2") format("woff2"); }

:root {
    --bg: #07080a;
    --fg: #f4f5f7;
    --mute: #8b93a1;
    --line: rgba(255, 255, 255, .12);
    --accent: #DC143C;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --mono: "JetBrains Mono", monospace;
    --pad: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--display); font-weight: 500; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--fg); color: var(--bg); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.grain {
    position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%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");
}
main, .foot { position: relative; z-index: 2; }

/* Header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: flex-end; align-items: center; padding: 1.4rem var(--pad); pointer-events: none; }
.sound-group { pointer-events: auto; display: inline-flex; align-items: center; gap: .75rem; background: var(--bg); border: 1px solid rgba(255, 255, 255, .28); border-radius: 99px; padding: .3rem .9rem .3rem .4rem; transition: border-color .3s; }
.sound-group:hover, .sound-group:focus-within { border-color: var(--fg); }
.sound { display: inline-flex; align-items: center; gap: .7rem; background: transparent; border: none; color: var(--fg); font: 600 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: .4rem .6rem; border-radius: 99px; cursor: pointer; transition: color .3s; }
.sound:hover { color: var(--accent); }
.sound b { font-weight: 600; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; transition: height .2s; }
.sound[aria-pressed="true"] .eq i { animation: eq .9s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { to { height: 12px; } }

.volume-panel { display: inline-flex; align-items: center; gap: .6rem; border-left: 1px solid var(--line); padding-left: .75rem; }
.volume-range { -webkit-appearance: none; appearance: none; width: 68px; height: 3px; background: rgba(255, 255, 255, .22); border-radius: 2px; outline: none; cursor: pointer; transition: background .2s; }
.volume-range:hover { background: rgba(255, 255, 255, .45); }
.volume-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--fg); cursor: pointer; transition: transform .15s, background .2s; }
.volume-range::-webkit-slider-thumb:hover { transform: scale(1.3); background: var(--accent); }
.volume-range::-moz-range-thumb { width: 10px; height: 10px; border: none; border-radius: 50%; background: var(--fg); cursor: pointer; }
.volume-label { font: 600 .68rem/1 var(--mono); color: var(--mute); min-width: 28px; }

/* Hero */
.hero { min-height: 100svh; padding: 7.5rem var(--pad) 3rem; display: flex; flex-direction: column; justify-content: flex-start; position: relative; }
.eyebrow { font: 600 .74rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.eyebrow span { color: var(--accent-text, var(--accent)); }
.title { font-weight: 700; width: min(100%, 1180px); margin-top: 1.6rem; }
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > .mark { transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
.line:nth-child(2) > .mark { animation-delay: .12s; }
/* Bloc logo justifié façon Bauhaus : les deux lignes du logotype SVG occupent la même largeur */
.mark { display: block; width: 100%; height: auto; fill: var(--fg); }
.mark--wire { fill: none; stroke: var(--fg); stroke-width: 1.5px; stroke-linejoin: round; }
.mark--wire * { vector-effect: non-scaling-stroke; }
.line + .line { margin-top: clamp(.8rem, 2.2vw, 2rem); }
.title::after { content: ""; display: block; margin-top: clamp(.8rem, 2.2vw, 2rem); height: clamp(10px, 1.6vw, 22px); background: var(--accent); transform-origin: left; animation: grow 1.2s .35s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes rise { to { transform: none; } }
.lead { margin-top: 1.6rem; max-width: 30ch; font-size: clamp(1rem, 1.6vw, 1.35rem); color: var(--mute); opacity: 0; animation: fade 1s .7s forwards; }
@keyframes fade { to { opacity: 1; } }
.scroll { position: absolute; right: var(--pad); bottom: 2.5rem; display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem .9rem; background: var(--bg); font: 600 1.1rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--fg); writing-mode: vertical-rl; animation: nudge 2s ease-in-out infinite; }
.scroll i { width: 2px; height: 110px; background: linear-gradient(var(--accent), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes nudge { 50% { transform: translateY(8px); } }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(7, 8, 10, .85); padding: 1.1rem 0; }
.marquee__track { display: flex; width: max-content; gap: 3rem; animation: slide 28s linear infinite; }
.marquee__track span { font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.marquee__track span::after { content: ""; display: inline-block; width: .35em; height: .35em; margin-left: 3rem; background: var(--accent); transform: rotate(45deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Index */
.index { background: var(--bg); padding: 7rem var(--pad) 5rem; }
.index__title { font: 600 .74rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); display: flex; gap: .6rem; margin-bottom: 2rem; }
.index__title span { color: var(--accent-text, var(--accent)); }
.index__title small { font: inherit; margin-left: auto; }
.rows { border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 3.5rem 1fr auto 2.5rem; align-items: center; gap: 1.5rem; padding: clamp(1.1rem, 2.4vw, 2rem) 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .3s, opacity .3s; isolation: isolate; }
.row::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--c); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.row__n { font: 600 .78rem/1 var(--mono); color: var(--mute); }
.row__name { font-size: clamp(2.6rem, 10vw, 9rem); font-weight: 700; line-height: .9; letter-spacing: 0; text-transform: uppercase; }
.row__tag { font: 600 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--t, var(--c)); transition: color .3s; }
.row__desc { display: none; grid-column: 2 / -1; color: var(--mute); max-width: 52ch; }
.row__go { font-size: clamp(1.4rem, 3vw, 2.4rem); transition: transform .5s var(--ease); }
.rows:hover .row { opacity: .35; }
.rows .row:hover, .rows .row:focus-visible { opacity: 1; padding-left: 1.2rem; color: var(--on, #07080a); }
.row:hover::before, .row:focus-visible::before { transform: scaleY(1); }
.row:hover .row__tag, .row:hover .row__n, .row:focus-visible .row__tag, .row:focus-visible .row__n { color: var(--on, #07080a); }
.row:hover .row__go { transform: translate(6px, -6px); }

.peek { position: fixed; left: 0; top: 0; z-index: 70; width: min(340px, 80vw); padding: 1.3rem 1.4rem; background: #07080a; border: 1px solid var(--c, var(--accent)); border-radius: 14px; pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.92); transition: opacity .25s, scale .25s; box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 40px color-mix(in srgb, var(--c, var(--accent)) 35%, transparent); }
.peek.on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }
.peek b { display: block; font: 600 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ct, var(--c, var(--accent))); margin-bottom: .7rem; }
.peek p { font-size: .95rem; color: var(--fg); }

/* Manifesto */
.manifesto { background: var(--bg); padding: 6rem var(--pad); border-top: 1px solid var(--line); }
.manifesto blockquote { font-size: clamp(2.8rem, 9vw, 8rem); font-weight: 700; line-height: .95; letter-spacing: 0; max-width: 16ch; text-transform: uppercase; }
.manifesto em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--fg); }

/* Contact */
.contact { background: var(--bg); padding: 4rem var(--pad) 8rem; border-top: 1px solid var(--line); }
.mail { display: block; margin-top: 2rem; }
.mail span { display: block; font: 600 .78rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 1rem; }
.mail strong { font-size: clamp(2.2rem, 10vw, 10rem); font-weight: 700; letter-spacing: 0; line-height: 1; word-break: break-word; background: linear-gradient(90deg, var(--fg) 50%, var(--accent) 50%) 0 100% / 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: background-position .6s var(--ease); }
.mail:hover strong, .mail:focus-visible strong { background-position: 100% 100%; }
.mail i { font-style: normal; }

.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem var(--pad); background: var(--bg); border-top: 1px solid var(--line); font: 600 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* Révélations au scroll (natif, sans JS) */
@supports (animation-timeline: view()) {
    .row, .manifesto blockquote, .mail { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes reveal { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
    .rows:hover .row { animation: none; }
}

/* Tactile / petits écrans */
@media (hover: none) {
    .row__desc { display: block; }
    .peek { display: none; }
    .rows:hover .row { opacity: 1; }
}
@media (max-width: 760px) {
    .row { grid-template-columns: 2.2rem 1fr 1.6rem; gap: .8rem; }
    .row__tag { grid-column: 2; grid-row: 2; }
    .row__go { grid-row: 1; grid-column: 3; }
    .row__desc { grid-column: 2 / -1; display: block; }
    .scroll { display: none; }
}

@media (max-width: 480px) {
    .volume-range { width: 50px; }
    .sound { padding: .4rem .4rem; }
    .sound-group { gap: .4rem; padding-right: .6rem; }
}

/* Accessibilité mouvement */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
    .marquee__track { animation: none; }
}




