/* ==========================================================================
   Israel Vntura — design tokens taken from the deck
   ========================================================================== */
:root {
  /* greys sampled from the PDF */
  /* the deck's own background colours (from the Canva file), all solid; one paper texture
     lies over the whole page (body::after) */
  --grad-a: #30302f;       /* hero / footer: 90° linear gradient */
  --grad-b: #575654;
  --dark-deep: #42423f;    /* Palavra Cantada / Filmada / Cinética */
  --dark: #42423f;
  --dark-sq: #30302f;      /* dark checker square */
  --paper: #d9d9d9;        /* light slides */
  --paper-sq: #d9d9d9;     /* light checker square */
  --card: #d5d5d4;
  --ghost: #ededec;        /* giant background words, "&" */
  --ink: #4f4f4c;          /* text on light */
  --ink-soft: #5d5d5a;
  --ink-mute: #6b6b68;
  --label-dark: #8b8b88;   /* "PALAVRA CANTADA" on dark */
  --on-dark: #ececea;

  /* type: the missing Futuras → Jost; Nourd → Futura Extra Bold (no Montserrat any more) */
  --f-futura: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  /* heavy Futura (ghost words, PALAVRA labels, AEIOU, Ofício words, CV labels): Futura Extra
     Bold, the deck's weight. The light text stays in Jost (no light Futura here yet). */
  --f-futura-bold: "Futura XBold", "Jost", "Futura", system-ui, sans-serif;
  /* Futura Light Oblique: hero roles, Artista / Influências texts, the CV, the footer contact */
  --f-light-obl: "Futura Light", "Jost", system-ui, sans-serif;

  --gutter: clamp(16px, 5.6vw, 96px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* the deck's heavy Futura: Futura Extra Bold, the artist's own file (private site) */
@font-face {
  font-family: "Futura XBold"; font-style: normal; font-weight: 700 900; font-display: swap;
  src: url("../assets/fonts/futura-extrabold.woff2") format("woff2");
}
/* the deck's light text: Futura Light Oblique (the artist's own file, Berthold's Futura BQ) */
@font-face {
  font-family: "Futura Light"; font-style: italic; font-weight: 300; font-display: swap;
  src: url("../assets/fonts/futura-light-oblique.woff2") format("woff2");
}
/* the deck's CV labels are Futura LT Pro Bold Oblique (read from the PDF). STOPGAP until that file
   arrives: the Mac's Futura Medium Italic (true italic, the Bold's width within 3%, a bit lighter).
   The Mac's Futura Bold is 18% wider and breaks the CV's lines differently. */
@font-face {
  font-family: "Futura CV Label"; font-style: italic; font-weight: 500; font-display: swap;   /* asked at 700: the browser emboldens it */
  src: url("../assets/fonts/futura-medium-italic.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: var(--f-futura);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px dashed currentColor; outline-offset: 4px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Sections & paper grain
   ========================================================================== */
.sec { position: relative; isolation: isolate; overflow: clip; }
/* Solid backgrounds, as in the deck, with one paper texture over the background and the
   background-like elements only (see "Texture layer" at the end of this file). */
.tone-light { background: var(--paper); color: var(--ink); }
.tone-dark { background: var(--dark); color: var(--on-dark); }
.band--light { background: var(--paper); }
.band--dark { background: var(--dark); }
.band > .sec { background: none; }

.ghost {
  font-family: var(--f-futura-bold); font-weight: 800; color: var(--ghost);
  line-height: .78; letter-spacing: -.035em; white-space: nowrap;
  user-select: none; pointer-events: none;
}
.display-title {
  font-family: var(--f-futura-bold); font-weight: 800; color: var(--ink);   /* deck: Futura XBold */
  letter-spacing: -.05em; line-height: 1; position: relative;   /* deck tracking */
}
/* title splits (js): one clipping mask per word, one span per letter */
.split-char { display: inline-block; will-change: transform; }
.split-mask { display: inline-block; overflow: clip; vertical-align: top; padding-block: .3em .08em; margin-block: -.3em -.08em; }
.ghost .split-mask { overflow: visible; }
.split-word { display: inline-block; will-change: transform; }
.display-title .hy { display: inline-block; }
.works__label .split-mask { overflow: visible; }

/* text reveal (js): each word is a .dw span that dissolves in (opacity set by GSAP) */
.dw { opacity: 1; }

/* ==========================================================================
   Logo: the artist's own logo file (assets/img/logo-white.png, recoloured
   white from ISR-VNT_Mint.png), revealed through thick stroke paths used as
   an SVG mask so it can still "write itself".
   ========================================================================== */
.logo { display: block; width: 100%; height: auto; overflow: visible; }
.logo mask path {
  fill: none; stroke: #fff; stroke-width: 30;
  stroke-linecap: square; stroke-linejoin: miter;
}

/* ==========================================================================
   Checkerboard "pixels"
   ========================================================================== */
.checker {
  --cell: min(11vw, 19.6svh);
  position: absolute; display: grid;
  grid-template-columns: repeat(3, var(--cell));
  grid-auto-rows: var(--cell);
  pointer-events: none;
}
.checker i { display: block; position: relative; }
.checker b { display: block; width: 100%; height: 100%; }
.checker b.L { background-color: var(--paper-sq); }
.checker b.D { background-color: var(--dark-sq); }   /* deck: the dark squares are the gradient's dark colour, #30302f */

/* ==========================================================================
   01 · HERO
   ========================================================================== */
.hero {
  height: 100svh; min-height: 560px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}
.checker--hero { top: 0; left: 0; z-index: 0; }
/* placed as in the deck (fitted to slide 1): 62.2% of the slide width tall, 12.5% past the
   left edge, its top 2% below the slide's top, so the hair overlaps the dark square behind the head.
   --u is 1% of the 16:9 "slide" that fits the screen, like the checker cells. */
.hero__portrait {
  --u: min(1vw, 1.7778svh);
  /* anchored from the top like the checker; on squarer screens it grows to still reach the
     bottom, and moves left as it grows so the hair stays on the same square (hair ≈ 55% across) */
  --ph: max(calc(62.2 * var(--u)), 100svh);
  position: absolute; top: calc(2.08 * var(--u)); z-index: 1;
  left: calc(-12.5 * var(--u) - .55 * 1.2123 * (var(--ph) - 62.2 * var(--u)));
  height: var(--ph); width: auto; max-width: none;
  transform-origin: 40% 100%;
}
.hero__copy { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__copy > * { pointer-events: auto; }
.hero__logo {
  position: absolute; right: var(--gutter); top: 11%;
  width: clamp(200px, 25vw, 440px);
}
.hero__roles {
  position: absolute; right: var(--gutter); top: 44%;
  text-align: right; text-transform: uppercase;
  font-style: italic; font-weight: 300; color: var(--on-dark);
  font-size: clamp(20px, 2.65vw, 48px); line-height: 1.1;
}
.hero__roles li { overflow: clip; }
.hero__triad {
  position: absolute; right: var(--gutter); bottom: 9%;
  font-weight: 300; color: #e2e2e0;
  font-size: clamp(15px, 1.9vw, 30px); letter-spacing: .01em;
}
.hero__triad { display: flex; align-items: center; gap: .62em; }
.hero__triad span { display: inline-block; transition: color .5s, opacity .5s; }
.hero__sep { display: block; width: .2em; height: .2em; border-radius: 50%; background: #c7c9cf; margin-top: .12em; }
.hero__triad span.is-on { color: #fff; }
.hero__triad span:not(.is-on) { opacity: .62; }
.hero__scroll { display: none; }

/* intro hidden state (only while JS is running the intro) */
.js:not(.intro-done) .hero .checker,
.js:not(.intro-done) .hero__roles,
.js:not(.intro-done) .hero__triad,
.js:not(.intro-done) .hero .logo { opacity: 0; }

/* ==========================================================================
   02 · ARTISTA (manifesto)
   ========================================================================== */
.manifesto {
  min-height: 100svh;
  padding: 14svh var(--gutter) 14svh calc(var(--gutter) * 1.25);
  display: flex; flex-direction: column; justify-content: center;
}
.manifesto__head { position: relative; padding: 2.4vw 0 2.4vw 7.6vw; }
.ghost--artista {
  position: absolute; left: 0; top: 50%; translate: 0 -46%;
  font-size: 14vw; z-index: 0;
}
.manifesto .display-title { font-size: clamp(26px, 4.5vw, 84px); z-index: 1; }
.manifesto__text {
  margin-top: 9svh; max-width: 62vw;
  font-style: italic; font-weight: 300; text-transform: uppercase;
  font-size: clamp(17px, 2.4vw, 42px); line-height: 1.34; color: var(--ink-soft);
}
.manifesto__text > span { display: block; width: fit-content; }
/* guitar: the PDF image is a right-half crop that the deck shows mirrored (neck on the
   right, body opening left); guitar.webp is already mirrored. Its top, right and bottom
   edges are hard crops, so it stays anchored to the section's right and bottom edges
   (the section clips it) and only ever moves down/right, never up. */
.manifesto__guitar {
  position: absolute; right: -2vw; bottom: 0; z-index: -1;
  height: min(100%, 64vw); width: auto; max-width: none;
  transform-origin: 100% 100%;
}

/* ==========================================================================
   03–05 · OBRAS (shared template)
   ========================================================================== */
/* Cantada, Filmada and Cinética: each one is a deck slide (measured on slides 3–5). --u is 1%
   of the 16:9 slide that fits the screen: the label runs up the left edge (caps 4.18% of the
   width tall, ~93% of the height long), the cards sit centred at 53% of the width. */
.works {
  --u: min(1vw, 1.7778svh);
  min-height: 100svh;
  padding: calc(4.4 * var(--u)) 0;
  display: flex; align-items: center;
}
/* separators between same-colour backgrounds: a continuous, engraved hairline across the whole
   width, like a crease: a 1px shadow line over a 1px highlight line */
.band > .works + .works::after, .band--light > .sec + .sec::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  height: 2px; pointer-events: none;
  border-top: 1px solid rgba(0, 0, 0, .34);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.band--light > .sec + .sec::after {
  border-top-color: rgba(0, 0, 0, .13);
  border-bottom-color: rgba(255, 255, 255, .6);
}
.works__label {
  position: absolute; top: 50%; left: calc(2.09 * var(--u) - .1em); translate: 0 -50%;
  writing-mode: vertical-rl; rotate: 180deg;
  /* the deck's label in Futura Extra Bold, as long as in the deck (~93% of the slide height). Not
     squeezed: the deck's letters are a little taller for that length, but distorting the real
     Futura (round O and C) would show more than slightly smaller letters */
  font-family: var(--f-futura-bold); font-weight: 800; text-transform: uppercase;
  font-size: calc(4.85 * var(--u)); line-height: 1; letter-spacing: 0;
  color: var(--label-dark); white-space: nowrap;
}
.works__label .wl { display: inline-block; }
.works__track {
  display: flex; gap: calc(3.36 * var(--u));
  width: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 3svh 14px 3svh calc(6.2 * var(--u));
}
#filmada .works__track, #cinetica .works__track { gap: calc(6 * var(--u)); }
/* tall cards: a little smaller than the deck's, so they keep clear margins above and below */
#filmada.works, #cinetica.works { padding-block: calc(4.8 * var(--u)); }
#filmada .card--film, #cinetica .card--film { width: calc(17 * var(--u)); }

.works__track::-webkit-scrollbar { display: none; }
/* hover: the card grows a touch, softly (main.js; room for it in the track's padding) */
.works__track > :first-child { margin-left: auto; }
.works__track > :last-child { margin-right: auto; }

/* Cards: everything inside is measured on slides 3–5 as a share of the card's own width (cqw),
   so the proportions hold at any size. Deck fonts: meta Futura Heavy (here the Extra Bold),
   title Futura Extra Bold, description Futura Book Oblique (Jost 400 italic), CTA Futura Book. */
.card {
  position: relative; flex: none; scroll-snap-align: center;
  display: flex; flex-direction: column;
  color: var(--ink); text-align: left;
  container-type: inline-size;
  --c-meta: 6.2cqw; --c-title: 9.73cqw; --c-desc: 6.2cqw;
}
.card__meta { font-family: var(--f-futura-bold); font-weight: 800; font-size: var(--c-meta); line-height: 1; letter-spacing: -.015em; white-space: nowrap; }
.card__title {
  font-family: var(--f-futura-bold); font-weight: 800; text-transform: uppercase;
  font-size: var(--c-title); line-height: .99; letter-spacing: 0;
  margin: .62em 0 .3em;
}
.card__title .br { display: block; }   /* deck breaks "SELVA / DA SILVA" */
.card__desc { font-style: italic; font-weight: 400; font-size: var(--c-desc); line-height: 1.17; color: var(--ink); }
.card__cta {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-futura); font-weight: 400; text-transform: uppercase;
  font-size: var(--c-desc); letter-spacing: .02em;
}
.card__cta u { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card__cta::after { content: ""; position: absolute; inset: 0; z-index: 3; } /* whole card clickable */
.ico-play {
  width: 1.8em; height: 1.8em; flex: none;
  border: 2px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; transition: background .3s, color .3s;
}
.ico-play::before {
  content: ""; width: 0; height: 0; margin-left: .14em;
  border-left: .55em solid currentColor; border-block: .34em solid transparent;
}
.card:hover .ico-play { background: var(--ink); }
.card:hover .ico-play::before { border-left-color: var(--card); }

/* music card (slide 3) */
.card--song {
  --cw: calc(17.8 * var(--u));   /* deck slide 3 (cqw can't size the container's own padding) */
  width: var(--cw); min-height: calc(var(--cw) * 1.927);
  padding: calc(var(--cw) * .142) calc(var(--cw) * .126) calc(var(--cw) * .118);
  background: var(--card);
  transition: box-shadow .5s;
}
.card--song { --c-meta: 8.29cqw; --c-title: 13cqw; --c-desc: 8.29cqw; }   /* cqw = the card minus its padding (74.8%) */
.card--song .card__cover {
  width: 84.4%; height: auto; aspect-ratio: 1; object-fit: cover; margin-top: auto;
  box-shadow: 0 10px 22px -12px rgba(0,0,0,.45);
}
.card--song .card__cta { margin-top: 8cqw; }
.card--song:hover { box-shadow: 0 28px 44px -26px rgba(0,0,0,.6); }

/* film / kinetic card (slides 4 & 5) */
.card--film { width: calc(20.3 * var(--u)); }   /* deck slides 4–5 */
.card--film { --c-meta: 5.48cqw; --c-title: 8.6cqw; --c-desc: 5.48cqw; }
.card--film .card__head {
  background: #d9d9d8;
  padding: 9.8cqw 8.2cqw 7cqw;
  min-height: 54.2cqw;   /* deck: the grey head is 54% of the card's width tall */
}
.card--film .card__media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #141413; }
.card--film .card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.card--film .card__head { display: flex; flex-direction: column; flex: 1 0 auto; }
.card--film .card__cta { margin-top: auto; padding-top: 1em; }   /* same CTA as the song cards */
.card--film .card__media img { transition: scale 1.2s var(--ease-out), filter .6s; }
.card--film:hover .card__media img { scale: 1.03; filter: brightness(1.08); }
.card--kinetic .card__head { background-color: #d2d2d1; }
.card--kinetic .card__media { background: #e6e6e5; }

/* ==========================================================================
   06 · INFLUÊNCIAS
   ========================================================================== */
.influences {
  min-height: 100svh;
  padding: 10svh var(--gutter) 10svh calc(var(--gutter) * 1.4);
  display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: auto 1fr;
  column-gap: 4vw; align-items: center;
}
.influences__head { grid-column: 1 / -1; position: relative; padding: 2.6vw 0 2.6vw 0; margin-bottom: 4svh; }
.ghost--influencias { position: absolute; left: -1.5vw; top: 50%; translate: 0 -46%; font-size: 12.6vw; z-index: 0; }
.influences .display-title { font-size: clamp(24px, 4.1vw, 76px); }
.influences__text {
  font-style: italic; font-weight: 300; text-transform: uppercase;
  font-size: clamp(17px, 2.15vw, 38px); line-height: 1.42; color: var(--ink-soft);
}
.influences__text p + p { margin-top: 1.4em; }
.influences__text > p > span { display: block; width: fit-content; }
.influences__text em { font-style: inherit; display: inline-block; }
.influences__wheel { position: relative; justify-self: center; width: min(37vw, 62svh); aspect-ratio: 1; }
/* shadow lives on the static figure, so it does not orbit while the wheel turns */
.influences__wheel { border-radius: 50%; box-shadow: 0 18px 34px -10px rgba(0,0,0,.22); }
.influences__wheel img { position: relative; width: 100%; height: 100%; border-radius: 50%; }

/* ==========================================================================
   07–08 · OFÍCIO (word play)
   ========================================================================== */
.words__pin {
  position: relative; height: 100svh; min-height: 560px;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: minmax(0, 1fr); align-items: center;
  padding: 3svh var(--gutter) 3svh clamp(10px, 2vw, 32px);
}
/* vertical writing: "column" lays the three strips side by side, read bottom → top */
.words__alpha {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6vw;
  height: 100%; max-height: 100%; overflow: visible; overflow-y: clip;
  writing-mode: vertical-rl; rotate: 180deg;
}
.words__vowels {
  font-family: var(--f-futura-bold); font-weight: 800; color: var(--ghost);
  font-size: min(26svh, 16vw); line-height: .74; letter-spacing: -.02em;   /* AEIOU fits the 94svh column whole */
}
.words__vowels b { font-weight: inherit; transition: color .25s; }
.words__vowels b.on { color: #bcbcba; }
.words__cons {
  font-weight: 300; color: #f2f2f1; font-size: min(5.6svh, 3.2vw);
  letter-spacing: .06em; line-height: 1.05; white-space: nowrap;
}
.words__cons i { font-style: normal; transition: color .2s; }
.words__cons i.on { color: var(--ink); }

.words__list, .words__stage {
  font-family: var(--f-futura-bold); font-weight: 800; text-transform: uppercase;
  /* deck slides 7–8: line pitch = 1.43 × the cap height (room for Õ, Ã, Ç), seven lines in the slide */
  font-size: min(7.78vw, 11.09svh); line-height: 1.08; letter-spacing: -.005em;
  color: var(--ink);
}
.words__list em, .words__stage em { font-style: normal; color: var(--ghost); }
.words__lists { padding-left: 9vw; display: grid; gap: 8svh; padding-block: 10svh; }
.words__stage { display: none; padding-left: 9vw; }
.words__stage li { white-space: nowrap; height: 1.08em; }
.words__stage .ch { display: inline-block; }
.words__stage em { display: inline-block; }

.words.is-animated .words__lists { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.words.is-animated .words__stage { display: block; }

/* ==========================================================================
   09 · SOBRE
   ========================================================================== */
/* Desktop: slide 9 of the deck, measured. --u is 1% of the 16:9 slide that fits the screen.
   Title: caps 2.88u tall from 1.64u under the top, 1.61u from the left, 3.86u line pitch.
   CV: from 31.8u to the right edge (kept clear of the pager dots), top to bottom (fitBio()).
   Portrait: 39.6u tall, its top 22.4u down, 14.9u past the left edge and running past the
   bottom, so MENDES touches the hair and the hair touches the CV's left edge. */
.bio {
  --u: min(1vw, 1.7778svh);
  --bt: 6svh;                       /* breathing room under the section above (not in the deck) */
  min-height: calc(max(100svh, 56.25 * var(--u)) + var(--bt)); padding: 0;
}
.bio__title {
  /* deck: Futura XBold, caps 2.88u from 1.64u under the top and 1.61u from the left, 3.86u pitch
     (cap top sits .116em into a 1.01 line; I's side bearing .064em) */
  position: absolute; z-index: 2; left: calc(1.81 * var(--u) - .064em); top: calc(var(--bt) + 1.64 * var(--u) - .116em);
  font-family: var(--f-futura-bold); font-weight: 800; text-transform: uppercase;
  font-size: calc(3.82 * var(--u)); line-height: 1.018; letter-spacing: -.03em; color: var(--ink);
}
.bio__title .bl { display: block; }
.bio__text .nw { white-space: nowrap; }
/* on taller screens it grows to keep reaching the bottom, and moves left as it grows so the
   hair stays against the CV */
.bio__portrait {
  --ph: max(calc(39.58 * var(--u)), calc(100svh - var(--bt) - 16.67 * var(--u)));
  position: absolute; z-index: 1; top: calc(var(--bt) + 22.36 * var(--u));
  left: calc(-14.86 * var(--u) - 1.2111 * (var(--ph) - 39.58 * var(--u)));
  height: var(--ph); width: auto; max-width: none;
}
.bio__text {
  /* deck (slide 9): Futura Light Oblique, caps 2.89u (4.08u type), 3.86u pitch, 14 lines from
     31.8u to 98.8u; cap top .095em into the .946 line */
  position: absolute; left: calc(31.79 * var(--u)); right: calc(1.2 * var(--u)); top: calc(var(--bt) + 1.53 * var(--u) - .095em);
  font-family: var(--f-light-obl); font-style: italic; font-weight: 300; text-transform: uppercase;
  font-size: calc(4.08 * var(--u)); line-height: .946; letter-spacing: -.025em;   /* Futura BQ runs wider than the deck's LT Pro: same line breaks as slide 9 */
  text-align: justify; text-align-last: justify; hyphens: none;
  color: var(--cv-light, #ffffff);   /* artist: text and labels in the same white */
}
.bio__text strong { font-family: "Futura CV Label", var(--f-futura-bold); font-weight: 700; font-style: italic; letter-spacing: -.018em;
  -webkit-text-stroke: .022em currentColor;   /* PDF: Futura Bold Oblique. Stopgap above, thickened by a .022em outline (weight "B"; "C" was .04em at -.01em); the outline doesn't change the advances, so the tracking opens by its width: same gaps, same 14 deck lines */
  color: var(--cv-light, #ffffff); }


/* ==========================================================================
   10 · FOOTER
   ========================================================================== */
.footer { height: 100svh; min-height: 560px; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); }
.checker--tl { top: 0; left: 0; }
.checker--br { right: 0; bottom: 0; }
.footer__logo { position: absolute; left: 50%; top: 50%; translate: -50% -60%; width: clamp(150px, 17vw, 300px); }
.footer__contact {
  position: absolute; left: clamp(16px, 3vw, 56px); bottom: 6svh;
  font-size: clamp(14px, 1.65vw, 26px); line-height: 1.2; color: #e8e8e6;
}
.footer__contact p { font-family: var(--f-light-obl); font-style: italic; font-weight: 300; }
/* contacts (artist's request): small tracked upright label over the address in Light Oblique,
   an engraved hairline under OBRIGADO, as wide as the two contacts */
.footer__contact { width: max-content; }
.footer__rule { display: block; height: 2px; margin: calc(1.3 * var(--u, 1vw)) 0 calc(1.5 * var(--u, 1vw));
  border-top: 1px solid rgba(0,0,0,.38); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); transform-origin: left center; }
.footer__items { display: flex; gap: calc(4 * var(--u, 1vw)); }
.footer__item { display: flex; flex-direction: column; gap: calc(.65 * var(--u, 1vw)); }
.footer__label { font-family: "Jost", system-ui, sans-serif; font-style: normal; font-weight: 400; text-transform: uppercase;
  font-size: .452em; letter-spacing: .22em; line-height: 1; color: rgba(255,255,255,.62); }
.footer__item a { font-size: 1.03em; line-height: 1; text-decoration: none; color: #fff; }
.footer__contact a { text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .3s; }
.footer__contact a:hover { color: #fff; }
.footer__thanks { font-style: normal !important; font-weight: 400; text-transform: uppercase; font-size: 1.12em; margin-bottom: .1em; }
.footer__legal { position: absolute; left: clamp(16px, 3vw, 56px); bottom: 2.4svh; font-size: 11px; letter-spacing: .08em; color: #a3a3a0; text-transform: uppercase; }

/* ==========================================================================
   Pager (right edge)
   ========================================================================== */
.pager {
  position: fixed; right: 16px; top: 50%; translate: 0 -50%; z-index: 50;
  display: flex; flex-direction: column; gap: 7px;
  mix-blend-mode: difference;
}
.pager { transition: opacity .4s; }
.pager.is-hidden { opacity: 0; pointer-events: none; }
.pager a { width: 9px; height: 9px; border: 1px solid #fff; transition: background .3s, scale .3s; }
.pager a.is-active { background: #fff; scale: 1.15; }
.pager a:hover { background: rgba(255,255,255,.5); }

/* ==========================================================================
   Popup
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(34,34,33,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal__panel {
  position: relative; width: min(1120px, 92vw); max-height: 90svh;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  outline: none; isolation: isolate;
}
.modal__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/img/paper.jpg") center / cover; mix-blend-mode: multiply; opacity: .22;
}
.modal__close {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  font-family: var(--f-futura); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 13px;
  padding: 8px 10px; background: var(--paper);
}
.modal__close span { margin-left: .4em; }
.modal__body { overflow: auto; overscroll-behavior: contain; }

.pop { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: min(640px, 86svh); }
.pop__side { padding: clamp(24px, 3.4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.pop__main { padding: clamp(24px, 3.4vw, 56px); padding-top: clamp(56px, 5vw, 72px); background: rgba(255,255,255,.18); }
.pop__cover { width: min(100%, 360px); aspect-ratio: 1; object-fit: cover; box-shadow: 0 18px 36px -18px rgba(0,0,0,.5); }
.pop__meta { font-family: var(--f-futura-bold); font-weight: 800; font-size: 13px; }
.pop__title { font-family: var(--f-futura-bold); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 54px); line-height: .95; letter-spacing: .01em; }
.pop__desc { font-style: italic; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.4; color: var(--ink-soft); max-width: 40ch; }
.pop__kicker { font-family: var(--f-futura-bold); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .14em; color: var(--ink-mute); margin-bottom: 1.6em; }
.pop__lyrics { font-style: italic; font-weight: 300; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.55; white-space: pre-line; color: var(--ink); }
.pop__lyrics .ln { display: block; min-height: 1.55em; }
.pop__lyrics .ln.note { font-size: .72em; letter-spacing: .04em; color: var(--ink-mute); text-transform: uppercase; font-style: normal; }
.pop__empty { font-style: italic; color: var(--ink-mute); }
.pop__link { display: inline-flex; align-items: center; gap: .6em; margin-top: 1.4em; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }

/* song: the popup keeps a fixed height and only the lyrics column scrolls, so the cover stays in view */
.pop--song { --pop-h: min(820px, 90svh); height: var(--pop-h); min-height: 0; }
/* the cover shrinks on short screens so the whole left column fits without scrolling */
.pop--song .pop__side > * { flex-shrink: 0; }
.pop--song .pop__side > .pop__cover { flex: 0 1 360px; min-height: 190px; width: auto; max-width: 100%; align-self: flex-start; }
.pop--song .pop__side { overflow-y: auto; scrollbar-width: none; }   /* fallback for very short screens */
.pop--song .pop__main { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ink-mute) transparent; }

.pop__desc--m { display: none; }   /* mobile copy of the description, inside the lyrics scroll */

.pop--video { grid-template-columns: auto minmax(0, 1fr); }
.pop--video .pop__stage { padding: clamp(16px, 2.4vw, 36px); background: #1d1d1c; display: grid; place-items: center; }
.pop--video.pop--kinetic .pop__stage { background: #c9c9c8; }
.vplayer { position: relative; height: min(78svh, 720px); aspect-ratio: 9 / 16; background: #000; overflow: hidden; }
.vplayer img, .vplayer video, .vplayer iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.vplayer__btn { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.vplayer__btn .ico-play { width: 72px; height: 72px; font-size: 22px; background: rgba(0,0,0,.25); backdrop-filter: blur(2px); }
.pop--kinetic .vplayer__btn { color: var(--ink); }
.pop--kinetic .vplayer__btn .ico-play { background: rgba(255,255,255,.45); }
.vplayer__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.vplayer__bar i { display: block; height: 100%; width: 0; background: #fff; }
.vplayer.is-playing img { animation: kb 14s linear forwards; }
.vplayer.is-playing .vplayer__btn { opacity: 0; transition: opacity .4s; }
.vplayer.is-playing:hover .vplayer__btn { opacity: 1; }
@keyframes kb { to { scale: 1.08; } }
.pop__poem { font-style: italic; font-weight: 300; font-size: clamp(16px, 1.3vw, 21px); line-height: 1.55; white-space: pre-line; margin-top: 8px; padding-left: 14px; border-left: 2px solid var(--ink); }

/* mock / spotify player */
.aplayer { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 16px; margin-top: 6px; max-width: 420px; }
.aplayer__btn { font-size: 22px; }
.aplayer__btn .ico-play { width: 2.4em; height: 2.4em; }
.aplayer.is-playing .ico-play::before { width: .5em; height: .7em; margin: 0; border: 0; border-inline: .17em solid currentColor; }
.aplayer__track { position: relative; height: 2px; background: rgba(79,79,76,.25); }
.aplayer__track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); }
.aplayer__track b { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); left: 0; }
.aplayer__time { grid-column: 2; display: flex; justify-content: space-between; font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink-mute); }
.aplayer__eq { display: flex; gap: 3px; align-items: flex-end; height: 18px; grid-column: 1 / -1; }
.aplayer__eq i { width: 3px; height: 20%; background: var(--ink); opacity: .5; }
.mock-note { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.spotify, .spotify iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1100px) and (min-width: 761px) {
  .manifesto__text { max-width: 68vw; }
}

/* ==========================================================================
   Mobile — each slide re-composed as a vertical section
   ========================================================================== */
@media (max-width: 760px) {
  :root { --gutter: 6vw; }
  .pager { display: none; }

  /* hero */
  .hero { min-height: 600px; }
  .checker { --cell: 14.5vw; }
  .hero__portrait { height: auto; width: 138vw; left: -26vw; top: auto; bottom: 0; }
  .hero__logo { top: calc(env(safe-area-inset-top) + 5.2vw); width: 45vw; }
  .hero__roles { top: calc(43.5vw + 9svh); font-size: 6.2vw; }
  .hero__triad { bottom: 4.5svh; font-size: 4.4vw; text-shadow: 0 1px 12px rgba(0,0,0,.6); }

  /* artista */
  .manifesto { padding: 13svh var(--gutter) 50svh; justify-content: flex-start; }
  .manifesto__head { padding: 4vw 0 4vw 3vw; }
  .ghost--artista { font-size: 23vw; left: -2vw; }
  .manifesto .display-title { font-size: 7.4vw; }
  .manifesto__text { max-width: none; margin-top: 6svh; font-size: 5vw; line-height: 1.4; }
  .manifesto__guitar {
    height: 46svh; right: -4vw; z-index: 0;
    /* shorter than the section here, so the neck's hard top crop would float mid-page: fade it out */
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%);
            mask-image: linear-gradient(to bottom, transparent, #000 22%);
  }

  /* obras */
  .works, #filmada.works, #cinetica.works { display: block; padding: 13svh 0 12svh; min-height: 0; }
  .works__label {
    position: relative; left: auto; top: auto; bottom: auto; translate: none; scale: none;
    rotate: none; writing-mode: horizontal-tb;
    padding: 0 var(--gutter); font-size: 11.6vw; line-height: .92; margin-bottom: 5svh;
  }
  .works__label .wl { display: block; }
  .works__track, #filmada .works__track, #cinetica .works__track { padding: 2svh var(--gutter); scroll-padding-inline: var(--gutter); gap: 4vw; }
  .works__track > :first-child { margin-left: 0; }
  .works__track > :last-child { margin-right: 0; }
  .works__track::after { content: ""; flex: 0 0 2vw; }
  .card { scroll-snap-align: start; }
  .card--song { --cw: 66vw; min-height: calc(66vw * 1.72); }
  .card--film, #filmada .card--film, #cinetica .card--film { width: 64vw; }


  /* influências */
  .influences { display: block; padding: 12svh var(--gutter) 10svh; }
  .influences__head { padding: 4vw 0; margin-bottom: 5svh; }
  .ghost--influencias { font-size: 17.5vw; left: -3vw; }
  .influences .display-title { font-size: 6.6vw; }
  .influences__text { font-size: 4.9vw; }
  .influences__wheel { width: 84vw; margin: 9svh auto 0; }

  /* ofício: the deck's vertical alphabet turns horizontal and sits above the words */
  .words__pin {
    display: flex; flex-direction: column; justify-content: center; gap: 4.5svh;
    padding: 6svh var(--gutter);
  }
  .words__alpha {
    writing-mode: horizontal-tb; rotate: none; height: auto; overflow: visible;
    flex-direction: column; gap: 1.2vw;
  }
  .words__vowels { font-size: 25.5vw; line-height: .76; margin-left: 0; }   /* A and U fully inside the gutters */
  .words__cons { font-size: 4.6vw; letter-spacing: .04em; }
  .words__list, .words__stage { font-size: 10.6vw; }
  .words__lists { padding: 0; }
  .words__stage { padding-left: 0; }

  /* sobre */
  .bio { display: block; padding: 10svh var(--gutter) 0; min-height: 0; }
  .bio__title { position: relative; left: auto; top: auto; font-size: 8.4vw; line-height: 1.02; scale: none; letter-spacing: .012em; }
  .bio__text { position: relative; left: auto; right: auto; top: auto; margin-top: 5svh; font-size: 5.4vw; line-height: 1.12; }
  .bio__portrait { position: relative; top: auto; left: auto; height: auto; width: 100vw; margin: 4svh calc(var(--gutter) * -1) 0; }

  /* footer */
  .footer { min-height: 620px; }
  .footer__logo { width: 46vw; translate: -50% -80%; }
  .footer__contact { left: var(--gutter); right: var(--gutter); bottom: calc(43.5vw + 5svh); font-size: 4.3vw; width: auto; }
  .footer__rule { margin: 4vw 0 5vw; }
  .footer__items { flex-direction: column; gap: 5vw; }
  .footer__item { gap: 1.8vw; }
  .footer__label { font-size: .65em; }
  .footer__item a { font-size: 1.35em; }
  .footer__legal { bottom: auto; top: calc(43.5vw + 4svh); left: auto; right: var(--gutter); }

  /* popup → full screen sheet */
  .modal__panel { width: 100vw; max-height: 100svh; height: 100svh; }
  .modal__close { position: sticky; top: 0; align-self: flex-end; margin: 10px 10px 0 0; }
  .modal__body { margin-top: -46px; }
  .pop, .pop--video { grid-template-columns: 1fr; min-height: 0; }
  /* song on mobile, same idea as desktop: cover, title and player stay put as a header;
     only the lyrics scroll below them (the description moves to the top of the lyrics) */
  .pop--song {
    height: 100svh; padding: 56px var(--gutter) 0;
    grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto auto auto auto minmax(0, 1fr);
    column-gap: 16px; align-content: stretch;
  }
  .pop--song .pop__side { display: contents; }
  .pop--song .pop__side > .pop__cover { grid-column: 1; grid-row: 1 / span 2; width: 92px; height: 92px; min-height: 0; }
  .pop--song .pop__meta { grid-column: 2; grid-row: 1; align-self: end; padding-right: 84px; font-size: 12px; }
  .pop--song .pop__title { grid-column: 2; grid-row: 2; align-self: start; margin-top: 6px; font-size: 26px; }
  .pop--song .pop__side > .pop__desc { display: none; }
  .pop--song .spotify, .pop--song .aplayer { grid-column: 1 / -1; grid-row: 3; margin-top: 16px; max-width: none; }
  .pop--song .spotify, .pop--song .spotify iframe { height: 80px; }
  .pop--song .mock-note { grid-column: 1 / -1; grid-row: 4; margin-top: 6px; }
  .pop--song .pop__main {
    grid-column: 1 / -1; grid-row: 5; margin: 16px calc(var(--gutter) * -1) 0;
    padding: 24px var(--gutter) 64px; overflow-y: auto;
  }
  .pop__desc--m { display: block; margin-bottom: 1.6em; }
  .pop__side { padding: 56px var(--gutter) 28px; }
  .pop__main { padding: 28px var(--gutter) 64px; }
  .pop--video .pop__stage { padding: 52px var(--gutter) 20px; }
  .vplayer { height: auto; width: min(100%, 60svh * 9 / 16); }
}

/* ==========================================================================
   Reduced motion: show everything in its final place
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ==========================================================================
   Texture layer (artist's request): the paper texture lies over the background and the
   background-like elements (checker squares, ghost words, PALAVRA ... labels, AEIOU and
   the alphabet); everything else (photos, cards, titles, text, logo) sits above it.
   The texture is fixed to the screen, so it continues seamlessly across sections.
   Layers inside each section: under-elements (z <= 0) < texture (z 1) < content (z >= 2).
   ========================================================================== */
.sec::before, .words__pin::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("../assets/img/paper.jpg") center top / cover fixed;
  opacity: .14;
}
.words::before { display: none; }          /* the pinned stage carries its own (it is position: fixed while pinned) */
.words__pin { isolation: isolate; }

.hero__portrait { z-index: 2; }
.hero__copy { z-index: 3; }
.display-title { z-index: 2; }
.manifesto .display-title { z-index: 2; }
.manifesto__guitar { z-index: 2; }
.manifesto__text, .influences__text { position: relative; z-index: 3; }
.works__track { position: relative; z-index: 2; }
.influences__wheel { z-index: 2; }
.words__lists, .words__stage { position: relative; z-index: 2; }
.bio__title { z-index: 3; }
.bio__portrait { z-index: 2; }
.bio__text { z-index: 3; }
.footer__logo, .footer__contact, .footer__legal { z-index: 2; }
@media (max-width: 760px) {
  .manifesto__guitar { z-index: 2; }
}

/* ==========================================================================
   Desktop slide placement (kept last so it wins over the base and texture rules)
   ========================================================================== */
/* Desktop: slides 2 and 6 measured (u = 1% of the 16:9 slide; --fy centres it on taller
   screens). Ghost words: ARTISTA 15.87u from (5.5u, 8.1u), INFLUÊNCIAS 12.4u from (5.2u, 4.2u),
   cap tops; titles and texts placed by their ink; texts 2.43u Futura-Light-sized, 3.385u pitch. */
@media (min-width: 761px) {
  .manifesto, .influences {
    --u: min(1vw, 1.7778svh); --fy: calc((100svh - 56.25 * var(--u)) / 2);
    display: block; padding: 0; min-height: 100svh;
  }
  .manifesto__head, .influences__head { position: absolute; inset: 0; padding: 0; margin: 0; }
  .ghost--artista { left: calc(4.89 * var(--u)); top: calc(var(--fy) + 8.09 * var(--u)); translate: none; font-size: calc(15.87 * var(--u)); }
  .ghost--influencias { left: calc(4.42 * var(--u)); top: calc(var(--fy) + 4.24 * var(--u)); translate: none; font-size: calc(12.38 * var(--u)); }
  .manifesto .display-title, .influences .display-title { position: absolute; white-space: nowrap; }
  .manifesto .display-title { left: var(--t2x, calc(14.64 * var(--u))); top: calc(var(--fy) + var(--t2y, 12.38 * var(--u))); font-size: calc(4.379 * var(--u)); }
  .influences .display-title { left: var(--t6x, calc(7.83 * var(--u))); top: calc(var(--fy) + var(--t6y, 7.33 * var(--u))); font-size: calc(3.68 * var(--u)); }
  .manifesto__text, .influences__text {
    position: absolute; z-index: 3; margin: 0; max-width: none;
    font-size: calc(2.6 * var(--u)); line-height: 1.302;   /* deck caps ~1.94u, 3.385u pitch (Futura BQ caps .708em) */
  }
  .manifesto__text { left: calc(6.85 * var(--u)); top: calc(var(--fy) + var(--b2y, 27.3 * var(--u))); }
  .influences__text { left: calc(7.85 * var(--u)); top: calc(var(--fy) + var(--b6y, 20.45 * var(--u))); }
  .influences__text p + p { margin-top: 1.302em; }
  .influences__wheel { position: absolute; z-index: 2; left: calc(57.47 * var(--u)); top: calc(var(--fy) + 14.72 * var(--u)); width: calc(36.73 * var(--u)); }
}

/* Desktop: slides 7–8 measured. --u is 1% of the 16:9 slide that fits the screen; --fy centres
   that slide vertically on taller screens. AEIOU caps 11.5u, 51.25u long; both alphabet strips run
   the full height; the Ritmo list is 8.11u (caps from 39.27u), the Autorais list 7.03u (from 42.19u),
   both with their cap tops ~2.7u under the slide's top (Futura XBold: cap top = .151em into the line). */
@media (min-width: 761px) {
  .words__pin {
    --u: min(1vw, 1.7778svh); --fy: calc((100svh - 56.25 * var(--u)) / 2);
    display: block; padding: 0;
  }
  .words__alpha {
    position: absolute; left: calc(2.4 * var(--u)); top: calc(var(--fy) + 2.47 * var(--u));
    height: calc(51.25 * var(--u)); gap: calc(.2 * var(--u)); overflow: visible;
  }
  .words__vowels { font-size: calc(14.95 * var(--u)); }
  /* deck: "B,C,D,F…" packed (no spaces), spread evenly over the full height */
  .words__cons {
    font-size: var(--cons-fs, calc(4.9 * var(--u))); letter-spacing: -.02em; word-spacing: -.3em; line-height: 1;
    white-space: normal; inline-size: calc(50.24 * var(--u)); text-align: justify; text-align-last: justify;
  }
  .words__cons--a { margin-block-start: calc(1.1 * var(--u)); }
  .words__cons--b { inline-size: calc(49.65 * var(--u)); }
  .words__stage {
    position: absolute; padding: 0; z-index: 2;
    left: calc(38.77 * var(--u)); top: calc(var(--fy) + 1.561 * var(--u)); font-size: calc(8.11 * var(--u));
    letter-spacing: -.033em; line-height: 1.086;
  }
  .words__stage li { height: 1.086em; }
  .words__stage[data-g="B"] { left: calc(39.07 * var(--u));   /* same left ink edge as the Ritmo list (artist's choice; the deck used 42.2u) */ top: calc(var(--fy) + 1.557 * var(--u)); font-size: calc(7.03 * var(--u)); }
}

/* Desktop: slides 1 and 10 measured. Hero: POETA… 2.97u (3.23u pitch), ending at 94.4u, caps from
   25.5u; palavra • som • imagem 2.29u, caps at 49.4u. Footer contact 1.86u, where the deck's QR
   code began (the QR is left out on purpose). */
@media (min-width: 761px) {
  .hero, .footer { --u: min(1vw, 1.7778svh); --fy: calc((100svh - 56.25 * var(--u)) / 2); }
  .hero__roles { right: calc(5.62 * var(--u)); top: calc(var(--fy) + var(--r1y, 24.99 * var(--u))); font-size: calc(3.17 * var(--u)); line-height: 1.019; }   /* deck caps 2.29u, 3.23u pitch (Futura BQ caps .708em) */
  .hero__triad { right: calc(5.55 * var(--u)); bottom: auto; top: calc(var(--fy) + var(--r2y, 48.9 * var(--u))); font-size: calc(2.29 * var(--u)); }
  .footer__contact { left: calc(1.18 * var(--u)); top: auto; bottom: calc(var(--fy) + 5.2 * var(--u)); font-size: calc(1.99 * var(--u)); line-height: .98; }
}

/* Futura Light Oblique wherever the deck uses it */
.hero__roles, .manifesto__text, .influences__text, .bio__text { font-family: var(--f-light-obl); font-weight: 300; font-style: italic; }
