:root {
  color-scheme: dark;
  --ink: #07100d;
  --moss: #19271f;
  --fern: #6f8f78;
  --lichen: #d5e3c2;
  --paper: #f0eee5;
  --amber: #f0c98b;
  --line: rgba(213, 227, 194, 0.2);
  --resonance: 0.42;
  --drift: 0.18;
  --anchored: 1;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(7, 16, 13, 0.76), rgba(7, 16, 13, 0.9)),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25vw - 1px), rgba(213, 227, 194, 0.035) 25vw);
  color: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::selection {
  background: var(--amber);
  color: var(--ink);
}

.world-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#ella-world {
  display: block;
  width: 100%;
  height: 100%;
  opacity: calc(0.48 + var(--resonance) * 0.25);
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(22px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  color: rgba(240, 238, 229, 0.72);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.site-header p {
  margin: 0;
}

.threshold-mark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.threshold-mark:hover,
.threshold-mark:focus-visible {
  color: var(--paper);
}

.threshold-mark:focus-visible,
.closing a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 6px;
}

.threshold-mark__glyph {
  width: 13px;
  height: 13px;
  border: 1px solid var(--amber);
  transform: rotate(45deg);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92svh, 960px);
  overflow: hidden;
  padding: 124px clamp(22px, 7vw, 112px) clamp(54px, 8vh, 90px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero__portrait {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -3;
  width: min(76vw, 1200px);
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.72) contrast(1.04);
  transition: opacity 500ms ease;
}

.is-25d-ready .hero__portrait {
  opacity: 0;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, var(--ink) 4%, rgba(7, 16, 13, 0.89) 28%, rgba(7, 16, 13, 0.12) 70%),
    linear-gradient(0deg, rgba(7, 16, 13, 0.76), transparent 56%);
}

.hero__copy {
  width: min(720px, 76vw);
  padding-bottom: 1vh;
}

.eyebrow,
.section-index {
  margin: 0 0 22px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

h1,
h2,
blockquote {
  font-family: "Newsreader", serif;
  font-weight: 300;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.68;
}

.hero__epithet {
  margin: 48px 0 0 7px;
  color: var(--lichen);
  font-family: "Newsreader", serif;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 300;
  line-height: 1.05;
}

.signal-readout {
  position: absolute;
  right: clamp(22px, 5vw, 80px);
  bottom: clamp(34px, 6vh, 68px);
  display: flex;
  gap: 14px;
  align-items: center;
  width: 210px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

#ella-signal {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.signal-readout span,
.signal-readout strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
}

.signal-readout span {
  color: rgba(240, 238, 229, 0.54);
}

.signal-readout strong {
  margin-top: 3px;
  color: var(--lichen);
}

.opening,
.nature-band,
.appearance,
.field-notes,
.closing {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.opening {
  display: grid;
  grid-template-columns: minmax(160px, 0.65fr) minmax(0, 1.5fr);
  gap: clamp(40px, 8vw, 140px);
  padding: clamp(90px, 13vw, 190px) clamp(22px, 9vw, 144px);
  background: rgba(7, 16, 13, 0.88);
}

.opening h2,
.nature-band h2,
.appearance h2,
.field-notes h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.5vw, 5.5rem);
  line-height: 0.98;
}

.opening div > p,
.nature-band__copy > p,
.appearance__copy > p {
  max-width: 690px;
  margin: 40px 0 0;
  color: rgba(240, 238, 229, 0.74);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.opening strong {
  color: var(--paper);
  font-weight: 500;
}

.nature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  min-height: 660px;
  background: linear-gradient(112deg, rgba(25, 39, 31, 0.98), rgba(16, 35, 28, 0.88));
}

.nature-band__copy,
.nature-band blockquote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(70px, 9vw, 144px);
}

.nature-band blockquote {
  border-left: 1px solid var(--line);
  color: var(--lichen);
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 1.08;
}

.appearance {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: stretch;
  background: rgba(7, 16, 13, 0.94);
}

.appearance figure {
  position: relative;
  min-height: 760px;
  margin: 0;
  overflow: hidden;
}

.appearance figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent 65%, rgba(7, 16, 13, 0.62));
  pointer-events: none;
}

.appearance figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.appearance figcaption {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 1;
  padding: 8px 12px;
  background: rgba(7, 16, 13, 0.74);
  color: rgba(240, 238, 229, 0.72);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.appearance__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 8vw, 130px);
}

.field-notes {
  padding: clamp(90px, 11vw, 170px) clamp(22px, 7vw, 112px);
  background: rgba(240, 238, 229, 0.96);
  color: var(--ink);
}

.field-notes .section-index {
  color: #76572c;
}

.field-notes header {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 40px;
  align-items: end;
}

.field-notes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(70px, 9vw, 120px);
  border-top: 1px solid rgba(7, 16, 13, 0.2);
}

.field-notes article {
  min-height: 260px;
  padding: 34px clamp(18px, 3vw, 48px) 20px 0;
}

.field-notes article + article {
  padding-left: clamp(18px, 3vw, 48px);
  border-left: 1px solid rgba(7, 16, 13, 0.2);
}

.field-notes article span {
  color: #76572c;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.field-notes article p {
  margin: 36px 0 0;
  color: rgba(7, 16, 13, 0.72);
}

.closing {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 520px;
  padding: clamp(80px, 10vw, 150px) clamp(22px, 7vw, 112px);
  background: rgba(7, 16, 13, 0.78);
}

.closing p {
  max-width: 800px;
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
}

.closing a {
  flex: 0 0 auto;
  margin-left: 60px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--amber);
  color: var(--paper);
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
}

.closing a:hover,
.closing a:focus-visible {
  color: var(--amber);
}

.closing a span {
  display: inline-block;
  margin-left: 10px;
}

@media (max-width: 860px) {
  .hero {
    min-height: 88svh;
  }

  .hero__portrait {
    width: 100%;
    object-position: 57% center;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(7, 16, 13, 0.9), rgba(7, 16, 13, 0.08)),
      linear-gradient(0deg, rgba(7, 16, 13, 0.88) 4%, transparent 62%);
  }

  .signal-readout {
    display: none;
  }

  .opening,
  .nature-band,
  .appearance,
  .field-notes header {
    grid-template-columns: 1fr;
  }

  .nature-band {
    min-height: 0;
  }

  .nature-band blockquote {
    min-height: 420px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .appearance figure {
    min-height: 72svh;
  }

  .appearance figure::after {
    background: linear-gradient(0deg, rgba(7, 16, 13, 0.5), transparent 40%);
  }

  .field-notes__grid {
    grid-template-columns: 1fr;
  }

  .field-notes article {
    min-height: 0;
    padding: 28px 0 38px;
  }

  .field-notes article + article {
    padding-left: 0;
    border-top: 1px solid rgba(7, 16, 13, 0.2);
    border-left: 0;
  }

  .closing {
    display: block;
    min-height: 480px;
  }

  .closing a {
    display: inline-block;
    margin: 70px 0 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
  }

  .site-header > p {
    display: none;
  }

  .hero {
    min-height: 82svh;
    padding-bottom: 48px;
  }

  .hero__copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(5rem, 28vw, 7.8rem);
  }

  .hero__epithet {
    margin-top: 34px;
  }

  .opening,
  .nature-band__copy,
  .nature-band blockquote,
  .appearance__copy,
  .field-notes,
  .closing {
    padding-right: 22px;
    padding-left: 22px;
  }

  .appearance figure {
    min-height: 58svh;
  }

  .appearance figcaption {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }
}

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

  .hero__portrait {
    transition: none;
  }
}