/* ============================================================
   Manuel Andrade · Atlantic Editorial
   ============================================================ */

/* ============ Self-hosted fonts (no third-party requests) ============
   Fraunces — variable axes (opsz, wght, SOFT, WONK), latin + latin-ext, normal + italic.
   Manrope  — variable wght axis, latin + latin-ext.
   Files under /assets/fonts. unicode-range lets the browser fetch only the subset it needs. */

/* Fraunces — Latin (covers Basic Latin + Latin-1 Supplement, includes ã é ç í ó ú) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-full-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-full-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces — Latin Extended (rare diacritics, dingbats, currency, etc.) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-ext-full-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-ext-full-italic.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Manrope — Latin */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope — Latin Extended */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette — Atlantic Editorial */
  --ink:        #0B1E26;
  --midnight:   #061319;
  --deep-sea:   #0E2A35;
  --sea:        #1A4452;
  --sea-mid:    #2D5560;
  --sea-pale:   #5A8A93;

  --bone:       #FAF6EE;
  --cream:      #F4ECE0;
  --sand:       #E8DCC4;
  --sand-deep:  #C9B89A;

  --gold:       #C9A55C;
  --gold-warm:  #D9B973;
  --rust:       #B5613F;

  --ink-on-cream: var(--ink);
  --cream-on-ink: var(--cream);

  /* Typography */
  --serif:  "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:   "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --pad-x:        clamp(20px, 5vw, 72px);
  --section-y:    clamp(80px, 12vw, 180px);
  --max:          1320px;
  --max-text:     680px;
  --rule:         1px solid rgba(11, 30, 38, 0.14);
  --rule-on-dark: 1px solid rgba(244, 236, 224, 0.18);

  /* Motion */
  --ease:         cubic-bezier(.2, .7, .2, 1);
  --ease-out:     cubic-bezier(.16, 1, .3, 1);
}

/* ============ Reset / base ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}

img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--ink); }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--ink); color: var(--cream);
  padding: 10px 16px; border-radius: 4px; z-index: 100;
  font-size: 13px; letter-spacing: 0.04em;
}
.skip:focus { left: 12px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ============ Header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  padding: 18px var(--pad-x);
  color: var(--cream);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), padding 0.4s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(244, 236, 224, 0.92);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  color: var(--ink);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom-color: rgba(11, 30, 38, 0.08);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-feature-settings: "ss01", "kern";
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid currentColor;
  font-size: 13px; letter-spacing: 0.12em;
  font-family: var(--sans); font-weight: 600;
  border-radius: 50%;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.brand:hover .brand-mark { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.brand-name {
  font-size: 18px; font-style: italic; font-weight: 400;
  letter-spacing: 0.005em;
}
@media (max-width: 640px) {
  .brand-name { display: none; }
}

.primary-nav {
  display: flex; gap: clamp(14px, 2.4vw, 28px);
  font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  justify-self: end; margin-right: clamp(8px, 2vw, 24px);
}
.primary-nav a {
  position: relative;
  padding: 6px 0;
  opacity: 0.78;
  transition: opacity 0.25s var(--ease);
}
.primary-nav a:hover { opacity: 1; }
.primary-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.primary-nav a:hover::after { transform: scaleX(1); }

@media (max-width: 920px) {
  .primary-nav {
    position: fixed; inset: 0; top: 64px;
    flex-direction: column; gap: 0;
    background: var(--ink); color: var(--cream);
    padding: 40px var(--pad-x);
    text-align: left;
    transform: translateY(-110%);
    transition: transform 0.5s var(--ease);
    pointer-events: none;
  }
  .primary-nav a {
    font-size: 28px; letter-spacing: 0.04em; text-transform: none;
    font-family: var(--serif); font-weight: 300;
    border-bottom: 1px solid rgba(244, 236, 224, 0.12);
    padding: 22px 0; opacity: 1;
  }
  .primary-nav a::after { display: none; }
  body.menu-open .primary-nav { transform: translateY(0); pointer-events: auto; }
}

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 0.16em; font-weight: 600;
}
.lang-switch button {
  background: none; border: 0; padding: 4px 6px;
  color: inherit; font: inherit;
  letter-spacing: inherit;
  opacity: 0.5;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-switch button[aria-pressed="true"] { opacity: 1; color: var(--gold); }
.lang-switch button:hover { opacity: 1; }
.lang-divider { opacity: 0.4; }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 0;
  width: 32px; height: 24px; position: relative;
  color: inherit;
}
.menu-toggle span {
  position: absolute; left: 4px; right: 4px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 8px; }
.menu-toggle span:nth-child(2) { top: 15px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 11px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 11px; transform: rotate(-45deg); }
@media (max-width: 920px) {
  .menu-toggle { display: block; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 120px var(--pad-x) 48px;
  overflow: hidden;
  isolation: isolate;
  background: var(--midnight);
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}
/* Blurred copy of the portrait used as ambient backdrop on wide screens
   — it fills the bars on either side of the centered photo so nothing
   feels empty, without zooming/cropping the photo itself. */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image: url("assets/photos/manuel-hero-guitar.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(48px) saturate(0.85) brightness(0.55);
  transform: scale(1.15);
}
.hero-image {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  /* Fit the entire image in view — no cropping of his head or guitar. */
  object-fit: contain;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
  transform: translate3d(0, var(--hero-y, 0), 0);
  will-change: transform;
}
/* On narrow screens (mobile), portrait viewport matches portrait photo well —
   use cover so it fills the screen edge-to-edge without bars. */
