/* ===========================================================
   daveY — Tele su stampa digitale
   v2: il cerchio di luce (lo "zenith" presente in ogni opera)
   diventa elemento guida del sito stesso — dietro al logo,
   nell'hero, nei separatori — e reagisce al cursore.
   =========================================================== */

:root {
  --bg: #ffffff;
  --ink: #16140f;
  --ink-soft: #4a463e;
  --stone: #8a8478;
  --line: #e7e3da;
  --glow: #c9a35e;
  --glow-bright: #e3bd72;
  --glow-soft: rgba(201, 163, 94, 0.16);
  --paper: #faf9f6;
  --vermillion: #9c3b34;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --jp: 'Noto Serif JP', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1280px;
  --pad: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ===================== CURSOR HALO (the zenith follows you) ===================== */
.cursor-halo {
  position: fixed;
  top: 0; left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
.cursor-halo.active { opacity: 1; }

@media (max-width: 720px) {
  .cursor-halo { display: none; }
}

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 4px 14px;
}
.logo-img {
  position: relative;
  z-index: 2;
  height: 30px;
  width: auto;
  filter: brightness(0.92);
  transition: filter 0.4s ease;
}
.logo-eyes {
  position: relative;
  z-index: 2;
  height: 27px;
  width: 27px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 9px;
  filter: sepia(0.35) saturate(1.3) brightness(0.95);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.logo-wrap:hover .logo-eyes {
  filter: sepia(0.35) saturate(1.4) brightness(1.02) drop-shadow(0 0 8px rgba(201,163,94,0.5));
  transform: scale(1.08);
}
.logo-halo {
  position: absolute;
  left: 50%; top: 50%;
  width: 90px; height: 90px;
  transform: translate(-50%, -50%) scale(0.6);
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
  z-index: 1;
  pointer-events: none;
}
.logo-wrap:hover .logo-halo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.3);
}
.logo-wrap:hover .logo-img {
  filter: brightness(1) drop-shadow(0 0 10px rgba(201,163,94,0.45));
}

.main-nav { display: flex; gap: 40px; }
.main-nav a {
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.nav-jp {
  font-family: var(--jp);
  font-size: 0.78rem;
  color: var(--glow);
  opacity: 0.7;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--glow);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--ink);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  min-height: 100vh;
  padding: 120px var(--pad) 60px;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}

.hero-halo-bg {
  position: absolute;
  top: -10%;
  left: 38%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 70%);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  animation: haloPulse 8s ease-in-out infinite;
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3/4;
  z-index: 1;
}
.hero-image {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: heroIn 1.4s cubic-bezier(0.2,0.8,0.2,1) forwards;
}
@keyframes heroIn {
  from { transform: scale(1.08); filter: brightness(0.85); }
  to   { transform: scale(1.02); filter: brightness(1); }
}
.hero-glow {
  position: absolute;
  top: 14%; left: 50%;
  width: 46%; aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 70%);
  opacity: 0;
  animation: glowIn 2s ease 0.6s forwards;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes glowIn { to { opacity: 1; } }

.hero-text { padding-left: 8px; position: relative; z-index: 1; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 18px;
}
.jp-mark {
  font-family: var(--jp);
  font-size: 1.1rem;
  color: var(--glow);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  overflow: hidden;
}
.hero-cta-label {
  position: relative; z-index: 2;
  transition: color 0.35s ease;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 1;
}
.hero-cta-halo {
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft), transparent 70%);
  z-index: 0;
  transition: transform 0.5s ease;
}
.hero-cta:hover .hero-cta-label { color: var(--bg); }
.hero-cta:hover::before { transform: translateX(0); }
.hero-cta:hover .hero-cta-halo { transform: translate(-50%, -50%) scale(18); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 50px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue span {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--glow);
  animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ===================== INTRO STRIP ===================== */
.intro-strip {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 6vw, 80px);
  flex-wrap: wrap;
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.intro-num {
  font-family: var(--jp);
  color: var(--glow);
  margin-right: 10px;
  font-size: 1.1rem;
}

/* ===================== SCROLL REVEAL ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2,0.7,0.2,1), transform 0.9s cubic-bezier(0.2,0.7,0.2,1);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== GALLERY ===================== */
.gallery {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px var(--pad) 80px;
}
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.gallery-header h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3rem);
}
.gallery-header p {
  max-width: 400px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.gallery-category {
  margin: 0 0 28px;
}
.gallery-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.gallery-category-sub {
  margin-top: 6px;
  color: var(--stone);
  font-size: 0.92rem;
  max-width: 480px;
}
.gallery-grid {
  column-count: 3;
  column-gap: 16px;
  margin-bottom: 72px;
}
.gallery-grid:last-of-type { margin-bottom: 0; }

.art-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
  break-inside: avoid;
  margin-bottom: 16px;
}
.art-card.in-view { opacity: 1; transform: translateY(0); }

