/* ─────────────────────────────────────────────────────────────────────────────
   THE FAMILY — one page per event brand (/family/<slug>).
   Same design language as the home page (index.html): Anton / JetBrains Mono / Montserrat,
   #0A0A0A, white pills, brand gradient on every orange accent, hover only on mouse devices.
   Each page sets --accent (the brand's own colour, taken from its logo/flyer) — used only for the
   soft glow behind the hero logo, never for UI accents (those stay the Sunset gradient).
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #0A0A0A;
  --white: #FFFFFF;
  --paper: #EDE5D6;
  --grey: #9A9A9A;
  --line: #262626;
  --orange: #F4651A;
  --grad: linear-gradient(to right, #F4651A, #F9C74F);
  --display: 'Anton', Impact, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 3.2vw, 48px);
  --accent: #F4651A;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--bg); color: var(--white); font-family: 'Montserrat', system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; }
.mono { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* film grain — desktop only (iOS status bar rule: no invisible fixed layers on touch devices) */
@media (hover: hover) and (pointer: fine) {
  body::after {
    content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
    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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
  }
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-4%)} 75%{transform:translate(-4%,1%)} 100%{transform:translate(0,0)} }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* pills (hover gradient uses border-box so it spans the transparent border — see CLAUDE.md) */
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--bg); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--white); background-origin: border-box; transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.pill.ghost { background: transparent; color: var(--white); }
.pill.small { padding: 8px 14px; font-size: 11px; }
.pill:active { background: var(--grad) border-box; border-color: transparent; color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .pill:hover { background: var(--grad) border-box; border-color: transparent; color: var(--bg); } }

/* ── NAV (same as home; links point back to the home sections) ── */
nav { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px var(--gutter); background: var(--bg); }
nav .links { display: flex; gap: 26px; }
nav .links a { font-size: 13px; font-weight: 700; text-transform: uppercase; }
nav .logo img { height: 26px; width: auto; }
nav .right { justify-self: end; display: flex; gap: 12px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }
@media (hover: hover) and (pointer: fine) { nav .links a:hover { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; } }
.drawer { position: fixed; inset: 0; z-index: 40; background: var(--grad); color: var(--bg); padding: 90px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: center; visibility: hidden; transform: translateY(-100%); overflow: hidden; transition: transform .45s cubic-bezier(.7,0,.2,1), visibility 0s .45s; }
.drawer.open { visibility: visible; transform: none; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.drawer a { font-family: var(--display); font-size: min(15vw, 11vh); line-height: 1; text-transform: uppercase; }
.drawer .close { position: absolute; top: 22px; right: var(--gutter); background: none; border: 0; color: var(--bg); font: 700 12px var(--mono); text-transform: uppercase; cursor: pointer; padding: 14px; margin: -14px; }

/* ── BRAND HERO = first screen: identity on the left (logo, subtitle, genres, big quote),
   the concept + story on the right (Benjamín 2026-11-11: everything visible without scrolling on a computer).
   Background: blurred brand photo + a glow in the brand colour behind the logo. ── */
.b-hero { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100svh - 62px); display: flex; align-items: center; padding: clamp(70px, 7vw, 100px) var(--gutter) clamp(50px, 5vw, 80px); }
.b-hero .bg { position: absolute; inset: -40px; z-index: -2; background: center / cover no-repeat; filter: blur(14px) saturate(1.1); opacity: .45; transform: scale(1.05); }
.b-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 40% 50% at 26% 38%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
  linear-gradient(to right, rgba(10,10,10,.25), rgba(10,10,10,.72) 60%),
  linear-gradient(to bottom, rgba(10,10,10,.35), transparent 30%, transparent 75%, var(--bg)); }
