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

:root {
  --white: #fff;
  --off-white: #e8e6e1;
  --bg: #fafaf9;
  --border: rgba(56, 56, 56, 0.1);
  --ink: #383838;
  --ink-dim: rgba(56, 56, 56, 0.55);
  --ink-muted: rgba(56, 56, 56, 0.3);
  --ink-ghost: rgba(56, 56, 56, 0.06);
  --olive: #6a7a00;
  --olive-dim: rgba(106, 122, 0, 0.35);
  --olive-bg: rgba(106, 122, 0, 0.06);
  --gold: #c4a265;
  --gold-hover: rgba(196, 162, 101, 0.12);
  --deep: #1a1a1a;
  --pad-x: 56px;
  --pad-y: 120px;
  --max-w: 1200px;
  --r: 10px;
  --r-sm: 8px;
  --r-lg: 16px;
  --r-xl: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--deep);
  color: var(--ink);
  font-family: "Libre Franklin", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.skip-nav {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--olive);
  color: var(--white);
  padding: 8px 16px;
  z-index: 9999;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: var(--r-sm);
}

.skip-nav:focus {
  top: 16px;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 20px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  text-decoration: none;
}

.nav-logo svg {
  width: 140px;
  height: auto;
  display: block;
}

.nav-menu {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.nav-menu-header {
  display: none;
}

.nav-menu-links {
  display: flex;
  gap: 40px;
}

.nav-menu-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--olive);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 4px;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 22px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

body.nav-menu-open {
  overflow: hidden;
}

/* FOOTER (static) */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  color: rgba(255, 255, 255, 0.55);
  padding: 72px var(--pad-x) 40px;
  z-index: 10;
}

body.hero-active footer {
  z-index: 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: end;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  width: 160px;
  margin-bottom: 28px;
  display: block;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-conviction {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.4;
  color: #6a7a00;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-col-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  padding-top: 24px;
}

.footer-legal {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.footer-socials a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: rgba(255, 255, 255, 0.65);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1024px) {
  :root {
    --pad-x: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
    --pad-y: 80px;
  }
  .nav {
    padding: 16px var(--pad-x);
  }
  .nav-logo svg {
    width: 110px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav.is-open .nav-logo-bar,
  .nav.is-open .nav-toggle {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .nav-menu {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    flex: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    margin: 0;
    padding: 0;
    z-index: 300;
    background: var(--bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav.is-open .nav-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 16px var(--pad-x);
    border-bottom: 1px solid var(--border);
  }
  .nav-menu-logo svg {
    width: 110px;
    height: auto;
    display: block;
  }
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--olive);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-close:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 4px;
  }
  .nav-close-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
  }
  .nav-close-icon::before,
  .nav-close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
  }
  .nav-close-icon::before {
    transform: translateY(-50%) rotate(45deg);
  }
  .nav-close-icon::after {
    transform: translateY(-50%) rotate(-45deg);
  }
  .nav-menu-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px var(--pad-x) 48px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu-links a {
    font-size: 1rem;
    letter-spacing: 0.14em;
    padding: 16px 12px;
    text-align: center;
    border-bottom: none;
  }
  footer {
    padding-top: 40px;
    padding-bottom: 25px;
  }
  .footer-conviction {
    font-size: 20px;
    line-height: 1.2;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-bottom: 34px;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-slogan-m {
    font-size: 1.3rem;
  }
  .footer-logo {
    width: 110px;
    margin-bottom: 10px;
  }
  .footer-col p,
  .footer-col a {
    font-size: 0.75rem;
  }
  .footer-col-label {
    margin-bottom: 8px;
  }
}

@media (max-width: 640px) {
  :root {
    --pad-x: 20px;
  }
}
