:root {
  --bg: #080808;
  --fg: #f2f0eb;
  --muted: #9b9b97;
  --line: rgba(242, 240, 235, .18);
  --signal: #6b4eff;
  --paper: #e9e6df;
  --ink: #0c0c0c;
  --pad: clamp(22px, 4vw, 64px);
  --display: clamp(62px, 11.2vw, 184px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter Tight", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { width: 100%; display: block; }
::selection { background: var(--signal); color: white; }

.noise {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.progress { position: fixed; left: 0; top: 0; width: 100%; height: 3px; z-index: 1200; }
.progress span { display: block; height: 100%; width: 0; background: var(--signal); }

.site-header {
  position: fixed; z-index: 900; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad); mix-blend-mode: difference;
}
.wordmark { font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: -.05em; font-size: 22px; }
.site-header nav { display: flex; gap: clamp(14px, 2.2vw, 34px); font-size: 14px; }
.site-header nav a { opacity: .76; transition: opacity .25s; }
.site-header nav a:hover { opacity: 1; }

.hero { position: relative; min-height: 100svh; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: #0d0d0d; overflow: hidden; }
.hero-fallback {
  position: absolute; inset: -2.5%; width: 105%; height: 105%; object-fit: cover;
  object-position: 50% 46%;
  filter: saturate(.62) contrast(1.08) brightness(.56);
  transform: scale(1.045);
  will-change: transform;
  transition: transform .18s ease-out;
}
.hero-pointer-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--hero-x, 50%) var(--hero-y, 46%), rgba(107,78,255,.18), transparent 26%);
  mix-blend-mode: screen; opacity: .72;
  transition: opacity .35s;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.03) 58%, rgba(0,0,0,.36)),
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.12) 42%, rgba(0,0,0,.7));
}
.hero-copy { position: relative; min-height: 100svh; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 100px var(--pad) 30px; }
.eyebrow { position: absolute; top: 96px; left: var(--pad); font-size: 13px; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(78px, 15.5vw, 245px); line-height: .72; letter-spacing: -.075em; text-transform: uppercase; font-family: "Space Grotesk", sans-serif; font-weight: 500; }
.hero-line { display: block; transform: translateY(115%); animation: heroUp 1.05s cubic-bezier(.2,.75,.2,1) forwards; }
.hero-line:nth-child(2) { animation-delay: .11s; }
.hero h1 { overflow: hidden; padding-bottom: .08em; }
.outline { color: transparent; -webkit-text-stroke: 1.6px var(--fg); }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 28px; font-size: clamp(14px, 1.4vw, 18px); text-transform: uppercase; letter-spacing: .05em; }
.hero-bottom p { margin: 0; }
.hero-bottom a { font-size: 12px; opacity: .75; }
@keyframes heroUp { to { transform: translateY(0); } }

