/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === CSS VARIABLES === */
:root {
  --ink:        #14140f;
  --ink-mid:    #5c5c52;
  --ink-faint:  #b8b8ae;
  --ink-ghost:  #e4e4dc;
  --paper:      #f8f8f3;
  --paper-warm: #f2f2ec;
  --moss:       #3d6b5a;
  --moss-light: #edf3f0;
  --rule:       rgba(20,20,15,0.10);
  --f-jp:    'Shippori Mincho', serif;
  --f-serif: 'Libre Baskerville', Georgia, serif;
  --f-sans:  'Geist', sans-serif;
}

html { scroll-behavior: smooth; }

/* === CURSOR (tema chiaro — default) === */
#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--moss);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
  mix-blend-mode: multiply;
}
#cursor.big {
  width: 48px; height: 48px;
  background: rgba(61,107,90,0.12);
}

/* === NAVIGAZIONE (base — layout comune) === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
}

.nav-logo {
  font-family: var(--f-jp);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }

/* === ANIMAZIONI === */
@keyframes appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* === REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.22s; }
.reveal-d3 { transition-delay: 0.34s; }
.reveal-d4 { transition-delay: 0.46s; }

/* === FOOTER (tema chiaro — default) === */
footer {
  padding: 40px 64px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.footer-name {
  font-family: var(--f-jp);
  font-size: 14px;
  color: var(--ink-mid);
  letter-spacing: 0.2em;
  text-decoration: none;
}

/* === RESPONSIVE BASE === */
@media (max-width: 900px) {
  body { cursor: auto; }
  #cursor { display: none; }
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  footer { padding: 32px 24px; flex-direction: column; gap: 12px; text-align: center; }
}
