:root {
  color-scheme: dark;
  --black: #050505;
  --ink: #0b0c0c;
  --panel: #101211;
  --text: #d8d4c8;
  --muted: #918d82;
  --gold: #b59658;
  --gold-bright: #d0b06c;
  --line: rgba(181, 150, 88, 0.28);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 20%, #151916 0, var(--black) 42rem),
    var(--black);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.75;
}

a {
  color: inherit;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.76) brightness(0.74) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 28%),
    linear-gradient(0deg, var(--black), transparent 42%),
    radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.62) 100%);
}

.nav {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem clamp(1.2rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(181, 150, 88, 0.16);
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.96),
    rgba(5, 5, 5, 0.82)
  );
  backdrop-filter: blur(10px);
  font-family: var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
}

.wordmark {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  color: #dedbd2;
  font-size: 0.72rem;
}

.nav-links a,
.client,
.connection-card a {
  transition: color 160ms ease, border-color 160ms ease,
    background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-bright);
}

.hero-copy {
  z-index: 2;
  max-width: 64rem;
  align-self: end;
  padding: 8rem 1.5rem 8rem;
  text-align: center;
  text-shadow: 0 3px 28px #000;
}

.eyebrow,
.kicker,
.terminal-label {
  margin: 0 0 0.7rem;
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-tagline {
  margin: 0 auto 2rem;
  color: #d5d1c5;
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  font-style: italic;
  text-align: center;
  text-align-last: center;
}

.button {
  display: inline-block;
  border: 1px solid var(--gold);
  padding: 0.8rem 1.6rem;
  background: rgba(0, 0, 0, 0.35);
  color: #f0e7d1;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover,
.button:focus-visible {
  background: var(--gold);
  color: #090909;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 2rem;
  margin-top: 0.55rem;
  background: linear-gradient(var(--gold), transparent);
}

.section {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(5.5rem, 10vw, 9rem) 0;
  scroll-margin-top: 2rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-number {
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.85rem;
}

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

p,
li,
.client small {
  text-align: justify;
  text-align-last: left;
}

h2 {
  margin-bottom: 0;
  color: #eee9dc;
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.9;
}

h3 {
  color: #e1d7c1;
  font-size: 1.35rem;
  font-weight: 400;
}

.about-grid,
.play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.lead-copy {
  color: #d9d4c8;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.8;
}

.lead-copy p:first-child::first-letter,
.story-copy .opening::first-letter {
  float: left;
  margin: 0.12em 0.12em 0 0;
  color: var(--gold-bright);
  font-size: 4.3em;
  line-height: 0.78;
}

.feature-list article {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.feature-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-list p,
.clients small {
  color: var(--muted);
}

.story {
  width: min(920px, calc(100% - 2.5rem));
}

.story-copy {
  color: #c8c4b9;
  font-size: 1.06rem;
}

.story-copy p {
  margin-bottom: 1.6rem;
}

.story-copy .closing {
  color: #e0d8c7;
  font-style: italic;
}

.connection-card {
  display: grid;
  grid-template-columns: 1fr 0.6fr auto;
  align-items: stretch;
  margin-bottom: 4rem;
  border: 1px solid var(--line);
  background: rgba(16, 18, 17, 0.72);
}

.connection-card div {
  padding: 1.5rem 2rem;
}

.connection-card div + div {
  border-left: 1px solid var(--line);
}

.connection-card span {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.connection-card strong {
  color: #eee9dc;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 400;
}

.connection-card > a {
  display: grid;
  min-width: 11rem;
  place-items: center;
  background: var(--gold);
  color: #080808;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.connection-card > a:hover,
.connection-card > a:focus-visible {
  background: var(--gold-bright);
}

.steps ol {
  margin: 1.5rem 0 2.5rem;
  padding-left: 1.3rem;
}

.steps li {
  margin-bottom: 0.7rem;
  padding-left: 0.5rem;
}

code,
pre {
  font-family: "Courier New", monospace;
}

code {
  color: var(--gold-bright);
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  background: #020303;
}

.clients {
  display: flex;
  flex-direction: column;
}

.client {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.client:last-child {
  border-bottom: 1px solid var(--line);
}

.client span {
  color: #e1d7c1;
  font-size: 1.08rem;
}

.client:hover span,
.client:focus-visible span {
  color: var(--gold-bright);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.45rem;
    text-align: right;
  }

  .hero {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
    background: var(--black);
  }

  .hero-image {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    margin-top: 7.25rem;
    object-fit: contain;
    object-position: center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 32%),
      linear-gradient(0deg, var(--black), transparent 20%);
    pointer-events: none;
  }

  .hero-copy {
    width: 100%;
    align-self: auto;
    padding: 1.75rem 1.25rem 7rem;
  }

  .hero-tagline {
    max-width: 28rem;
  }

  .about-grid,
  .play-grid {
    grid-template-columns: 1fr;
  }

  .connection-card {
    grid-template-columns: 1fr 0.6fr;
  }

  .connection-card > a {
    min-height: 3.5rem;
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .section {
    width: min(100% - 1.5rem, 1180px);
  }

  .section-heading {
    gap: 1rem;
  }

  .section-number {
    width: 2.8rem;
    height: 2.8rem;
  }

  .connection-card div {
    padding: 1.1rem;
  }

  .client {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

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