:root {
  --bg: #0a0d0b;
  --panel: #101612;
  --panel-soft: #121a15;
  --ink: #f1e8d6;
  --muted: #a99d87;
  --faint: #8e8472;
  --gold: #d8b46b;
  --gold-bright: #e8ca8b;
  --line: rgba(216, 180, 107, 0.16);
  --line-strong: rgba(216, 180, 107, 0.3);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia,
    "Songti SC", "Noto Serif SC", "SimSun", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% -5%, rgba(44, 89, 59, 0.34), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(105, 72, 35, 0.18), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(216, 180, 107, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 180, 107, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

::selection {
  background: var(--gold);
  color: #14130f;
}

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

a {
  color: inherit;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  background: var(--gold);
  color: #14130f;
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
}

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

/* Top bar */

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 11, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 16px;
}

.brand b {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

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

.nav-play {
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink) !important;
}

.nav-play span {
  color: var(--gold);
}

/* Hero */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 92px 28px 0;
}

.eyebrow,
.label {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow span {
  padding: 0 6px;
  color: var(--faint);
}

.hero h1 {
  max-width: 900px;
  margin: 22px 0 30px;
  font-family: var(--serif);
  font-size: clamp(64px, 11vw, 132px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.84;
}

.hero h1 span {
  display: block;
  margin-top: 18px;
  color: var(--gold);
  font-size: 0.42em;
  letter-spacing: 0.28em;
  line-height: 1.05;
}

.lede {
  max-width: 650px;
  margin: 0;
  color: #cec3ae;
  font-size: 16px;
  line-height: 1.95;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.meta span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--gold);
  color: #14130f;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.btn:hover {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--gold);
  background: transparent;
  color: var(--gold);
}

.hero-shot {
  margin: 62px 0 0;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.hero-shot img {
  width: 100%;
  aspect-ratio: 1200 / 523;
  object-fit: cover;
}

.hero-shot figcaption,
.shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero-shot figcaption span:first-child {
  color: var(--gold);
}

/* Sections */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 112px 28px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.section-head h2 {
  max-width: 860px;
  margin: -7px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

/* Build cards */

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
}

.build-card {
  min-height: 250px;
  padding: 28px;
  background: var(--panel);
}

.card-num {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.build-card h3 {
  margin: 22px 0 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

code {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.68em;
  font-weight: 400;
  letter-spacing: 0;
}

.build-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.tags span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
}

/* Architecture */

.arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(39, 72, 50, 0.18), transparent 55%),
    var(--panel-soft);
}

.arch-box {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 8, 0.36);
}

.arch-box small {
  display: block;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.arch-box b {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.arch-box span {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}

.arch-arrow {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
  opacity: 0.8;
}

.arch-note {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.8;
}

/* Engineering notes */

.notes {
  max-width: 900px;
  margin: 38px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.notes li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.note-num {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.notes h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
}

.notes p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

/* Characters */

.guest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.guest {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
}

.guest__art {
  overflow: hidden;
  background: #080b09;
}

.guest__art img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.guest:hover .guest__art img {
  transform: scale(1.025);
}

.guest__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 18px 19px;
}

.guest__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.guest__meta span:first-child {
  color: var(--gold);
}

.guest h3 {
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.guest__line {
  min-height: 34px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.guest__skills {
  margin: auto 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.guest__skills li {
  display: grid;
  gap: 1px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.guest__skills li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.guest__skills b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.guest__skills span {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

@media (min-width: 561px) {
  .guest:first-child .guest__skills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .guest:first-child .guest__skills li:nth-child(odd) {
    padding-right: 16px;
    border-right: 1px solid var(--line);
  }

  .guest:first-child .guest__skills li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

.guest-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.shot {
  grid-column: span 12;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.shot--wide {
  grid-column: span 12;
}

.shot--site {
  grid-column: span 7;
}

.shot--mobile {
  grid-column: span 5;
}

.shot img {
  width: 100%;
  object-fit: cover;
}

.shot--wide img {
  aspect-ratio: 1200 / 750;
}

.shot--site img {
  aspect-ratio: 1200 / 523;
}

.shot--mobile img {
  aspect-ratio: 844 / 390;
}

.shot figcaption span:first-child {
  color: var(--muted);
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1120px;
  margin: 112px auto 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.stat {
  padding: 30px 24px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat b {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* Closing */

.closing {
  max-width: 1120px;
  margin: 0 auto;
  padding: 128px 28px 138px;
  text-align: center;
}

.closing h2 {
  margin: 18px 0 12px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.closing p:not(.label) {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 28px 46px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.ai-disclosure {
  flex: 1 0 100%;
  max-width: 760px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0;
}

.ai-disclosure b {
  margin-right: 6px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .eyebrow,
.hero h1,
.hero .lede,
.hero .meta,
.hero .actions,
.hero-shot {
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
  animation-delay: 60ms;
}

.hero .lede {
  animation-delay: 120ms;
}

.hero .meta,
.hero .actions {
  animation-delay: 170ms;
}

.hero-shot {
  animation-delay: 240ms;
}

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

  .hero .eyebrow,
  .hero h1,
  .hero .lede,
  .hero .meta,
  .hero .actions,
  .hero-shot {
    animation: none;
  }
}

/* Responsive */

@media (max-width: 980px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-head h2 {
    margin-top: 0;
  }

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

  .arch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arch-arrow {
    display: none;
  }

  .guest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot--site,
  .shot--mobile {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 14px 18px;
  }

  .nav {
    gap: 12px;
  }

  .nav a:not(.nav-play) {
    display: none;
  }

  .hero {
    padding: 64px 18px 0;
  }

  .hero h1 {
    margin-top: 18px;
  }

  .hero h1 span {
    margin-top: 14px;
    letter-spacing: 0.2em;
  }

  .lede {
    font-size: 14px;
  }

  .hero-shot {
    margin-top: 42px;
  }

  .hero-shot figcaption,
  .shot figcaption {
    flex-direction: column;
    gap: 4px;
  }

  .section {
    padding: 82px 18px 0;
  }

  .section-head {
    padding-top: 18px;
  }

  .build-card {
    min-height: 0;
    padding: 22px;
  }

  .arch {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .notes li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .notes h3 {
    font-size: 19px;
  }

  .gallery {
    gap: 12px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 82px;
  }

  .stat {
    padding: 24px 18px;
  }

  .stat:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .stat b {
    font-size: 40px;
  }

  .closing {
    padding: 92px 18px 100px;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
    padding: 22px 18px 36px;
  }
}

@media (max-width: 560px) {
  .guest-grid {
    grid-template-columns: 1fr;
  }

  .guest {
    flex-direction: row;
  }

  .guest__art {
    flex: 0 0 40%;
    width: 40%;
  }

  .guest__art img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .guest__body {
    padding: 14px 14px 16px;
  }

  .guest h3 {
    font-size: 21px;
  }

  .guest__line {
    min-height: 0;
    margin-bottom: 10px;
  }

  .guest__skills li {
    padding: 6px 0;
  }
}
