@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo Word';
  src: url('../fonts/archivo-var-word.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: block;
  unicode-range: U+41-42, U+49, U+4C, U+51, U+55;
}

:root {
  --sky-high: #e2edf7;
  --sky-low: #bcd7ec;
  --ink: #24211d;
  --ink-soft: rgba(36, 33, 29, .66);
  --paper: #f5f2ec;
  --sand: #ebe1d1;
  --sand-deep: #dccbb2;
  --accent: #8a6640;
  --line: rgba(36, 33, 29, .16);

  --radius: 3px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --topbar-h: 3.75rem;
  --mark-size: 2.375rem;
  --ease-quiet: cubic-bezier(.22, .61, .36, 1);

  --village: url('../img/mobile-780.webp');
  --hero-track: 100svh;
  --head-gap: 2.5vh;
  --title-size: clamp(2.375rem, 7.6vw, 8rem);
  --head-h: 17.5rem;
  --frame-top: calc(var(--topbar-h) + var(--head-gap) + var(--head-h) + 1.25rem);
  --frame-side: 6%;
  --frame-bottom: 4%;
  --frame-scale: .88;
  --frame-shift: 26%;

  --word-unit: 30vw;
  --word-open: 5;
  --word-pad-top: 0vh;
  --word-pad-bottom: 11vh;
  --word-center: 46%;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

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

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

figure,
dl,
dd,
dt,
h1,
h2,
p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: -100vw;
  top: 0;
  z-index: 99;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  left: 0;
}

.topbar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--topbar-h);
  padding-top: env(safe-area-inset-top);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  border-bottom: 1px solid rgba(36, 33, 29, .07);
}

.topbar::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(245, 242, 236, .86);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar::before {
    background: var(--paper);
  }
}

.on-dark {
  --ink: #f5f2ec;
  --paper: #24211d;
  --ink-soft: rgba(245, 242, 236, .7);
  --line: rgba(245, 242, 236, .2);
  --accent: #c9a97d;
  background: var(--paper);
  color: var(--ink);
}

.on-sand {
  --paper: var(--sand);
  background: var(--paper);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand__mark {
  flex: none;
  width: var(--mark-size);
  height: var(--mark-size);
  background-color: currentColor;
  -webkit-mask: url('../img/logo-mark.svg') no-repeat center / contain;
  mask: url('../img/logo-mark.svg') no-repeat center / contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  line-height: 1.05;
}

.brand__name {
  font-size: 1.1875rem;
}

.brand__suffix {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.topbar__nav {
  display: none;
  gap: 2rem;
  font-size: .9375rem;
  font-weight: 500;
}

.topbar__nav a {
  position: relative;
  padding-block: .5rem;
}

.topbar__nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 .25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-quiet);
}

.topbar__nav a:hover::after {
  transform: scaleX(1);
}

