:root {
  --bg: #e5dfd6;
  --ink: #f8f4ee;
  --ink-soft: rgba(247, 242, 236, 0.82);
  --line: rgba(255, 255, 255, 0.16);
  --brand: #201814;
  --accent: #9f836c;
  --accent-soft: #d4c0b0;
  --rail-dark: rgba(46, 63, 55, 0.95);
  --rail-mid: rgba(66, 88, 78, 0.97);
  --footer-bg: #171310;
  --footer-line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 64px rgba(23, 16, 12, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 14px;
  z-index: 1200;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: #201813;
}

.skip-link:focus {
  left: 14px;
}

.shell {
  width: min(1660px, calc(100% - 68px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(248, 243, 237, 0.78);
}

.home-main {
  position: relative;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 144px;
  background: linear-gradient(180deg, rgba(16, 12, 9, 0.5), rgba(16, 12, 9, 0));
  pointer-events: none;
}

.site-header-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  min-height: 96px;
  padding-top: 10px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  width: 178px;
}

.site-header-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.site-nav-group {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.site-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 243, 237, 0.62);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  padding-bottom: 2px;
}

.site-nav a,
.action-link {
  color: rgba(248, 243, 237, 0.96);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(9, 7, 6, 0.26);
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.action-link:hover {
  opacity: 0.78;
}

.site-nav a:focus-visible,
.action-link:focus-visible,
.button-primary:focus-visible,
.button-secondary:focus-visible,
.menu-toggle:focus-visible,
.hero-metric:focus-visible {
  outline: 2px solid rgba(255, 249, 243, 0.9);
  outline-offset: 3px;
}

.site-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.action-link {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.action-link-strong {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Hamburger button ────────────────────────────────────────────── */
.menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: #fff;
  touch-action: manipulation;
  cursor: pointer;
  position: relative;
}

/* Three bars — each animated independently */
.menu-toggle span {
  width: 25px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease;
  transform-origin: center;
}

/* Animate into X when open */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile menu overlay — fade in ──────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(16, 12, 9, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* Fade in/out */
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu[hidden] {
  display: none;
}

/* ── Slide-in panel from right ───────────────────────────────────── */
.mobile-menu-panel {
  width: min(370px, 88vw);
  height: 100%;
  margin-left: auto;
  padding: 100px 24px 26px;
  background: rgba(22, 17, 13, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

/* ── Nav links ───────────────────────────────────────────────────── */
.mobile-menu-links,
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-links a,
.mobile-menu-actions a {
  color: rgba(255, 248, 241, 0.78);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-actions a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff8f1;
}

/* Active page highlight */
.mobile-menu-links a[aria-current="page"] {
  color: #fff8f1;
  background: rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--accent-soft);
  padding-left: 10px;
}

.mobile-menu-actions {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-primary {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: min(80svh, 752px);
  overflow: clip;
  background: #15110d;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 1;
}

.hero::before {
  top: 112px;
}

.hero::after {
  display: none;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-img-pos, 67% center);
  filter: saturate(0.88) contrast(0.98);
  transition: opacity 0.35s ease;
}

.hero-media img.is-swapping {
  opacity: 0.7;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 13, 10, 0.46) 0%, rgba(18, 13, 10, 0.24) 30%, rgba(18, 13, 10, 0.08) 58%, rgba(18, 13, 10, 0.16) 100%),
    linear-gradient(180deg, rgba(18, 13, 10, 0.22) 0%, rgba(18, 13, 10, 0.08) 34%, rgba(18, 13, 10, 0.18) 100%);
}

body[data-home-variant="1"] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 14, 10, 0.5) 0%, rgba(16, 14, 10, 0.22) 30%, rgba(16, 14, 10, 0.08) 58%, rgba(24, 21, 16, 0.18) 100%),
    linear-gradient(180deg, rgba(39, 39, 27, 0.24) 0%, rgba(18, 13, 10, 0.08) 34%, rgba(18, 13, 10, 0.2) 100%);
}

