/* angelomagni.it — static rebuild */
:root {
  --ink: #0E2233;        /* altitude navy */
  --ink-soft: #304556;
  --mist: #5B6B78;
  --cloud: #F3F6F9;
  --paper: #FFFFFF;
  --sky: #2F7FC1;
  --amber: #E8A33D;      /* cockpit panel light */
  --rule: #D9E1E8;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Source Serif 4", Georgia, serif;
  --ui: "Public Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--amber); color: var(--ink); padding: 8px 14px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
}
.site-header.solid { position: relative; background: var(--ink); }
.brand img { width: 190px; height: auto; }
.nav { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav a {
  font-family: var(--ui); font-size: .95rem; font-weight: 500; letter-spacing: .01em;
  color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--amber); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .brand img { width: 118px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: rgba(14,34,51,.45); border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%; color: #fff; cursor: pointer;
  }
  .nav {
    position: fixed; inset: 0; z-index: 30; flex-direction: column; justify-content: center; gap: 8px;
    padding: 0 32px; background: var(--ink); transform: translateX(100%); transition: transform .3s ease;
  }
  .nav a { font-family: var(--display); font-size: 3rem; font-weight: 700; line-height: 1.15; }
  .nav.open { transform: none; }
  .nav-close { position: absolute; top: 22px; right: var(--gutter); }
}
@media (min-width: 761px) { .nav-close { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,34,51,.55) 0%, rgba(14,34,51,0) 22%),
    linear-gradient(0deg, rgba(14,34,51,.82) 0%, rgba(14,34,51,.25) 38%, rgba(14,34,51,0) 60%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(36px, 8vh, 88px); }
.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(4.2rem, 13vw, 11rem);
  line-height: .86; letter-spacing: -.01em; margin: 0 0 22px;
}
.hero-sub { font-family: var(--text); font-size: clamp(1.1rem, 1.8vw, 1.4rem); max-width: 34ch; margin: 0 0 30px; opacity: .92; }

.play {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--ui); font-weight: 600; font-size: 1rem; color: #fff; text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.play-dot {
  width: 64px; height: 64px; border-radius: 50%; background: var(--amber);
  display: grid; place-items: center; transition: transform .2s ease;
}
.play-dot svg { width: 22px; height: 22px; margin-left: 4px; fill: var(--ink); }
.play:hover .play-dot { transform: scale(1.08); }
.play:hover { color: #fff; }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 10vw, 128px) 0; }
.h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: .95; margin: 0 0 28px; letter-spacing: -.005em;
}
.lede { max-width: 62ch; }

.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.intro p { margin: 0 0 1.2em; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.7; }
.intro .more { font-family: var(--ui); font-weight: 600; font-size: 1rem; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* Work mosaic */
.work { background: var(--cloud); }
.mosaic {
  display: grid; gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 230px);
}
.tile {
  position: relative; overflow: hidden; border-radius: 3px; background: var(--ink);
  color: #fff; text-decoration: none; display: block; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.035); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,34,51,.78) 0%, rgba(14,34,51,0) 55%); }
.tile-title {
  position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1;
  display: flex; align-items: center; gap: 10px;
}
.tile-title small { display: block; font-family: var(--ui); font-weight: 400; font-size: .85rem; opacity: .85; margin-top: 6px; }
.tile .mini-play { width: 30px; height: 30px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; flex: none; }
.tile .mini-play svg { width: 11px; height: 11px; margin-left: 2px; fill: var(--ink); }
.tile.logo { background: #fff; }
.tile.logo img { object-fit: contain; padding: 12% 18% 30%; }
.tile.logo::after { background: linear-gradient(0deg, rgba(14,34,51,.85) 0%, rgba(14,34,51,0) 45%); }

.t-ruah   { grid-column: span 4; grid-row: span 2; }
.t-music  { grid-column: span 2; }
.t-bio    { grid-column: span 2; }
.t-ultra, .t-ilp, .t-agency { grid-column: span 2; }
.t-videos, .t-pics { grid-column: span 3; }
.t-bio img { object-position: 50% 20%; }
.t-pics img { object-position: 50% 30%; }

@media (max-width: 860px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; }
  .t-ruah, .t-videos, .t-pics { grid-column: span 2; }
  .t-ruah { grid-row: span 1; }
  .t-music, .t-bio, .t-ultra, .t-ilp, .t-agency { grid-column: span 1; }
  .t-agency { grid-column: span 2; }
}

/* Follow */
.follow-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 40px; }
.follow-list a {
  font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem);
  color: var(--ink); text-decoration: none; line-height: 1.15;
  background: linear-gradient(var(--amber), var(--amber)) 0 92% / 0 4px no-repeat; transition: background-size .25s ease;
}
.follow-list a:hover { background-size: 100% 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C6D1; font-family: var(--ui); font-size: .95rem; padding: 48px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: center; }
.site-footer a { color: #fff; }
.site-footer img { width: 120px; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--ink); color: #fff; padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-head.has-img { min-height: 52vh; display: flex; align-items: flex-end; }
.page-head.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-head .wrap { position: relative; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(3.6rem, 10vw, 8rem); line-height: .88; margin: 0; }
.page-head p { font-size: 1.2rem; max-width: 46ch; margin: 18px 0 0; opacity: .9; }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; margin: 1.6em 0 .5em; }
.prose h3 { font-family: var(--ui); font-weight: 700; font-size: 1.15rem; line-height: 1.35; margin: 0 0 1em; }

