/* ==========================================================
   Alexandra Genzini — Audio Portfolio
   Editorial single-column layout, eggplant / grey / lavender
   ========================================================== */

:root {
  /* palette after mermaidpalace.org: cream paper, black ink, ochre accent */
  --bg: #f7f5ea;              /* cream */
  --bg-raised: #efebdc;       /* panels, frames */
  --ink: #000000;             /* black */
  --ink-body: #262420;
  --ink-dim: #6a655b;         /* warm grey */
  --ink-faint: #bdb6a4;
  --line: #ddd7c6;
  --accent: #6b4801;          /* ochre */
  --accent-deep: #c9a25a;     /* light gold, for tints */

  --serif: "Libre Caslon Text", "Big Caslon", Georgia, serif;
  --sans: "Chivo", "Inter", system-ui, sans-serif;

  --col: 640px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(70% 600px at 50% 0%, color-mix(in srgb, var(--accent-deep) 24%, transparent), transparent 70%) no-repeat,
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

/* subtle film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 100;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.col {
  max-width: calc(var(--col) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 64px 0;
}

p { margin: 0 0 20px; color: var(--ink-body); }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wordmark {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 18px; }

/* language switch */
.lang { display: flex; align-items: center; font-size: 11px; letter-spacing: .14em; }
.lang a {
  padding: 6px;
  color: var(--ink-faint);
  text-decoration: none;
}
.lang a:hover { color: var(--ink-dim); text-decoration: none; }
.lang a[aria-current="true"] { color: var(--ink); }
.lang span { color: var(--ink-faint); }

/* squiggle menu button */
.menu-btn {
  background: none;
  border: 0;
  padding: 12px 10px;
  margin: 0 -10px 0 -4px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  transition: color .2s, background-color .25s;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.menu-btn svg { width: 36px; height: 14px; display: block; overflow: visible; }
.menu-btn .squiggle path { stroke-width: 1.6; }

.squiggle path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

/* full-screen menu */
.menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 55;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu li + li { margin-top: 14px; }
.menu a {
  font-family: var(--serif);
  font-size: clamp(30px, 7vw, 52px);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
}
.menu a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Headings ---------- */

.h {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.3;
  font-size: clamp(21px, 3.2vw, 26px);
  margin: 0 0 16px;
}
.h .sep { color: var(--ink-faint); margin: 0 .15em; }
.h .alt { color: var(--accent); }

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 40px;
}

.lede { font-style: italic; color: var(--ink); }

/* ---------- Intro ---------- */

.intro { padding: 72px 0 0; text-align: center; }

.kicker {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 10vw, 84px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 18px 0 24px;
}
.intro h1 .alt { color: var(--accent); font-style: italic; }

.intro p { max-width: 46ch; margin: 0 auto; color: var(--ink-dim); }

.wave-rule {
  display: block;
  width: 80px;
  height: 14px;
  margin: 48px auto 56px;
  color: var(--ink-faint);
}

/* ---------- Framed artwork ---------- */

.frame {
  margin: 0 0 28px;
  padding: clamp(12px, 3.5vw, 24px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.art {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--ink);
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 30% 30%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    radial-gradient(70% 70% at 80% 80%, var(--accent-deep), transparent 70%),
    var(--bg-raised);
}
.art.wide { aspect-ratio: 16 / 9; }
.art img { width: 100%; height: 100%; object-fit: cover; }

/* placeholder art when there's no image */
.art .art-title {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8%;
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(13px, 2.6vw, 20px);
  line-height: 1.2;
  color: var(--ink);
}
.art .art-wave {
  position: absolute;
  inset: auto 8% 12% 8%;
  height: 34%;
  display: flex;
  align-items: center;
  gap: 2px;
}
.art .art-wave span { flex: 1; background: color-mix(in srgb, var(--ink) 65%, transparent); border-radius: 1px; }

/* ---------- Cover grid ---------- */

.covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2.5vw, 16px);
  margin: 0;
}

.cover {
  position: relative;
  display: block;
  color: var(--ink);
}
.cover:hover { text-decoration: none; }

