/* ============================================================
   myth. studio — shared styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --gold:       #c8a96e;
  --gold-dim:   rgba(200,169,110,0.35);
  --gold-faint: rgba(200,169,110,0.12);
  --ink:        #0a0a0a;
  --ink-2:      #111111;
  --ink-3:      #181818;
  --cream:      #e8e4dc;
  --cream-60:   rgba(232,228,220,0.6);
  --cream-40:   rgba(232,228,220,0.4);
  --cream-20:   rgba(232,228,220,0.2);
  --cream-08:   rgba(232,228,220,0.08);
  --rule:       rgba(255,255,255,0.07);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* ── Custom cursor ── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, width 0.25s, height 0.25s, background 0.25s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 12px; height: 12px; background: var(--gold); }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 48px; height: 48px; border-color: var(--gold); }

/* ── Page fade in ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.75s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.64s; }

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

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  height: 72px;
  border-bottom: 1px solid var(--rule);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo svg { flex-shrink: 0; }
.nav-wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--cream);
  line-height: 1;
}
.nav-wordmark span { color: var(--gold); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 11px;
  font-weight: 400;
  color: var(--cream-40);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  padding: 8px 18px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  display: inline-block;
}
.nav-cta:hover { background: var(--gold-faint); border-color: var(--gold); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 24px; height: 1px;
  background: var(--cream-60); margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-mobile {
  display: none; position: fixed; inset: 72px 0 0;
  background: rgba(10,10,10,0.97);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--cream-60);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--gold); }

/* ── Main content offset ── */
main { padding-top: 72px; }

/* ── Section primitives ── */
.section { padding: 96px 56px; }
.section-sm { padding: 64px 56px; }
.section-label {
  font-size: 10px;
  font-weight: 400;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: '';
  display: block; width: 24px; height: 1px;
  background: var(--gold-dim);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 48px;
}
.rule { border: none; border-top: 1px solid var(--rule); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { opacity: 0.85; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--cream-60);
}
.btn-outline:hover { border-color: var(--cream-40); color: var(--cream); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.footer-wordmark {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--cream-40);
}
.footer-wordmark span { color: var(--gold-dim); }
.footer-links {
  display: flex; gap: 28px; justify-content: center;
}
.footer-links a {
  font-size: 10px;
  color: var(--cream-20);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream-60); }
.footer-copy {
  font-size: 10px;
  color: var(--cream-20);
  letter-spacing: 0.06em;
  text-align: right;
}

/* ── Credits strip ── */
.credits-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 56px;
  display: flex; align-items: center; gap: 0;
  overflow: hidden;
}
.credits-label {
  font-size: 9px;
  color: rgba(200,169,110,0.35);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  margin-right: 36px;
  flex-shrink: 0;
}
.credits-scroll {
  display: flex; gap: 48px; align-items: center;
  overflow: hidden; mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.credit-item {
  font-size: 11px;
  color: var(--cream-20);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.credit-item strong {
  color: var(--cream-40);
  font-weight: 400;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .section, .section-sm { padding: 64px 24px; }
  .credits-strip { padding: 18px 24px; }
  footer { grid-template-columns: 1fr; gap: 20px; padding: 40px 24px; }
  .footer-copy { text-align: left; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; gap: 16px; }
}