.b-back { position: absolute; top: 18px; left: var(--gutter); color: rgba(255,255,255,.7); }
.b-back:active { color: var(--white); }
@media (hover: hover) and (pointer: fine) { .b-back:hover { color: var(--white); } }
.b-grid { width: 100%; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: center; }
.b-id { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; } /* left column: everything centred in it (Benjamín) */
.b-top { display: contents; }
.b-logo { width: auto; max-width: min(calc(600px * var(--logo-scale, 1)), 100%); max-height: calc(clamp(150px, 30vh, 320px) * var(--logo-scale, 1)); object-fit: contain; filter: drop-shadow(0 6px 30px rgba(0,0,0,.55)); }
.b-tagline { font-weight: 500; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; letter-spacing: .01em; color: rgba(255,255,255,.78); margin-top: 22px; max-width: 34ch; margin-left: auto; margin-right: auto; } /* a quiet subtitle — the logo is the star */
.b-genres { margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.b-id .quote { margin-top: clamp(26px, 3.5vh, 44px); }
.b-id blockquote { font-size: clamp(36px, 3.7vw, 66px); line-height: 1.04; } /* line-height ≥1: Anton's commas/apostrophes touched the next line at .9 */
.b-id blockquote span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-copy h3 { color: var(--grey); font-weight: 500; margin: 0 0 12px; }
.b-copy h3:not(:first-child) { margin-top: 26px; }
.b-copy p { font-size: 16px; font-weight: 500; line-height: 1.7; color: rgba(255,255,255,.88); margin-bottom: 14px; max-width: 540px; }
.b-copy b { color: var(--white); font-weight: 800; }

/* light brand (White Lies — flyer colours: cream + black) */
.light .b-hero { color: var(--bg); background: #F6F4F1; }
.light .b-hero .bg { filter: none; opacity: 1; inset: 0; transform: none; }
.light .b-hero::before { background: linear-gradient(to right, rgba(246,244,241,.1), rgba(246,244,241,.88) 58%), linear-gradient(to bottom, transparent 70%, rgba(246,244,241,.95)); }
.light .b-back { color: rgba(10,10,10,.65); }
.light .b-logo { filter: none; }
.light .b-tagline { color: rgba(10,10,10,.7); }
@media (min-width: 901px) {
  .light .b-copy h3 { color: rgba(10,10,10,.5); }
  .light .b-copy p { color: rgba(10,10,10,.85); }
  .light .b-copy b { color: var(--bg); }
}

/* ── SECTIONS ── */
section.s { padding: clamp(56px, 8vw, 110px) 0; }
.s-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 0 var(--gutter); margin-bottom: 28px; }
.s-head h2 { font-size: clamp(52px, 8vw, 128px); line-height: .98; }
.s-head h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .08em 0 .14em; margin: -.08em 0 -.14em; }
.s-head .kicker { color: var(--grey); margin-bottom: 12px; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter { background: transparent; color: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 7px 14px; font: 700 11px var(--mono); text-transform: uppercase; cursor: pointer; }
.filter.on { background: var(--white); color: var(--bg); border-color: var(--white); }


/* ── EDITIONS (timeline) ── */
.editions { margin: 0 var(--gutter); border-top: 2px solid var(--white); list-style: none; }
.editions li { display: grid; grid-template-columns: 160px 1fr auto; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.editions .d { color: var(--grey); }
.editions h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.05; }
.editions .v { color: var(--grey); text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.editions .v .pill { font-family: "Montserrat", system-ui, sans-serif; letter-spacing: .02em; color: var(--bg); }
.editions li.up .d { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* ── PHOTO GALLERY (same drifting strip as home) ── */
.strip { display: flex; gap: 22px; overflow-x: auto; padding: 0 var(--gutter); cursor: grab; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; }
.strip figure { flex: 0 0 auto; height: clamp(260px, 34vw, 420px); user-select: none; }
.strip figure img { height: 100%; width: auto; border-radius: 10px; pointer-events: none; }
.gal-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ── VIDEOS (9:16 row; tap toggles sound only) ── */
.am-reels { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.am-reels::-webkit-scrollbar { display: none; }
.am-video { position: relative; width: clamp(220px, 19vw, 290px); flex: 0 0 auto; scroll-snap-align: start; }
.am-video video { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; border-radius: 14px; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.55); cursor: pointer; }
.am-video figcaption { margin-top: 12px; color: var(--grey); text-align: center; }
.am-sound { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(10,10,10,.6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 0; cursor: pointer; }
.am-sound svg { width: 22px; height: 22px; display: block; overflow: visible; }
.am-sound .spk { fill: #fff; }
.am-sound .on { display: none; }
.am-video.on .am-sound .spk { fill: url(#sunGrad); }
.am-video.on .am-sound .off { display: none; }
.am-video.on .am-sound .on { display: inline; }

/* ── FLYERS (poster archive) ── */
.flyers { display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--gutter) 6px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.flyers::-webkit-scrollbar { display: none; }
.flyers figure { flex: 0 0 auto; width: clamp(240px, 24vw, 340px); scroll-snap-align: start; }
.post { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; background: #111; }
.post .slides { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.post .slides::-webkit-scrollbar { display: none; }
.post .slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); box-shadow: 0 0 4px rgba(0,0,0,.4); transition: background .2s; }
.dots i.on { background: var(--white); }
.slide-btn { position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(10,10,10,.6); color: var(--white); font-size: 20px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.slide-btn.prev { left: 10px; } .slide-btn.next { right: 10px; }
@media not ((hover: hover) and (pointer: fine)) { .slide-btn { display: none; } }
@media (hover: hover) and (pointer: fine) { .post:hover .slide-btn { opacity: 1; } .slide-btn:hover { background: var(--white); color: var(--bg); } }
.flyers figcaption { margin-top: 12px; color: var(--grey); text-align: center; }

/* ── BOOK IT (cream insert, like About on home) ── */
.book { background: var(--paper); color: var(--bg); padding: clamp(70px, 10vw, 130px) var(--gutter); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.book h2 { font-size: clamp(44px, 6.5vw, 104px); line-height: 1; }
.book h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.book p { font-size: 16px; font-weight: 500; line-height: 1.7; margin-bottom: 14px; max-width: 460px; }
.book p b { font-weight: 800; }
.book .mono { opacity: .6; margin-bottom: 18px; }
.book .pill { background: var(--bg); border-color: var(--bg); color: var(--white); margin-top: 10px; }
@media (hover: hover) and (pointer: fine) { .book .pill:hover { background: var(--grad) border-box; border-color: transparent; color: var(--bg); } }

/* ── MORE FROM THE FAMILY ── */
.more { display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--gutter) 6px; scrollbar-width: none; cursor: grab; } /* drifts on its own (family.js), no snap */
.more.dragging { cursor: grabbing; }
.more::-webkit-scrollbar { display: none; }
.more a { flex: 0 0 auto; width: clamp(240px, 26vw, 360px); user-select: none; -webkit-user-drag: none; }
.more img { width: 100%; aspect-ratio: 8/5; object-fit: cover; border-radius: 10px; transition: transform .3s; }
.more h3 { font-size: clamp(28px, 2.6vw, 40px); margin-top: 14px; transition: color .2s; }
.more .g { color: var(--grey); margin-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  .more a:hover img { transform: scale(1.03); }
  .more a:hover h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
}

/* ── FOOTER (compact version of the home footer) ── */
footer { padding: 70px var(--gutter) 28px; border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 110px); }
.f-handle { display: block; font-family: var(--display); font-size: clamp(40px, 9vw, 150px); line-height: .9; text-transform: uppercase; padding: .08em 0 .14em; margin: -.08em 0 calc(40px - .14em); word-break: break-word; }
@media (hover: hover) and (pointer: fine) { .f-handle:hover { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; } }
.f-family { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; border-top: 1px solid var(--line); padding-top: 28px; }
.f-family li { font-size: 13px; font-weight: 800; text-transform: uppercase; }
.f-family li.cur { opacity: .4; }
@media (hover: hover) and (pointer: fine) { .f-family a:hover { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; } }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--grey); }
.f-powered { text-align: center; margin-top: 22px; color: var(--grey); font-size: 11px; }
.f-powered a { color: var(--white); font-weight: 700; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav { grid-template-columns: auto 1fr auto; }
  nav .links { display: none; }
  nav .logo { grid-column: 2; justify-self: center; }
  nav .right .pill { display: none; }
  .menu-btn { display: block; }
  /* Phones (Benjamín: keep it vertical, as before): logo cover on its own, then the quote and the text on the dark page */
  .b-hero { position: static; display: block; min-height: 0; padding: 0 var(--gutter); text-align: center; overflow: visible; }
  .b-hero::before { display: none; }
  .light .b-hero { background: none; color: var(--white); }
  .b-grid { grid-template-columns: 1fr; gap: 0; }
  .b-id { align-items: center; }
  .b-top { display: flex; flex-direction: column; align-items: center; position: relative; isolation: isolate; overflow: hidden; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 90px var(--gutter) 56px; }
  .b-top::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(ellipse 60% 45% at 50% 45%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
    linear-gradient(to bottom, rgba(10,10,10,.55), rgba(10,10,10,.2) 40%, var(--bg)); }
  .light .b-top { background: #F6F4F1; color: var(--bg); }
  .light .b-top::before { background: linear-gradient(to bottom, rgba(246,244,241,0) 55%, rgba(246,244,241,.9)); }
  .b-back { top: 16px; }
  .b-logo { max-height: calc(30vh * var(--logo-scale, 1)); max-width: calc(92vw * var(--logo-bleed, 1)); } /* --logo-bleed > 1: logos with a wide transparent glow may spill past the gutters */
  .b-tagline { font-size: 15px; }
  .b-id .quote { margin-top: 56px; }
  .b-id blockquote { font-size: clamp(36px, 10.5vw, 56px); }
  .b-copy { margin-top: 36px; }
  .b-copy p { margin-left: auto; margin-right: auto; }
  .s-head { flex-direction: column; align-items: center; text-align: center; }
  .tools { justify-content: center; width: 100%; }
  .gal-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; }
  .gal-tabs::-webkit-scrollbar { display: none; }
  .gal-tabs .filter { flex: 0 0 auto; }
  .editions li { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .editions .v { text-align: center; align-items: center; }
  .am-video { width: 66vw; max-width: 300px; }
  .flyers figure { width: 70vw; max-width: 320px; }
  .more a { width: 72vw; max-width: 340px; }
  .book { grid-template-columns: 1fr; text-align: center; }
  .book p { margin-left: auto; margin-right: auto; }
  footer { text-align: center; }
  .f-family { justify-content: center; }
  .f-family li a { display: inline-block; padding: 8px 2px; }
  .f-bottom { justify-content: center; }
}