.cover .art {
  border: 2px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.cover:hover .art { border-color: var(--accent); transform: translateY(-2px); }
.cover .art img { filter: saturate(.85); transition: filter .25s; }
.cover:hover .art img { filter: none; }

.cover-cap {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.5;
}
.cover-cap b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink);
}

/* ---------- Trailer player ---------- */

.player {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  height: 44px;
  border: 1px solid var(--ink-dim);
  margin: 8px 0 24px;
  position: relative;
  overflow: hidden;
}
.player > * { position: relative; z-index: 1; }

.pl-btn {
  border: 0;
  border-right: 1px solid var(--ink-dim);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.pl-btn:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.pl-btn svg { width: 12px; height: 12px; fill: currentColor; }
.player .i-pause { display: none; }
.player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }

.pl-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  font-size: 13px;
  cursor: pointer;
}
.pl-time { font-size: 11px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }

.pl-note {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--ink-dim);
  color: var(--ink-dim);
}
.pl-note svg { width: 16px; height: 16px; fill: currentColor; }
.player.is-playing .pl-note { color: var(--accent); }

.pl-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  z-index: 0 !important;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-right: 1px solid var(--accent);
  transition: width .25s linear;
}

/* ---------- Icon links ---------- */

.links { list-style: none; margin: 0; padding: 0; }
.links li + li { margin-top: 10px; }
.links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.links svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* ---------- Project entries ---------- */

.project { scroll-margin-top: 96px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: -6px 0 20px;
}

/* compact list (collaborations) */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  color: var(--ink);
}
.list a:hover { color: var(--accent); text-decoration: none; }
.list strong {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 15px;
}
.list span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); white-space: nowrap; }

/* ---------- Homepage hero: centered, compact ---------- */

.hero {
  text-align: center;
  padding-top: clamp(28px, 5vw, 48px);
}
.hero-photo {
  width: clamp(96px, 22vw, 128px);
  margin: 0 auto 16px;
  padding: 6px;
}

.art.tall { aspect-ratio: 4 / 5; }
.art .art-note {
  position: absolute;
  inset: auto 0 10% 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}

.whisper {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 6.2vw, 46px);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 4px 0 0;
}
.hero h1 .alt { color: var(--accent); font-style: italic; }

.hero-info p { margin: 0 auto; max-width: 52ch; }
.roles { font-size: clamp(15px, 1.8vw, 17px); color: var(--ink) !important; margin-top: 14px !important; }
.practice { font-size: 14px; color: var(--ink-dim) !important; }
.where {
  margin-top: 10px !important;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim) !important;
}
.where .dot { color: var(--accent); margin: 0 .3em; }

.hero + .wave-rule { margin: 32px auto 40px; }

/* ---------- Work categories ---------- */

.cat { scroll-margin-top: 96px; }
.cat .h-section { margin-bottom: 8px; }
.cat-sub { margin: 0 0 40px; }

.index { margin-bottom: 8px; }
.index a span.count { color: var(--accent); }

.badge {
  display: inline-block;
  padding: 0 7px;
  border: 1px solid var(--ink-faint);
  color: var(--ink);
  letter-spacing: .16em;
  line-height: 1.8;
}

.credit {
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ink-dim);
}

.new-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 2px 9px;
  margin-bottom: 18px;
}

/* player waiting for its audio file */
.player.is-pending { border-style: dashed; border-color: var(--ink-faint); }
.player.is-pending .pl-btn,
.player.is-pending .pl-note { border-color: var(--ink-faint); color: var(--ink-faint); cursor: default; }
.player.is-pending .pl-btn:hover { background: none; }
.player.is-pending .pl-label { cursor: default; color: var(--ink-dim); }

/* ---------- Photo slideshow ---------- */

.slides { position: relative; }
.slides .art { aspect-ratio: 4 / 3; }
.slides .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}
.slides .slide.is-active { opacity: 1; }
.slides .slide img { width: 100%; height: 100%; object-fit: cover; }
.slides .slide .art { aspect-ratio: auto; height: 100%; }