@media (max-width: 800px) {
  .hero-image {
    object-fit: cover;
    object-position: center 35%;
  }
  .hero-bg::before { display: none; }
}
.hero-veil {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(6, 19, 25, 0.45) 0%,
      rgba(6, 19, 25, 0.05) 30%,
      rgba(6, 19, 25, 0.05) 50%,
      rgba(6, 19, 25, 0.78) 100%);
}
.hero-grain {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.10; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 11.5px; letter-spacing: 0.32em; text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
}
.hero-meta-top { justify-content: flex-start; }
.hero-meta-top .rule {
  display: inline-block; width: 56px; height: 1px; background: var(--gold);
}
.hero-meta-bottom {
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.scroll-cue {
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.85; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.scroll-cue:hover { opacity: 1; transform: translateY(2px); }
.scroll-cue svg { animation: bobDown 2.4s var(--ease) infinite; }
@keyframes bobDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(4px); opacity: 1; }
}
.hero-cat { font-feature-settings: "tnum"; opacity: 0.6; }

.hero-name {
  margin: auto 0 max(8vh, 56px);   /* auto-top pushes name down; explicit bottom margin */
}
.hero-name .display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 250;
  font-size: clamp(72px, 16vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  font-feature-settings: "ss01";
}
.hero-name .line {
  display: block;
  overflow: hidden;
}
.hero-name .line.italic {
  font-style: italic;
  font-weight: 220;
  margin-left: clamp(20px, 6vw, 100px);
  color: var(--bone);
}
.hero-name .line > * { display: inline-block; }

.hero-sub {
  margin: 26px 0 0;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.88;
  max-width: 100%;
}
.hero-sub .bullet {
  margin: 0 14px; color: var(--gold); opacity: 0.9;
}

/* Reveal animation for hero */
.reveal .line {
  position: relative;
}
.reveal .line::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--midnight);
  transform: translateY(0%);
  animation: revealMask 1.1s 0.2s var(--ease-out) forwards;
}
.reveal .line.italic::before { animation-delay: 0.4s; }
@keyframes revealMask {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-101%); }
}
.reveal .display { opacity: 0; animation: revealText 0.001s 0.2s forwards; }
.reveal .line.italic { opacity: 0; animation: revealText 0.001s 0.4s forwards; }
@keyframes revealText { to { opacity: 1; } }
.hero-sub { opacity: 0; animation: heroSubIn 1s 1.1s var(--ease-out) forwards; }
@keyframes heroSubIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 0.88; transform: translateY(0); }
}

