@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,600;1,300&family=Source+Serif+4:ital,wght@0,300;0,400;1,400&family=Crimson+Pro:ital,wght@0,400;1,400&display=swap');

:root {
  --deep-black: #0C0C0C;
  --night-soil: #1A1714;
  --aged-vellum: #E8DCC4;
  --warm-parchment: #D4C8AA;
  --burnished-gold: #B8860B;
  --aged-brass: #9E7C4B;
  --pale-gold: #D4AF37;
  --leaf-shadow: #2C3A2E;
  --faded-sage: #7A8B6F;
  --bone-white: #F5F0E6;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Source Serif 4', serif;
  --font-accent: 'Crimson Pro', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--deep-black);
  background: linear-gradient(180deg, var(--aged-vellum) 0%, var(--night-soil) 500vh);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  font-display: swap;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'onum' 1;
}

/* Particles Layer */
.particles-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Zones */
.zone {
  position: relative;
  z-index: 2;
}

.threshold {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 3rem;
  background-color: var(--aged-vellum);
  position: relative;
  overflow: hidden;
}

.threshold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 12% 45%, rgba(212, 200, 170, 0.04) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(212, 200, 170, 0.02) 2px, rgba(212, 200, 170, 0.02) 4px),
    repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(212, 200, 170, 0.02) 2px, rgba(212, 200, 170, 0.02) 4px),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(26, 23, 20, 0.12) 100%);
  pointer-events: none;
  z-index: 0;
}

.threshold::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: radial-gradient(40% 60px at 15% 20%, rgba(44, 58, 46, 0.08) 0%, transparent 50%),
              radial-gradient(30% 40px at 60% 70%, rgba(44, 58, 46, 0.06) 0%, transparent 50%),
              radial-gradient(25% 35px at 80% 30%, rgba(44, 58, 46, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.domain-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 3;
  animation: fadeInPulse 0.9s cubic-bezier(0.68, -0.2, 0.27, 1.2) 2s both;
  text-transform: lowercase;
  margin-right: 4vw;
  margin-bottom: 10vh;
}

.threshold-subtitle {
  position: absolute;
  bottom: 8vh;
  right: 5vw;
  font-family: var(--font-accent);
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  letter-spacing: 0.03em;
  color: var(--aged-brass);
  font-style: italic;
  max-width: 200px;
  z-index: 3;
  animation: fadeIn 0.5s ease-out 3.2s both;
}

.botanical-silhouette {
  position: absolute;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 1.4s both;
}

.fern-frond-1 {
  top: 5%;
  left: 8%;
  width: 40vw;
  height: 40vh;
  background: url('data:image/svg+xml,<svg viewBox="0 0 100 200" xmlns="http://www.w3.org/2000/svg"><path d="M 50 0 Q 45 20 50 40 Q 55 35 50 50 Q 45 45 50 60 Q 55 55 50 70 Q 45 65 50 80 Q 55 75 50 90 Q 45 85 50 100 M 50 20 L 40 25 M 50 30 L 60 32 M 50 40 L 35 42 M 50 50 L 65 52 M 50 60 L 40 62 M 50 70 L 60 72 M 50 80 L 38 82 M 50 90 L 62 92" stroke="%232C3A2E" stroke-width="0.5" fill="none"/></svg>') center no-repeat;
  background-size: contain;
  opacity: 0.08;
  z-index: 0;
}

/* Pressing Room */
.pressing-room {
  min-height: 100vh;
  position: relative;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, var(--aged-vellum) 0%, rgba(232, 220, 196, 0.95) 100%);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding-top: 8vh;
}

.specimen-card {
  background: var(--aged-vellum);
  padding: 2rem;
  border-radius: 2px;
  position: relative;
  opacity: 0;
  animation: cardEnter 0.8s ease-out forwards;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.75;
  letter-spacing: 0.015em;
  box-shadow: 0 2px 8px rgba(26, 23, 20, 0.06);
}

.specimen-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(50% 30% at 20% 10%, rgba(212, 200, 170, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 1px, rgba(212, 200, 170, 0.02) 1px, rgba(212, 200, 170, 0.02) 2px);
  pointer-events: none;
  border-radius: 2px;
}