.slides-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.slides-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink-dim);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}
.slides-nav button:hover { border-color: var(--accent); color: var(--accent); }
.slides-dots { display: flex; gap: 8px; }
.slides-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.slides-dots i.on { background: var(--accent); }

/* ---------- Homepage grid ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: -16px 0 28px; padding: 0; }
.chips button {
  font: inherit;
  padding: 6px 13px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.chips button:hover { border-color: var(--accent); color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips .count { color: var(--accent); margin-left: 4px; }
.chips button[aria-pressed="true"] .count { color: var(--accent-deep); }

.grid-all { row-gap: clamp(22px, 4vw, 30px); }
.cover-wrap { position: relative; }
.cover-wrap[hidden] { display: none; }
.cover-cap i {
  display: block;
  font-style: normal;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 2px;
}

/* few-second preview button on a cover */
.cover-media { position: relative; }
a.cover-cap { color: inherit; }
a.cover-cap:hover { text-decoration: none; }
a.cover-cap:hover b { color: var(--accent); }
.cover-wrap:hover .cover .art { border-color: var(--accent); transform: translateY(-2px); }

.cover-play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--bg) 40%, transparent);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.cover-play:not(.is-pending):hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 8px 26px -4px var(--accent); }
.cover-play svg { width: 11px; height: 11px; fill: currentColor; flex: none; }
.cover-play .i-pause, .cover-play .eq { display: none; }
.cover-play.is-playing .i-play { display: none; }
.cover-play.is-playing .eq { display: flex; gap: 2px; align-items: flex-end; height: 11px; }
.cover-play.is-playing:hover .eq { display: none; }
.cover-play.is-playing:hover .i-pause { display: block; }
.cover-play .eq i { width: 2px; background: currentColor; animation: eq .8s ease-in-out infinite; }
.cover-play .eq i:nth-child(2) { animation-delay: -.3s; }
.cover-play .eq i:nth-child(3) { animation-delay: -.55s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }

/* playing: soft pulse ring */
.cover-play.is-playing::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  animation: ring 1.6s ease-out infinite;
}
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }

/* no preview file yet */
.cover-play.is-pending {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: default;
}

@media (max-width: 480px) {
  .cover-play { left: 7px; bottom: 7px; height: 30px; padding: 0 11px 0 9px; font-size: 10px; letter-spacing: .1em; gap: 6px; }
}

/* Novità */
.feature-img, .title-link { display: block; color: inherit; }
.feature-img .frame { transition: border-color .25s; }
.feature-img:hover .frame { border-color: var(--accent); }
.title-link:hover { text-decoration: none; }
.title-link:hover .h { color: var(--accent); }

/* ---------- Work pages ---------- */

.work { padding-top: 40px; }
.work h1.h { font-size: clamp(26px, 5vw, 36px); }

.back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.back:hover { color: var(--accent); text-decoration: none; }

/* keep-listening carousel */
.keep { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.keep-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.keep-head .h { margin: 0; }
.keep-nav { display: flex; gap: 8px; }
.keep-nav button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink-dim);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.keep-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.keep-nav button:disabled { opacity: .3; cursor: default; }

.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 16px) / 2.3);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.track::-webkit-scrollbar { display: none; }
.track .cover-wrap { scroll-snap-align: start; }

/* ---------- About ---------- */

.facts {
  display: grid;
  grid-template-columns: 1fr;
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

.facts > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--accent);
}
.facts ul { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 2px 0; color: var(--ink-body); }

/* ---------- Footer ---------- */

