@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --sans: "Space Grotesk", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --poster: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.5 var(--sans);
}

h1, h2, p, ul, ol { margin: 0; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.page-width {
  width: min(100% - 2 * var(--gutter), var(--page-max, 1440px));
  margin-inline: auto;
}

.site-header {
  min-height: var(--header-height, 82px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.26rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--mark-bg, #10110f);
  color: var(--mark-ink, white);
}

.brand-mark svg { width: 28px; display: block; }

.home-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .87rem;
  line-height: 1;
  min-height: 44px;
  white-space: nowrap;
}

.home-link svg, .scroll-link svg, .contact-copy svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  transition: transform .45s var(--ease);
}

.home-link:hover svg { transform: translateX(-4px); }
.hero { position: relative; isolation: isolate; }

.hero-inner { position: relative; }

.hero-copy { position: relative; z-index: 1; pointer-events: none; }
.hero-lead, .offer { pointer-events: auto; }

.hero-lead { font-size: 1rem; font-weight: 500; }
.offer-list { padding: 0; list-style: none; }

.scroll-link {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
}

.scroll-link:hover svg { transform: translateY(3px); }

.contact-copy > span { display: block; }

.contact-copy a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-copy a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.2em;
  height: 1px;
  background: currentColor;
  transform: scaleX(.15);
  transform-origin: left;
  transition: transform .55s var(--ease);
  content: "";
}

.contact-copy a:hover::after, .contact-copy a:focus-visible::after { transform: scaleX(1); }
.contact-copy a:hover svg { transform: translate(3px, -3px); }

@keyframes enter {
  from { opacity: 0; translate: 0 var(--entrance-shift, 19px); }
  to { opacity: 1; translate: 0 0; }
}

@keyframes unfurl {
  from { opacity: 0; clip-path: inset(0 0 100% 0); translate: 0 .24em; }
  to { opacity: 1; clip-path: inset(-10% -4% -20% -4%); translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header { animation: enter .8s var(--ease) both; }
  .hero-lead { animation: enter .9s .07s var(--ease) both; }
  .offer { animation: unfurl .95s var(--ease) both; }
  .offer:nth-child(1) { animation-delay: .12s; }
  .offer:nth-child(2) { animation-delay: .24s; }
  .offer:nth-child(3) { animation-delay: .36s; }
  .scroll-link { animation: enter .95s .5s var(--ease) both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
