:root {
  --paper: #ece7dd;
  --paper-deep: #e2dccf;
  --ink: #1b211c;
  --muted: #5f665e;
  --accent: #b04a2f;
  --line: rgba(27, 33, 28, 0.18);
  --line-soft: rgba(27, 33, 28, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

.top {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line-soft);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.mark-arch {
  display: inline-block;
  width: 24px;
  height: 32px;
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 25% 25% 0 0;
}

.top-note {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(36px, 7vh, 96px) clamp(20px, 5vw, 64px) clamp(48px, 8vh, 110px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.55;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 30% 45%, #000 20%, transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26vh;
  z-index: -1;
  background: linear-gradient(to top, var(--paper) 8%, transparent);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 14.2vw, 196px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.8;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h1 .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
}

.lead {
  max-width: 33ch;
  margin: clamp(24px, 4vh, 42px) 0 clamp(28px, 5vh, 48px);
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 17px 28px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cta span {
  font-size: 17px;
  line-height: 0;
  transition: transform 180ms ease;
}

.cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cta:hover span {
  transform: translateX(4px);
}

.hero-arch {
  position: absolute;
  right: clamp(-160px, -6vw, -20px);
  bottom: -14vh;
  z-index: 0;
  width: min(52vw, 660px);
  aspect-ratio: 1 / 2;
  pointer-events: none;
}

.arch {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 25% 25% 0 0;
  transform-origin: 50% 100%;
  animation: arch-in 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.arch-1 {
  inset: 0;
  opacity: 0.9;
}

.arch-2 {
  inset: 9% 9% 0;
  opacity: 0.62;
  animation-delay: 90ms;
}

.arch-3 {
  inset: 18% 18% 0;
  opacity: 0.4;
  animation-delay: 180ms;
}

.foot {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.foot a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes arch-in {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(28px);
  }
  to {
    transform: none;
  }
}

@media (max-width: 760px) {
  .top {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .top-note {
    display: none;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 64px;
  }

  .hero-arch {
    right: -42vw;
    bottom: -4vh;
    width: 104vw;
    opacity: 0.7;
  }

  .lead {
    max-width: 30ch;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

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