:root {
  --black: #070c0f;
  --night: #0b1114;
  --basin: #0f1619;
  --panel: #121b1f;
  --ink: #eef2f2;
  --mist: #a8b6bb;
  --slate: #6d7f86;
  --rule: #212c31;
  --signal: #7fc9d3;
  --depth: #10454f;
  --serif: "Iowan Old Style", "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: clip;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 82% 8%, rgba(16, 69, 79, 0.62), transparent 28rem),
    linear-gradient(115deg, rgba(11, 17, 20, 0.96), rgba(7, 12, 15, 1) 52%, rgba(15, 22, 25, 0.98));
  letter-spacing: 0.01em;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(33, 44, 49, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(33, 44, 49, 0.14) 1px, transparent 1px);
  background-size: 7.5rem 7.5rem;
  mask-image: radial-gradient(circle at 50% 24%, #070c0f 0%, transparent 66%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(102deg, transparent 0 1.2rem, rgba(238, 242, 242, 0.018) 1.2rem 1.28rem),
    radial-gradient(circle at 14% 70%, rgba(127, 201, 211, 0.08), transparent 24rem);
  mix-blend-mode: screen;
}

a {
  color: var(--ink);
  text-decoration-color: rgba(127, 201, 211, 0.62);
  text-underline-offset: 0.22em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:hover,
a:focus-visible {
  color: var(--signal);
  text-decoration-color: var(--signal);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.7rem 0.9rem;
  color: var(--black);
  background: var(--ink);
  border: 1px solid var(--signal);
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  width: min(100% - 2rem, 104rem);
  margin: 0 auto;
  padding: 1rem 0;
  color: var(--mist);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(7, 12, 15, 0.94), rgba(7, 12, 15, 0.74) 72%, transparent);
  border-bottom: 1px solid rgba(33, 44, 49, 0.7);
  backdrop-filter: blur(18px);
}

.site-header p {
  margin: 0;
  text-align: center;
}

.back-link {
  justify-self: start;
}

.contact-link {
  justify-self: end;
  overflow-wrap: anywhere;
}

.atlas-shell {
  width: min(100% - 2rem, 104rem);
  margin: 0 auto;
}

.spread {
  position: relative;
  display: grid;
  min-height: min(58rem, 100svh);
  padding: clamp(4rem, 8vw, 9rem) 0;
  border-bottom: 1px solid rgba(33, 44, 49, 0.82);
}

.spread::before {
  position: absolute;
  inset: 1.4rem 50% 1.4rem auto;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(109, 127, 134, 0.48), transparent);
}

.folio {
  position: absolute;
  top: clamp(1.5rem, 3vw, 3rem);
  right: 0;
  color: var(--slate);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 5rem);
  font-style: italic;
  line-height: 0.8;
  opacity: 0.58;
}

.folio-left {
  right: auto;
  left: 0;
}

.hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1.08fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  padding-top: clamp(3rem, 6vw, 7rem);
}

.hero-copy {
  max-width: 48rem;
  padding-left: clamp(0rem, 5vw, 5rem);
}

.kicker,
.eyebrow,
.panel-title,
.card-number,
figcaption span {
  margin: 0;
  color: var(--signal);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  margin-top: 1.2rem;
  font-size: clamp(3.6rem, 8.4vw, 9.4rem);
  line-height: 0.86;
  max-width: 10ch;
}

.lede {
  max-width: 38rem;
  margin: clamp(1.8rem, 3vw, 3rem) 0 0;
  color: var(--mist);
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2vw, 1.72rem);
  line-height: 1.48;
}

.plate-card {
  position: relative;
  width: min(100%, 48rem);
  margin: 0;
  justify-self: end;
}

.plate-card::before,
.plate-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(127, 201, 211, 0.28);
}

.plate-card::before {
  inset: -1.35rem 1.35rem 1.35rem -1.35rem;
}

.plate-card::after {
  inset: 1.05rem -1.05rem -1.05rem 1.05rem;
  border-color: rgba(109, 127, 134, 0.28);
}

.plate-frame {
  position: relative;
  padding: clamp(0.8rem, 2vw, 1.3rem);
  background:
    linear-gradient(135deg, rgba(238, 242, 242, 0.08), rgba(18, 27, 31, 0.94) 24%, rgba(11, 17, 20, 0.96)),
    var(--panel);
  border: 1px solid rgba(168, 182, 187, 0.34);
}

.plate-frame::before {
  position: absolute;
  inset: clamp(1.4rem, 3vw, 2.4rem);
  content: "";
  pointer-events: none;
  border: 1px solid rgba(127, 201, 211, 0.24);
}

