:root {
  --paper: #0b0805;
  --paper2: #120d08;
  --ink: #f0dfb6;
  --muted: #b7aa92;
  --red: #a65325;
  --gold: #c89943;
  --gold-light: #ebc878;
  --bronze: #6d451f;
  --line: #c8994366;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.wrap {
  width: min(1320px, calc(100% - 96px));
  margin: auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  border: 14px solid var(--paper);
  outline: 1px solid var(--gold);
  outline-offset: -28px;
  background: #090704;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 40%, #8f5c241f, transparent 36%),
    linear-gradient(90deg, #090704 0%, #090704f2 42%, #09070438 75%);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.nav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.compass {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  background: url("./hidden-council-brand.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 14px #c8994329);
}

nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-weight: 600;
}

nav a {
  padding: 12px 0;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.hero-artwork {
  position: absolute;
  z-index: 0;
  top: 126px;
  right: 4%;
  width: min(47vw, 700px);
  height: calc(100% - 286px);
  min-height: 470px;
  border: 1px solid var(--gold);
  outline: 1px solid var(--bronze);
  outline-offset: 8px;
  background:
    linear-gradient(90deg, #090704d9 0%, transparent 24%),
    url("./hidden-council-artwork.webp") center / 92% auto no-repeat;
  box-shadow:
    0 28px 80px #000c,
    0 0 60px #9f68222b;
  opacity: 0.92;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 82px;
  padding-right: 46%;
}

.eyebrow,
.kicker {
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 18px;
}

.eyebrow span {
  width: 58px;
  border-top: 1px solid var(--gold);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 700px;
  margin: 28px 0 18px;
  color: var(--gold-light);
  font-size: clamp(64px, 6.4vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-shadow: 0 4px 30px #000;
}

.flourish {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 520px;
  color: var(--gold);
  font-size: 12px;
  text-align: center;
}

.flourish::before,
.flourish::after {
  flex: 1;
  height: 1px;
  background: var(--gold);
  content: "";
}

.lede {
  max-width: 560px;
  margin: 28px 0;
  font-size: 20px;
  line-height: 1.55;
  color: #d4c6a9;
}

.actions {
  display: flex;
  gap: 16px;
}

.hero-copy .button {
  padding-inline: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid #a97832;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px #0009;
}

.primary {
  border: 4px double #e5bc68;
  background: #8a4c20;
  color: #fff1ca;
}

.primary:hover,
.primary:focus-visible {
  background: #a66027;
}

.secondary {
  background: #0d0907d9;
  color: var(--ink);
}

.proof {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 118px;
  padding: 0 5%;
  border-top: 1px solid var(--line);
  background: #090704e6;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.proof div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  text-align: center;
}

.proof div:last-child {
  border: 0;
}

.proof b {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 500;
}

.proof span {
  margin-top: 6px;
  color: #aa9b80;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section {
  padding: 125px 0;
}
.kicker {
  font-size: 12px;
}

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 80px;
  margin: 30px 0 65px;
}

.section h2,
.final h2 {
  margin: 0;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.section-head p,
.intro {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.gameplay {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, #78501f24, transparent 42%),
    linear-gradient(180deg, #100b06, #080604);
}

.gameplay .section-head {
  margin-bottom: 52px;
}

.carousel {
  outline: 0;
  touch-action: pan-y;
}

.carousel:focus-visible {
  outline: 1px solid var(--gold-light);
  outline-offset: 10px;
}

.carousel-stage {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(420px, 1fr) minmax(
      150px,
      0.36fr
    );
  align-items: center;
  gap: 20px;
  touch-action: pan-y;
}

.carousel-preview {
  appearance: none;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.5;
  transform: scale(0.8);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.carousel-preview-prev {
  transform-origin: right center;
}

.carousel-preview-next {
  transform-origin: left center;
}

.carousel-preview:hover,
.carousel-preview:focus-visible {
  opacity: 0.9;
  outline: 0;
  transform: scale(0.86);
}

.carousel-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  object-fit: cover;
  filter: saturate(0.72) brightness(0.72);
}

.carousel-preview span {
  display: block;
  margin-top: 12px;
  text-align: left;
}

.carousel-preview small,
.carousel-preview b {
  display: block;
}

.carousel-preview small {
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.carousel-preview b {
  font:
    600 17px Georgia,
    serif;
}

.carousel-focus {
  min-width: 0;
  margin: 0;
}

.carousel-frame {
  padding: 8px;
  border: 1px solid var(--gold);
  outline: 1px solid #c8994338;
  outline-offset: 5px;
  background: #030201;
  box-shadow: 0 24px 70px #000c;
}

.carousel-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.carousel-focus figcaption {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  margin-top: 26px;
}

.carousel-counter {
  padding-top: 5px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.carousel-focus strong {
  display: block;
  font:
    600 27px Georgia,
    serif;
}

.carousel-focus figcaption p {
  max-width: 620px;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.6;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}

.carousel-controls > button {
  display: grid;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0b0805;
  color: var(--gold-light);
  cursor: pointer;
  font-size: 20px;
  place-items: center;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.carousel-controls > button:hover,
.carousel-controls > button:focus-visible {
  border-color: var(--gold-light);
  outline: 0;
  background: #1c1309;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.carousel-dots button[aria-current="true"] {
  background: var(--gold-light);
  transform: scale(1.4);
}

.world {
  background: #060503;
  color: var(--ink);
}

.world .kicker {
  color: var(--gold);
}
.world .section-head p,
.world article p {
  color: #ad9f86;
}

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

.feature-grid article {
  padding: 38px 32px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 851px) {
  .feature-grid article:nth-child(3n + 1) {
    padding-left: 0;
  }

  .feature-grid article:nth-child(3n) {
    padding-right: 0;
    border-right: 0;
  }

  .feature-grid article:nth-last-child(-n + 3) {
    border-bottom: 0;
  }
}

.feature-grid article > span {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.15em;
}

.feature-grid h3 {
  margin: 42px 0 16px;
  color: var(--gold-light);
  font-size: 30px;
}

.feature-grid p {
  line-height: 1.65;
}

.player-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.player-features span {
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.player-features span:last-child {
  border-right: 0;
}

.dev {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 20%, #7c4c171f, transparent 34%), #171008;
}

.dev-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 110px;
}

.dev h2 {
  margin: 28px 0;
}

.text-link {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  color: var(--gold-light);
  font-weight: 700;
}

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

.dev li {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.dev li > span {
  color: var(--gold);
  font:
    700 12px Arial,
    sans-serif;
  letter-spacing: 0.12em;
}

.dev h3 {
  margin: 0 0 6px;
  font-size: 26px;
}

.dev li p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.final {
  padding: 120px 24px;
  background:
    radial-gradient(circle at 50% 25%, #76501f1f, transparent 38%), var(--paper);
  text-align: center;
}

.ornament {
  margin-bottom: 28px;
  color: var(--gold-light);
  font:
    38px Georgia,
    serif;
}

.final p:not(.kicker) {
  color: var(--muted);
  font-size: 18px;
}

.final .kicker {
  margin-bottom: 20px;
}

.center {
  justify-content: center;
  margin-top: 35px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer > :first-child {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.22em;
}

@media (max-width: 850px) {
  .wrap {
    width: min(calc(100% - 36px), 720px);
  }

  .hero {
    min-height: 1060px;
    border-width: 6px;
    outline-offset: -14px;
  }

  .nav {
    height: 80px;
  }

  .nav nav {
    display: none;
  }

  .brand {
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .compass {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .hero-artwork {
    top: 80px;
    right: -28%;
    width: 136%;
    height: 58%;
    min-height: 0;
    border: 0;
    outline: 0;
    background-position: center top;
    box-shadow: none;
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(#000 0%, #000 65%, transparent 100%);
    mask-image: linear-gradient(#000 0%, #000 65%, transparent 100%);
  }

  .hero-copy {
    padding-top: 70px;
    padding-right: 0;
  }

  .eyebrow {
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }

  .eyebrow span {
    width: 28px;
  }

  h1 {
    font-size: 48px;
  }
  .flourish {
    width: 100%;
  }
  .lede {
    max-width: 330px;
    font-size: 17px;
  }

  .proof {
    grid-template-columns: 1fr;
    padding: 0 22px;
  }

  .proof div {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 85px 0;
  }

  .section-head,
  .dev-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gameplay .section-head {
    margin-bottom: 38px;
  }

  .carousel-stage {
    position: relative;
    display: block;
    padding: 0 34px;
  }

  .carousel-preview {
    position: absolute;
    z-index: 3;
    top: 42px;
    width: 96px;
    opacity: 0.72;
  }

  .carousel-preview-prev {
    left: -35px;
    transform: scale(0.78);
  }

  .carousel-preview-next {
    right: -35px;
    transform: scale(0.78);
  }

  .carousel-preview:hover,
  .carousel-preview:focus-visible {
    transform: scale(0.82);
  }

  .carousel-preview span {
    display: none;
  }

  .carousel-focus figcaption {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 20px;
  }

  .carousel-controls {
    margin-top: 24px;
  }

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

  .feature-grid article,
  .feature-grid article + article {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid article:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .feature-grid article:last-child {
    border-bottom: 0;
  }

  .player-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-features span:nth-child(2) {
    border-right: 0;
  }

  .player-features span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .actions {
    flex-wrap: wrap;
  }
  .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: 0.7s ease-out both rise;
  }
  .hero-artwork {
    animation: 1s ease-out both fade;
  }

  .carousel-stage.is-moving-left .carousel-frame,
  .carousel-stage.is-moving-left figcaption {
    animation: 0.44s ease both carousel-left;
  }

  .carousel-stage.is-moving-right .carousel-frame,
  .carousel-stage.is-moving-right figcaption {
    animation: 0.44s ease both carousel-right;
  }

  .carousel-stage.is-moving-left .carousel-preview,
  .carousel-stage.is-moving-right .carousel-preview {
    animation: 0.44s ease both carousel-preview-in;
  }

  @keyframes rise {
    0% {
      opacity: 0;
      transform: translateY(18px);
    }
  }

  @keyframes fade {
    0% {
      opacity: 0;
    }
  }

  @keyframes carousel-left {
    from {
      opacity: 0.25;
      transform: translateX(34px) scale(0.98);
    }
  }

  @keyframes carousel-right {
    from {
      opacity: 0.25;
      transform: translateX(-34px) scale(0.98);
    }
  }

  @keyframes carousel-preview-in {
    from {
      opacity: 0.16;
    }
  }
}

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