:root {
  --bg: #070605;
  --bg-2: #100e0b;
  --gold: #d4af37;
  --gold-2: #f0d78c;
  --gold-dim: #8a7020;
  --ink: #f4ead4;
  --muted: #9a8f78;
  --stone: #2a241c;
  --line: rgba(212, 175, 55, 0.22);
  --danger: #c45c2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: "Manrope", system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100%;
}

#mine-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#mine-canvas.is-live + .stage-fallback { opacity: 0; }

.stage-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #050403;
}
.stage-fallback .ore {
  position: absolute;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: none;
}
.ore-main {
  width: min(62vw, 820px);
  right: -4vw;
  top: 6vh;
  animation: floaty 12s ease-in-out infinite;
}
.ore-sat {
  width: min(28vw, 340px);
  left: 6vw;
  bottom: 10vh;
  opacity: .55;
  animation: floaty 16s ease-in-out infinite reverse;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.72) 100%),
    linear-gradient(180deg, rgba(7,6,5,.15) 0%, transparent 20%, transparent 70%, rgba(7,6,5,.85) 100%);
}

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

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #050403;
  display: grid;
  place-items: center;
  transition: opacity .8s ease, visibility .8s ease;
}
#loader.done { opacity: 0; visibility: hidden; }
html.preview #loader { display: none !important; }
.loader-inner { text-align: center; }
.loader-mark {
  font-family: "Cinzel", serif;
  font-size: 56px;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 28px;
}
.loader-bar {
  width: 180px;
  height: 1px;
  background: #2a241c;
  margin: 0 auto 16px;
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-2));
  animation: load 1.8s ease forwards;
}
.loader-inner p {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes load { to { width: 100%; } }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: linear-gradient(180deg, rgba(7,6,5,.72), transparent);
}
.logo {
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: .32em;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--gold-2); }
.logo-sub {
  font-family: "Manrope", system-ui, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 14px;
  opacity: .88;
}
.logo-sub::before {
  content: "·";
  margin-right: 12px;
  color: var(--gold-dim);
}
.nav nav { display: flex; gap: 28px; }
.nav nav a {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .75;
}
.nav nav a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 10px 16px;
}

main { position: relative; z-index: 5; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 40px 80px;
  max-width: 1100px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}
.hero h1 {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: clamp(42px, 8vw, 96px);
  line-height: .95;
  letter-spacing: -.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
}
.hero-lead {
  max-width: 520px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 14px 22px;
}
.btn.gold { background: var(--gold); color: #1a1408; }
.btn.gold:hover { background: var(--gold-2); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero-meta strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 22px;
  color: var(--gold-2);
}
.hero-meta span {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint {
  position: absolute;
  right: 40px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 72px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  40% { transform: scaleY(1); transform-origin: top; }
  60% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Panels */
section { padding: 140px 40px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
h2 {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.08;
  margin-bottom: 22px;
}
.panel {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: end;
  max-width: 1100px;
}
.panel-num {
  font-family: "Cinzel", serif;
  font-size: 80px;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  line-height: 1;
}
.panel-copy p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}
.ticks {
  list-style: none;
  margin-top: 28px;
}
.ticks li {
  padding: 10px 0 10px 22px;
  position: relative;
  color: var(--ink);
  font-size: 15px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 10px; height: 1px;
  background: var(--gold);
}

/* Cards */
.section-head { max-width: 800px; margin-bottom: 48px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: linear-gradient(180deg, rgba(20,16,10,.72), rgba(8,7,5,.55));
  border: 1px solid var(--line);
  padding: 32px 28px 28px;
  backdrop-filter: blur(10px);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: transform .45s ease, border-color .45s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}
.card-ore {
  font-family: "Cinzel", serif;
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 28px;
}
.card h3 {
  font-family: "Cinzel", serif;
  font-size: 22px;
  margin-bottom: 12px;
}
.card p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  flex: 1;
}
.stat {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  align-items: start;
}
.tech-grid > div p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
}
.tech-list { list-style: none; }
.tech-list li {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
}
.tech-list li strong {
  display: block;
  color: var(--ink);
  font-family: "Cinzel", serif;
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.ops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.op {
  border-top: 1px solid var(--gold-dim);
  padding: 24px 8px 0 0;
}
.op span {
  font-family: "Cinzel", serif;
  color: var(--gold);
  font-size: 18px;
}
.op h3 {
  font-family: "Cinzel", serif;
  margin: 16px 0 10px;
  font-size: 20px;
}
.op p { color: var(--muted); font-weight: 300; line-height: 1.6; font-size: 14px; }

.cta { max-width: 720px; padding-bottom: 80px; }
.cta > p { color: var(--muted); font-weight: 300; margin-bottom: 32px; }
.contact {
  display: grid;
  gap: 12px;
  max-width: 480px;
}
.contact input {
  background: rgba(16,14,11,.7);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 16px 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.contact input:focus { border-color: var(--gold); }
.contact button { justify-content: center; margin-top: 8px; }

.card .btn {
  margin-top: 22px;
  align-self: flex-start;
  width: auto;
}
#edizioni-cta { margin-top: 118px; margin-bottom: 0; padding-top: 28px; }
.edition-soft {
  display: inline-block;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: none;
  color: var(--gold);
  opacity: .72;
  margin-left: 8px;
  vertical-align: middle;
}
@media (max-width: 720px) {
  .edition-soft { display: block; margin: 8px 0 0; font-size: 10px; }
  #edizioni-cta { margin-top: 88px; padding-top: 18px; }
}

footer {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 40px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-legal {
  flex-basis: 100%;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  line-height: 1.75;
  max-width: 640px;
}
.footer-legal p { margin: 0 0 14px; }
.footer-legal a {
  color: var(--gold-2);
  text-decoration: none;
  letter-spacing: .2em;
}
.footer-legal a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .panel { grid-template-columns: 1fr; }
  .panel-num { font-size: 48px; }
  .cards, .ops, .tech-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 24px 70px; }
  section { padding: 100px 24px; }
  .scroll-hint { display: none; }
  .nav { padding: 18px 24px; }
}