.ocean-plate {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--night);
  border: 1px solid rgba(33, 44, 49, 0.88);
}

figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-top: 1.05rem;
  color: var(--slate);
  font-size: 0.86rem;
  line-height: 1.5;
}

.manifest {
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 6rem;
  align-self: start;
  max-width: 32rem;
}

.section-heading h2,
.rulebook h2,
.closing-copy h2 {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 5.4vw, 6.8rem);
  line-height: 0.94;
}

.manifest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.folio-card {
  min-height: 26rem;
  padding: clamp(1.2rem, 2.2vw, 2rem);
  background:
    linear-gradient(180deg, rgba(18, 27, 31, 0.98), rgba(11, 17, 20, 0.98)),
    var(--panel);
}

.folio-card h3 {
  margin-top: clamp(5rem, 12vw, 10rem);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.folio-card p:last-child,
.rulebook p:last-child,
.closing-copy p:last-child {
  margin: 1.1rem 0 0;
  color: var(--mist);
  line-height: 1.75;
}

.card-number {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--black);
  background: var(--signal);
  border-radius: 50%;
}

.duo {
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}

.rulebook {
  max-width: 54rem;
  padding-left: clamp(0rem, 7vw, 6rem);
}

.record-panel {
  padding: clamp(1.3rem, 3vw, 2.4rem);
  background:
    linear-gradient(145deg, rgba(15, 22, 25, 0.96), rgba(7, 12, 15, 0.98)),
    var(--basin);
  border: 1px solid rgba(168, 182, 187, 0.25);
}

.record-panel dl {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--rule);
}

.record-panel div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.65fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

dt {
  color: var(--slate);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.navigation {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  min-height: auto;
}

.closing-copy {
  max-width: 56rem;
  padding-left: clamp(0rem, 5vw, 5rem);
}

.atlas-nav {
  display: grid;
  gap: 0.75rem;
}

.atlas-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4.8rem;
  padding: 1rem 1.15rem;
  color: var(--ink);
  text-decoration: none;
  background: rgba(18, 27, 31, 0.8);
  border: 1px solid var(--rule);
}

.atlas-nav a::after {
  content: "→";
  color: var(--signal);
  font-family: var(--serif);
  font-size: 1.4rem;
  transition: transform 180ms ease;
}

.atlas-nav a:hover::after,
.atlas-nav a:focus-visible::after {
  transform: translateX(0.28rem);
}

html.js [data-reveal] {
  opacity: 1;
  transform: translateY(2rem) rotateX(5deg);
  transform-origin: 50% 0%;
  transition: transform 920ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

html.js .plate-card[data-reveal] {
  transform: translateX(2rem) rotateY(-8deg);
  transform-origin: 0% 50%;
}

html.js .plate-card[data-reveal].is-in {
  transform: translateX(0) rotateY(0deg);
}

html.js.reveals-complete [data-reveal],
html.js.reveals-complete .plate-card[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-header p,
  .contact-link {
    justify-self: start;
    text-align: left;
  }

  .hero,
  .manifest,
  .duo,
  .navigation {
    grid-template-columns: 1fr;
  }

  .spread {
    min-height: auto;
  }

  .spread::before {
    display: none;
  }

  .section-heading {
    position: static;
  }

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

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

  .folio-card h3 {
    margin-top: 4rem;
  }

  .plate-card {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 620px) {
  body,
  .atlas-shell,
  .spread {
    max-width: 100%;
    overflow-x: clip;
  }

  .atlas-shell,
  .site-header {
    width: min(100% - 1.1rem, 104rem);
  }

  .spread {
    padding: 4rem 0;
  }

  .hero-copy,
  .rulebook,
  .closing-copy {
    padding-left: 0;
  }

  h1 {
    font-size: clamp(2.9rem, 14vw, 3.75rem);
    line-height: 0.92;
    max-width: 100%;
  }

  .kicker,
  .eyebrow,
  .panel-title,
  .card-number,
  figcaption span {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
  }

  .section-heading h2,
  .rulebook h2,
  .closing-copy h2 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .plate-card::before,
  .plate-card::after {
    display: none;
  }

  html.js .plate-card[data-reveal],
  html.js .plate-card[data-reveal].is-in {
    transform: none;
  }

  figcaption,
  .record-panel div {
    grid-template-columns: 1fr;
  }

  .record-panel {
    padding: 1rem;
  }

  .folio {
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
    transition-duration: 0.001ms;
  }

  html.js [data-reveal],
  html.js [data-reveal].is-in,
  html.js .plate-card[data-reveal],
  html.js .plate-card[data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}
