:root {
  --ink: #111111;
  --gold: #c9a35f;
  --sandstone: #d9ccb5;
  --ivory: #f5f1e8;
  --brown: #3b2a22;
  --header-height: 5.5rem;
  --page-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Avenir Next", Avenir, "Montserrat", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  color: var(--ivory);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease;
}

.site-header.is-scrolled {
  border-color: rgba(17, 17, 17, .09);
  background: rgba(245, 241, 232, .9);
  backdrop-filter: blur(14px);
}

.brand-logo { display: block; height: auto; object-fit: contain; }
.brand-logo--header { position: relative; z-index: 2; width: clamp(8.5rem, 13vw, 11.5rem); }
.brand-logo--header img { display: block; width: 100%; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.75rem);
}

.site-nav a {
  position: relative;
  font-size: .72rem;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  animation: opening-navigation 1.9s linear both;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -.45rem;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button { display: none; }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 3rem) var(--page-gutter) 5rem;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: -2.5%;
  background:
    linear-gradient(rgba(245, 241, 232, .5), rgba(245, 241, 232, .5)),
    url("../assets/hero-caravan.png") center 58% / cover no-repeat;
  animation: landscape-drift 9s ease-in-out infinite alternate;
  content: "";
  transform-origin: center 65%;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    repeating-radial-gradient(ellipse at 2% 45%, transparent 0 5rem, rgba(59, 42, 34, .045) 5.06rem, transparent 5.13rem 8.4rem),
    repeating-radial-gradient(ellipse at 102% 66%, transparent 0 6.5rem, rgba(201, 163, 95, .06) 6.56rem, transparent 6.64rem 10rem),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='.095'/%3E%3C/svg%3E");
  opacity: .68;
  mix-blend-mode: multiply;
  content: "";
  pointer-events: none;
}

.hero__dust {
  position: absolute;
  z-index: 0;
  right: -18%;
  bottom: 3%;
  left: -18%;
  height: 28%;
  opacity: .24;
  background:
    radial-gradient(ellipse at 18% 62%, rgba(245, 241, 232, .78) 0 5%, transparent 24%),
    radial-gradient(ellipse at 38% 48%, rgba(226, 207, 174, .7) 0 4%, transparent 22%),
    radial-gradient(ellipse at 66% 68%, rgba(245, 241, 232, .55) 0 4%, transparent 25%);
  filter: blur(15px);
  animation: dust-drift 8s linear infinite;
  pointer-events: none;
}

.hero__portal {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 244, 217, .4), transparent 34%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cfilter id='stone'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.38 .7' numOctaves='4' seed='6' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23stone)' opacity='.16'/%3E%3C/svg%3E"),
    linear-gradient(
      145deg,
      rgba(214, 200, 175, .84),
      rgba(197, 178, 148, .82) 55%,
      rgba(173, 149, 117, .86)
    );
  animation: portal-dissolve 1.8s ease-in-out forwards;
  pointer-events: none;
}

.hero__portal::after {
  position: absolute;
  top: calc(50% + 4.4rem);
  left: 50%;
  width: 5.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brown), transparent);
  content: "";
  transform: translateX(-50%) scaleX(0);
  animation: loading-line 1.55s .1s var(--ease) both;
}

.hero__portal-pattern {
  position: absolute;
  inset: 0;
  opacity: .16;
  background:
    repeating-linear-gradient(60deg, transparent 0 5rem, rgba(201, 163, 95, .14) 5.05rem 5.1rem),
    repeating-linear-gradient(-60deg, transparent 0 5rem, rgba(201, 163, 95, .1) 5.05rem 5.1rem);
}

.hero__portal-glow {
  display: none;
}

.hero__portal-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(4.75rem, 7vw, 6.25rem);
  height: auto;
  filter:
    drop-shadow(0 .15rem .05rem rgba(255, 239, 198, .45))
    drop-shadow(0 1.8rem 2.8rem rgba(42, 27, 18, .28));
  transform: translate(-50%, -50%) scale(.88);
  transform-origin: center;
  animation: loading-mark 1.65s ease-in-out both;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(44vw, 23rem);
  margin-top: 1vh;
  text-align: center;
  opacity: 0;
  animation: reveal-hero .75s 1.75s var(--ease) forwards;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--brown);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.brand-logo--hero {
  width: 100%;
  margin: 0 auto;
  filter:
    drop-shadow(0 1px 0 rgba(255, 251, 239, .78))
    drop-shadow(0 .65rem 1.25rem rgba(59, 42, 34, .14));
}

.hero__message {
  width: fit-content;
  max-width: 100%;
  margin: 1.4rem auto 0;
}

