@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

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

:root {
  --cream:       #F5F0E8;
  --cream-dark:  #EDE6D6;
  --cream-mid:   #E2D8C6;
  --green:       #3D5A48;
  --green-mid:   #5A7A66;
  --green-light: #8FAF9A;
  --green-pale:  #D4E4DA;
  --ink:         #1A2620;
  --muted:       #6B7C72;
  --white:       #FFFFFF;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  cursor: none;
}

/* ─── CUSTOM CURSOR ─── */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  will-change: transform;
  transition: width .18s var(--ease), height .18s var(--ease), background .15s;
}
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(61,90,72,.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  will-change: transform;
  transition: width .3s var(--ease), height .3s var(--ease), border-color .2s, opacity .2s;
}
body.cursor-hover #cursor-dot  { width:14px; height:14px; }
body.cursor-hover #cursor-ring { width:54px; height:54px; border-color:rgba(61,90,72,.18); }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0; z-index: 200;
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 56px;
  background: rgba(245,240,232,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61,90,72,.1);
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(245,240,232,.97);
  box-shadow: 0 2px 24px rgba(26,38,32,.06);
}

.navbar-logo {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--green);
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: .02em;
  transition: opacity .2s;
}
.navbar-logo:hover { opacity: .6; }

.navbar-nav {
  list-style: none;
  display: flex;
  gap: 36px;
  margin-left: auto;
}
.navbar-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
  transition: color .2s;
}
.navbar-nav a::after {
  content:'';
  position: absolute;
  bottom:0; left:0;
  width:0; height:1px;
  background: var(--green);
  transition: width .3s var(--ease);
}
.navbar-nav a:hover,
.navbar-nav a.active { color: var(--green); }
.navbar-nav a:hover::after,
.navbar-nav a.active::after { width: 100%; }

.navbar-spacer { width: 120px; }

/* ─── FOOTER ─── */
footer {
  margin-top: auto;
  padding: 28px 56px;
  border-top: 1px solid rgba(61,90,72,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
footer a {
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-block;
  transition: color .2s, transform .2s;
}
footer a:hover { color: var(--green); transform: translateY(-2px); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible { opacity:1; transform: translateY(0); }

/* ─── MAGNETIC BUTTON ─── */
.mag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: background .2s;
}
.mag-btn::before {
  content:'';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
  opacity: 0;
  transition: opacity .2s;
}
.mag-btn:hover::before { opacity: 1; }
.mag-btn:hover { background: var(--ink); }

/* ─── SHARED SECTION LABEL ─── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-label::before {
  content:'';
  display: block;
  width: 36px; height: 1px;
  background: var(--green-mid);
}
.section-label span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-mid);
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
  .navbar { padding: 0 24px; justify-content: space-between; }
  .navbar-logo { position: static; transform: none; }
  .navbar-spacer { display: none; }
  .navbar-nav { gap: 18px; margin-left: 0; }
  .navbar-nav a { font-size: 12px; }
  footer { padding: 20px 24px; gap: 24px; }
}
