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

:root {
  --ink: #0f0a07;
  --cream: #f7f2ea;
  --terra: #a8421f;
  --terra-bright: #c4532e;
  --terra-dim: #7a3018;
  --gold: #c8972a;
  --gold-pale: #e8d4a0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Syne', sans-serif;
  background: var(--ink);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--terra); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(168,66,31,0.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-ring.expanded { width: 56px; height: 56px; border-color: rgba(168,66,31,0.9); }

/* ── GRAIN ── */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035; pointer-events: none; z-index: 100;
  animation: grainAnim 0.5s steps(2) infinite;
}
@keyframes grainAnim {
  0%   { transform: translate(0,0); }   25%  { transform: translate(-2%,-3%); }
  50%  { transform: translate(3%,1%); } 75%  { transform: translate(-1%,4%); }
  100% { transform: translate(2%,-2%); }
}

/* ── AMBIENT LIGHT ── */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(168,66,31,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 85%, rgba(200,151,42,0.07) 0%, transparent 55%);
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(15,10,7,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(247,242,234,0.05);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.01em; color: var(--cream);
  text-decoration: none; line-height: 1;
}
.nav-logo .accent { color: var(--terra); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(247,242,234,0.35); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: rgba(247,242,234,0.7); }
.nav-links a.active { color: var(--terra); }
.nav-cta {
  background: var(--terra) !important; color: var(--cream) !important;
  padding: 8px 18px !important; border-radius: 6px;
  letter-spacing: 0.15em !important;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--terra-bright) !important; transform: translateY(-1px); }

/* ── ANIMATIONS ── */
@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: reveal 0.9s cubic-bezier(0.16,1,0.3,1) forwards; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; } .d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.5s; } .d6 { animation-delay: 0.6s; }
.d7 { animation-delay: 0.7s; }

/* ── SHARED SECTION ELEMENTS ── */
.eyebrow {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--terra); display: block; margin-bottom: 8px;
}
.section-rule {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.section-rule-line { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(168,66,31,0.3), transparent); }
.section-rule-line.flip { background: linear-gradient(90deg, transparent, rgba(168,66,31,0.3)); }
.section-rule-label {
  font-size: 0.56rem; font-weight: 700; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(247,242,234,0.2);
}

/* card shell used across pages */
.card {
  background: rgba(247,242,234,0.03);
  border: 1px solid rgba(247,242,234,0.07);
  border-radius: 16px;
  position: relative; overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,66,31,0.25), transparent);
}
.card:hover { background: rgba(247,242,234,0.05); border-color: rgba(247,242,234,0.1); }

/* cta button */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--terra); color: var(--cream);
  font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 8px; border: none;
  text-decoration: none; cursor: none;
  position: relative; overflow: hidden;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
}
.btn span { position: relative; z-index: 1; }
.btn:hover { background: var(--terra-bright); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(168,66,31,0.4); }
.btn:active { transform: translateY(0); }

/* page wrapper */
.page-wrap { position: relative; z-index: 2; padding-top: 64px; }

/* ig footer */
.site-footer { padding: 32px 0 40px; text-align: center; }
.ig-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em;
  color: rgba(247,242,234,0.3); text-decoration: none; transition: color 0.2s;
}
.ig-link:hover { color: rgba(247,242,234,0.65); }
.ig-link svg { width: 13px; height: 13px; }
.copyright { margin-top: 8px; font-size: 0.6rem; color: rgba(247,242,234,0.1); letter-spacing: 0.05em; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  .nav { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.58rem; }
}
@media (max-width: 520px) {
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.5rem; letter-spacing: 0.1em; }
  .nav-cta { padding: 6px 12px !important; }
  /* swap to short labels */
  .nav-links a[data-short] { font-size: 0; }
  .nav-links a[data-short]::after { content: attr(data-short); font-size: 0.58rem; letter-spacing: 0.12em; }
}