body[data-home-variant="2"] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(21, 13, 11, 0.48) 0%, rgba(21, 13, 11, 0.24) 30%, rgba(21, 13, 11, 0.08) 58%, rgba(21, 13, 11, 0.16) 100%),
    linear-gradient(180deg, rgba(73, 45, 24, 0.16) 0%, rgba(18, 13, 10, 0.08) 34%, rgba(18, 13, 10, 0.22) 100%);
}

body[data-home-variant="3"] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 12, 9, 0.5) 0%, rgba(16, 12, 9, 0.24) 30%, rgba(16, 12, 9, 0.08) 58%, rgba(16, 12, 9, 0.14) 100%),
    linear-gradient(180deg, rgba(24, 48, 42, 0.14) 0%, rgba(18, 13, 10, 0.08) 34%, rgba(18, 13, 10, 0.18) 100%);
}

.hero-line {
  position: absolute;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 1;
}

.hero-line-top {
  top: 0;
  right: clamp(248px, 17vw, 322px);
  height: 112px;
}

.hero-line-bottom {
  display: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-height: min(80svh, 752px);
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 181px 0 208px;
}

.hero-copy {
  position: relative;
  isolation: isolate;
  max-width: 560px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -28px -28px -24px -28px;
  z-index: -1;
  border-radius: 30px;
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(18, 13, 10, 0.56) 0%, rgba(18, 13, 10, 0.34) 48%, rgba(18, 13, 10, 0.08) 100%);
}

.hero-intro {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(248, 243, 237, 0.88);
}