.topbar__side {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar__side > .btn {
  display: none;
}

.topbar__phone {
  display: none;
  font-size: .9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.625rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .35s var(--ease-quiet);
}

.btn--sm {
  min-height: 2.5rem;
  padding: .5rem 1.125rem;
  font-size: .875rem;
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.btn--solid:hover {
  background: var(--accent);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
}

.link::after {
  content: '';
  width: .5rem;
  height: .5rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .35s var(--ease-quiet);
}

.link:hover::after {
  transform: rotate(45deg) translate(2px, -2px);
}

.hero {
  position: relative;
  height: var(--hero-track);
}

.hero__viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero__sky {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(120% 62% at 50% 0%, var(--sky-high), transparent 68%),
    linear-gradient(180deg, var(--sky-high) 0%, var(--sky-low) 100%);
}

.hero__sky::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(150% 46% at 50% var(--word-center), rgba(255, 255, 255, .5), transparent 72%),
    linear-gradient(180deg, rgba(168, 203, 230, .5) 0%, rgba(198, 222, 240, .42) 46%, rgba(140, 178, 208, .45) 100%);
}

.hero__media {
  position: absolute;
  z-index: 2;
  inset: 0;
  clip-path: inset(0 round 0);
  will-change: clip-path;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  will-change: transform;
}

.hero__word {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: var(--word-pad-top) var(--word-pad-bottom);
  font-family: 'Archivo Word', 'Manrope', system-ui, sans-serif;
  font-weight: 900;
  font-stretch: 76%;
  font-size: var(--word-unit);
  line-height: .8;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: transparent;
  background-image: var(--village);
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(36, 33, 29, 0);
  pointer-events: none;
  user-select: none;
}

.hero__word span {
  flex: none;
  margin-right: -.03em;
}

.hero__media picture {
  display: contents;
}

.hero__head {
  position: absolute;
  z-index: 4;
  inset: calc(var(--topbar-h) + var(--head-gap)) var(--gutter) auto;
  will-change: transform, opacity;
}

.hero__eyebrow {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__title {
  margin-top: .75rem;
  font-size: var(--title-size);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.038em;
  text-wrap: balance;
}

.hero__sub {
  max-width: 24rem;
  font-size: clamp(.9375rem, 3.2vw, 1.0625rem);
  color: var(--ink-soft);
}

.hero__aside {
  margin-top: 1.25rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  margin-top: 1.25rem;
}

.hero__caption {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  padding: 0 var(--gutter) calc(1.75rem + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--ink);
  opacity: 0;
}

.hero__villages {
  font-size: clamp(1.125rem, 4.6vw, 1.75rem);
  font-weight: 300;
  letter-spacing: .02em;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.hero__fact {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .8125rem;
}

.hero__fact dt {
  color: var(--ink-soft);
}

.hero__fact dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.manifest {
  position: relative;
  z-index: 5;
  padding: clamp(4.5rem, 14vh, 10rem) var(--gutter);
  background: var(--paper);
}

.manifest__title {
  max-width: 24ch;
  font-size: clamp(2.25rem, 8vw, 5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.manifest__body {
  display: grid;
  gap: 1.125rem;
  margin-top: 2.5rem;
  max-width: 46rem;
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  color: var(--ink-soft);
}

.manifest__specs {
  display: grid;
  column-gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.manifest__spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line);
}

.manifest__spec dt {
  font-size: .875rem;
  color: var(--ink-soft);
}

.manifest__spec dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 639px) and (max-height: 730px) {
  :root {
    --topbar-h: 3.5rem;
    --mark-size: 2.125rem;
    --head-gap: 1.25vh;
    --title-size: 1.875rem;
    --head-h: 16.75rem;
    --frame-side: 5%;
    --frame-bottom: 4%;
    --frame-scale: .9;
    --frame-shift: 33%;
  }

  .hero__title {
    margin-top: .625rem;
  }

  .hero__sub {
    margin-top: .5rem;
    font-size: .8125rem;
  }

  .hero__actions {
    margin-top: .875rem;
  }

  .btn {
    min-height: 2.75rem;
  }
}

@media (min-width: 640px) {
  :root {
    --village: url('../img/village-1000.webp');
    --head-h: 14.5rem;
    --frame-side: 12%;
    --frame-bottom: 8%;
    --frame-scale: .78;
    --frame-shift: 2%;
    --word-unit: 21vw;
    --word-open: 6;
    --word-pad-top: 8vh;
    --word-pad-bottom: 0vh;
    --word-center: 54%;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  :root {
    --topbar-h: 4.5rem;
    --mark-size: 3rem;
    --head-h: 15.5rem;
    --frame-side: 17%;
    --frame-bottom: 8%;
    --frame-scale: .68;
    --frame-shift: 0%;
  }

  .topbar__phone {
    display: block;
  }

  .manifest {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
  }

  .manifest__body {
    margin-top: .625rem;
  }

  .manifest__specs {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 0;
  }

  .manifest__spec {
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 900px) {
  :root {
    --village: url('../img/village-1400.webp');
    --head-h: calc(2.75rem + 1.96 * var(--title-size));
    --frame-side: 10%;
    --frame-bottom: 6%;
    --frame-scale: .8;
    --word-unit: 18.6vw;
    --word-open: 7;
    --word-pad-top: 6vh;
    --word-pad-bottom: 0vh;
    --word-center: 52%;
  }

  .hero__lede {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4.5rem);
    align-items: end;
  }

  .hero__aside {
    margin-top: 0;
    padding-bottom: .5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .hero__word {
    flex-direction: row;
  }

  .hero__word span:first-child {
    margin-right: 0;
  }

  .hero__caption {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
    padding-bottom: calc(2.25rem + env(safe-area-inset-bottom));
  }

  .hero__facts {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    gap: 2.75rem;
  }

  .hero__fact {
    flex-direction: column;
    gap: .25rem;
  }
}

@media (min-width: 1000px) {
  .topbar__nav {
    display: flex;
  }

  .topbar__side > .btn {
    display: inline-flex;
  }

  .menu {
    display: none;
  }
}

@media (min-width: 1500px) {
  :root {
    --village: url('../img/village-1672.webp');
  }
}

@supports not (animation-timeline: view()) {
  .hero__head::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -6vh -100vw -4vh;
    background: linear-gradient(180deg, rgba(226, 237, 247, .95) 0%, rgba(226, 237, 247, .8) 62%, rgba(226, 237, 247, 0) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__head::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -6vh -100vw -4vh;
    background: linear-gradient(180deg, rgba(226, 237, 247, .95) 0%, rgba(226, 237, 247, .8) 62%, rgba(226, 237, 247, 0) 100%);
  }
}

@keyframes hero-frame-open {
  0% {
    clip-path: inset(var(--frame-top) var(--frame-side) var(--frame-bottom) var(--frame-side) round var(--radius));
    opacity: 1;
  }
  42%,
  66% {
    clip-path: inset(0% 0% 0% 0% round 0);
    opacity: 1;
  }
  80%,
  100% {
    clip-path: inset(0% 0% 0% 0% round 0);
    opacity: 0;
  }
}

@keyframes hero-image-grow {
  0% {
    transform: translateY(var(--frame-shift)) scale(var(--frame-scale));
  }
  42%,
  100% {
    transform: translateY(0%) scale(1);
  }
}

@keyframes hero-word-collapse {
  0%,
  42% {
    opacity: 0;
    font-size: calc(var(--word-unit) * var(--word-open));
    -webkit-text-stroke-color: rgba(36, 33, 29, 0);
    -webkit-text-fill-color: rgba(245, 242, 236, .82);
  }
  46% {
    opacity: 1;
    font-size: calc(var(--word-unit) * var(--word-open) * .94);
    -webkit-text-stroke-color: rgba(36, 33, 29, .3);
    -webkit-text-fill-color: rgba(245, 242, 236, .82);
  }
  58% {
    -webkit-text-fill-color: rgba(245, 242, 236, .82);
  }
  66% {
    opacity: 1;
    font-size: calc(var(--word-unit) * var(--word-open) * .3);
    -webkit-text-stroke-color: rgba(36, 33, 29, .3);
  }
  72% {
    -webkit-text-fill-color: rgba(245, 242, 236, 0);
  }
  82% {
    opacity: 1;
    font-size: var(--word-unit);
    -webkit-text-stroke-color: rgba(36, 33, 29, 0);
  }
  100% {
    opacity: 1;
    font-size: var(--word-unit);
  }
}

@keyframes hero-sky-deepen {
  0%,
  54% {
    opacity: 0;
  }
  82%,
  100% {
    opacity: 1;
  }
}

@keyframes hero-caption-enter {
  0%,
  80% {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  90%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-head-leave {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  26%,
  100% {
    opacity: 0;
    transform: translate3d(0, -2.25rem, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero {
    height: 100svh;
  }

  .hero__viewport {
    position: relative;
  }

  .topbar__nav a::after,
  .btn,
  .link::after {
    transition: none;
  }

  @supports (animation-timeline: view()) {
    .hero__head,
    .hero__media,
    .hero__media img,
    .hero__word,
    .hero__caption,
    .hero__sky::after {
      animation: none;
    }

    .hero__word {
      display: none;
    }
  }
}
