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

:root {
  --ink: #0e0c09; --ink2: #3a3028; --ink3: #6a5e52;
  --cream: #f8f4ee; --cream2: #efe8dc; --cream3: #d8cabb;
  --teal: #5c9d96; --teal-lt: #a6cac6; --teal-dk: #3d7870;
  --gold: #c09a48; --bdr: rgba(58,48,40,0.12);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); overflow-x: hidden; cursor: none; line-height: 1.6; }

/* ── CURSOR ── */
#cur { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }
#cur-d { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; transform: translate(-50%,-50%); transition: background .3s; }
#cur-r { width: 32px; height: 32px; border: 1.5px solid var(--teal); border-radius: 50%; position: absolute; top: 0; left: 0; transform: translate(-50%,-50%); opacity: .5; transition: width .3s var(--ease), height .3s var(--ease), opacity .3s, border-color .3s; }
#cur.h #cur-r { width: 52px; height: 52px; opacity: .8; border-color: var(--gold); }
#cur.h #cur-d { background: var(--gold); }

/* ── PROGRESS ── */
#prog { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal)); z-index: 9998; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 4rem; transition: all .5s var(--ease);
}
nav.scrolled {
  background: rgba(248,244,238,.97); backdrop-filter: blur(24px);
  padding: 1rem 4rem; border-bottom: 1px solid var(--bdr);
  box-shadow: 0 2px 32px rgba(0,0,0,.06);
}
nav.dark { background: transparent; }
nav.dark.scrolled { background: rgba(10,8,6,.97); border-bottom: 1px solid rgba(255,255,255,.08); }

.n-logo {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 400;
  letter-spacing: .1em; text-decoration: none; text-transform: uppercase;
  transition: color .4s;
}
.n-logo.light { color: rgba(255,255,255,.95); }
.n-logo.dark-logo { color: var(--ink); }
nav.scrolled .n-logo.light { color: var(--ink); }
nav.dark.scrolled .n-logo { color: rgba(255,255,255,.95) !important; }

.n-links { display: flex; gap: 0; list-style: none; }
.n-links li a {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; text-decoration: none; transition: all .25s;
  cursor: pointer; position: relative; padding: .5rem 1.2rem; display: block;
}
.n-links li a::after {
  content: ''; position: absolute; bottom: 0; left: 1.2rem; right: 1.2rem;
  height: 1.5px; background: var(--teal); transform: scaleX(0);
  transition: transform .3s var(--ease); transform-origin: center;
}
.n-links li a:hover::after, .n-links li a.active::after { transform: scaleX(1); }
.n-links li a.light-link { color: rgba(255,255,255,.7); }
.n-links li a.light-link:hover, .n-links li a.light-link.active { color: #fff; }
.n-links li a.dark-link { color: var(--ink2); }
.n-links li a.dark-link:hover, .n-links li a.dark-link.active { color: var(--ink); }
nav.scrolled .n-links li a.light-link { color: var(--ink2); }
nav.scrolled .n-links li a.light-link:hover { color: var(--ink); }
nav.dark.scrolled .n-links li a { color: rgba(255,255,255,.7) !important; }
nav.dark.scrolled .n-links li a:hover { color: #fff !important; }

.n-badge { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.n-badge.light { color: rgba(255,255,255,.5); }
.n-badge.dark-badge { color: var(--ink3); }
nav.scrolled .n-badge.light { color: var(--ink3); }
nav.dark.scrolled .n-badge { color: rgba(255,255,255,.5) !important; }
.n-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 2.5s ease infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── REVEALS ── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.on { opacity: 1; transform: none; }
.rv-l { opacity: 0; transform: translateX(-28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv-l.on { opacity: 1; transform: none; }
.rv-r { opacity: 0; transform: translateX(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv-r.on { opacity: 1; transform: none; }
.d1{transition-delay:.1s} .d2{transition-delay:.22s} .d3{transition-delay:.36s} .d4{transition-delay:.5s}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  min-height: 42vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 8rem 5rem 4rem; position: relative; overflow: hidden;
}
.page-hero.dark-bg { background: var(--ink); }
.page-hero.cream-bg { background: var(--cream2); border-bottom: 1px solid var(--bdr); }

.ph-num {
  font-family: var(--serif); font-size: 9rem; font-weight: 300; font-style: italic;
  color: rgba(92,157,150,.08); position: absolute; top: 5rem; right: 4rem;
  line-height: 1; user-select: none; letter-spacing: -.04em;
}
.ph-tag {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal); display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; font-weight: 500;
}
.ph-tag::before { content: ''; width: 2rem; height: 1.5px; background: var(--teal); }
.ph-title {
  font-family: var(--serif); font-size: clamp(2.8rem,6vw,6rem);
  font-weight: 300; line-height: .95; letter-spacing: -.03em;
}
.page-hero.dark-bg .ph-title { color: #fff; }
.page-hero.cream-bg .ph-title { color: var(--ink); }
.ph-title em { font-style: italic; color: var(--teal-lt); }
.page-hero.cream-bg .ph-title em { color: var(--teal); }
.ph-sub {
  font-size: .88rem; font-weight: 300; margin-top: 1.4rem; max-width: 500px; line-height: 1.95;
}
.page-hero.dark-bg .ph-sub { color: rgba(255,255,255,.5); }
.page-hero.cream-bg .ph-sub { color: var(--ink3); }

/* ── SECTION UTILS ── */
.wrap { max-width: 1200px; margin: 0 auto; }
.stag {
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal); display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1rem; font-weight: 500;
}
.stag::before { content: ''; width: 2rem; height: 1.5px; background: var(--teal); }
.stitle { font-family: var(--serif); font-size: clamp(2rem,3.5vw,3.2rem); font-weight: 300; line-height: 1.15; }
.stitle em { font-style: italic; color: var(--teal); }
.body-t { font-size: .88rem; font-weight: 300; color: var(--ink2); line-height: 2; margin-bottom: .9rem; }

/* ── FOOTER ── */
footer {
  padding: 2rem 4rem; background: var(--ink); display: flex; align-items: center;
  justify-content: space-between; font-size: .68rem; letter-spacing: .08em;
  color: rgba(255,255,255,.3); border-top: 1px solid rgba(255,255,255,.07);
}
.f-sig { font-family: var(--serif); font-size: 1rem; font-weight: 300; font-style: italic; color: rgba(255,255,255,.18); }
.f-links { display: flex; gap: 2rem; }
.f-links a { color: inherit; text-decoration: none; transition: color .2s; cursor: pointer; }
.f-links a:hover { color: var(--teal); }

@media(max-width:900px) {
  nav, nav.scrolled { padding: 1.2rem 1.5rem; }
  .n-links { display: none; }
  .page-hero { padding: 7rem 1.5rem 3rem; min-height: 300px; }
  .ph-num { display: none; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 1.5rem; }
}