.footer {
  margin-top: 96px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.footer .wordmark { display: inline-block; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 16px; padding: 0; }
.footer a { color: var(--ink-dim); }
.footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


.more-link { margin-top: 40px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* Novità: smaller image, text beside it on wider screens */
.feature { display: grid; grid-template-columns: 1fr; gap: 4px 28px; }
.feature-img { max-width: none; }
.feature-img .frame { margin-bottom: 20px; padding: 10px; }
@media (min-width: 600px) {
  .feature { grid-template-columns: 240px 1fr; align-items: start; }
  .feature-img { max-width: none; }
  .feature-img .frame { margin: 0; }
  .feature-text .h { margin-top: -4px; }
}

/* ==========================================================
   Link-only works ("userei il link")
   ========================================================== */

.cover-link {
  text-decoration: none;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cover-link .arrow { font-size: 13px; line-height: 1; color: var(--accent); }
.cover-link:not(.is-pending):hover {
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  box-shadow: none;
}
.cover-link:not(.is-pending):hover .arrow { color: var(--accent-deep); }
.cover-link.is-pending { opacity: .7; }

/* work page: outside link shaped like the player */
a.player-out { color: var(--ink); text-decoration: none; }
.player-out .pl-btn { font-size: 15px; color: var(--accent); cursor: inherit; }
.player-out .pl-label { cursor: inherit; }
a.player-out:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
a.player-out:hover .pl-note { color: var(--accent); }

/* ==========================================================
   Responsive: wider layouts for tablets and computers
   ========================================================== */

.wide { --col: 640px; }

/* work pages: head / media / body */
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "media" "body";
}
.work-head { grid-area: head; }
.work-media { grid-area: media; min-width: 0; }
.work-body { grid-area: body; min-width: 0; }
.work-body .player { margin-top: 0; }

.about-photo { margin-bottom: 28px; }

@media (min-width: 760px) {
  .grid-all { grid-template-columns: repeat(3, 1fr); }
  .track { grid-auto-columns: calc((100% - 32px) / 3.3); }
}

@media (min-width: 960px) {
  body { font-size: 16px; }
  .wide { --col: 1120px; }
  .header-inner { max-width: 1160px; }

  /* homepage */
  .hero h1 { font-size: 58px; }
  .whisper { font-size: 18px; }
  .hero-photo { width: 150px; }
  .feature { grid-template-columns: 340px minmax(0, 620px); gap: 0 48px; justify-content: center; }
  .feature-text { align-self: center; }
  #novita .new-tag { display: block; width: max-content; margin: 0 auto 22px; }
  .grid-all { grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
  #lavori .h-section { text-align: center; }
  .chips { justify-content: center; margin-bottom: 40px; }
  .cover-cap b { font-size: 14px; }

  /* work pages: image left (stays in view), text right */
  .work { padding-top: 48px; }
  .work-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: "media head" "media body";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
  }
  .work-media { align-self: start; position: sticky; top: 96px; }
  .work-media .frame, .work-media .slides { margin: 0; }
  .work-head { padding-top: 4px; }
  .work-body p { max-width: 60ch; }
  .track { grid-auto-columns: calc((100% - 64px) / 4.4); gap: 20px; }

  /* about: photo left, text right */
  .about-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: start; }
  .about-photo { position: sticky; top: 96px; margin: 0; }
  .about-text .facts { margin-top: 32px; }
  .about-text .lede { margin-top: 0; font-size: 22px; }
}

@media (min-width: 1280px) {
  .grid-all { gap: 44px 28px; }
  .hero h1 { font-size: 64px; }
}
@media (min-width: 960px) { .hero-info .where { max-width: none; } }

/* Grid of works: flex so an incomplete last row is centered, not left-aligned */
.covers.grid-all {
  --per-row: 2;
  --gap-x: clamp(10px, 2.5vw, 16px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: var(--gap-x);
  row-gap: clamp(22px, 4vw, 30px);
}
.grid-all > .cover-wrap {
  flex: 0 0 calc((100% - (var(--per-row) - 1) * var(--gap-x)) / var(--per-row));
  min-width: 0;
}
@media (min-width: 760px) { .covers.grid-all { --per-row: 3; } }
@media (min-width: 960px) { .covers.grid-all { --per-row: 4; --gap-x: 24px; row-gap: 36px; } }
@media (min-width: 1280px) { .covers.grid-all { --gap-x: 28px; row-gap: 44px; } }

/* ==========================================================
   Minimal homepage opening: no photo, no name
   ========================================================== */

.hero-min {
  text-align: center;
  padding: clamp(52px, 10vw, 120px) 0 clamp(44px, 7vw, 72px);
}
.hero-roles {
  margin: 0 0 18px !important;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim) !important;
}
.hero-roles span { color: var(--accent); margin: 0 .4em; }

.hero-voice {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 12vw, 128px);
  line-height: .95;
  letter-spacing: -.01em;
  margin: 0;
}
.hero-voice em { font-style: italic; color: var(--accent); }

