:root {
  --ink: #fffaf7;
  --muted: rgba(255, 250, 247, 0.8);
  --soft: rgba(255, 250, 247, 0.64);
  --panel: rgba(43, 35, 32, 0.42);
  --panel-strong: rgba(43, 35, 32, 0.62);
  --line: rgba(239, 230, 220, 0.28);
  --accent: #f2a65a;
  --accent-deep: #d98736;
  --accent-ink: #2b2320;
  --clay: #a9685b;
  --clay-deep: #8e5040;
  --cream: #fbf6f1;
  --focus: #f2a65a;
  --site-width: min(1240px, calc(100% - 2rem));
  --header-chip-height: 3rem;
  --font-ui: "SF Pro Rounded", "SF Pro Display", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "SF Pro Display", "SF Pro Rounded", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #2b2320;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: #2b2320;
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 0.75rem 1rem;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(rgba(43, 35, 32, 0.1), rgba(43, 35, 32, 0.1)),
    url("assets/hero-poster.jpg") center / cover no-repeat,
    linear-gradient(135deg, #2b2320 0%, #5b4038 48%, #1e1816 100%);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-shell::before {
  background:
    linear-gradient(90deg, rgba(43, 35, 32, 0.78), rgba(43, 35, 32, 0.32) 52%, rgba(43, 35, 32, 0.62)),
    linear-gradient(180deg, rgba(43, 35, 32, 0.74), rgba(43, 35, 32, 0.16) 46%, rgba(43, 35, 32, 0.74));
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.02) contrast(1.03) sepia(0.08);
  transition: opacity 700ms ease;
}

.video-ready .hero-video {
  opacity: 1;
}

.video-error .hero-video,
.reduced-motion .hero-video {
  display: none;
}

.site-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: var(--site-width);
  margin: 0 auto;
  padding: 1rem 0;
}

.brand,
.nav-links,
.header-cta {
  height: var(--header-chip-height);
  min-height: var(--header-chip-height);
  border: 1px solid var(--line);
  background: rgba(255, 250, 247, 0.12);
  box-shadow: 0 24px 80px rgba(43, 35, 32, 0.28);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0 1rem 0 0.72rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-word {
  display: inline-block;
  line-height: 1;
}

.nav-links {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 0.15rem;
  border-radius: 999px;
  padding: 0.25rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  height: calc(var(--header-chip-height) - 0.5rem);
  border-radius: 999px;
  padding: 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 250, 247, 0.14);
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1rem;
  background: rgba(255, 250, 247, 0.16);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 250, 247, 0.23);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: start;
  justify-items: start;
  width: var(--site-width);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
}

.hero-panel {
  width: clamp(28rem, 40%, 34rem);
  min-width: 0;
  margin-top: clamp(5rem, 13vh, 9rem);
  border-radius: 8px;
  border: 0;
  padding: clamp(1rem, 2.15vw, 2rem);
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(43, 35, 32, 0.25);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: clamp(0.76rem, 0.85vw, 0.86rem);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3vw, 3.55rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: none;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3rem;
  border-radius: 999px;
  padding: 0.75rem 1rem 0.75rem 1.15rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--accent-ink);
  font-weight: 900;
  box-shadow: 0 20px 50px rgba(169, 104, 91, 0.34);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 58px rgba(169, 104, 91, 0.42);
}

.cta-arrow {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(43, 35, 32, 0.12);
  font-size: 1rem;
  line-height: 1;
}

.microcopy {
  max-width: 10rem;
  margin: 0;
  color: var(--soft);
  font-size: 0.85rem;
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-video {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-chip-height: 2.75rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding-top: 0.75rem;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    justify-content: center;
    order: 3;
  }

  .nav-links a {
    flex: 0 0 auto;
    text-align: center;
  }

  .header-cta {
    padding-inline: 0.9rem;
  }

  .hero {
    align-items: center;
    min-height: 0;
    padding: 0 0.5rem;
  }

  .hero-panel {
    width: 100%;
    min-width: 0;
    margin-top: 0;
    background: var(--panel-strong);
  }

  h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .hero-actions {
    align-items: stretch;
  }

  .primary-cta {
    width: 100%;
  }

  .microcopy {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .page-shell {
    height: 100dvh;
    min-height: 100dvh;
  }

  .site-header,
  .hero {
    width: 100%;
  }

  .brand {
    padding-right: 0.5rem;
  }

  .header-cta {
    font-size: 0.86rem;
  }

  .hero-panel {
    padding: 1.1rem;
  }
}
