:root {
  color-scheme: dark;
  --ink: #f8f1df;
  --ink-soft: #c9d4d8;
  --night: #061521;
  --night-light: #0b2431;
  --night-deep: #031019;
  --gold: #f2c572;
  --gold-bright: #ffe0a0;
  --cyan: #6ecad0;
  --line: rgba(212, 231, 229, 0.16);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night-deep);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 18%, rgba(46, 112, 115, 0.2), transparent 30rem),
    var(--night);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection {
  color: var(--night-deep);
  background: var(--gold-bright);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: var(--night-deep);
  background: var(--ink);
  border-radius: 0.25rem;
  transform: translateY(-200%);
}

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

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem clamp(1.25rem, 5vw, 5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.brand > span:last-child > span {
  color: var(--gold);
}

.brand-mark {
  display: block;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(242, 197, 114, 0.7);
  border-radius: 0.12rem;
  object-fit: cover;
  box-shadow: 0 0.45rem 1.5rem rgba(0, 0, 0, 0.25);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0 0.55rem;
  border-bottom: 1px solid rgba(248, 241, 223, 0.55);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.nav-cta:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.hero {
  position: relative;
  display: grid;
  min-height: max(42rem, 100svh);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-image {
  background-image: url("assets/worldweaver-hero.webp");
  background-position: center center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 12, 23, 0.88) 0%, rgba(3, 15, 27, 0.66) 29%, rgba(4, 16, 28, 0.12) 56%, rgba(2, 10, 18, 0.1) 100%),
    linear-gradient(0deg, rgba(3, 15, 24, 0.72) 0%, transparent 28%, rgba(1, 8, 16, 0.24) 100%);
}

.hero-content {
  width: min(42rem, 86vw);
  margin-left: clamp(1.5rem, 8.5vw, 9rem);
  padding: 7.6rem 0 5rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1.3rem;
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow span {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.6rem;
  font-family: var(--display);
  font-size: clamp(3.35rem, 6.6vw, 7.15rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.38);
}

h1 em,
.manifesto h2 em {
  color: var(--gold-bright);
  font-weight: 400;
}

.hero-intro {
  max-width: 35rem;
  margin-bottom: 2rem;
  color: #e1e7e5;
  font-family: var(--display);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.6;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 3.55rem;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 0.9rem 1.45rem;
  border: 1px solid var(--gold);
  border-radius: 0.12rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button-primary {
  color: #14201f;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0.8rem 2.6rem rgba(237, 179, 82, 0.2);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 1rem 3rem rgba(237, 179, 82, 0.32);
}

.button span,
.nav-cta span {
  font-size: 1.15em;
}

.text-link {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(248, 241, 223, 0.42);
  color: #f2f2eb;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.hero-note {
  margin: 1.45rem 0 0;
  color: rgba(225, 231, 229, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.025em;
}

.scroll-cue {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(248, 241, 223, 0.72);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 3.2rem;
  background: linear-gradient(var(--gold), transparent);
}

.manifesto,
.features,
.final-cta,
footer {
  position: relative;
  z-index: 1;
}

.manifesto {
  padding: clamp(6rem, 11vw, 10rem) clamp(1.5rem, 8vw, 8rem);
  background:
    radial-gradient(circle at 100% 10%, rgba(59, 135, 137, 0.15), transparent 28rem),
    linear-gradient(180deg, #071824, #091d28);
}

.section-kicker {
  color: var(--cyan);
}

.reveal-line {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reveal-line::after {
  width: min(18rem, 30vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--line), transparent);
}

.manifesto-grid {
  display: grid;
  max-width: 80rem;
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: clamp(3rem, 7vw, 8rem);
}

.manifesto .section-kicker,
.features-heading,
.feature-grid,
.manifesto > .section-kicker {
  max-width: 80rem;
  margin-right: auto;
  margin-left: auto;
}

.manifesto h2,
.features h2,
.final-cta h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.manifesto h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  line-height: 1.08;
}

.manifesto-copy {
  padding-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.manifesto-copy p:first-child::first-letter {
  float: left;
  margin: 0.02em 0.12em 0 0;
  color: var(--gold);
  font-family: var(--display);
  font-size: 3.5em;
  line-height: 0.82;
}

.prompt-card {
  max-width: 69rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: rgba(1, 13, 21, 0.65);
  box-shadow: 0 2.2rem 6rem rgba(0, 0, 0, 0.24);
}

.prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--line);
  color: #9cb0b5;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prompt-bar > span {
  display: flex;
  gap: 0.35rem;
}

.prompt-bar i {
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid #52717a;
  border-radius: 50%;
}

.prompt-bar i:first-child {
  background: var(--gold);
  border-color: var(--gold);
}

.prompt-body {
  padding: clamp(1.4rem, 4vw, 3rem);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.82rem, 1.3vw, 1rem);
  line-height: 1.8;
}

.prompt-body p:last-child {
  margin-bottom: 0;
}

.narrative {
  max-width: 55rem;
  color: #b8c9ca;
}

.command {
  margin: 1.8rem 0;
  color: var(--ink);
}

.command span {
  margin-right: 0.8rem;
  color: var(--gold);
  font-weight: 800;
}

.response {
  color: #d9dfda;
}

.features {
  padding: clamp(6rem, 11vw, 10rem) clamp(1.5rem, 7vw, 7rem);
  background:
    linear-gradient(rgba(238, 222, 186, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 222, 186, 0.035) 1px, transparent 1px),
    #06141e;
  background-size: 4.5rem 4.5rem;
}

.features-heading {
  display: grid;
  margin-bottom: 3.5rem;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
}

.features-heading .section-kicker {
  grid-column: 1 / -1;
}

.features h2 {
  margin: 0;
  font-size: clamp(2.55rem, 4.5vw, 4.8rem);
  line-height: 1;
}

.features-heading > p:last-child {
  align-self: end;
  max-width: 29rem;
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card {
  --feature-image: none;
  position: relative;
  display: grid;
  min-height: 20rem;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #06141e;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  isolation: isolate;
}

.feature-card::before,
.feature-card::after {
  position: absolute;
  z-index: -2;
  content: "";
  inset: 0;
}

.feature-card::before {
  background-image: var(--feature-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
  transition: filter 400ms ease, transform 500ms ease;
}

.feature-card::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 12, 20, 0.97) 0%, rgba(3, 16, 25, 0.83) 43%, rgba(3, 16, 25, 0.28) 76%, rgba(3, 16, 25, 0.1) 100%),
    linear-gradient(0deg, rgba(2, 12, 20, 0.94) 0%, rgba(3, 16, 25, 0.38) 46%, rgba(3, 16, 25, 0.08) 100%);
  transition: opacity 300ms ease;
}

.feature-card:hover::before {
  filter: saturate(1.08) brightness(1.04);
  transform: scale(1.035);
}

.feature-card:hover::after {
  opacity: 0.88;
}

.feature-card-wide {
  min-height: 22rem;
}

.feature-bg-01 {
  --feature-image: url("assets/features/01-write-the-impossible.webp");
}

.feature-bg-02 {
  --feature-image: url("assets/features/02-leave-a-mark.webp");
}

.feature-bg-03 {
  --feature-image: url("assets/features/03-meet-lives.webp");
}

.feature-bg-04 {
  --feature-image: url("assets/features/04-go-the-distance.webp");
}

.feature-bg-05 {
  --feature-image: url("assets/features/05-become-someone-new.webp");
}

.feature-bg-06 {
  --feature-image: url("assets/features/06-see-the-moment.webp");
}

.feature-number {
  margin: 0;
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.8rem;
  font-style: italic;
}

.feature-card > div {
  display: flex;
  max-width: 29rem;
  flex-direction: column;
  justify-content: flex-end;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.65rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

.feature-card p:last-child {
  margin: 0;
  color: #aebfc1;
  font-size: 0.9rem;
}

.feature-story-card {
  display: grid;
  min-height: 28rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 32%, rgba(40, 102, 97, 0.2), transparent 26rem),
    #071721;
  grid-column: 1 / -1;
  grid-template-columns: minmax(20rem, 28rem) minmax(0, 1fr);
}

.feature-story-media {
  display: block;
  width: 100%;
  border-right: 1px solid var(--line);
  background: #17140f;
  aspect-ratio: 1;
  overflow: hidden;
}

.feature-story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 400ms ease, transform 500ms ease;
}