.section-pad { padding: clamp(92px, 12vw, 180px) var(--pad); }
.section-index { font-family: "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); margin-bottom: 46px; }
.display { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: var(--display); line-height: .82; letter-spacing: -.065em; font-weight: 500; text-transform: uppercase; }
.outline-text {
  color: rgba(242, 240, 235, .09);
  -webkit-text-stroke: 1.25px rgba(242, 240, 235, .96);
  paint-order: stroke fill;
  text-shadow: 0 0 1px rgba(242,240,235,.18);
}
@supports not (-webkit-text-stroke: 1px black) {
  .outline-text { color: rgba(242, 240, 235, .92); }
}
.statement { position: relative; overflow: hidden; }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .75fr); align-items: end; gap: 5vw; }
.intro-copy { margin: 0 0 1vw; color: #c9c8c3; font-size: clamp(20px, 2vw, 32px); line-height: 1.25; max-width: 620px; }
.marquee { margin: 64px calc(var(--pad) * -1) -26px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.marquee-track { width: max-content; font-family: "Space Grotesk", sans-serif; font-size: clamp(18px, 2.4vw, 34px); letter-spacing: .04em; animation: marquee 25s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

.work { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: clamp(90px, 12vw, 170px); }
.section-heading .display { text-align: right; }
.feature { margin-bottom: clamp(120px, 15vw, 230px); }
.feature-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 30px; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.feature-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.feature h3 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(72px, 12vw, 190px); text-transform: uppercase; letter-spacing: -.07em; line-height: .82; font-weight: 500; }
.credits { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-bottom: 14px; }
.video-frame { position: relative; overflow: hidden; background: #111; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.46) saturate(.72); z-index: 0; }
.video-poster-zounda { object-position: 50% 48%; }
.video-frame iframe { z-index: 1; background: transparent; opacity: 0; transition: opacity .35s ease; }
.video-frame.player-ready iframe { opacity: 1; }
.video-frame.player-ready .video-poster { opacity: 0; transition: opacity .45s ease; }
.sound-toggle {
  position: absolute; z-index: 5; right: 18px; bottom: 18px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(8,8,8,.68); color: var(--fg); border-radius: 999px; padding: 10px 14px;
  font: 500 10px/1 "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .08em;
  cursor: pointer; backdrop-filter: blur(8px); transition: background .2s, border-color .2s, transform .2s;
}
.sound-toggle:hover { background: var(--signal); border-color: var(--signal); transform: translateY(-1px); }
.sound-toggle.is-on { background: var(--signal); border-color: var(--signal); }
.autoplay-video::after { content: "AUTO / MUTED"; position: absolute; right: 12px; bottom: 12px; z-index: 2; pointer-events: none; background: rgba(8,8,8,.68); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); padding: 7px 9px; font-size: 9px; letter-spacing: .12em; color: rgba(255,255,255,.72); }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.cinematic { aspect-ratio: 2.15 / 1; }
.feature-links { display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 15px 0; font-size: 13px; color: var(--muted); }
.feature-links a { color: var(--fg); }

.feature-light { background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 64px); margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.split-media { display: grid; grid-template-columns: 1.3fr .85fr; align-items: stretch; min-height: 75vh; }
.photo-card { margin: 0; overflow: hidden; }
.photo-card img { height: 100%; object-fit: cover; transform: scale(1.04); }
.project-copy { padding: clamp(30px, 5vw, 80px); display: flex; flex-direction: column; justify-content: flex-end; }
.project-copy .feature-meta { border-top-color: rgba(0,0,0,.2); }
.project-copy h3 { font-size: clamp(64px, 9vw, 145px); }
.project-copy .credits { color: #595955; margin: 28px 0 0; }
.microcopy { margin: 8px 0 36px; color: #6d6d68; }
.text-link { border-bottom: 1px solid; width: max-content; padding-bottom: 3px; }

.zounda-title { align-items: flex-start; }
.stacked-credits { display: grid; text-transform: uppercase; font-size: clamp(16px, 2vw, 26px); line-height: 1.2; text-align: right; }
.stacked-credits span { border-bottom: 1px solid var(--line); padding: 7px 0; }
.ajedrez {
  --ajedrez-accent: var(--signal);
  padding: clamp(30px, 4.5vw, 72px);
  border: 1px solid var(--line);
}
.ajedrez-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 40px; }
.small-label { text-transform: uppercase; color: var(--muted); letter-spacing: .08em; font-size: 12px; margin-bottom: 14px; }
.audio-lines { height: clamp(100px, 15vw, 220px); display: flex; align-items: end; gap: 2.2%; }
.audio-lines span { flex: 1; background: var(--ajedrez-accent); height: 22%; animation: bars 1.7s ease-in-out infinite alternate; box-shadow: 0 0 30px rgba(85, 53, 143, .12); }
.audio-lines span:nth-child(2) { height: 70%; animation-delay: -.2s; }
.audio-lines span:nth-child(3) { height: 38%; animation-delay: -.5s; }
.audio-lines span:nth-child(4) { height: 88%; animation-delay: -.8s; }
.audio-lines span:nth-child(5) { height: 48%; animation-delay: -.35s; }
.audio-lines span:nth-child(6) { height: 95%; animation-delay: -.65s; }
.audio-lines span:nth-child(7) { height: 34%; animation-delay: -.1s; }
.audio-lines span:nth-child(8) { height: 65%; animation-delay: -.9s; }
@keyframes bars { from { transform: scaleY(.5); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }


.records-feature { border: 1px solid var(--line); padding: clamp(28px, 4.5vw, 72px); overflow: hidden; }
.records-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(30px, 7vw, 110px); align-items: end; margin-bottom: clamp(56px, 8vw, 110px); }
.records-heading h3 { font-size: clamp(68px, 10.8vw, 168px); }
.records-heading p { margin: 0 0 12px; max-width: 470px; color: var(--muted); font-size: clamp(17px, 1.7vw, 25px); line-height: 1.28; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 78px); }
.record-card { min-width: 0; display: block; }
.album-object {
  position: relative; aspect-ratio: 1.22 / 1; min-height: 0; overflow: hidden;
  display: grid; align-items: center; padding: clamp(18px, 3vw, 44px);
  background: radial-gradient(circle at 66% 48%, rgba(107,78,255,.20), transparent 38%), #0b0b0b;
  border: 1px solid rgba(242,240,235,.09);
}
.album-sleeve {
  position: relative; z-index: 3; width: 80%; aspect-ratio: 1; overflow: hidden;
  box-shadow: 0 30px 85px rgba(0,0,0,.55); transform: translateX(4%);
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.album-sleeve::after { content:""; position:absolute; inset:0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events:none; }
.album-sleeve img { width:100%; height:100%; object-fit:cover; object-position:center; transform: scale(1.18); filter: saturate(.86) contrast(1.04) brightness(.92); }
.record-disc {
  position: absolute; z-index: 2; right: 2%; width: 63%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #111 0 4px, #0a0a0a 5px 8px);
  box-shadow: 0 22px 70px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.14);
  animation: recordSpin 8s linear infinite; transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.record-disc::before { content:""; position:absolute; inset:31%; border-radius:50%; background:var(--signal); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.record-disc::after { content:""; position:absolute; inset:47%; border-radius:50%; background:#e9e6df; }
.record-disc span { position:absolute; inset:0; border-radius:50%; background:linear-gradient(120deg, transparent 15%, rgba(255,255,255,.13) 33%, transparent 48%, rgba(107,78,255,.14) 72%, transparent 88%); }
.record-card:hover .album-sleeve { transform: translateX(-2%) rotate(-1.5deg); }
.record-card:hover .record-disc { transform: translateX(8%) scale(1.02); animation-duration: 3.5s; }
.album-object-alt .record-disc { animation-direction: reverse; }
@keyframes recordSpin { to { rotate: 360deg; } } }

.more-work { background: #0d0d0d; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(36px, 7vw, 120px); align-items: start; }
.project-list { border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 1fr auto 25px; gap: 20px; align-items: center; padding: clamp(22px, 2.7vw, 42px) 0; border-bottom: 1px solid var(--line); transition: opacity .25s, transform .25s; }
.work-name { font-family: "Space Grotesk", sans-serif; font-size: clamp(28px, 4vw, 64px); letter-spacing: -.04em; text-transform: uppercase; }
.work-role { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.project-list:hover .work-row { opacity: .28; }
.project-list .work-row:hover { opacity: 1; transform: translateX(7px); }
.hover-preview { position: sticky; top: 100px; aspect-ratio: 4/5; overflow: hidden; background: #090909; isolation: isolate; }
.hover-preview iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  pointer-events: none;
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(.72);
  transform: none;
  background: #080808;
}
.preview-shade { position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.18)); }
.hover-preview span { position: absolute; z-index:2; right: 18px; bottom: 18px; width: 62px; height: 62px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; font-size: 11px; font-weight: 600; }

.circus { overflow: hidden; }
.circus-intro { max-width: 1200px; margin-bottom: 70px; }
.year { color: var(--signal); font-size: clamp(24px, 3vw, 44px); margin-bottom: 20px; font-family: "Space Grotesk", sans-serif; }
.circus-intro p { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.archive-track { display: flex; gap: 22px; width: max-content; transform: translateX(var(--archive-x, 0px)); will-change: transform; }
.archive-card { margin: 0; background: #111; overflow: hidden; position: relative; }
.archive-card img { height: 100%; object-fit: cover; filter: saturate(.76); transition: transform .6s, filter .5s; }
.archive-card:hover img { transform: scale(1.025); filter: saturate(1); }
.archive-card.tall { width: min(38vw, 560px); height: min(68vw, 760px); }
.archive-card.wide { width: min(56vw, 840px); height: min(40vw, 600px); }
.archive-card.cover { width: min(42vw, 640px); height: min(42vw, 640px); }
.archive-card figcaption { position: absolute; left: 18px; bottom: 16px; background: rgba(0,0,0,.7); padding: 7px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.awards { margin-top: 110px; border-top: 1px solid var(--line); }
.awards > div { display: grid; grid-template-columns: 120px 1fr 220px; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); padding: 25px 0; }
.awards span, .awards small { color: var(--muted); }
.awards strong { font-family: "Space Grotesk", sans-serif; font-size: clamp(22px, 3vw, 42px); text-transform: uppercase; font-weight: 500; }
.awards small { text-align: right; text-transform: uppercase; letter-spacing: .07em; }

.about { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(45px, 8vw, 140px); align-items: center; border-top: 1px solid var(--line); }
.about-photo { aspect-ratio: 3 / 4.2; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) saturate(.8); }
.about-copy .display { font-size: clamp(56px, 8.6vw, 135px); }
.about-copy > p { max-width: 740px; color: #c6c5c0; font-size: clamp(18px, 1.7vw, 27px); line-height: 1.35; }
.about-signoff { color: var(--fg) !important; margin-top: 42px; font-family: "Space Grotesk", sans-serif; text-transform: uppercase; }

.tech { background: var(--paper); color: var(--ink); }
.tech .section-index { color: #73736e; }
.tech .display { max-width: 1050px; }
.signal { color: var(--signal); }
.tech-intro { font-size: clamp(20px, 2.1vw, 32px); max-width: 760px; line-height: 1.3; margin: 70px 0; }
.tech-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-list span { border: 1px solid rgba(0,0,0,.25); border-radius: 999px; padding: 12px 18px; text-transform: uppercase; font-size: 12px; letter-spacing: .07em; }

.contact { min-height: 92vh; display: flex; flex-direction: column; justify-content: space-between; }
.contact-kicker { margin: 0; color: var(--signal); text-transform: uppercase; letter-spacing: .1em; }
.contact-mail { font-family: "Space Grotesk", sans-serif; font-size: clamp(58px, 10vw, 160px); line-height: .85; letter-spacing: -.065em; text-transform: uppercase; margin: 70px 0; }
.contact-bottom { display: flex; flex-wrap: wrap; gap: 30px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 20px var(--pad) 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header nav a:nth-child(2), .site-header nav a:nth-child(3) { display: none; }
  .statement-grid, .split-media, .more-grid, .about { grid-template-columns: 1fr; }
  .statement-grid { gap: 50px; }
  .section-heading { display: block; }
  .section-heading .display { text-align: left; }
  .split-media { min-height: auto; }
  .photo-card { aspect-ratio: 4 / 3; }
  .project-copy { min-height: 60vh; }
  .feature-title-row { display: block; }
  .feature-title-row .credits { padding-top: 14px; }
  .zounda-title .stacked-credits { text-align: left; margin-top: 26px; }
  .ajedrez-layout { grid-template-columns: 1fr; }
  .records-heading, .record-grid { grid-template-columns: 1fr; }
  .records-heading { gap: 24px; }
  .record-card + .record-card { margin-top: 32px; }
  .hover-preview { display: none; }
  .archive-card.tall { width: 78vw; height: 110vw; }
  .archive-card.wide { width: 88vw; height: 62vw; }
  .archive-card.cover { width: 75vw; height: 75vw; }
  .awards > div { grid-template-columns: 70px 1fr; }
  .awards small { display: none; }
  .about-photo { max-width: 620px; }
}

@media (max-width: 560px) {
  :root { --pad: 18px; }
  .site-header { padding-top: 15px; }
  .hero-copy { padding-bottom: 22px; }
  .hero h1 { font-size: clamp(68px, 22vw, 112px); line-height: .78; }
  .hero-bottom { display: block; }
  .hero-bottom a { display: inline-block; margin-top: 15px; }
  .display { line-height: .88; }
  .feature-light { padding: 18px; }
  .cinematic { aspect-ratio: 16 / 9; }
  .work-row { grid-template-columns: 1fr 20px; }
  .work-role { grid-row: 2; font-size: 11px; }
  .work-arrow { grid-row: 1 / span 2; grid-column: 2; }
  footer { display: block; }
  footer a { display: inline-block; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* V5.1 accessibility/readability fixes */
.about-copy .outline-text, .contact-mail .outline-text { color: rgba(242,240,235,.10); -webkit-text-stroke-color: rgba(242,240,235,.98); }

/* V5.3 clean Ajedrez artwork */
.ajedrez-sleeve img { transform: scale(1.015); object-position: center; }


/* V5.5 language selector */
.header-right { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.lang-switch { display: flex; align-items: center; gap: 6px; font-family: "Space Grotesk", sans-serif; font-size: 12px; letter-spacing: .08em; }
.lang-switch span { opacity: .34; }
.lang-btn { appearance: none; border: 0; background: none; color: inherit; padding: 2px 0; font: inherit; cursor: pointer; opacity: .42; transition: opacity .2s ease, color .2s ease; }
.lang-btn:hover { opacity: .82; }
.lang-btn.is-active { opacity: 1; color: var(--signal); }
@media (max-width: 560px) {
  .header-right { gap: 12px; }
  .site-header nav { gap: 14px; }
  .site-header nav a:nth-child(2), .site-header nav a:nth-child(3) { display: none; }
  .lang-switch { font-size: 11px; gap: 5px; }
}
