:root {
  --sand: #D6C1A9;
  --blush: #D5B3AD;
  --mauve: #A9919C;
  --plum: #816E83;
  --cloud: #D0D2D0;
  --ivory: #F5F0EB;
  --charcoal: #2A2624;
  --text: #4A4543;
  --text-light: #7A7572;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 145, 156, 0.15);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--plum); }

.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 100vh;
  padding-top: 5rem;
  align-items: center;
  gap: 2rem;
}

.hero-content {
  padding: 4rem 3rem 4rem 4rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--mauve);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 28rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  border: 1px solid var(--charcoal);
}

.btn-primary:hover {
  background: var(--plum);
  border-color: var(--plum);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid rgba(42, 38, 36, 0.3);
}

.btn-ghost:hover {
  border-color: var(--charcoal);
}

.hero-image {
  height: 100vh;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(168, 145, 156, 0.2);
  border-bottom: 1px solid rgba(168, 145, 156, 0.2);
  background: white;
}

.stat {
  padding: 2.5rem;
  text-align: center;
  border-right: 1px solid rgba(168, 145, 156, 0.15);
}

.stat:last-child { border-right: none; }

.stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--charcoal);
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Sections */
section {
  padding: 6rem 4rem;
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Gallery */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(168, 145, 156, 0.3);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active, .tab:hover {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  background: var(--cloud);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item .label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(42,38,36,0.7));
  color: white;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .label { opacity: 1; }

/* Story */
.story {
  background: white;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.story-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.story-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.story-text p {
  margin-bottom: 1.2rem;
  color: var(--text-light);
}

.story-list {
  list-style: none;
  margin-top: 2rem;
}

.story-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(168, 145, 156, 0.15);
  font-size: 0.9rem;
}

.story-list li::before {
  content: "—";
  margin-right: 0.75rem;
  color: var(--mauve);
}

/* Visual DNA */
.dna-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dna-grid h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.swatch {
  height: 4rem;
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  padding: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.swatch:hover { transform: scale(1.03); }

.swatch span {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(168, 145, 156, 0.4);
  color: var(--text);
}

.mt { margin-top: 2rem; }

.constraints {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

.studio-shot img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.caption {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

/* Simulation */
.simulation {
  background: white;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.persona-card {
  padding: 1.5rem;
  border: 1px solid rgba(168, 145, 156, 0.2);
  background: var(--ivory);
}

.persona-score {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.5rem;
}

.persona-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.persona-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.risk {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
}

.risk.low { background: #e8f0e8; color: #4a6741; }
.risk.medium { background: #f5f0e0; color: #8a7340; }
.risk.high { background: #f5e8e8; color: #8a4040; }

.simulation-insight {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 0.9rem;
}

.simulation-insight strong {
  color: var(--sand);
}

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.compare-col {
  padding: 2.5rem;
  border: 1px solid rgba(168, 145, 156, 0.2);
}

.compare-col h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.compare-col ul {
  list-style: none;
}

.compare-col li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(168, 145, 156, 0.1);
  font-size: 0.9rem;
}

.compare-col.synthetic {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}

.compare-col.synthetic h3 { color: var(--sand); }

/* Footer */
.footer {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer h3, .footer h4 {
  color: var(--sand);
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.footer-note {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { height: 60vh; }
  .hero-content { padding: 2rem; }
  .story-grid, .dna-grid, .compare-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(168,145,156,0.15); }
  .persona-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