.feature-story-card:hover .feature-story-media img {
  filter: saturate(1.06) brightness(1.03);
  transform: scale(1.02);
}

.feature-story-copy {
  position: relative;
  display: grid;
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2rem;
  isolation: isolate;
}

.feature-story-copy::before,
.feature-story-copy::after {
  position: absolute;
  content: "";
  inset: 0;
}

.feature-story-copy::before {
  z-index: 0;
  background-image: url("assets/features/07-enter-the-story-background.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
  transition: filter 400ms ease, transform 500ms ease;
}

.feature-story-copy::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 12, 20, 0.97) 0%, rgba(3, 16, 25, 0.84) 42%, rgba(3, 16, 25, 0.28) 78%, rgba(3, 16, 25, 0.08) 100%),
    linear-gradient(0deg, rgba(2, 12, 20, 0.94) 0%, rgba(3, 16, 25, 0.42) 52%, rgba(3, 16, 25, 0.06) 100%);
}

.feature-story-copy > * {
  position: relative;
  z-index: 2;
}

.feature-story-card:hover .feature-story-copy::before {
  filter: saturate(1.08) brightness(1.04);
  transform: scale(1.03);
}

.feature-story-copy > div {
  display: flex;
  max-width: 44rem;
  flex-direction: column;
  justify-content: flex-end;
}

