@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/syne-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --bg: #0a0708;
  --ink: #141012;
  --ink-2: #1c1518;
  --wine: #7c0023;
  --wine-deep: #4a0015;
  --blood: #9a002c;
  --bone: #d8c8ac;
  --bone-soft: #cbbba2;
  --moon: #a58b62;
  --line: rgba(216, 200, 172, 0.16);
  --line-strong: rgba(216, 200, 172, 0.32);
  --header: 4.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.2rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(124, 0, 35, 0.28), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(165, 139, 98, 0.08), transparent 55%),
    var(--bg);
  color: var(--bone);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--bone);
}

:focus-visible {
  outline: 2px solid var(--moon);
  outline-offset: 3px;
}

::selection {
  background: var(--wine);
  color: var(--bone);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--bone);
  color: var(--bg);
  border-radius: 999px;
}

.skip:focus {
  top: 0.8rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 -8vw;
  background: rgba(10, 7, 8, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  z-index: -1;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-stuck::before {
  border-bottom-color: var(--line);
  background: rgba(10, 7, 8, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.wordmark {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wordmark span {
  color: var(--wine);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--bone-soft);
  font-size: 0.98rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--bone);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--bone);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--bone);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Syne", sans-serif;
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-wine {
  background: var(--wine);
  color: var(--bone);
}

.btn-wine:hover {
  background: var(--blood);
  color: var(--bone);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--bone);
  color: var(--bone);
  transform: translateY(-1px);
}

.hero {
  padding: 1.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: calc(100vh - var(--header) - 3rem);
}

.kicker {
  margin: 0 0 0.9rem;
  color: var(--moon);
  font-family: "Syne", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0;
}

h1 {
  display: flex;
  flex-direction: column;
  font-size: clamp(4.2rem, 9vw, 7.4rem);
}

h1 .accent {
  color: var(--wine);
}

.hero-line {
  margin: 1.35rem 0 0.7rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--bone-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.hero-mark::before {
  content: "";
  position: absolute;
  width: min(78%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 0, 44, 0.55), rgba(124, 0, 35, 0.08) 52%, transparent 70%);
  filter: blur(6px);
}

.hero-mark img {
  position: relative;
  width: min(460px, 100%);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 0.98;
}

.section-head p {
  margin: 0.9rem 0 0;
  color: var(--bone-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  padding: 1.35rem 1.35rem 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  border-color: rgba(154, 0, 44, 0.85);
  transform: translateY(-3px);
  color: var(--bone);
}

.card-kicker {
  color: var(--moon);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h3 {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.card p {
  margin: 0;
  color: var(--bone-soft);
  flex: 1;
}

.card-go {
  margin-top: 0.8rem;
  color: var(--bone);
  font-family: "Syne", sans-serif;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.card-go::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.4em;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
  vertical-align: 0.05em;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.principle {
  padding: 1.2rem 1.15rem 1.25rem;
  border-top: 2px solid var(--wine);
  background: rgba(20, 16, 18, 0.65);
  border-radius: 0 0 14px 14px;
}

.principle h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.principle p {
  margin: 0;
  color: var(--bone-soft);
}

.site-footer {
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  color: var(--bone-soft);
  font-size: 0.95rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--bone);
}

.site-footer .spacer {
  margin-left: auto;
}

.page-404 {
  min-height: calc(100vh - var(--header));
  display: grid;
  align-content: center;
  padding: 3rem 0 4rem;
}

.page-404 h1 {
  font-size: clamp(3.4rem, 8vw, 6rem);
}

.page-404 p {
  max-width: 32rem;
  color: var(--bone-soft);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    margin: 0;
    padding: 0.4rem 1.25rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: rgba(10, 7, 8, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a,
  .nav .btn {
    padding: 0.75rem 0.2rem;
    justify-content: flex-start;
  }

  .hero-grid,
  .cards,
  .principles {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
    padding-top: 1.2rem;
  }

  .hero-mark {
    order: -1;
    min-height: 0;
  }

  .hero-mark img {
    width: min(300px, 78%);
  }

  .site-footer .spacer {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .card { transition: none; }
  .btn:hover,
  .card:hover { transform: none; }
}
