:root {
  --paper: #F6F4EE;
  --card: #FCFBF7;
  --ink: #1A241F;
  --green: #1F6B43;
  --green-deep: #153726;
  --gold: #B0862F;
  --gold-br: #D6A43C;
  --gold-soft: #EADFC5;
  --line: #E2DDCF;
  --muted: #5C6660;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--ink);
}

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
}

.rule {
  height: 3px;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .7s var(--ease);
  margin: .9rem 0 1.4rem;
  width: 64px;
  border-radius: 3px;
}

.in .rule {
  transform: scaleX(1);
}

a {
  color: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .98rem;
  padding: .9rem 1.7rem;
  border-radius: 30px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(176, 134, 47, 0.4);
  transition: transform .25s var(--bounce), background .2s var(--ease), box-shadow .25s var(--ease);
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--gold-br);
  box-shadow: 0 12px 28px -8px rgba(214, 164, 60, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  box-shadow: none;
  padding: .7rem 1.4rem;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform .25s var(--bounce), background .2s, color .2s;
}

.btn-ghost:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(31, 107, 67, 0.35);
  transition: transform 0.25s var(--bounce), background 0.25s, box-shadow 0.25s;
}

.btn-primary:hover {
  background: var(--green-deep);
  transform: scale(1.05);
  box-shadow: 0 8px 20px -6px rgba(21, 55, 38, 0.45);
}

.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* Underline graphics */
.u {
  position: relative;
  white-space: nowrap;
  color: var(--green);
}

.u svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.18em;
  width: 100%;
  height: .35em;
}

/* Motion keyframes */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(22px, -16px); }
  66% { transform: translate(-14px, 10px); }
}

@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.006); }
}

/* Header */
/* Header - Morphing Design */
.navbar-wrapper {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar {
  pointer-events: auto;
  width: 100%;
  max-width: 1200px;
  height: 70px;
  background: rgba(246, 244, 238, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 221, 207, 0.6);
  border-radius: 100px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0 1rem 0 2rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.navbar.minimized {
  max-width: 60px;
  height: 60px;
  padding: 0;
  cursor: pointer;
  background: rgba(246, 244, 238, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px -5px rgba(31, 107, 67, 0.15), 0 0 0 1px rgba(255,255,255,0.8) inset;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.navbar.minimized:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 35px -5px rgba(31, 107, 67, 0.25), 0 0 0 1px rgba(255,255,255,0.9) inset;
}
.navbar.minimized:active {
  transform: translateY(1px) scale(0.95);
}
.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: opacity 0.2s var(--ease) 0.3s, visibility 0.2s 0.3s;
}
.navbar-content > * {
  flex-shrink: 0;
}
.navbar.minimized .navbar-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s var(--ease), visibility 0.15s;
  pointer-events: none;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.navbar-logo span {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.navbar-logo img {
  width: 38px;
  height: 38px;
  transition: transform 0.3s var(--ease);
}
.navbar-logo:hover img {
  transform: scale(1.05);
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
}
.navbar-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  transition: color 0.3s var(--ease);
  padding: 0.5rem 0;
  z-index: 2;
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--green-deep);
}
.navbar-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 2px;
  background: var(--green-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.navbar-links a:hover::after, .navbar-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.navbar-minimized-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(-15deg);
  opacity: 0;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
}
.navbar.minimized .navbar-minimized-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}
.navbar-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.navbar-cta .btn-primary {
  background-color: var(--green);
  color: #fff;
  border: none;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.3s var(--bounce);
  box-shadow: 0 4px 12px rgba(31, 107, 67, 0.2);
}
.navbar-cta .btn-primary:hover {
  background-color: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 107, 67, 0.3);
}
.navbar-burger {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 102;
}
.navbar-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 6px auto;
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}
.navbar-burger.active span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.navbar-burger.active span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(246, 244, 238, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: all 0.4s var(--ease);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}
.mobile-nav-links a {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
}
.mobile-nav.open .mobile-nav-links a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav.open .mobile-nav-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open .mobile-nav-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open .mobile-nav-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open .mobile-nav-links a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.open .mobile-nav-links a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.open .mobile-nav-links a:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav-cta {
  color: var(--green) !important;
  font-size: 1.8rem !important;
  margin-top: 1rem;
}

@media (max-width: 820px) {
  .navbar-wrapper {
    padding: 0 1rem;
    top: 1rem;
  }
  .navbar {
    padding: 0 0.5rem 0 1rem;
    height: 64px;
  }
  .navbar-logo span {
    font-size: 1.15rem;
  }
  .navbar-logo img {
    width: 32px;
    height: 32px;
  }
  .navbar-links {
    display: none;
  }
  .navbar-cta .btn-primary {
    display: none;
  }
  .navbar-burger {
    display: block;
  }
}


/* Accessibility Focus States */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Footer Styles */
footer {
  background: var(--green-deep);
  color: #E7E6DE;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  position: relative;
  overflow: hidden;
}

.foot-bg-ring {
  position: absolute;
  right: -15%;
  bottom: -30%;
  width: 700px;
  height: 700px;
  opacity: .04;
  pointer-events: none;
  animation: spin 60s linear infinite;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

footer .fmark {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

footer .fmark img {
  width: 44px;
  height: auto;
}

footer p, footer a {
  color: #C9CCBF;
  font-size: .92rem;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

footer h4 {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-br);
  margin-bottom: 1rem;
  font-weight: 700;
}

footer .col a {
  display: block;
  margin-bottom: .5rem;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .82rem;
  color: #9AA090;
}

.foot-mega-logo {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 11.5vw, 12rem);
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  margin-top: 4rem;
  user-select: none;
  pointer-events: none;
}

@media(max-width: 820px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media(prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
  .rule {
    transform: scaleX(1);
  }
}