.feature-story-copy h3 {
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.3vw, 4.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.feature-story-copy p:last-child {
  max-width: 39rem;
  margin: 0;
  color: #b8c7c6;
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
}

.final-cta {
  display: flex;
  min-height: 39rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 7rem 1.5rem;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(36, 109, 112, 0.23), transparent 25rem),
    #081b26;
}

.final-cta h2 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
}

.final-cta > p:not(.section-kicker) {
  margin-bottom: 2rem;
  color: var(--ink-soft);
}

.button-large {
  min-width: min(20rem, 88vw);
}

.final-orbit,
.final-orbit span {
  position: absolute;
  border: 1px solid rgba(111, 202, 208, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.final-orbit {
  width: min(42rem, 84vw);
  aspect-ratio: 1;
}

.final-orbit span:nth-child(1) {
  inset: 12%;
}

.final-orbit span:nth-child(2) {
  inset: 25%;
  border-color: rgba(242, 197, 114, 0.11);
}

.final-orbit span:nth-child(3) {
  inset: 38%;
  background: rgba(111, 202, 208, 0.025);
}

.final-cta > *:not(.final-orbit) {
  position: relative;
  z-index: 1;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: #889da2;
  background: #04121a;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

footer p {
  margin: 0;
}

.brand-footer {
  color: var(--ink);
  font-size: 0.98rem;
}

.brand-footer .brand-mark {
  width: 2rem;
  height: 2rem;
}

@media (max-width: 850px) {
  .hero-image {
    background-position: 68% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(2, 12, 23, 0.82), rgba(3, 15, 27, 0.18) 70%),
      linear-gradient(0deg, rgba(3, 15, 24, 0.86) 0%, rgba(3, 15, 24, 0.14) 58%, rgba(1, 8, 16, 0.34) 100%);
  }

  .hero-content {
    align-self: end;
    margin-left: 1.5rem;
    padding-bottom: 4.7rem;
  }

  .manifesto-grid,
  .features-heading {
    grid-template-columns: 1fr;
  }

  .manifesto-copy {
    max-width: 38rem;
  }

  .features-heading {
    gap: 1.5rem;
  }

  .features-heading > p:last-child {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1.2rem;
  }

  .nav-cta {
    font-size: 0;
  }

  .nav-cta span {
    font-size: 1.1rem;
  }

  .hero {
    min-height: max(43rem, 100svh);
  }

  .hero-image {
    background-position: 68% center;
  }

  .hero-content {
    width: calc(100% - 3rem);
    padding-bottom: 4rem;
  }

  h1 {
    font-size: clamp(3.05rem, 16.5vw, 4.6rem);
  }

  .hero-intro {
    max-width: 29rem;
    font-size: 1rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .button-primary {
    width: 100%;
  }

  .text-link {
    margin-left: 0.2rem;
  }

  .hero-note,
  .scroll-cue {
    display: none;
  }

  .manifesto-grid {
    margin-bottom: 3.5rem;
    gap: 2rem;
  }

  .prompt-body {
    line-height: 1.65;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 18rem;
  }

  .feature-card::after {
    background:
      linear-gradient(90deg, rgba(2, 12, 20, 0.96), rgba(3, 16, 25, 0.58)),
      linear-gradient(0deg, rgba(2, 12, 20, 0.96) 0%, rgba(3, 16, 25, 0.2) 75%);
  }

  .feature-story-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .feature-story-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-story-copy {
    min-height: 18rem;
    padding: 2rem 1.5rem 2.5rem;
    gap: 1.5rem;
  }

  .feature-story-copy::after {
    background:
      linear-gradient(90deg, rgba(2, 12, 20, 0.96), rgba(3, 16, 25, 0.55)),
      linear-gradient(0deg, rgba(2, 12, 20, 0.96) 0%, rgba(3, 16, 25, 0.28) 75%);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer p:nth-of-type(1) {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