.art-card-img-wrap {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
}

.art-card-img-main {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2,0.7,0.2,1), filter 0.5s ease, opacity 0.6s ease;
  filter: brightness(0.98);
}
.art-card:hover .art-card-img-main {
  transform: scale(1.045);
  filter: brightness(1.03);
}
.art-card:hover:has(.art-card-img-wall) .art-card-img-main {
  opacity: 0;
}

.art-card-img-wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
}
.art-card:hover .art-card-img-wall {
  opacity: 1;
  transform: scale(1);
}

.art-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 38%, var(--glow-soft) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
  pointer-events: none;
}
.art-card:hover .art-card-glow { opacity: 1; }

.art-card-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(10,9,7,0.62), transparent);
  color: #fff;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.art-card:hover .art-card-overlay { opacity: 1; transform: translateY(0); }
.art-card-overlay h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.art-card-overlay .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  opacity: 0.92;
}
.badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ===================== ZEN DIVIDER ===================== */
.zen-divider {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 110px var(--pad);
  text-align: center;
  overflow: hidden;
}
.zen-circle-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 32px;
}
.zen-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--glow);
  animation: zenSpin 30s linear infinite;
}
.zen-circle::before {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 72%);
}
.zen-eyes {
  position: absolute;
  inset: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border-radius: 50%;
  object-fit: cover;
  filter: sepia(0.35) saturate(1.3) brightness(1.05);
  opacity: 0.92;
}
@keyframes zenSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.zen-quote {
  font-family: var(--jp);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 10px;
}
.zen-quote-it {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--stone);
}

/* ===================== ABOUT ===================== */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad) 120px;
}
.about-image {
  overflow: hidden;
  aspect-ratio: 1588/2322; /* proporzioni reali di volo-gru-sacre-monte-fuji.jpg, niente crop */
  position: relative;
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 14px;
}
.about-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 24px;
}
.logo-accent { color: var(--glow); font-style: italic; }
.about-text p {
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ===================== CONTACT ===================== */
.contact {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  padding: 130px var(--pad);
  text-align: center;
  overflow: hidden;
}
.contact-halo {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 60%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,163,94,0.14) 0%, transparent 70%);
  pointer-events: none;
  animation: haloPulse 8s ease-in-out infinite;
}
.contact-inner { max-width: 560px; margin: 0 auto; position: relative; }
.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 18px;
}
.contact p { color: rgba(255,255,255,0.68); margin-bottom: 36px; font-size: 1.02rem; }
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--glow);
  color: var(--ink);
  padding: 17px 34px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.contact-cta:hover {
  transform: translateY(-2px);
  background: var(--glow-bright);
  box-shadow: 0 12px 30px rgba(201,163,94,0.3);
}
.contact-or { margin: 22px 0 14px; font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.contact-email {
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.contact-email:hover { border-color: var(--glow); color: var(--glow); }

/* ===================== FOOTER ===================== */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--pad);
  font-size: 0.82rem;
  color: var(--stone);
  border-top: 1px solid var(--line);
}
.footer-links a:hover { color: var(--ink); }

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,9,7,0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding: 40px var(--pad) 60px;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-height: 60vh;
  max-width: 86vw;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: lightboxIn 0.4s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox-info { text-align: center; color: #fff; margin-top: 22px; }
.lightbox-info h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.lightbox-info p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.lightbox-desc {
  max-width: 480px;
  margin: 14px auto 0;
  color: rgba(255,255,255,0.78);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
}
.lightbox-wall {
  max-width: 280px;
  margin: 20px auto 0;
}
.lightbox-wall-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.lightbox-wall img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.lightbox-buy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.lightbox-buy-primary {
  background: var(--glow);
  color: var(--ink);
}
.lightbox-buy-primary:hover {
  transform: translateY(-2px);
  background: var(--glow-bright);
  box-shadow: 0 12px 30px rgba(201,163,94,0.3);
}
.lightbox-buy-wa {
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}
.lightbox-buy-wa:hover {
  border-color: var(--glow);
  color: var(--glow);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: var(--pad);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { opacity: 1; transform: rotate(90deg); }

/* ===================== FOCUS / A11Y ===================== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-text { padding-left: 0; }
  .about { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 2; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .gallery-grid { column-count: 1; }
  .art-card-overlay { opacity: 1; transform: none; background: linear-gradient(to top, rgba(10,9,7,0.7), transparent 60%); }
  .gallery-header { flex-direction: column; align-items: flex-start; }
  .intro-strip { gap: 14px 32px; font-size: 0.84rem; }
  .zen-circle-wrap { width: 100px; height: 100px; }
  .hero { min-height: auto; padding-bottom: 80px; }
  .scroll-cue { display: none; }
}