/* ============ Sections (general) ============ */
.section {
  padding: var(--section-y) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  scroll-margin-top: 80px;   /* anchor links should clear the sticky header */
}
/* Full-bleed dark sections need the same scroll margin on the inner anchor */
.section-album, .section-land, .section-contact { scroll-margin-top: 80px; }
.section-head {
  display: flex; align-items: baseline; gap: 28px;
  margin-bottom: clamp(40px, 6vw, 80px);
  border-top: var(--rule);
  padding-top: 22px;
}
.section-num {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.28em; font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
  font-feature-settings: "tnum";
}
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 280;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.015em;
  font-style: italic;
}

/* Reveal-on-scroll for section content
   JS-gated: no-JS users (and screenshot tools) see content immediately;
   only when body.has-io-fades is set do unrevealed items hide. */
body.has-io-fades .io-fade {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
body.has-io-fades .io-fade.in { opacity: 1; transform: none; }
.io-fade.delay-1 { transition-delay: 0.06s; }
.io-fade.delay-2 { transition-delay: 0.12s; }
.io-fade.delay-3 { transition-delay: 0.18s; }
.io-fade.delay-4 { transition-delay: 0.24s; }

/* ============ § 01 · Bio ============ */
.section-bio {
  /* light bg, default */
}
.bio-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
@media (max-width: 880px) {
  .bio-grid { grid-template-columns: 1fr; }
}
.bio-figure {
  margin: 0; position: relative;
}
.bio-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  background-color: var(--sand);
  filter: saturate(0.92) contrast(1.02);
  position: relative;
}
.bio-figure { position: relative; }
.bio-figure::after {
  content: ""; position: absolute; inset: 0 0 38px 0;
  box-shadow: inset 0 0 60px rgba(11, 30, 38, 0.18);
  pointer-events: none;
}
.bio-figure figcaption {
  margin-top: 14px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sea-mid); font-weight: 500;
}

.bio-text {
  max-width: var(--max-text);
  font-size: 17.5px; line-height: 1.78;
}
.bio-text .lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 320;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 36px;
}
.bio-text p + p { margin-top: 1.1em; }

.pullquote {
  margin: 56px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  font-style: italic;
  font-weight: 320;
  color: var(--sea-mid);
}
.pullquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-style: normal;
  color: var(--ink); opacity: 0.6;
}

/* Magazine-style stat callouts */
.bio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin: 48px 0 8px;
  padding: 32px 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.bio-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bio-stats .stat-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 240;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--gold);
  font-feature-settings: "tnum";
}
.bio-stats .stat-num-pt {
  font-style: normal;
  font-weight: 280;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0.02em;
}
.bio-stats .stat-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sea-mid);
  line-height: 1.4;
  max-width: 18ch;
}
@media (max-width: 560px) {
  .bio-stats { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .bio-stats .stat { flex-direction: row; align-items: baseline; gap: 18px; }
  .bio-stats .stat-num { font-size: 56px; }
}

/* ============ § 02 · Album ============ */
.section-album {
  background: var(--ink);
  color: var(--cream);
  max-width: none;          /* full bleed */
  margin: 0;
  padding-left: var(--pad-x); padding-right: var(--pad-x);
}
.section-album .section-head { border-top-color: rgba(244, 236, 224, 0.18); }
.section-album .section-num { color: var(--gold-warm); }
.section-album .section-title { color: var(--cream); }

.album-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
@media (max-width: 880px) {
  .album-grid { grid-template-columns: 1fr; }
}

.album-cover-wrap {
  position: relative;
}
.album-cover {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.7),
    0 8px 24px -8px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(244, 236, 224, 0.06);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.05) 0%, transparent 30%),
    repeating-radial-gradient(circle at 50% 50%,
      #050a0d 0px, #050a0d 2px,
      #0c1419 2px, #0c1419 3px),
    #050a0d;
  /* Always spin — this is core brand identity, not motion noise.
     Use a separate animation name so reduced-motion-aware UAs don't auto-kill it. */
  animation: discSpin 10s linear infinite;
  will-change: transform;
  transform-origin: 50% 50%;
}
@keyframes discSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Even with reduced motion the disc still spins — just much more gently.
   The whole point of the section is "this is a record"; a static disc breaks the metaphor. */
