:root {
  --olive-900: #2F2C1A;
  --sage: #CCCAA8;
  --cocoa: #4A2A19;
  --cream: #F9EEE1;
  --bronze: #856138;
  --sand: #F2D3B6;
  --amber: #CA7001;
  --terracotta: #96543D;
  --rust: #B85822;
  --espresso: #3F1609;
  --night: #1E1210;
  --logo: #61442F;
  --paper: #FBF8F3;
  --ink: #2A1A12;
  --ink-soft: rgba(42, 26, 18, .68);
  --line: rgba(97, 68, 47, .22);

  --font-display: "Nocken", "Lexend", system-ui, sans-serif;
  --font-body: "Guton", "Lexend", system-ui, sans-serif;
  --font-accent: "Afjat Trends", "Cormorant Garamond", Georgia, serif;

  --fs-eyebrow: .6875rem;
  --fs-body: clamp(.9375rem, .9rem + .2vw, 1.0625rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --fs-h2: clamp(2.375rem, 1.6rem + 3.6vw, 4.75rem);
  --fs-hero: clamp(3.4rem, 2rem + 7vw, 8.5rem);

  --gutter: 20px;
  --radius: 4px;
  --radius-lg: 14px;
  --header-h: 64px;
  --section: clamp(5rem, 3.5rem + 7vw, 10rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --dur: .6s;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body::after {
  content: "";
  position: fixed;
  inset: -100%;
  z-index: 300;
  pointer-events: none;
  background: url("../img/grain.png") repeat;
  background-size: 200px;
  opacity: .32;
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); }
  100% { transform: translate(-4%, -5%); }
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, blockquote, dl, dd { margin: 0; }

:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }

::selection { background: var(--cocoa); color: var(--cream); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.logo { fill: currentColor; width: 100%; height: auto; aspect-ratio: 778.88 / 77.98; }

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: .5625rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
.tagline i { display: block; width: 3.4em; height: 1px; background: currentColor; opacity: .7; }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--bronze);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.h2 em, .hero__title em, .cta__title em {
  display: inline;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--bronze);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.body { color: var(--ink-soft); max-width: 34em; }

.grain { position: relative; overflow: hidden; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: url("../img/grain.png") repeat;
  background-size: 140px;
  opacity: .55;
  mix-blend-mode: overlay;
}
.grain img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  min-height: 52px;
  padding: 0 1.9em;
  border-radius: 999px;
  background: var(--cocoa);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--bronze);
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 40px; padding: 0 1.3em; font-size: .625rem; }
.btn--light { background: var(--cream); color: var(--cocoa); }
.btn--light::before { background: var(--sand); }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid rgba(249, 238, 225, .45); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--cocoa); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-block: .6em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.link-arrow::after { content: "↓"; font-family: var(--font-body); transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow:hover::after { transform: translateY(3px); }

.pattern-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  fill: var(--logo);
  opacity: .1;
  pointer-events: none;
}
.pattern-bg--light { fill: var(--cream); opacity: .07; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: var(--gutter);
  color: var(--cocoa);
  transition: transform .7s var(--ease-out), background-color .5s, backdrop-filter .5s, color .5s;
}
.header.is-scrolled {
  background: rgba(251, 248, 243, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__logo { width: 118px; margin-right: auto; }
.header__nav { display: none; }
.header__cta { display: none; }

.burger {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 7px;
  z-index: 2;
}
.burger span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .6s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-open .header { color: var(--cream); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 40px) var(--gutter) 32px;
  background: var(--night);
  color: var(--cream);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__pattern { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; fill: var(--cream); opacity: .06; }
.menu__nav { position: relative; display: grid; gap: 6px; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-accent);
  font-weight: 300;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), color .3s;
}
.menu__nav a small { font-family: var(--font-display); font-size: .625rem; letter-spacing: .2em; color: var(--sand); opacity: .7; }
.menu__nav a:hover { color: var(--sand); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .31s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .37s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .43s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .49s; }
.menu__foot { position: relative; display: grid; gap: 6px; font-size: .875rem; color: rgba(249, 238, 225, .7); }
.menu__foot a { color: var(--cream); font-family: var(--font-display); letter-spacing: .06em; }

.preloader { display: none; }
.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--cream);
  animation: preloader-failsafe .01s 7s forwards;
}
@keyframes preloader-failsafe { to { visibility: hidden; opacity: 0; } }
.preloader__inner { width: min(72vw, 520px); display: grid; gap: 18px; }
.preloader__logo { fill: var(--cream); overflow: hidden; }
.preloader__tag { display: flex; align-items: center; justify-content: center; gap: .9em; font-family: var(--font-display); font-weight: 300; font-size: .625rem; letter-spacing: .06em; color: var(--sand); }
.preloader__tag i { display: block; width: 4em; height: 1px; background: currentColor; }
.preloader__count {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  font-family: var(--font-accent);
  font-weight: 300;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--sand);
}

.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(30, 18, 16, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: .6875rem;
  letter-spacing: .08em;
  transform: translateY(160%);
  transition: transform .8s var(--ease-out);
}
.sticky-cta span { opacity: .75; }
.sticky-cta b {
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .625rem;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--cocoa);
}
.sticky-cta.is-visible { transform: none; }

.motion [data-reveal]:not([data-reveal="img"]) { opacity: 0; transform: translateY(28px); }
.motion [data-reveal="img"] { clip-path: inset(100% 0 0 0); }
.motion [data-split] { visibility: hidden; }
.motion [data-split].is-split { visibility: visible; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.sw > span { display: inline-block; will-change: transform; }

.manifest__text .mw { transition: none; }

@media (min-width: 768px) {
  :root { --gutter: 36px; --header-h: 76px; }
  .header__logo { width: 150px; }
  .header__cta { display: inline-flex; }
  .sticky-cta { left: auto; right: 24px; bottom: 24px; width: 340px; }
}

@media (min-width: 1100px) {
  :root { --gutter: 56px; }
  .burger { display: none; }
  .header__nav {
    display: flex;
    gap: 34px;
    margin-right: 28px;
    font-family: var(--font-display);
    font-size: .6875rem;
    letter-spacing: .2em;
    text-transform: uppercase;
  }
  .header__nav a { position: relative; padding-block: 6px; }
  .header__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .6s var(--ease-out);
  }
  .header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .menu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body::after { animation: none; }
}
