:root {
  --ink: #18201b;
  --muted: #5d675f;
  --paper: #fbfaf5;
  --paper-strong: #f3efe6;
  --leaf: #2f6b4f;
  --clay: #b7553f;
  --line: rgba(24, 32, 27, 0.14);
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.solid {
  color: var(--ink);
  background: rgba(251, 250, 245, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--ink);
  background: var(--white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.site-header.scrolled .brand-mark,
.site-header.solid .brand-mark {
  color: var(--white);
  background: var(--leaf);
}

.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: clamp(14px, 3vw, 28px);
  font-size: 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

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

.hero-media {
  z-index: -2;
  background-image: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=2200&q=82");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  animation: heroDrift 14s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 14, 12, 0.9) 0%, rgba(9, 14, 12, 0.66) 45%, rgba(9, 14, 12, 0.28) 100%),
    linear-gradient(0deg, rgba(9, 14, 12, 0.84) 0%, rgba(9, 14, 12, 0.44) 55%, rgba(9, 14, 12, 0.2) 100%);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 7vw, 112px) clamp(48px, 12vh, 112px);
  animation: riseIn 680ms ease both;
}

.kicker {
  margin: 0 0 14px;
  color: #f6c1a7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(54px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 253, 248, 0.88);
  font-size: clamp(18px, 2.1vw, 25px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--ink);
  background: var(--white);
}

.hero-note {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: flex-start;
  gap: 28px;
  padding: 34px clamp(18px, 6vw, 96px);
  color: var(--white);
  background: #111713;
  border-top: 1px solid rgba(255, 253, 248, 0.08);
}

.site-footer p {
  max-width: 520px;
  margin: 8px 0 0;
  color: rgba(255, 253, 248, 0.68);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
  gap: 18px;
  font-weight: 800;
}

.plain-page .site-header {
  position: sticky;
}

.legal {
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) 0;
}

.legal .kicker {
  color: var(--clay);
}

.legal h1 {
  color: var(--ink);
  font-size: clamp(46px, 7vw, 92px);
}

.legal h2 {
  margin-top: 42px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 17px;
}

.legal a {
  color: var(--leaf);
  font-weight: 800;
}

.legal-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

@keyframes heroDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-nav {
    display: none;
  }

  .hero-content {
    margin-bottom: 42px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 76px);
  }

  .button {
    width: 100%;
  }

  .site-footer,
  .contact-layout {
    display: grid;
  }

  .site-footer nav {
    margin-left: 0;
  }
}
