/* GENERATED by scripts/build-artist-css.py from static/andrea-agostini/css/styles.css — do not edit by hand. */
/* =========================================================
   Andrea Agostini — l'omino dei sogni (the little dream man)
   ========================================================= */

:root {
  --night: #08122b;
  --night-2: #142a5c;
  --night-3: #1d3a7a;
  --cobalt: #2f6fd6;
  --sky: #8fcaff;
  --gold: #e8b04b;
  --gold-2: #f3cd7f;
  --coral: #e5533d;
  --paper: #f7f3ea;
  --paper-2: #efe7d6;
  --ink: #18213a;
  --muted: #5d6478;
  --line: rgba(24, 33, 58, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --display: "Hanken Grotesk", "DM Sans", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(8, 18, 43, 0.06), 0 12px 32px -12px rgba(8, 18, 43, 0.28);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
h1 em, h2 em, h3 em { font-style: normal; color: inherit; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.hand { font-family: var(--hand); }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.eyebrow--light { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--night); box-shadow: 0 10px 24px -10px rgba(232, 176, 75, 0.7); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: var(--line-light); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--wa { background: #1fa855; color: #fff; }
.btn--wa:hover { background: #18914a; }
.btn--block { width: 100%; }

/* ---------- Icons (mask) ---------- */
.ico { width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico--wa { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.7-1.4.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E"); }
.ico--tel { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.ico--mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.ico--ig { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='black'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s, height 0.35s;
}
.header.is-solid {
  background: rgba(247, 243, 234, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.brand__tag { font-family: var(--hand); font-size: 17px; color: var(--gold); margin-top: 2px; }
.header.is-solid .brand__tag { color: #b9821f; }

.nav__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  opacity: 0.88; transition: opacity 0.2s, background-color 0.2s;
}
.nav__list a:hover { opacity: 1; background: rgba(127, 127, 127, 0.12); }
.nav__list .nav__cta { background: var(--gold); color: var(--night); opacity: 1; margin-left: 8px; padding-inline: 20px; }
.nav__list .nav__cta:hover { background: var(--gold-2); }
.nav__toggle { display: none; }

/* Language switch */
.header__end { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgba(127, 127, 127, 0.4); border-radius: 999px; }
.lang__btn {
  padding: 5px 10px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; line-height: 1;
  opacity: 0.7; transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.lang__btn:hover { opacity: 1; }
.lang__btn[aria-pressed="true"] { background: #fff; color: var(--night); opacity: 1; }
.header.is-solid .lang__btn[aria-pressed="true"] { background: var(--night); color: #fff; }

@media (max-width: 860px) {
  .lang { order: -1; }
  .nav__toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(127, 127, 127, 0.15); cursor: pointer; position: relative; z-index: 2;
  }
  .nav__burger, .nav__burger::before, .nav__burger::after {
    display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }
  .nav__burger { position: relative; }
  .nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
  .nav__burger::before { top: -6px; }
  .nav__burger::after { top: 6px; }
  .nav.is-open .nav__burger { background: transparent; }
  .nav.is-open .nav__burger::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__burger::after { transform: translateY(-6px) rotate(-45deg); }
  .nav.is-open .nav__toggle { color: #fff; }

  .nav__list {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 8px;
    background: var(--night); color: #fff;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }
  .nav.is-open .nav__list { opacity: 1; visibility: visible; }
  .nav__list a { font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -0.03em; padding: 10px 24px; }
  .nav__list .nav__cta { margin: 16px 0 0; font-family: var(--sans); font-size: 17px; padding: 14px 32px; }
}

/* ---------- Sky (stars + confetti) ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sky i {
  position: absolute; display: block; border-radius: 50%;
  background: #fff; opacity: 0.7;
  animation: twinkle var(--d, 4s) ease-in-out var(--delay, 0s) infinite;
}
/* star & heart tiles from the paintings (placed by main.js) */
.sky .motif {
  position: absolute; height: auto; rotate: var(--r, 0deg);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
  animation: bob var(--d, 6s) ease-in-out var(--delay, 0s) infinite;
}
.sky--soft i { opacity: 0.35; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.7); } 50% { opacity: 0.95; transform: scale(1); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 56px;
  background:
    linear-gradient(to bottom, rgba(8, 18, 43, 0) 70%, var(--night) 100%),
    radial-gradient(1200px 600px at 85% 20%, rgba(47, 111, 214, 0.2), transparent 60%),
    radial-gradient(800px 500px at 10% 100%, rgba(29, 58, 122, 0.45), transparent 60%),
    var(--night);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__title { font-size: clamp(48px, 6.8vw, 92px); font-weight: 500; line-height: 0.98; letter-spacing: -0.045em; margin-bottom: 28px; }
.hero__title em { display: block; }
.hero__portrait { display: block; width: clamp(96px, 9vw, 132px); aspect-ratio: 1; margin-bottom: 22px; border-radius: 50%; object-fit: cover; object-position: 40% 30%; border: 3px solid var(--paper); box-shadow: 0 0 0 7px rgba(232, 176, 75, 0.25), 0 18px 40px -12px rgba(0, 0, 0, 0.6); }
.hero__lead { max-width: 30em; font-size: clamp(17px, 1.6vw, 19px); color: rgba(255, 255, 255, 0.78); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; justify-self: end; width: 100%; }
.frame {
  position: absolute; margin: 0;
  padding: clamp(8px, 1.2vw, 14px);
  background: #fbf8f1;
  box-shadow: var(--shadow-lg);
  animation: float 9s ease-in-out infinite;
}
.frame img { width: 100%; }
.frame--a { width: 62%; top: 4%; left: 0; rotate: -4deg; z-index: 2; }
.frame--b { width: 46%; top: 0; right: 0; rotate: 5deg; animation-delay: -3s; }
.frame--c { width: 40%; bottom: 2%; right: 2%; rotate: -2deg; z-index: 3; animation-delay: -6s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero__note {
  position: absolute; left: 6%; bottom: 12%; margin: 0; z-index: 4; white-space: nowrap;
  font-family: var(--hand); font-size: clamp(19px, 2vw, 26px); line-height: 1.1; color: var(--gold-2);
  rotate: -6deg;
}

@media (max-width: 860px) {
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 440px; margin-top: 8px; }
}

/* Infinite horizontal scroll (studio photo strip) */
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Video reel ---------- */
/* Continues the hero's night sky behind the video, then a short fade to paper
   in the bottom padding, starting at the video's bottom edge */
.reel {
  --fade: clamp(90px, 8.5vw, 125px);
  position: relative; isolation: isolate; overflow: hidden;
  padding: 8px 0 var(--fade);
  background:
    linear-gradient(to bottom, var(--night) 0%, #161f37 15%, #444a5b 35%, #97999e 60%, #dfddd7 82%, var(--paper) 100%)
      bottom / 100% var(--fade) no-repeat,
    var(--night);
}
.reel > .container { position: relative; }
.reel > .sky {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade) - 60px), transparent calc(100% - var(--fade)));
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade) - 60px), transparent calc(100% - var(--fade)));
}
.reel + .section { padding-top: clamp(40px, 5vw, 68px); }
.reel__frame {
  position: relative; isolation: isolate;
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 22px; background: var(--night);
  box-shadow: 0 40px 80px -40px rgba(8, 18, 43, 0.6);
}
.reel__frame:fullscreen { border-radius: 0; aspect-ratio: auto; }
.reel__poster, .reel__media, .reel__media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel__poster { object-fit: cover; z-index: 1; transition: opacity 0.8s; }
.reel__media video { object-fit: cover; }
.reel.is-playing .reel__poster { opacity: 0; }
.reel__shield {
  position: absolute; inset: 0; z-index: 2; cursor: pointer;
  background:
    linear-gradient(to top, rgba(8, 14, 32, 0.8) 0%, rgba(8, 14, 32, 0) 50%),
    linear-gradient(to right, rgba(8, 14, 32, 0.45) 0%, rgba(8, 14, 32, 0) 55%);
}
.reel__caption {
  position: absolute; z-index: 3; left: clamp(20px, 4vw, 52px); bottom: clamp(76px, 9vw, 110px);
  max-width: 60%; color: #fff; pointer-events: none;
}
.reel__title { font-size: clamp(30px, 4.4vw, 58px); color: #fff; letter-spacing: -0.04em; }
.reel__credit { margin: 12px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.65); }
.reel__credit span + span::before { content: " · "; } /* music · video on the same line */
@media (max-width: 640px) { .reel__credit span { display: block; } .reel__credit span + span::before { content: none; } } /* one per line on phones */

.reel__controls {
  position: absolute; z-index: 3; left: clamp(20px, 4vw, 52px); right: clamp(16px, 3vw, 32px); bottom: clamp(22px, 3vw, 34px);
  display: flex; align-items: center; gap: 10px;
}
.reel__sound, .reel__icon {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.reel__sound:hover, .reel__icon:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.reel__sound { padding: 0 20px 0 16px; font-size: 14.5px; font-weight: 600; margin-right: auto; }
.reel__sound[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }
.reel__icon { width: 46px; }
.reel__icon .ico { width: 18px; height: 18px; }

.eq { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.6s; }
.eq i:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.15s; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
.reel__sound[aria-pressed="true"] .eq { display: inline-flex; }
.reel__sound[aria-pressed="true"] .ico--muted { display: none; }

.reel__bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.18); cursor: pointer; transition: height 0.2s; }
.reel__bar::before { content: ""; position: absolute; inset: -12px 0 0; }
.reel__bar:hover, .reel__bar:focus-visible { height: 7px; }
.reel__bar span { display: block; width: 0; height: 100%; background: var(--gold); }

.ico--muted { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='m16 9 6 6m0-6-6 6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ico--play { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12.5-7.5z'/%3E%3C/svg%3E"); }
.ico--pause { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5.5' y='4.5' width='4.5' height='15' rx='1'/%3E%3Crect x='14' y='4.5' width='4.5' height='15' rx='1'/%3E%3C/svg%3E"); }
.ico--expand { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E"); }

@media (max-width: 640px) {
  .reel .container { width: 100%; }
  .reel { --fade: 70px; }
  .reel__frame { border-radius: 0; aspect-ratio: 4 / 5; }
  .reel__caption { top: 20px; bottom: auto; max-width: 90%; }
  .reel__shield {
    background:
      linear-gradient(to bottom, rgba(8, 14, 32, 0.75) 0%, rgba(8, 14, 32, 0) 40%),
      linear-gradient(to top, rgba(8, 14, 32, 0.7) 0%, rgba(8, 14, 32, 0) 30%);
  }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--tint { background: var(--paper-2); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section__title { font-size: clamp(36px, 5vw, 62px); letter-spacing: -0.04em; }
.section__title--light { color: #fff; }
.section__intro { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 36em; }

/* ---------- Collections ---------- */
.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.coll {
  position: relative; display: flex; flex-direction: column;
  padding: 0; border: 0; text-align: left; background: none; cursor: pointer;
}
.coll__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--night); box-shadow: var(--shadow); }
.coll__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.coll:hover .coll__img img { transform: scale(1.06); }
.coll__count {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(8, 18, 43, 0.75); color: #fff; font-size: 12.5px; font-weight: 500;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.coll__name { margin-top: 18px; font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.coll__name::after { content: "→"; font-family: var(--sans); font-size: 18px; color: var(--cobalt); transition: transform 0.3s var(--ease); }
.coll:hover .coll__name::after { transform: translateX(4px); }
.coll__blurb { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.55; }

@media (max-width: 980px) { .collections { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .coll__name { font-size: 22px; } .coll__blurb { font-size: 14px; } }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent;
  font-size: 14.5px; font-weight: 500; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-selected="true"] { background: var(--night); border-color: var(--night); color: #fff; }

.works__count { font-size: 14px; color: var(--muted); margin: 0 0 28px; }

/* ---------- Works: a row that scrolls sideways (doesn't fill the page) ---------- */
.works-rail { position: relative; }
.works {
  --row: clamp(220px, 24vw, 320px);
  display: flex; gap: clamp(10px, 1.4vw, 18px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: 2px;
  padding: 4px 2px 32px; margin-bottom: -16px; /* room for the shadows (otherwise clipped by the scroller) and the scrollbar */
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.work {
  position: relative; flex: none;
  width: calc(var(--row) * var(--ar)); height: var(--row);
  scroll-snap-align: start;
  margin: 0; padding: 0; border: 0;
  background: var(--night); cursor: zoom-in;
  border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeup 0.6s var(--ease) both;
}
.works__nav {
  position: absolute; top: calc(50% - 8px); translate: 0 -50%; z-index: 2;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0 0 4px;
  border: 0; border-radius: 50%; background: var(--paper); color: var(--ink);
  font-size: 32px; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
  transition: opacity 0.2s, background-color 0.2s;
}
.works__nav:hover { background: #fff; }
.works__nav--prev { left: -16px; }
.works__nav--next { right: -16px; }
.works__nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none), (max-width: 640px) { .works__nav { display: none; } } /* swipe with a finger on phones */
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.4s; }
.work:hover img { transform: scale(1.04); }
.work__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(8, 18, 43, 0.92), transparent);
  color: #fff; text-align: left;
  opacity: 0; translate: 0 8px;
  transition: opacity 0.35s, translate 0.35s var(--ease);
}
.work:hover .work__cap, .work:focus-visible .work__cap { opacity: 1; translate: 0 0; }
.work__title { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.work__meta { display: block; font-size: 13px; opacity: 0.75; margin-top: 2px; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } }

@media (hover: none) {
  .work__cap { opacity: 1; translate: 0 0; padding-top: 28px; }
}
@media (max-width: 640px) {
  .works { --row: 200px; }
  .work__title { font-size: 16px; }
  .work__cap { padding: 22px 10px 8px; }
}
.works__note { margin: 40px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }

/* ---------- Where to buy (Allover shop) ---------- */
.shop .section__head--row { margin-bottom: clamp(32px, 4vw, 52px); }
.shop__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.2vw, 28px); margin: 0; padding: 0; list-style: none; }
.shop-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.shop-card__img { display: block; aspect-ratio: 1; overflow: hidden; margin-bottom: 12px; border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow); }
.shop-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.shop-card:hover .shop-card__img img { transform: scale(1.05); }
.shop-card__name { font: 600 19px/1.2 var(--display); letter-spacing: -0.02em; }
.shop-card__meta { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .shop__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Feature (fotografismi) ---------- */
.feature {
  padding: clamp(80px, 11vw, 140px) 0;
  background: linear-gradient(180deg, #1a1f2b, #10141d);
  color: rgba(255, 255, 255, 0.8);
}
.feature__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.feature__media { margin: 0; }
.feature__media img { width: 100%; border-radius: 4px; box-shadow: var(--shadow-lg); }
.feature__media figcaption { margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }
.feature__copy .section__title { margin-bottom: 28px; }
.steps { list-style: none; padding: 0; margin: 32px 0 36px; border-top: 1px solid var(--line-light); }
.steps li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-light); font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -0.015em; color: #fff; }
.steps span { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.12em; color: var(--gold); }
@media (max-width: 860px) { .feature__inner { grid-template-columns: 1fr; } }

/* ---------- Bio ---------- */
.bio { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.bio__portrait { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; }
.bio__portrait img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.bio__portrait figcaption { position: absolute; right: -10px; bottom: -22px; padding: 6px 16px; background: var(--gold); color: var(--night); font-size: 22px; rotate: -4deg; border-radius: 4px; box-shadow: var(--shadow); }
.bio__copy .section__title { margin-bottom: 28px; }
.bio__lead { font-family: var(--display); font-size: clamp(20px, 2vw, 24px); font-weight: 500; line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); }
.bio__lead em { font-style: normal; }
.bio__lead em { color: var(--cobalt); }
.bio__copy > p:not(.eyebrow):not(.bio__lead) { color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 40px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1.5px; background: linear-gradient(var(--gold), var(--cobalt)); }
.timeline li { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 12px 0 12px 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 19px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline strong { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--night); }
.timeline span { color: var(--muted); }

@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; }
  .bio__portrait { position: relative; top: 0; max-width: 480px; }
  .bio__portrait figcaption { right: 12px; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}

.studio { margin-top: clamp(70px, 9vw, 120px); overflow: hidden; }
.studio__track { display: flex; gap: 16px; width: max-content; animation: marquee 70s linear infinite; }
.studio:hover .studio__track { animation-play-state: paused; }
.studio img { height: clamp(160px, 22vw, 260px); width: auto; border-radius: 8px; }

/* ---------- Contact ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(80px, 11vw, 140px) 0;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(47, 111, 214, 0.3), transparent 60%),
    var(--night);
  color: rgba(255, 255, 255, 0.78);
}
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact__copy .section__title { margin-bottom: 24px; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; }
.contact__list a {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-light);
  text-decoration: none; color: #fff; font-weight: 600;
  transition: background-color 0.25s, border-color 0.25s;
}
.contact__list a:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.35); }
.contact__list .ico { grid-row: span 2; width: 44px; height: 44px; -webkit-mask-size: 22px; mask-size: 22px; background-color: var(--gold); }
.contact__list small { font-weight: 400; font-size: 14px; color: rgba(255, 255, 255, 0.6); word-break: break-all; }

.form {
  display: grid; gap: 16px;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--paper); color: var(--ink);
  border-radius: 20px; box-shadow: var(--shadow-lg);
}
.form__title { font-size: 25px; font-weight: 600; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; font: 400 16px/1.4 var(--sans); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(47, 111, 214, 0.15); }
.form .is-invalid { border-color: var(--coral) !important; }
.form .check { display: flex; gap: 10px; align-items: center; font-weight: 400; color: var(--muted); }
.form .check input { width: 18px; height: 18px; accent-color: var(--night); }
.form__msg { margin: 0; font-size: 14px; min-height: 1.4em; }
.form__msg.ok { color: #1a7a45; }
.form__msg.err { color: var(--coral); }

@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
/* ---------- Between sections ----------
   Sections meet with a clean edge: each keeps its own background (no fades). */

.footer { background: #08132c; color: rgba(255, 255, 255, 0.6); padding: 48px 0 28px; font-size: 14.5px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line-light); }
.footer__name { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.footer__tag { margin: 0; color: var(--gold); font-size: 19px; }
.footer__links, .footer__social { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__copy { margin-top: 24px; font-size: 13px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #1fa855; color: #fff; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.wa-float .ico { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: rgba(8, 14, 32, 0.96); color: #fff;
}
.lightbox::backdrop { background: rgba(8, 14, 32, 0.6); }
.lightbox[open] { display: grid; animation: lbin 0.35s var(--ease); }
@keyframes lbin { from { opacity: 0; } }
.lightbox__body { display: grid; grid-template-columns: 1fr 380px; height: 100%; min-height: 0; }
.lightbox__media { display: grid; place-items: center; padding: clamp(16px, 4vw, 64px); min-height: 0; }
.lightbox__media img { max-width: 100%; max-height: calc(100dvh - 2 * clamp(16px, 4vw, 64px)); width: auto; object-fit: contain; box-shadow: var(--shadow-lg); background: #fff; transition: opacity 0.25s; }
.lightbox__media img.is-loading { opacity: 0.3; }
.lightbox__info {
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
  padding: 40px 36px; background: var(--paper); color: var(--ink); overflow-y: auto;
}
.lightbox__title { font-size: clamp(28px, 2.8vw, 36px); margin-bottom: 8px; }
.specs { margin: 0 0 16px; display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.lightbox__counter { margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 0.2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close { top: 16px; right: 396px; width: 44px; height: 44px; font-size: 28px; line-height: 1; }
.lightbox__nav { top: 50%; translate: 0 -50%; width: 52px; height: 52px; font-size: 34px; line-height: 1; padding-bottom: 4px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 396px; }

@media (max-width: 900px) {
  .lightbox { overflow-y: auto; }
  .lightbox[open] { display: block; }
  .lightbox__body { grid-template-columns: 1fr; height: auto; min-height: 100%; }
  .lightbox__media { padding: 68px 16px 20px; }
  .lightbox__media img { max-height: 50dvh; }
  .lightbox__info { padding: 24px 20px 28px; border-radius: 20px 20px 0 0; }
  .lightbox__close { right: 12px; top: 12px; }
  .lightbox__nav { top: 30dvh; width: 44px; height: 44px; }
  .lightbox__nav--next { right: 12px; }
  .lightbox__nav--prev { left: 12px; }
  .specs div { padding: 9px 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Additions for the shop app (from scripts/build-artist-css.py) ===== */
/* admin bar of logged-in users */
.admin-bar .header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
/* request form (sent to WordPress instead of opening the mail app) */
.form__msg a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero: name + biography on the left; on the right a collage of Andrea's photo (no border) and the three framed artworks
   (instead of the "Comunicazioni visive" title and the round portrait) */
.hero__copy { position: relative; z-index: 1; }
.hero__title--name { font-size: clamp(38px, 5vw, 72px); margin-bottom: 14px; white-space: nowrap; }
.hero__title--name + .eyebrow { margin-bottom: 26px; } /* the name first, then "Ancona · nelle gallerie…" */
.hero__title--name em { display: inline; } /* "Andrea Agostini" on one line */
.hero__bio-lead { max-width: 32em; margin-bottom: 16px; font-family: var(--display); font-size: clamp(19px, 1.8vw, 23px); font-weight: 500; line-height: 1.45; letter-spacing: -0.015em; color: #fff; }
.hero__bio-lead em { font-style: normal; color: var(--gold-2); }
.hero__copy .hero__lead { margin-bottom: 36px; }
.hero__art--photo { aspect-ratio: 1 / 1.05; }
.hero__photo { position: absolute; z-index: 2; left: 17%; top: 9%; width: 58%; border-radius: 4px; box-shadow: var(--shadow-lg); }
.hero__art--photo .frame { padding: 0; background: none; border-radius: 3px; overflow: hidden; } /* no white mat around the artworks */
.hero__art--photo .frame img { display: block; scale: 1.14; } /* trims the paper or table edges visible in some photos of the artworks */
.hero__art--photo .frame--a { width: 33%; top: 0; left: -6%; rotate: -6deg; z-index: 3; } /* left of the whale in Andrea's photo */
.hero__art--photo .frame--b { width: 33%; top: 3%; left: auto; right: 0; rotate: 5deg; z-index: 1; }
.hero__art--photo .frame--c { width: 35%; top: auto; bottom: 0; left: auto; right: 3%; rotate: -3deg; z-index: 3; }
/* a wide artwork (e.g. "Le onde"): a long frame across the bottom, over the bottom of the photo */
.hero__art--photo .frame--wide { width: 74%; top: auto; bottom: -2%; left: auto; right: -2%; rotate: -2deg; z-index: 3; }
.hero__art--photo:has(.frame--wide) .hero__photo { top: 4%; } /* a bit higher, so the strip doesn't cover Andrea's arms */
.hero__art--photo .frame--wide img { scale: 1.05; }
@media (max-width: 860px) {
  .hero { padding-top: calc(var(--header-h) + 12px); }
  .hero__art--photo { order: -1; max-width: min(400px, 46svh); margin: 0 auto 4px; } /* phone: the collage on top, small enough to show the name */
  .hero__art--photo .frame--a { left: -2%; } /* stays on screen */
}

/* The career timeline "Il percorso": NOT on the page for now (kept as CAREER_TIMELINE in app/src/views/artist.js); was right before the video */
.reel .container.path { width: min(1200px, 100% - 2 * clamp(16px, 4vw, 40px)); padding: clamp(28px, 4vw, 52px) 0 clamp(40px, 5vw, 64px); } /* phones: the video goes edge to edge, the timeline keeps its margins */
.path .eyebrow { margin-bottom: 20px; color: var(--gold); }
.path__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px 28px; }
.path__list li { display: grid; align-content: start; gap: 4px; padding-top: 12px; border-top: 2px solid var(--gold); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.5; color: rgba(255, 255, 255, 0.75); }
.path__list strong { font-family: var(--display); font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; letter-spacing: -0.01em; color: #fff; }
@media (min-width: 1100px) { .path__list { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 22px 22px; } } /* all seven years on one row */
@media (max-width: 640px) { .path__list { grid-template-columns: 1fr 1fr; } }

.studio--reel { position: relative; margin-top: clamp(40px, 6vw, 72px); }
/* "I fotografismi" fades from its charcoal into the night blue of the contacts below: one sky instead of two close colours */
.feature { background: linear-gradient(180deg, #1a1f2b 0%, #141a28 45%, var(--night) 100%); }
.contact { background: radial-gradient(900px 500px at 0% 30%, rgba(47, 111, 214, 0.22), transparent 60%), var(--night); }
.contact .sky .motif { opacity: 0.9; }
/* the night colour under the video's fade showed as a dark hairline at the bottom on some heights: paper underneath instead */
.reel {
  background:
    linear-gradient(to bottom, var(--night) 0%, #161f37 15%, #444a5b 35%, #97999e 60%, #dfddd7 82%, var(--paper) 100%)
      bottom / 100% var(--fade) no-repeat,
    linear-gradient(var(--night), var(--night)) top / 100% calc(100% - var(--fade) + 2px) no-repeat,
    var(--paper);
}
