:root {
  --bg: #111111;
  --bg-soft: #1c1c1a;
  --text: #f4f1ea;
  --text-muted: #8c8982;
  --stone: #d8d3c9;
  --accent: #3f4a3f;
  --hairline: rgba(244, 241, 234, 0.12);
  --container: min(1100px, 92vw);
  --page-padding: max(1.25rem, 5vw);
  --section-padding: clamp(6rem, 10vw, 12rem);
  --display-size: clamp(2.75rem, 7vw, 6.5rem);
  --section-title-size: clamp(2.35rem, 5.5vw, 4.85rem);
  --body-size: clamp(1.05rem, 1.2vw, 1.2rem);
  --label-size: 0.74rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 300;
  font-size: var(--body-size);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.sphere {
  position: fixed;
  left: 50%;
  top: 50%;
  width: clamp(220px, 28vw, 360px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 12%),
    radial-gradient(ellipse 110% 12% at 50% 58%, rgba(244, 241, 234, 0.35) 0%, rgba(244, 241, 234, 0) 60%),
    radial-gradient(circle at 50% 92%, rgba(140, 137, 130, 0.55) 0%, rgba(140, 137, 130, 0) 28%),
    linear-gradient(180deg, #d8d3c9 0%, #f4f1ea 14%, #8c8982 38%, #1c1c1a 55%, #4a4a47 72%, #d8d3c9 92%, #8c8982 100%);
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.35),
    inset -6px -12px 30px rgba(0, 0, 0, 0.25),
    0 0 1px rgba(255, 255, 255, 0.2);
  filter: contrast(1.05) saturate(0.85);
  transition:
    transform 1100ms cubic-bezier(.22, .61, .36, 1),
    width 1100ms cubic-bezier(.22, .61, .36, 1),
    opacity 1100ms cubic-bezier(.22, .61, .36, 1);
}

.sphere::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0.78) 60%, rgba(17, 17, 17, 0.85) 100%);
  pointer-events: none;
}

.sphere--peek {
  transform: translate(-50%, calc(50vh - 18%));
  width: clamp(180px, 22vw, 280px);
}

.sphere--center {
  transform: translate(-50%, -50%);
  width: clamp(220px, 28vw, 360px);
}

.hero,
main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
}

.hero__inner {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem var(--page-padding) 4rem;
}

.hero__brand {
  position: absolute;
  top: 2rem;
  left: var(--page-padding);
}

.brand-logo--hero {
  height: 1.75rem;
  width: auto;
}

.brand-logo--footer {
  height: 1.5rem;
  width: auto;
}

.hero__content {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.hero__title,
.section__headline,
.identity__line {
  margin: 0;
  font-family: "Montserrat", "Lato", sans-serif;
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero__title {
  font-size: var(--display-size);
}

.hero__subtitle {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
}

main {
  position: relative;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.story-section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) var(--page-padding);
}

.story-section:first-child {
  padding-top: clamp(8rem, 14vw, 12rem);
}

.story-section__inner {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.section__label {
  margin: 0;
  color: var(--text-muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: var(--label-size);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section__body {
  max-width: 44rem;
}

.section__body--meaning {
  max-width: 48rem;
}

.section__headline {
  font-size: var(--section-title-size);
}

.section__text {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  color: var(--stone);
}

.emphasis-word {
  position: relative;
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.12em;
  line-height: 0.95;
}

.emphasis-word--underlined::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: 0.06em;
  border-bottom: 1px solid var(--accent);
}

.identity {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 6rem var(--page-padding);
  padding-top: 60vh;
}

.identity__copy {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 92vw);
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.7;
  color: var(--stone);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1100ms cubic-bezier(.22, .61, .36, 1),
    transform 1100ms cubic-bezier(.22, .61, .36, 1);
}

.identity__copy p {
  margin: 0;
}

.identity__copy p + p {
  margin-top: 1rem;
}

.identity--in .identity__copy {
  opacity: 1;
  transform: none;
}

.identity__line {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--text);
}

.identity__line em {
  font-style: inherit;
}

.footer {
  border-top: 1px solid var(--hairline);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: clamp(3rem, 6vw, 4.5rem) var(--page-padding) 3rem;
  text-align: center;
}

.footer__rule {
  width: min(16rem, 100%);
  border-top: 1px solid var(--hairline);
}

.footer__text {
  margin: 0;
  color: var(--text-muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero__brand {
    top: 1.5rem;
  }

  .hero__inner {
    padding-top: 5.75rem;
  }
}

@media (max-width: 720px) {
  .sphere {
    width: clamp(160px, 50vw, 220px);
  }

  .sphere--peek {
    transform: translate(-50%, calc(50vh + 25%));
    width: clamp(160px, 50vw, 220px);
  }

  .sphere--center {
    width: clamp(160px, 50vw, 220px);
  }

  .story-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .identity__copy {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 6rem;
    --display-size: clamp(2.75rem, 11vw, 4.4rem);
    --section-title-size: clamp(2.15rem, 9vw, 3.4rem);
  }

  .hero__subtitle {
    margin-top: 1.1rem;
    font-size: 1rem;
  }

  .section__text {
    margin-top: 1.15rem;
  }
}

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

  .sphere,
  .identity__copy {
    transition: none;
  }

  .identity__copy {
    opacity: 1;
    transform: none;
  }
}