@media (prefers-reduced-motion: reduce) {
  .album-cover { animation-duration: 60s; }
}
.album-cover-wrap:hover .album-cover { animation-duration: 4s; }
.album-cover img {
  position: absolute;
  top: 50%; left: 50%;
  width: 56%; height: 56%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow:
    0 0 0 1px rgba(11, 19, 24, 0.6),
    0 0 0 4px rgba(11, 19, 24, 0.3),
    inset 0 0 30px rgba(0,0,0,0.25);
  z-index: 2;
}
.album-cover::before {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 50%;
  background: conic-gradient(from 210deg at 50% 50%,
    transparent 0deg,
    rgba(255,255,255,0.04) 35deg,
    rgba(255,255,255,0.10) 50deg,
    rgba(255,255,255,0.04) 65deg,
    transparent 100deg,
    transparent 360deg);
  pointer-events: none; z-index: 1;
}
.album-cover::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 4.2%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--midnight);
  border: 1px solid rgba(244, 236, 224, 0.18);
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
}

.album-meta {
  margin-top: 32px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  font-size: 12.5px; letter-spacing: 0.04em;
  border-top: var(--rule-on-dark); padding-top: 24px;
}
.album-meta > div { display: flex; flex-direction: column; gap: 4px; }
.album-meta .k { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.55; }
.album-meta .v { font-family: var(--serif); font-style: italic; font-size: 18px; font-weight: 320; }

.album-text { max-width: var(--max-text); }
.album-year {
  font-family: var(--sans);
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500;
  color: var(--gold-warm);
  margin: 0 0 8px;
}
.album-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 220;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.album-title em { font-style: italic; font-weight: 220; color: var(--gold-warm); }
.album-byline {
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  margin: 18px 0 36px;
  opacity: 0.7; font-weight: 500;
}
.album-text p {
  font-size: 17px; line-height: 1.78;
  opacity: 0.9;
  max-width: 60ch;
}
.album-text p + p { margin-top: 1.1em; }

/* ============ § 03 · Tracklist ============ */
.section-tracks {
  background: var(--cream);
}

.tracklist {
  list-style: none;
  margin: 0; padding: 0;
  border-top: var(--rule);
}
.tracklist li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  gap: clamp(16px, 4vw, 56px);
  align-items: baseline;
  padding: 28px 0;
  border-bottom: var(--rule);
  position: relative;
  transition: padding 0.4s var(--ease);
}
.tracklist li::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(201, 165, 92, 0.08), transparent);
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.tracklist li:hover::before { opacity: 1; }
.tracklist li:hover { padding-left: 16px; }
.tracklist li:hover .t-title { color: var(--rust); }

.t-num {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.16em; font-weight: 600;
  color: var(--gold);
  font-feature-settings: "tnum";
  align-self: center;
}
.t-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.t-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 280;
  letter-spacing: -0.012em;
  line-height: 1.15;
  transition: color 0.3s var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-tag {
  display: inline-block;
  vertical-align: 0.18em;
  margin-left: 12px;
  padding: 2px 9px;
  font-family: var(--sans);
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
}
.t-trans {
  font-size: 12px; letter-spacing: 0.04em;
  font-style: italic;
  color: var(--sea-mid); opacity: 0.85;
  font-family: var(--serif);
}
/* In Portuguese mode the translation line shows the same Portuguese title — hide it. */
body.lang-pt .t-trans { display: none; }
.t-cred {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
  opacity: 0.55;
  align-self: center;
}
.t-time {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  font-feature-settings: "tnum";
  color: var(--ink); opacity: 0.7;
  align-self: center;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .tracklist li { grid-template-columns: 40px 1fr auto; gap: 14px 18px; padding: 22px 0; }
  .t-cred {
    grid-column: 2 / 3; grid-row: 2;
    font-size: 10.5px; letter-spacing: 0.16em;
  }
  .t-time { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .t-title { font-size: 19px; white-space: normal; }
}

.tracks-foot {
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sea-mid);
  font-feature-settings: "tnum";
}

/* ============ § 04 · Homeland ============ */
.section-land {
  background: var(--ink);
  color: var(--cream);
  max-width: none; margin: 0;
}
.section-land .section-head { border-top-color: rgba(244, 236, 224, 0.18); }
.section-land .section-num { color: var(--gold-warm); }
.section-land .section-title { color: var(--cream); }