/* live waveform under the headline */
.hero-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 46px;
  width: min(340px, 78%);
  margin: clamp(22px, 3vw, 32px) auto clamp(20px, 3vw, 28px);
}
.hero-wave span {
  flex: 1;
  max-width: 3px;
  border-radius: 2px;
  background: var(--ink-faint);
  transform-origin: center;
  animation: voice 2.6s ease-in-out infinite;
}
.hero-wave span:nth-child(3n) { background: color-mix(in srgb, var(--accent) 70%, var(--ink-faint)); }
.hero-min:hover .hero-wave span { animation-duration: 1.1s; }
@keyframes voice { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.3); } }

.hero-practice {
  margin: 0 auto !important;
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--ink-body) !important;
}
.hero-min .where { margin: 8px auto 0 !important; max-width: none; }

#novita { margin-top: 0; }

/* ==========================================================
   Chi sono: video
   ========================================================== */

.about-video { margin: 0 0 clamp(32px, 5vw, 56px); padding: clamp(8px, 1.4vw, 14px); }
.video-wrap {
  position: relative;
  aspect-ratio: 832 / 464;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--bg-raised);
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }

.sound-toggle {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .2s;
}
.sound-toggle:hover { transform: scale(1.04); }
.sound-toggle svg { width: 16px; height: 16px; flex: none; }
.sound-toggle .i-sound, .sound-toggle .when-sound { display: none; }
.sound-toggle[aria-pressed="true"] { background: color-mix(in srgb, var(--bg) 75%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.sound-toggle[aria-pressed="true"] .i-muted, .sound-toggle[aria-pressed="true"] .when-muted { display: none; }
.sound-toggle[aria-pressed="true"] .i-sound, .sound-toggle[aria-pressed="true"] .when-sound { display: inline; }

.about-grid { display: block; }
@media (min-width: 960px) {
  .about-grid { display: block; }
  .about-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: start;
  }
  .about-text > p { grid-column: 1; }
  .about-text > .facts { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
}
.hero-min h1.hero-voice { font-size: clamp(50px, 11vw, 112px); line-height: .95; margin: 0; }
@media (min-width: 960px) { .about-video { max-width: 760px; margin-left: auto; margin-right: auto; } }
@media (max-width: 480px) {
  .hero-roles { font-size: 10px; letter-spacing: .12em; }
  .hero-roles span { margin: 0 .25em; }
  .sound-toggle { left: 8px; bottom: 8px; height: 28px; padding: 0 11px 0 9px; font-size: 9.5px; letter-spacing: .1em; gap: 6px; }
  .sound-toggle svg { width: 13px; height: 13px; }
}


/* ==========================================================
   Mermaid Palace-style type and finishing
   ========================================================== */

body { background: var(--bg); letter-spacing: .045em; }
body::after { opacity: .035; }               /* faint paper grain */
::selection { background: var(--accent); color: var(--bg); }

/* bold Caslon headings, uppercase, slightly spaced */
.wordmark,
.h, .h-section, .cat-h, .facts h3,
.cover-cap b, .list strong, .intro h1, .menu a {
  font-weight: 700;
  letter-spacing: .06em;
}
.h .sep { color: var(--ink-faint); }

/* players and link bars: thin near-black outline */
.player { border-color: rgba(0, 0, 0, .7); }
.pl-btn, .pl-note { border-color: rgba(0, 0, 0, .7) !important; }
.player.is-pending, .player.is-pending .pl-btn, .player.is-pending .pl-note { border-color: var(--ink-faint) !important; }

/* framed images: cream panel, black keyline (as on Mermaid Palace) */
.frame { background: var(--bg-raised); border-color: var(--line); }
.art { border-color: var(--ink); }

/* placeholder art in warm paper tones */
.art .art-title { color: var(--ink); font-weight: 700; }
.art .art-wave span { background: color-mix(in srgb, var(--ink) 55%, transparent); }

/* preview pill on cream */
.cover-play { box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); }
.cover-play.is-pending { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.cover-link { background: color-mix(in srgb, var(--bg) 88%, transparent); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7); }
.cover-link .arrow { color: var(--accent); }

/* filters */
.chips button { border-color: var(--ink-faint); color: var(--ink-body); }
.chips button[aria-pressed="true"] .count { color: var(--accent-deep); }

/* homepage waveform in ink and ochre */
.hero-wave span { background: var(--ink-faint); }
.hero-wave span:nth-child(3n) { background: var(--accent); }

/* homepage headline: her roles, in bold Caslon */
.hero-min h1.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 60px);
  line-height: 1.12;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-title .sep { color: var(--ink-faint); }
