:root {
  --black: #0a0a0a;
  --charcoal: #111111;
  --surface: #1a1a1a;
  --red: #8b0000;
  --red-glow: #b81818;
  --gold: #c9a227;
  --chalk: #f0ede6;
  --muted: #8a8a8a;
  --border: #252525;
  --header-h: 72px;
  --announce-h: 32px;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-poetry: "Playfair Display", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--chalk);
  line-height: 1.6;
  overflow-x: hidden;
}

body.story-mode {
  scroll-snap-type: y proximity;
}

a { color: inherit; text-decoration: none; }

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

/* Announcement — subtle like AG */
.announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 102;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  border-bottom: 1px solid var(--border);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */
.header {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: transparent;
  transition: background 0.5s var(--ease-out), border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.nav { display: flex; gap: 2.5rem; }
.nav a {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.3s;
}
.nav a:hover { color: var(--chalk); }

/* Scroll progress rail — AG-style chapter indicator */
.scroll-progress {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.scroll-progress ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.scroll-progress button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: all 0.4s var(--ease-out);
}

.scroll-progress button.active {
  background: var(--chalk);
  transform: scale(1.5);
  box-shadow: 0 0 12px rgba(240, 237, 230, 0.3);
}

.scroll-progress-label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Story scroll container */
.story-scroll {
  padding-top: calc(var(--announce-h) + var(--header-h));
}

/* Panel system — full viewport story beats */
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.panel-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  filter: contrast(1.05) saturate(0.9);
  transition: transform 0.1s linear;
}

.panel-bg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.75) 55%, rgba(10,10,10,0.95) 100%);
}

.panel-bg-shade--heavy {
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.85) 100%);
}

.panel-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 4rem 2.5rem;
}

.panel-inner--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-inner--bottom {
  align-self: flex-end;
  padding-bottom: 6rem;
}

.panel-inner--narrow {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }

/* Typography */
.panel-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.panel-display {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.panel-lead {
  font-family: var(--font-poetry);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  font-weight: 300;
}

.panel-lead--narrow { max-width: 480px; }

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.panel-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.chapter-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

/* Scroll cue — Almost Gods "Scroll to explore" */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-cue span {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Panel variants */
.panel--hero .panel-lead { margin-top: 0.5rem; }

.panel--statement {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.statement-line {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.statement-line--accent { color: var(--red-glow); }

.statement-body {
  margin-top: 2.5rem;
  max-width: 520px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
}

.panel--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--black);
}

.panel-split-media {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.panel-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}

.panel-split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  background: var(--charcoal);
}

.panel-split-copy p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  max-width: 400px;
}

.panel-split-copy em {
  color: var(--gold);
  font-style: normal;
}

.panel--quote {
  background: var(--black);
  border-top: 1px solid var(--border);
}

.big-quote {
  font-family: var(--font-poetry);
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.panel--gallery {
  background: var(--charcoal);
  min-height: auto;
  padding: 6rem 0;
}

.design-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.design-duo figure img {
  width: 100%;
  border: 1px solid var(--border);
  transition: transform 0.6s var(--ease-out);
}

.design-duo figure:hover img {
  transform: scale(1.02);
}

.design-duo figcaption {
  margin-top: 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.panel--drop {
  background: var(--black);
  min-height: auto;
  padding: 6rem 0 8rem;
  align-items: flex-start;
}

.panel--waitlist {
  background: radial-gradient(ellipse at 50% 0%, rgba(139,0,0,0.06) 0%, transparent 55%), var(--charcoal);
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
}

.btn-primary {
  background: var(--chalk);
  color: var(--black);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(255,255,255,0.25);
  color: var(--chalk);
  background: transparent;
}
.btn-outline:hover { border-color: var(--chalk); }
.btn-full { width: 100%; }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}

.product-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.product-image {
  aspect-ratio: 4/5;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.product-card:hover .product-image img { transform: scale(1.03); }

.product-image .phrase {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--red);
  padding: 0.3rem 0.55rem;
}

.product-info { padding: 1.25rem; }
.product-info h3 { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.2rem; }
.product-info .meta { font-size: 0.7rem; color: var(--muted); margin-bottom: 0.5rem; }
.product-info .price { font-size: 0.9rem; font-weight: 500; }
.product-info .price s { color: var(--muted); margin-right: 0.5rem; font-weight: 400; }

.link-arrow {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  transition: letter-spacing 0.3s;
}
.link-arrow:hover { letter-spacing: 0.28em; }

/* Waitlist form */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  margin-top: 1.5rem;
}

.waitlist-form input,
.waitlist-form select {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--chalk);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 300;
  transition: border-color 0.3s;
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.3);
}

.form-note { font-size: 0.75rem; color: var(--muted); margin-top: 1rem; }
.form-note.success { color: #6ee7a0; }
.form-note.error { color: #f87171; }

.whatsapp-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 95;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10,10,10,0.8);
  color: var(--chalk);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
  backdrop-filter: blur(8px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  border-color: var(--chalk);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  padding: 3rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer--minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer--minimal p {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.footer-links a:hover { color: var(--chalk); }

/* Shop page (unchanged structure) */
.shop-page {
  padding: calc(var(--announce-h) + var(--header-h) + 3rem) 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.shop-header { margin-bottom: 3rem; }
.shop-header h1 { font-family: var(--font-display); font-size: 3rem; letter-spacing: 0.04em; }
.shop-header p { color: var(--muted); margin: 0.5rem 0 2rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.filter.active, .filter:hover { border-color: var(--chalk); color: var(--chalk); }

.bundles { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--border); }
.bundles h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1.5rem; }
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.bundle-card { padding: 2rem; background: var(--charcoal); border: 1px solid var(--border); }
.bundle-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.bundle-card .items { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.bundle-card .price { font-size: 1.25rem; font-weight: 600; }
.bundle-card .savings { font-size: 0.8rem; color: var(--gold); margin-top: 0.25rem; }

/* Responsive */
@media (max-width: 900px) {
  .scroll-progress { display: none; }
  .nav { display: none; }
  .panel--split { grid-template-columns: 1fr; }
  .panel-split-media { min-height: 50vh; }
  .panel-split-copy { padding: 3rem 2rem; min-height: auto; }
  .design-duo { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .header { padding: 0 1.25rem; }
  .panel-inner { padding: 3rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.story-mode { scroll-snap-type: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .panel-bg-img { transform: none !important; }
}