.land-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
@media (max-width: 880px) {
  .land-grid { grid-template-columns: 1fr; }
}

.land-text { max-width: var(--max-text); }
.land-place {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 220;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--gold-warm);
}
.land-coords {
  font-family: var(--sans);
  font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500;
  opacity: 0.65;
  margin: 0 0 32px;
  font-feature-settings: "tnum";
}
.land-coords .dot { color: var(--gold-warm); margin: 0 6px; }
.land-text p {
  font-size: 17px; line-height: 1.78; opacity: 0.9;
}
.land-text p + p { margin-top: 1.1em; }
.land-map {
  border: var(--rule-on-dark);
  padding: 24px;
  background: rgba(244, 236, 224, 0.02);
}
.land-map svg { width: 100%; height: auto; display: block; }

/* ============ § 05 · Carousel ============ */
.section-gallery {}

.carousel {
  position: relative;
  /* Bleed the carousel beyond the section's max-width on huge screens
     so slides flow off the side */
  margin: 0 calc(-1 * var(--pad-x));
}
.carousel-track {
  display: flex;
  gap: 18px;
  padding: 8px var(--pad-x) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 auto;
  width: clamp(260px, 38vw, 460px);
  aspect-ratio: 3 / 4;
  margin: 0;
  scroll-snap-align: center;
  overflow: hidden;
  background: var(--sand);
  position: relative;
  box-shadow: 0 4px 24px -8px rgba(11, 30, 38, 0.18);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 0.6s var(--ease);
  opacity: 0.55;
}
.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1.02);
  box-shadow: 0 18px 48px -12px rgba(11, 30, 38, 0.32);
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 1.4s var(--ease-out);
}
.carousel-slide.is-active img:hover { transform: scale(1.04); }

.carousel-btn {
  position: absolute;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  z-index: 5;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(11, 30, 38, 0.88);
  color: var(--cream);
  border: 1px solid rgba(244, 236, 224, 0.12);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.carousel-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.carousel-prev { left: max(16px, calc(var(--pad-x) - 28px)); }
.carousel-next { right: max(16px, calc(var(--pad-x) - 28px)); }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0 var(--pad-x);
  flex-wrap: wrap;
}
.carousel-dots button {
  width: 8px; height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(11, 30, 38, 0.18);
  cursor: pointer;
  transition: width 0.4s var(--ease), background 0.3s var(--ease);
}
.carousel-dots button[aria-current="true"] {
  width: 28px;
  border-radius: 4px;
  background: var(--gold);
}
.carousel-dots button:hover { background: var(--gold); }

@media (max-width: 720px) {
  .carousel-slide { width: 78vw; }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-prev { left: 12px; }
  .carousel-next { right: 12px; }
}

/* ============ Contact ============ */
.section-contact {
  background: var(--midnight);
  color: var(--cream);
  max-width: none; margin: 0;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-contact::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(201, 165, 92, 0.10), transparent 55%);
  pointer-events: none;
}
.contact-inner { max-width: 760px; margin: 0 auto; position: relative; }
.contact-eyebrow {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-warm); font-weight: 500;
  margin: 0 0 24px;
}
.contact-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 240;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}
.contact-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 360;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  letter-spacing: 0.005em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), letter-spacing 0.4s var(--ease);
}
.contact-link:hover { color: var(--gold-warm); border-color: var(--gold-warm); letter-spacing: 0.01em; }
.contact-note {
  margin-top: 28px;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.4;
}

/* ============ Footer ============ */
.site-foot {
  background: var(--ink);
  color: var(--cream);
  padding: 64px var(--pad-x) 56px;
  border-top: 1px solid rgba(244, 236, 224, 0.10);
}
.foot-inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.foot-name {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 240;
  font-style: italic;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--gold-warm);
}
.foot-line {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  margin: 0 0 32px;
  opacity: 0.65;
}
.foot-fine {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.4; font-weight: 500;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ============ Print niceties (just in case) ============ */
@media print {
  .site-header, .site-foot, .scroll-cue { display: none; }
  body { background: white; color: black; }
  .section-album, .section-land, .section-contact { background: white; color: black; }
}