.br-m { display: none; }
@media (max-width: 560px) {
  .br-m { display: inline; }
  .hero-title .sep { display: none; }
}
.hero-title .role { white-space: nowrap; }
@media (max-width: 560px) { .hero-title .role { display: block; } }

/* Novità label on the left, aligned with the image */
@media (min-width: 960px) {
  #novita .new-tag { display: inline-block; width: auto; margin: 0 0 22px; }
  #novita .feature { justify-content: start; }
}

/* homepage opening: just the practice and location lines */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero-min { padding: clamp(36px, 6vw, 64px) 0 clamp(32px, 5vw, 48px); }
.hero-min .hero-practice { font-size: clamp(16px, 2vw, 20px); color: var(--ink) !important; }

/* smaller roles headline and waveform */
.hero-min h1.hero-title { font-size: clamp(20px, 2.6vw, 30px); line-height: 1.25; letter-spacing: .07em; }
.hero-min .hero-wave { height: 26px; width: min(200px, 60%); gap: 3px; margin: 16px auto 18px; }
@media (max-width: 560px) {
  .hero-min h1.hero-title { font-size: 20px; }
}

/* ==========================================================
   Homepage opening: small, left-aligned under her name
   ========================================================== */
.hero-left { padding: clamp(6px, 1.5vw, 14px) 0 clamp(36px, 5vw, 56px); text-align: left; }
.hero-left .hero-wave {
  justify-content: flex-start;
  width: 150px;
  height: 22px;
  gap: 3px;
  margin: 0 0 14px;
}
.hero-left .hero-wave span { max-width: 2px; }
.hero-line {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink) !important;
}
.hero-line.dim { color: var(--ink-dim) !important; }

/* credits and broadcast lines: same size as the rest of the text */
.credit { font-size: inherit; letter-spacing: inherit; color: var(--ink-body); }

/* ==========================================================
   Work pages: square images; wide graphics fitted inside
   ========================================================== */
.work-media .art { aspect-ratio: 1 / 1; }
.art.fit-contain { background: var(--bg-raised); }
.art.fit-contain img { position: relative; z-index: 1; object-fit: contain; }
.art.fit-contain .art-bg {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  z-index: 0;
  object-fit: cover;
  filter: blur(22px) saturate(1.05);
  opacity: .55;
}
@media (min-width: 960px) { .work-media { max-width: 540px; } }

/* photo credit on slideshow images */
.slide-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}
/* inline links inside descriptions (e.g. Prix Italia) */
.work-body p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* standout label, e.g. "Ogni mese una puntata nuova" */
.highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 20px !important;
  padding: 9px 16px 9px 13px;
  background: var(--accent);
  color: var(--bg) !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
}
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  flex: none;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--bg);
  animation: live 1.8s ease-out infinite;
}
@keyframes live { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }
.work-head .highlight { margin-top: 6px !important; }

