:root {
  --bg: #faf8f4;
  --bg2: #f3efe8;
  --text: #1a1714;
  --text-muted: #7a736a;
  --border: rgba(26, 23, 20, 0.1);
  --gold: #c9a96e;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: cubic-bezier(0.76, 0, 0.24, 1);
  user-select: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-transition {
  position: fixed;
  inset: 0;
  background: var(--text);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.7s var(--transition);
  pointer-events: none;
}

.page-transition.active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .reveal {
    transform: translateY(14px);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #fdf9f2 0%, #f5ede0 50%, #ede3d4 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb1 {
  width: 400px;
  height: 400px;
  background: #e8cfa0;
  top: -100px;
  right: 10%;
  animation-delay: 0s;
}

.orb2 {
  width: 300px;
  height: 300px;
  background: #c4dfd8;
  bottom: 5%;
  left: 5%;
  animation-delay: -3s;
}

.orb3 {
  width: 200px;
  height: 200px;
  background: #d4c5e8;
  top: 40%;
  left: 60%;
  animation-delay: -6s;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(20px, -15px) scale(1.05);
  }

  66% {
    transform: translate(-10px, 10px) scale(0.97);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  animation: heroReveal 1.2s var(--transition) both;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: heroReveal 1.2s var(--transition) 0.1s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  animation: heroReveal 1.2s var(--transition) 0.2s both;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: heroReveal 1.2s var(--transition) 0.3s both;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  animation: heroReveal 1.2s var(--transition) 0.4s both;
}

.hero-name {
  font-weight: 500;
  color: var(--text);
}

.hero-divider {
  color: var(--gold);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: heroReveal 1.2s var(--transition) 0.8s both;
  cursor: pointer;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes scrollBob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

.intro {
  padding: 8rem 3rem;
  background: var(--bg);
}

.intro-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.intro-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.intro-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 1.8rem;
}

.intro-text h2 em {
  font-style: italic;
  color: var(--gold);
}

.intro-text p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.intro-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem 1.5rem;
}

.pillar-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar {
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pillar-text {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
}

.quarters {
  padding: 6rem 3rem 8rem;
  background: var(--bg2);
}

.quarters-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.quarters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.q-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.q-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.q-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 50%, color-mix(in srgb, var(--accent) 15%, transparent));
  transition: opacity 0.4s ease;
  opacity: 0;
}

.q-card:hover .q-card-bg {
  opacity: 1;
}

.q-card-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.q-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.q-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.q-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.q-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.8rem;
}

.q-topics span {
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  letter-spacing: 0.05em;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.q-enter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: auto;
  transition: gap 0.3s ease;
}

.q-enter svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.q-card:hover .q-enter {
  gap: 0.8rem;
}

.q-card:hover .q-enter svg {
  transform: translateX(4px);
}

.final {
  padding: 10rem 3rem;
  background: var(--text);
  color: var(--bg);
}

.final-inner {
  max-width: 800px;
  margin: 0 auto;
}

.final-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.final h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 3rem;
}

.final-body p {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(250, 248, 244, 0.7);
  margin-bottom: 1.2rem;
}

.final-body em {
  color: var(--gold);
  font-style: italic;
}

.final-quote {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(250, 248, 244, 0.15);
}

.final-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: rgba(250, 248, 244, 0.9);
  margin-bottom: 1rem;
}

.final-quote cite {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  border-top: 1px solid rgba(250, 248, 244, 0.08);
  padding: 2rem 3rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(250, 248, 244, 0.3);
  letter-spacing: 0.05em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

@media (max-width: 1024px) {
  .quarters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .intro {
    padding: 5rem 1.5rem;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .quarters {
    padding: 4rem 1.5rem 5rem;
  }

  .quarters-grid {
    grid-template-columns: 1fr;
  }

  .final {
    padding: 6rem 1.5rem;
  }
}