.hero__introduction {
  max-width: 36rem;
  margin: 0 auto;
  color: rgba(17, 17, 17, .78);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  text-shadow: 0 1px 1rem rgba(245, 241, 232, .8);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding: .65rem .9rem;
  border: 1px solid rgba(59, 42, 34, .55);
  color: var(--brown);
  background: rgba(245, 241, 232, .58);
  backdrop-filter: blur(5px);
  font-size: .7rem;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s ease, background-color .25s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ivory);
  border-color: var(--brown);
  background: var(--gold);
}

.hero__note {
  position: absolute;
  right: var(--page-gutter);
  bottom: 2rem;
  margin: 0;
  color: rgba(17, 17, 17, .56);
  font-size: .67rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.content-section {
  min-height: 68vh;
  padding: clamp(6rem, 12vw, 11rem) var(--page-gutter);
}

.content-section__inner {
  max-width: 49rem;
  margin: 0 auto;
}

.content-section h2 {
  margin: 0 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
}

.content-section p:not(.eyebrow) {
  color: rgba(17, 17, 17, .66);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.section-copy {
  display: grid;
  gap: 1.15rem;
  max-width: 45rem;
}

.section-copy p {
  margin: 0;
}

.section-copy p:first-child {
  color: rgba(17, 17, 17, .82);
}

.content-section--dark { color: var(--ivory); background: var(--brown); }
.content-section--dark .eyebrow,
.content-section--dark p:not(.eyebrow) { color: var(--sandstone); }

.content-section--dark .section-copy p:first-child {
  color: var(--ivory);
}

.site-footer {
  display: flex;
  min-height: 10rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem var(--page-gutter);
  color: var(--ivory);
  background: var(--ink);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand-logo--footer { width: clamp(10rem, 18vw, 15rem); }

@keyframes reveal {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes approach-logo {
  from {
    opacity: .52;
    transform: scale(.62);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loading-mark {
  0% { opacity: .25; transform: translate(-50%, -50%) scale(.84); }
  42% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  72% { opacity: 1; transform: translate(-50%, -50%) scale(.96); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes loading-line {
  0% { opacity: 0; transform: translateX(-50%) scaleX(0); }
  22% { opacity: .7; }
  75% { opacity: .7; transform: translateX(-50%) scaleX(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleX(1); }
}

@keyframes portal-dissolve {
  0%, 72% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes reveal-hero {
  from { opacity: 0; transform: translateY(.8rem) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes landscape-drift {
  from { transform: translate3d(-2.4%, .25%, 0) scale(1.01); }
  to { transform: translate3d(2.4%, -.7%, 0) scale(1.065); }
}

@keyframes dust-drift {
  0% { opacity: .2; transform: translate3d(-5%, 0, 0) scale(1); }
  48% { opacity: .36; }
  100% { opacity: .18; transform: translate3d(9%, -7%, 0) scale(1.1); }
}

@keyframes landscape-drift-mobile {
  from {
    background-position: center, 18% 58%;
    transform: translate3d(-1.5%, .2%, 0) scale(1.02);
  }
  to {
    background-position: center, 31% 58%;
    transform: translate3d(1.5%, -.65%, 0) scale(1.075);
  }
}

@keyframes opening-navigation {
  0%, 88% { color: var(--brown); }
  100% { color: var(--ink); }
}

@media (max-width: 760px) {
  :root { --header-height: 4.75rem; }

  .menu-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
    border: 0;
    color: inherit;
    background: transparent;
  }

  .menu-button__label {
    font-size: .65rem;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .menu-button__lines,
  .menu-button__lines::before {
    display: block;
    width: 1.25rem;
    height: 1px;
    background: currentColor;
    content: "";
  }

  .menu-button__lines::before { transform: translateY(-.35rem); }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    visibility: hidden;
    background: var(--ivory);
    opacity: 0;
    transition: opacity .3s ease, visibility .3s;
  }

  .site-nav.is-open { visibility: visible; opacity: 1; }
  .site-nav a { font-size: .85rem; }
  .brand-logo--header { width: 8.5rem; }
  .hero::before {
    background-position: center, 24% 58%;
    animation: landscape-drift-mobile 7.5s ease-in-out infinite alternate;
  }
  .hero__dust {
    height: 34%;
    opacity: .3;
    animation-duration: 6.5s;
  }
  .hero__content { width: min(76vw, 19rem); margin-top: -1rem; }
  .hero__message { width: min(100%, 22rem); }
  .hero__note { right: auto; left: 50%; width: 100%; text-align: center; transform: translateX(-50%); }
  .site-footer { flex-direction: column; align-items: flex-start; }

}

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

  .hero__portal { visibility: hidden; opacity: 0; }
  .hero::before,
  .hero__dust { animation: none; }
  .hero__content { opacity: 1; }
  .brand-logo--hero { opacity: 1; transform: none; }
  .site-nav a { animation: none; }
}