.hero h1 {
  margin: 0;
  max-width: 9ch;
  font-family: "Fraunces", serif;
  font-size: clamp(2.95rem, 5vw, 4.9rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-accent {
  margin: 18px 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--accent-soft);
}

.hero-lead {
  max-width: 450px;
  margin: 16px 0 0;
  font-size: 0.96rem;
  line-height: 1.66;
  color: var(--ink-soft);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-notes span {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(248, 243, 237, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  align-items: stretch;
  width: min(100%, 420px);
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-actions .button-primary,
.hero-actions .button-secondary {
  min-width: 0;
  width: 100%;
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: rgba(61, 82, 71, 0.98);
  color: #fff;
  box-shadow: var(--shadow);
}

body[data-home-variant="1"] .button-primary {
  background: rgba(76, 97, 56, 0.98);
}

body[data-home-variant="2"] .button-primary {
  background: rgba(123, 87, 52, 0.98);
}

body[data-home-variant="3"] .button-primary {
  background: rgba(58, 78, 86, 0.98);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff9f3;
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 34px rgba(24, 18, 14, 0.3);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-metrics {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metric {
  min-height: 148px;
  padding: 28px clamp(24px, 3.8vw, 74px) 32px;
  background: linear-gradient(180deg, rgba(18, 13, 10, 0) 0%, rgba(18, 13, 10, 0.12) 52%, rgba(18, 13, 10, 0.4) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  align-content: end;
  gap: 8px;
}

.hero-metric:first-child {
  border-left: 0;
}

.hero-metric-emphasis {
  background: linear-gradient(180deg, rgba(18, 13, 10, 0) 0%, rgba(18, 13, 10, 0.18) 52%, rgba(18, 13, 10, 0.52) 100%);
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(250, 244, 238, 0.72);
}

.hero-metric strong {
  max-width: 20ch;
  font-family: "Fraunces", serif;
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}


/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--footer-bg);
  color: rgba(247, 239, 232, 0.8);
  border-top: 1px solid var(--footer-line);
}

.site-footer-shell {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(180px, 0.85fr));
  align-items: start;
  gap: 28px;
  min-height: 140px;
  padding: 30px 0 34px;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-brand img {
  width: 132px;
}

.footer-brand p,
.footer-meta {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-column {
  display: grid;
  gap: 12px;
}

.footer-column-meta {
  justify-items: start;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 239, 232, 0.58);
}

.footer-links {
  display: grid;
  gap: 10px;
  justify-content: start;
}

.footer-links a,
.footer-meta a,
.footer-meta span {
  color: rgba(247, 239, 232, 0.82);
  font-size: 0.9rem;
}

.footer-meta {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.footer-copyright {
  border-top: 1px solid var(--footer-line);
  padding: 14px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(247, 239, 232, 0.45);
}

@media (max-width: 1280px) {
  .shell {
    width: min(100% - 42px, 1660px);
  }

  .site-nav {
    gap: 21px;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  }

  .hero-line-top {
    right: clamp(212px, 15vw, 268px);
  }
}

@media (max-width: 1040px) {
  .site-header-right {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header-shell {
    grid-template-columns: auto auto;
  }

  .hero::before {
    top: 118px;
  }

  .hero::after {
    bottom: auto;
    top: auto;
    display: none;
  }

  .hero-line {
    display: none;
  }

  .hero-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 138px 0 0;
  }

  .hero-copy {
    max-width: 500px;
    padding-bottom: 28px;
  }

  .hero-copy::before {
    inset: -18px -16px -18px -16px;
    border-radius: 24px;
  }

  .hero-metrics {
    position: relative;
    left: auto;
    right: auto;
    width: auto;
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-metric {
    min-height: 92px;
    padding: 22px 24px 24px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-metric:first-child {
    border-top: 0;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
  }

  .site-footer-shell {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: start;
    gap: 14px 12px;
    padding: 22px 0 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    gap: 6px;
  }

  .footer-brand p {
    display: none;
  }

  .footer-column-meta {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .shell {
    width: min(100% - 24px, 1660px);
  }

  .site-header-shell {
    min-height: 70px;
    padding-top: 0;
  }

  .site-logo img {
    width: 118px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    gap: 4px;
  }

  .menu-toggle span {
    width: 22px;
  }

  .mobile-menu-panel {
    width: min(85vw, 360px);
    padding-top: 82px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-media img {
    object-position: var(--hero-img-mobile-pos, 45% 28%);
  }

  /* Clear at top so faces are visible, dark at bottom for text readability */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(14, 10, 7, 0.0) 0%,
      rgba(14, 10, 7, 0.0) 48%,
      rgba(14, 10, 7, 0.72) 68%,
      rgba(14, 10, 7, 0.96) 100%
    );
  }

  /* Push content to sit at roughly 55% down the screen */
  .hero-shell {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: 0 0 140px;
  }

  /* Full width — no longer competing with image side by side */
  .hero-copy {
    max-width: 100%;
    padding-bottom: 0;
  }

  /* Glass panel not needed — bottom gradient handles contrast */
  .hero-copy::before {
    display: none;
  }

  /* Metrics hidden on mobile — image space is more valuable */
  .hero-metrics {
    display: none;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.68rem;
  }

  .hero-intro {
    margin-bottom: 6px;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(1.52rem, 6.5vw, 1.72rem);
    line-height: 1.0;
  }

  .hero-accent {
    margin-top: 6px;
    font-size: clamp(0.84rem, 3.6vw, 0.96rem);
    line-height: 1.1;
  }

  .hero-lead {
    max-width: 100%;
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .hero-notes {
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .hero-notes span {
    width: auto;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
  }

  .hero-actions {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px;
    margin-top: 16px;
  }

  .button-primary,
  .button-secondary,
  .mobile-primary {
    width: 100%;
    min-height: 44px;
    font-size: 0.82rem;
    padding: 0 14px;
  }

  .hero-metric {
    min-height: 74px;
    padding: 14px 14px 16px;
    gap: 4px;
  }

  .metric-label {
    font-size: 0.64rem;
    letter-spacing: 0.11em;
  }

  .hero-metric strong {
    max-width: none;
    font-size: 0.84rem;
    line-height: 1.14;
  }

  .site-footer {
    padding-top: 18px;
  }

  .site-footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: start;
  }

  .footer-brand {
    grid-column: 1 / -1;
    gap: 8px;
  }

  .footer-brand img {
    width: 112px;
  }

  .footer-column {
    gap: 8px;
  }

  .footer-column-meta {
    grid-column: 1 / -1;
  }

  .footer-links,
  .footer-meta {
    gap: 6px;
  }

  .footer-brand p,
  .footer-links a,
  .footer-meta a,
  .footer-meta span {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .footer-heading {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 480px) {
  .site-footer-shell {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column-meta {
    grid-column: auto;
  }

  .hero-copy {
    max-width: 90vw;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 7vw, 1.8rem);
  }

  .hero-notes span {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