/* all grid buttons look the same: cream, thin black outline, ochre symbol */
.cover-play,
.cover-play.is-playing {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cover-play svg, .cover-play .eq i { color: var(--accent); fill: var(--accent); }
.cover-play .eq i { background: var(--accent); }
.cover-play.is-playing::after { border-color: var(--ink); }
.cover-play:not(.is-pending):hover {
  background: var(--ink);
  color: var(--bg);
  box-shadow: none;
  transform: none;
}
.cover-play:not(.is-pending):hover svg { fill: var(--accent-deep); }

/* responsive images: the <picture> wrapper shouldn't change layout */
picture { display: contents; }

/* titles may wrap after the "|" on narrow screens; the Novità post never outgrows the screen */
.feature { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .feature { grid-template-columns: 240px minmax(0, 1fr); } }
@media (min-width: 960px) { .feature { grid-template-columns: 340px minmax(0, 620px); } }
.h { overflow-wrap: break-word; }
.highlight { max-width: 100%; }
@media (max-width: 400px) {
  .highlight { font-size: 11.5px; letter-spacing: .1em; padding: 8px 13px 8px 11px; }
}

/* Bio heading scales down on narrow phones */
.intro h1 { font-size: clamp(30px, 9.5vw, 84px); overflow-wrap: break-word; }

/* very small phones: keep the name in the header on one line */
.wordmark { white-space: nowrap; }
@media (max-width: 360px) {
  .wordmark { font-size: 13px; letter-spacing: .03em; }
  .header-tools { gap: 10px; }
  .lang a { padding: 4px; }
}

/* ==========================================================
   404 page
   ========================================================== */
.err-box { text-align: center; padding: clamp(48px, 10vw, 110px) 0 clamp(40px, 6vw, 64px); }
.err-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 8vw, 72px);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 14px 0 0;
  overflow-wrap: break-word;
}
.err-title em { font-style: italic; color: var(--accent); }

/* a flat sound line with one small blip, and a dot travelling along it */
.flatline { position: relative; width: min(520px, 100%); height: 60px; margin: clamp(24px, 4vw, 36px) auto; }
.flatline svg { width: 100%; height: 100%; display: block; }
.flatline path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.flatline .blip {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
  animation: scan 4s linear infinite;
}
@keyframes scan { from { left: 0; } to { left: 100%; } }

.err-text { max-width: 42ch; margin: 0 auto !important; color: var(--ink-body); }
.err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.err-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.err-btn:hover { background: var(--accent); color: var(--bg); text-decoration: none; }
.err-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7); }
.err-btn.ghost:hover { background: var(--ink); color: var(--bg); }

.err-more { padding-top: 16px; border-top: 1px solid var(--line); }
.err-more .cat-h { text-align: center; border: 0; margin-top: 40px; }
.err-more-h { text-align: center; margin: 44px 0 28px !important; font-size: clamp(22px, 3vw, 30px) !important; }

/* ==========================================================
   Menu bar
   ========================================================== */
.header { transition: box-shadow .25s; }
.header-inner { transition: height .25s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header.is-scrolled .header-inner { height: 58px; }
.menu { inset: 58px 0 0; }

/* computers: links right in the bar */
.nav-inline { display: none; gap: 26px; margin-right: 8px; }
.nav-inline a {
  position: relative;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
}
.nav-inline a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav-inline a:hover::after, .nav-inline a[aria-current="page"]::after { transform: scaleX(1); }
.nav-inline a[aria-current="page"] { color: var(--accent); }
@media (min-width: 760px) {
  .nav-inline { display: flex; }
}

/* phones: icon turns into × while open, richer menu */
.menu { place-items: stretch; padding: 40px var(--gutter); }
.menu ul { text-align: left; }
.menu li { border-bottom: 1px solid var(--line); }
.menu li + li { margin-top: 0; }
.menu a { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; font-weight: 700; font-size: clamp(30px, 9vw, 44px); }
.menu .num { font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.menu-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.menu-foot a { font-family: var(--sans); font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: .04em; padding: 0; color: var(--ink-body); }
body.menu-open { overflow: hidden; }

/* keyboard focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu { background: var(--bg); }

/* phone menu: centered, as before */
.menu { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.menu ul { text-align: center; }
.menu li { border-bottom: 0; }
.menu li + li { margin-top: 14px; }
.menu a { display: inline-block; padding: 4px 0; }
.menu-foot { align-items: center; margin-top: 44px; }
