:root {
  --ink: #0a0a0b;
  --gold: #deb868;
  --gold-bright: #f8e7a0;
  --ivory: #ede9e2;
  --muted: #8a8578;
  --hairline: rgba(222, 184, 104, 0.15);
  --measure: 38rem;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.75;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-backdrop__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 75% at 50% 42%,
    transparent 35%,
    rgba(0, 0, 0, 0.42) 100%
  );
}

.page-backdrop__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.hero-wisps {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 50%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 50%,
    transparent 100%
  );
}

.hero-wisps__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 899px) {
  .hero-wisps {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero-wisps {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 46%,
      transparent 96%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 46%,
      transparent 96%
    );
  }
}

.ambient-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-shape {
  position: absolute;
  color: var(--gold);
  pointer-events: none;
}

.ambient-shape svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ambient-shape--1 {
  top: 8%;
  right: 4%;
  width: min(22rem, 38vw);
  height: min(22rem, 38vw);
  opacity: 0.04;
  transform: rotate(18deg);
  filter: blur(2.5px);
}

.ambient-shape--2 {
  top: 38%;
  right: -2%;
  width: min(14rem, 26vw);
  height: min(24rem, 44vw);
  opacity: 0.035;
  transform: rotate(-8deg);
  filter: blur(3px);
}

.ambient-shape--3 {
  top: 62%;
  left: -4%;
  width: min(26rem, 48vw);
  height: min(18rem, 32vw);
  opacity: 0.03;
  transform: rotate(-22deg);
  filter: blur(2px);
}

.ambient-shape--4 {
  top: 84%;
  right: 10%;
  width: min(10rem, 22vw);
  height: min(16rem, 30vw);
  opacity: 0.045;
  transform: rotate(32deg);
  filter: blur(2.5px);
}

@media (max-width: 720px) {
  .ambient-shape--1 {
    right: -12%;
    opacity: 0.025;
  }

  .ambient-shape--2 {
    right: -18%;
    opacity: 0.02;
  }

  .ambient-shape--3 {
    left: -18%;
    opacity: 0.02;
  }

  .ambient-shape--4 {
    right: -6%;
    opacity: 0.025;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-bright);
}

a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

main {
  overflow: visible;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem 0.5rem;
}

.nav__logo {
  display: block;
  width: 3.375rem;
  height: 3.375rem;
  background: transparent;
  border: none;
}

.nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav__contact {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 0.75rem 0.5rem;
  margin: -0.75rem -0.5rem -0.75rem 0;
}

.nav__contact:hover {
  color: var(--gold-bright);
}

.hero {
  padding-block: clamp(4.5rem, 14vh, 8rem) clamp(4.5rem, 12vh, 7rem);
  overflow: visible;
}

.hero__content {
  position: relative;
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: -2.5rem -3rem -2rem;
  background: radial-gradient(
    ellipse 90% 85% at 42% 48%,
    rgba(0, 0, 0, 0.35) 0%,
    transparent 72%
  );
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(2rem, 1.5rem + 3.2vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ivory);
  max-width: none;
  text-wrap: balance;
  font-variation-settings: "opsz" 72;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

@media (min-width: 721px) {
  .hero h1 {
    max-width: min(54rem, calc(100vw - 2 * var(--pad-x)));
  }
}

.hero__sub {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
  font-variation-settings: "opsz" 18;
  line-height: 1.78;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.section p:not(.label) {
  font-variation-settings: "opsz" 16;
  line-height: 1.78;
}

.section {
  border-top: 1px solid var(--hairline);
}

.section--problem {
  padding-block: clamp(2rem, 4vh, 2.75rem) clamp(1.5rem, 3vh, 2rem);
}

.section--approach {
  padding-block: clamp(1.5rem, 3vh, 2rem) clamp(2rem, 4vh, 2.75rem);
}

.section--stage {
  padding-block: clamp(3rem, 7vh, 4.5rem);
}

.section.contact {
  padding-block: clamp(3.25rem, 8vh, 5rem);
}

.section p:last-child {
  margin-bottom: 0;
}

.label {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.4;
}

.contact .email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gold);
  border-bottom: 1px solid var(--hairline);
  padding: 0.35rem 0.25rem 0.15rem;
}

.contact .email:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--hairline);
}

.site-footer p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--muted);
}