.specimen-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.specimen-card p {
  position: relative;
  z-index: 1;
}

.specimen-card:hover {
  box-shadow: 0 4px 12px rgba(12, 12, 12, 0.08);
  transform: translateY(-2px);
}

.card-1 {
  grid-column: 1 / 4;
  grid-row: 1;
  animation-delay: 0.3s;
  border-right: 1px solid var(--burnished-gold);
}

.card-2 {
  grid-column: 4 / 7;
  grid-row: 1;
  animation-delay: 0.5s;
  border-bottom: 1px solid var(--burnished-gold);
}

.card-3 {
  grid-column: 7 / 9;
  grid-row: 1;
  animation-delay: 0.7s;
  border-left: 1px solid var(--burnished-gold);
}

.card-4 {
  grid-column: 2 / 7;
  grid-row: 2;
  animation-delay: 0.9s;
  border-top: 1px solid var(--burnished-gold);
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(0.5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

/* Gold Vein Zone */
.gold-vein {
  min-height: 80vh;
  position: relative;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, rgba(232, 220, 196, 0.95) 0%, rgba(200, 180, 140, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gold-vein-path {
  width: 100%;
  height: 300px;
  max-width: 1200px;
}

.vein-main {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawVein 3s ease-out forwards;
}

.vein-branch-1, .vein-branch-2, .vein-branch-3, .vein-branch-4 {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
}

.vein-branch-1 {
  animation: drawBranch 1.5s ease-out 1.5s forwards;
}

.vein-branch-2 {
  animation: drawBranch 1.5s ease-out 1.8s forwards;
}

.vein-branch-3 {
  animation: drawBranch 1.5s ease-out 2.1s forwards;
}

.vein-branch-4 {
  animation: drawBranch 1.5s ease-out 2.4s forwards;
}

@keyframes drawVein {
  from {
    stroke-dashoffset: 2000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawBranch {
  from {
    stroke-dashoffset: 500;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.vein-annotations {
  position: absolute;
  width: 100%;
  padding: 2rem;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

.annotation {
  font-family: var(--font-accent);
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  letter-spacing: 0.03em;
  color: var(--aged-brass);
  font-style: italic;
  margin: 1rem 0;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 2s both;
}

.annotation:nth-of-type(2) {
  animation-delay: 2.4s;
}

/* Archive Zone */
.archive {
  min-height: 120vh;
  position: relative;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, rgba(200, 180, 140, 0.9) 0%, rgba(26, 23, 20, 0.95) 100%);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.botanical-watermark {
  position: absolute;
  right: 5%;
  top: 10%;
  width: 50vw;
  height: 80vh;
  opacity: 0.04;
  z-index: 0;
  animation: parallax-scroll 0.3s ease-out;
}

.watermark-1 {
  background: url('data:image/svg+xml,<svg viewBox="0 0 200 300" xmlns="http://www.w3.org/2000/svg"><g opacity="0.3"><path d="M 100 0 Q 80 40 70 100 Q 60 150 80 200 Q 100 250 120 300" stroke="%237A8B6F" stroke-width="2" fill="none"/><path d="M 100 20 L 85 80 M 100 40 L 110 90 M 100 60 L 75 110 M 100 80 L 115 140 M 100 100 L 90 160" stroke="%237A8B6F" stroke-width="1" fill="none"/></g></svg>') center no-repeat;
  background-size: contain;
  pointer-events: none;
}

.archive-column {
  grid-column: 1 / 2;
  position: relative;
  z-index: 2;
  padding-left: 2rem;
}

.archive-block {
  margin-bottom: 3rem;
  opacity: 0;
  animation: photoEmerge 0.6s ease-out forwards;
}

.archive-block:nth-child(1) {
  animation-delay: 0.3s;
}

.archive-block:nth-child(2) {
  animation-delay: 0.6s;
  margin-left: 24px;
}

.archive-block:nth-child(3) {
  animation-delay: 0.9s;
  margin-left: 48px;
}

.archive-block:nth-child(4) {
  animation-delay: 1.2s;
  margin-left: 16px;
}

@keyframes photoEmerge {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.archive-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
  color: var(--bone-white);
}

.archive-block p {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.75;
  color: rgba(245, 240, 230, 0.85);
  letter-spacing: 0.015em;
}

.indent-1 {
  margin-left: 24px !important;
}

.indent-2 {
  margin-left: 48px !important;
}

.indent-3 {
  margin-left: 16px !important;
}

/* Settling Zone */
.settling {
  min-height: 100vh;
  position: relative;
  padding: 3rem;
  background: linear-gradient(180deg, rgba(26, 23, 20, 0.95) 0%, var(--night-soil) 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.settling-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--aged-brass);
  text-transform: lowercase;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1.5s ease-out 0.3s both;
  margin-left: 15vw;
}

.gold-dust-cluster {
  position: absolute;
  width: 200px;
  height: 200px;
  left: 20vw;
  bottom: 15vh;
  z-index: 1;
}

.dust-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--burnished-gold);
  opacity: 0;
}

.dust-particle:nth-child(1) {
  left: 10%; top: 10%; animation: dustFloat 8s ease-in-out 0.4s infinite;
  width: 3px; height: 3px; opacity: 0.2;
}

.dust-particle:nth-child(2) {
  left: 50%; top: 20%; animation: dustFloat 10s ease-in-out 0.8s infinite;
  width: 5px; height: 5px; opacity: 0.15;
}

.dust-particle:nth-child(3) {
  left: 30%; top: 50%; animation: dustFloat 9s ease-in-out 1.2s infinite;
  width: 4px; height: 4px; opacity: 0.25;
}

.dust-particle:nth-child(4) {
  left: 70%; top: 40%; animation: dustFloat 7s ease-in-out 1.6s infinite;
  width: 3px; height: 3px; opacity: 0.2;
}

.dust-particle:nth-child(5) {
  left: 20%; top: 70%; animation: dustFloat 11s ease-in-out 2s infinite;
  width: 4px; height: 4px; opacity: 0.18;
}

.dust-particle:nth-child(6) {
  left: 60%; top: 60%; animation: dustFloat 8.5s ease-in-out 2.4s infinite;
  width: 5px; height: 5px; opacity: 0.22;
}

.dust-particle:nth-child(7) {
  left: 15%; top: 30%; animation: dustFloat 9.5s ease-in-out 2.8s infinite;
  width: 3px; height: 3px; opacity: 0.16;
}

.dust-particle:nth-child(8) {
  left: 80%; top: 80%; animation: dustFloat 10.5s ease-in-out 3.2s infinite;
  width: 4px; height: 4px; opacity: 0.24;
}

@keyframes dustFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-40px) translateX(20px);
  }
  50% {
    transform: translateY(-80px) translateX(-10px);
  }
  75% {
    transform: translateY(-120px) translateX(30px);
  }
}

/* Progress Indicator */
.progress-indicator {
  position: fixed;
  right: 16px;
  top: 0;
  width: 1px;
  height: 0;
  background: var(--burnished-gold);
  z-index: 1000;
  animation: progressGrow 0.6s ease-out 2s forwards;
}

@keyframes progressGrow {
  from {
    height: 0;
  }
  to {
    height: 100vh;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInPulse {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .pressing-room {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-1 {
    grid-column: 1 / 3;
  }

  .card-2 {
    grid-column: 3 / 5;
  }

  .card-3 {
    grid-column: 1 / 5;
  }

  .card-4 {
    grid-column: 1 / 5;
  }

  .archive {
    grid-template-columns: 1fr;
  }

  .botanical-watermark {
    display: none;
  }
}

@media (max-width: 640px) {
  .pressing-room {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1rem;
  }

  .card-1, .card-2, .card-3, .card-4 {
    grid-column: 1 !important;
  }

  .settling {
    padding: 2rem 1.5rem;
  }

  .settling-text {
    margin-left: 0;
    text-align: center;
    width: 100%;
  }

  .gold-dust-cluster {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Link Styles */
a {
  color: var(--aged-brass);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--burnished-gold);
  transition: width 0.3s ease;
}

a:hover {
  color: var(--pale-gold);
}

a:hover::after {
  width: 100%;
}
