/* ==========================================================================
   Layout — header, hero, sections, footer
   ========================================================================== */

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-inverted {
  background: var(--cream-soft);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.brand {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-variation-settings: "opsz" 30;
}

.brand__mark {
  width: 32px; height: 32px;
  flex-shrink: 0;
}

.site-header.is-scrolled .brand,
.site-header.is-inverted .brand { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.nav__link {
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--cream);
  position: relative;
  padding: 0.4rem 0;
}

.site-header.is-scrolled .nav__link,
.site-header.is-inverted .nav__link { color: var(--ink-soft); }

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }

.nav__cta {
  background: var(--cream);
  color: var(--ink);
  padding: 0.8rem 1.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--cream);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav__cta:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.site-header.is-scrolled .nav__cta,
.site-header.is-inverted .nav__cta {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.site-header.is-scrolled .nav__cta:hover,
.site-header.is-inverted .nav__cta:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}

.site-header.is-scrolled .nav__toggle,
.site-header.is-inverted .nav__toggle { color: var(--ink); }

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.nav__toggle-bar::before, .nav__toggle-bar::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
}
.nav__toggle-bar::before { top: -7px; }
.nav__toggle-bar::after  { top: 7px; }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--forest-deep);
  z-index: 200;
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  color: var(--cream);
}

.drawer.is-open { transform: translateX(0); }

.drawer__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
  font-size: 1.5rem;
  color: var(--cream);
}

.drawer__link {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 350;
  color: var(--cream);
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
  padding-bottom: var(--s-2);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 var(--s-6);
  color: var(--cream);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(5, 4, 2, 0.62) 0%,
    rgba(5, 4, 2, 0.18) 28%,
    rgba(5, 4, 2, 0.20) 55%,
    rgba(5, 4, 2, 0.94) 100%);
}

.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.hero__title {
  font-size: var(--fs-d1);
  font-family: var(--display);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--cream);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--gold);
  font-weight: 350;
}

.hero__sub {
  margin-top: var(--s-3);
  font-size: var(--fs-lg);
  max-width: 32ch;
  color: rgba(244, 239, 230, 0.92);
  letter-spacing: 0.01em;
}

.hero__meta {
  margin-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.85);
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__meta-item::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero__scroll {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 2rem;
  z-index: 2;
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(244, 239, 230, 0.7);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* Section header */
.s-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
  align-items: end;
}

.s-head__lead {
  font-family: var(--display);
  font-size: var(--fs-d3);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.s-head__lead em {
  font-style: italic;
  color: var(--ink);
}
.surface-forest .s-head__lead em,
.surface-deep .s-head__lead em { color: var(--gold); }

.s-head__intro {
  font-size: var(--fs-lg);
  max-width: 56ch;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .s-head { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* Footer */
.footer {
  background: var(--forest-deep);
  color: var(--cream);
  padding: var(--s-7) 0 var(--s-3);
  font-size: var(--fs-sm);
}

.footer h4 {
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--cream);
  opacity: 0.6;
  margin-bottom: var(--s-3);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}

.footer__brand .brand {
  color: var(--cream);
  font-size: 1.625rem;
  margin-bottom: var(--s-2);
}

.footer__about {
  max-width: 36ch;
  color: rgba(244, 239, 230, 0.7);
  line-height: 1.6;
}

.footer__col a {
  display: block;
  padding: 0.3rem 0;
  color: rgba(244, 239, 230, 0.85);
  transition: color 0.2s var(--ease), padding 0.2s var(--ease);
}

.footer__col a:hover { color: var(--cream); padding-left: 0.4rem; }

.footer__address { color: rgba(244, 239, 230, 0.85); line-height: 1.7; font-style: normal; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-3);
  font-size: var(--fs-xs);
  color: rgba(244, 239, 230, 0.55);
  letter-spacing: 0.04em;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.footer__legal a:hover { color: var(--cream); }

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: var(--header-h) 0 var(--s-6);
  color: var(--cream);
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(5, 4, 2, 0.45) 0%,
    rgba(5, 4, 2, 0.92) 100%);
}

.page-hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.page-hero__content { position: relative; z-index: 1; max-width: 880px; }

.page-hero__title {
  font-family: var(--display);
  font-size: var(--fs-d2);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--cream);
}

.page-hero__title em { font-style: italic; color: var(--gold); }

.page-hero__intro {
  margin-top: var(--s-3);
  font-size: var(--fs-lg);
  max-width: 56ch;
  color: rgba(244, 239, 230, 0.92);
}

.crumb {
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.65);
  margin-bottom: var(--s-3);
}

.crumb a { color: var(--cream); border-bottom: 1px solid rgba(244, 239, 227, 0.4); transition: border-color 0.2s var(--ease); }
.crumb a:hover { border-bottom-color: var(--cream); }

/* logo (brand) */
.brand__logo {
  display: inline-block;
  height: clamp(60px, 7vw, 88px); margin: -16px 0;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