.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.aside-sticky { position: sticky; top: 24px; display: grid; gap: 18px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .aside-sticky { position: static; } }

.listen { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); font-family: var(--ui); }
.listen li { border-bottom: 1px solid var(--rule); }
.listen a { display: flex; justify-content: space-between; padding: 14px 2px; text-decoration: none; color: var(--ink); font-weight: 600; }
.listen a span { color: var(--mist); font-weight: 400; }
.listen a:hover { color: var(--sky); }

.embed { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 3px; overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spotify iframe { width: 100%; height: 352px; border: 0; border-radius: 12px; display: block; }

.lang-switch { font-family: var(--ui); font-size: .95rem; margin: 0 0 32px; }

/* Biography — logbook */
.logbook { list-style: none; margin: 0; padding: 0; }
.logbook > li { display: grid; grid-template-columns: minmax(110px, 2fr) minmax(0, 7fr); gap: 0 clamp(20px, 4vw, 56px); padding: 26px 0; border-top: 1px solid var(--rule); }
.logbook .yr { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); line-height: .95; color: var(--sky); }
.logbook .yr small { display: block; font-family: var(--ui); font-weight: 500; font-size: .85rem; color: var(--mist); margin-top: 6px; }
.logbook p { margin: 0 0 .8em; max-width: 62ch; }
.logbook p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .logbook > li { grid-template-columns: 1fr; } .logbook .yr { margin-bottom: 8px; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; margin-top: 56px; padding-top: 40px; border-top: 3px solid var(--ink); }
.facts h3 { font-family: var(--display); font-weight: 800; font-size: 1.8rem; margin: 0 0 8px; line-height: 1; }
.facts p { margin: 0 0 .5em; font-size: 1.05rem; }

/* Videos page */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.video-grid figure { margin: 0; }
.video-grid figcaption { font-family: var(--display); font-weight: 700; font-size: 1.6rem; margin-top: 12px; line-height: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--ui); font-weight: 600; font-size: 1rem;
  padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { background: var(--sky); color: #fff; }
.btn.amber { background: var(--amber); color: var(--ink); }
.btn.amber:hover { background: #f2b75b; color: var(--ink); }

/* Contact form */
.form { display: grid; gap: 20px; max-width: 640px; font-family: var(--ui); }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: .95rem; }
.form label span.req { color: var(--mist); font-weight: 400; }
.form input, .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; padding: 14px 16px; border: 1px solid #B8C4CE; border-radius: 4px;
  background: #fff; color: var(--ink); width: 100%;
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--sky); outline: 2px solid rgba(47,127,193,.25); outline-offset: 0; }
.hidden { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 20, 30, .9); }
.lightbox .embed { border-radius: 4px; }
.lightbox-close {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); font-size: 1.4rem; cursor: pointer;
}
.lightbox-close:hover { background: var(--amber); color: var(--ink); }
