:root {
  --ink: #0b0906;
  --ink-panel: #15110c;
  --paper: #f3ead7;
  --paper-muted: #d0c4ae;
  --gold: #d8a443;
  --gold-bright: #f0bd55;
  --sky: #d7d2c5;
  --surface: #a87332;
  --earth-one: #6e4c2b;
  --earth-two: #4d3522;
  --earth-three: #36271d;
  --earth-four: #211a15;
  --header-height: 72px;
  --surface-y: 46vh;
  --drill-x: 84.4vw;
  --world-width: 100vw;
  --drill-start-offset: 20px;
  --drill-depth: 0px;
  --bore-depth: calc(100vh - var(--surface-y) - var(--drill-start-offset) - 56px);
}

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

html {
  background: var(--ink);
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 5px;
}

::selection {
  background: var(--gold-bright);
  color: var(--ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 12px 18px;
  background: var(--gold-bright);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.18s ease-out;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 9px clamp(18px, 3vw, 48px);
  border-bottom: 1px solid rgba(216, 164, 67, 0.34);
  background: rgba(11, 9, 6, 0.96);
}

.studio-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.studio-logo {
  width: 48px;
  height: auto;
  flex: 0 0 auto;
}

.studio-wordmark small {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9f9685;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.language-switch a {
  min-width: 28px;
  padding: 7px 3px;
  color: #c7bdab;
  text-align: center;
}

.language-switch a[aria-current="page"] {
  color: var(--gold-bright);
}

.header-steam {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--gold);
  color: var(--paper);
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.18s ease-out, color 0.18s ease-out;
}

.header-steam:hover {
  background: var(--gold);
  color: var(--ink);
}

.landing,
.landing-world {
  width: 100%;
  height: 100vh;
  height: 100svh;
}

.landing-world {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  isolation: isolate;
}

.world-art,
.drilling-stage {
  position: absolute;
  inset: 0;
}

.world-art {
  z-index: -2;
  overflow: hidden;
  background: #784817;
}

.world-background {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: var(--world-width);
  height: auto;
  max-width: none;
  user-select: none;
}

.ground-line {
  position: absolute;
  top: var(--surface-y);
  left: var(--drill-x);
  width: 1px;
  height: 1px;
  visibility: hidden;
}

.landing-copy {
  position: absolute;
  z-index: 20;
  top: calc(var(--header-height) + clamp(18px, 3vh, 32px));
  left: clamp(18px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  width: clamp(460px, 38vw, 600px);
}

.panel-copy-scrim {
  position: relative;
  padding: 0 clamp(22px, 2.2vw, 34px) clamp(20px, 2vw, 28px);
  border-left: 4px solid var(--gold);
  background: rgba(11, 9, 6, 0.8);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.panel-copy-scrim::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 3px;
  background: var(--gold-bright);
  content: "";
}

.draggable-window {
  --drag-x: 0px;
  --drag-y: 0px;
  transform: translate3d(var(--drag-x), var(--drag-y), 0);
}

.drag-handle {
  position: relative;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.drag-handle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(240, 189, 85, 0.58);
  content: "•••";
  font-size: 9px;
  letter-spacing: 3px;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.draggable-window.is-dragging .drag-handle {
  cursor: grabbing;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
  border-bottom: 1px solid rgba(243, 234, 215, 0.22);
  color: #bfb4a0;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  white-space: nowrap;
}

.panel-status::before {
  width: 7px;
  height: 7px;
  background: var(--gold-bright);
  content: "";
}

.game-logo {
  width: min(100%, 510px);
  height: auto;
  margin-top: clamp(14px, 2vh, 21px);
  aspect-ratio: 1280 / 360;
  object-fit: contain;
  object-position: left center;
}

.hero-statement {
  max-width: 520px;
  margin: clamp(13px, 2vh, 22px) 0 8px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(34px, 2.8vw, 46px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.03;
}

.hero-statement::before {
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 13px;
  background: var(--gold-bright);
  content: "";
}

.hero-lead {
  max-width: 520px;
  margin: 0;
  color: var(--paper-muted);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.52;
}

.hero-cta {
  margin-top: clamp(16px, 2.5vh, 26px);
}

.steam-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 70px;
  padding-left: 20px;
  border: 1px solid var(--gold-bright);
  background: var(--gold);
  color: #151007;
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out;
}

.steam-button-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 17px;
  font-weight: 700;
}

.steam-button-copy small {
  font-family: "Oswald", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.steam-button b {
  align-self: stretch;
  display: grid;
  width: 68px;
  margin-left: 20px;
  border-left: 1px solid rgba(21, 16, 7, 0.34);
  place-items: center;
  font-size: 22px;
  font-weight: 500;
}

.steam-button:hover {
  border-color: #ffd273;
  background: var(--gold-bright);
}

.game-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: clamp(13px, 2vh, 21px) 0 0;
  padding: 12px 0;
  border-top: 1px solid rgba(243, 234, 215, 0.25);
  border-bottom: 1px solid rgba(243, 234, 215, 0.25);
  list-style: none;
}

.game-facts li {
  color: #ded3c0;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.game-facts li + li::before {
  content: "/";
  margin: 0 11px;
  color: var(--gold-bright);
}

.trailer-shell {
  position: absolute;
  top: clamp(210px, 24vh, 310px);
  left: calc(100% + clamp(36px, 3vw, 70px));
  width: clamp(480px, 38vw, 780px);
  margin: 0;
  padding: 0 clamp(14px, 1.3vw, 20px) clamp(20px, 1.8vw, 28px);
  overflow: hidden;
  border-left: 4px solid var(--gold);
  background: rgba(11, 9, 6, 0.8);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.trailer-shell::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 3px;
  background: var(--gold-bright);
  content: "";
}

.trailer-frame-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  border-bottom: 1px solid rgba(243, 234, 215, 0.22);
  color: var(--paper);
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trailer-frame-title small {
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 500;
}

.trailer-screen {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(240, 189, 85, 0.42);
  background: #050403;
}

.trailer-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

.trailer-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  border: 0;
  background: rgba(5, 4, 3, 0.56);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.18s ease-out;
}

.trailer-play:hover {
  background: rgba(5, 4, 3, 0.34);
}

.trailer-play-icon {
  display: grid;
  width: 58px;
  height: 58px;
  padding-left: 4px;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  color: var(--gold-bright);
  place-items: center;
  font-size: 19px;
  transition: background-color 0.18s ease-out, color 0.18s ease-out;
}

.trailer-play:hover .trailer-play-icon {
  background: var(--gold-bright);
  color: var(--ink);
}

.trailer-play-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.trailer-play-copy strong {
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trailer-play-copy small {
  color: var(--gold-bright);
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.trailer-shell.is-playing .trailer-play {
  display: none;
}

.footer-window {
  position: absolute;
  z-index: 18;
  bottom: clamp(18px, 2.5vh, 30px);
  left: clamp(18px, 3vw, 48px);
  width: clamp(360px, 31vw, 500px);
  padding: 0 clamp(14px, 1.3vw, 20px) 18px;
  border-left: 4px solid var(--gold);
  background: rgba(11, 9, 6, 0.8);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.footer-window::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 3px;
  background: var(--gold-bright);
  content: "";
}

.footer-window-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-bottom: 1px solid rgba(243, 234, 215, 0.22);
  color: var(--paper);
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-window-title small {
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 500;
}

.footer-window-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 15px;
  color: var(--paper-muted);
  font-size: 12px;
}

.footer-window-body a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-bright);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-window-body a:hover {
  color: var(--paper);
}

.drilling-stage {
  z-index: 8;
  pointer-events: none;
}

.well-bore {
  position: absolute;
  top: calc(var(--surface-y) + var(--drill-start-offset));
  left: calc(var(--drill-x) - 26px);
  width: 52px;
  height: var(--bore-depth);
  background-image: url("/mat/bore-tile.png");
  background-position: center 0;
  background-size: 144px 216px;
  background-repeat: repeat-y;
  border-radius: 0 0 26px 26px;
}

.drill-string {
  position: absolute;
  top: calc(var(--surface-y) + var(--drill-start-offset));
  left: calc(var(--drill-x) - 14px);
  width: 28px;
  height: var(--drill-depth);
  overflow: hidden;
}

.drill-helix {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: 280px;
  height: 2200px;
  background-image: url("/mat/drill-track.png");
  background-position: calc(50% + 2px) calc(100% + 120px);
  background-size: 280px auto;
  background-repeat: no-repeat;
  transform: translateX(-50%);
  animation: helix-turn 0.46s linear infinite;
}

.drill-head {
  position: absolute;
  top: calc(var(--surface-y) + var(--drill-start-offset) + var(--drill-depth) - 3px);
  left: var(--drill-x);
  width: 52px;
  aspect-ratio: 512 / 523;
  transform: translateX(-50%);
  transform-origin: center top;
}

.drill-head-piece {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.drill-head-arm-left {
  clip-path: inset(11.47% 64.65% 74% 6.25%);
  transform: scaleX(0.55);
  transform-origin: 34.77% center;
}

.drill-head-arm-right {
  clip-path: inset(11.47% 0 74% 71.48%);
  transform: scaleX(0.55);
  transform-origin: 72.07% center;
}

.drill-head-collar {
  clip-path: inset(0 21.88% 86.62% 27.73%);
}

.drill-head-core {
  clip-path: inset(12.62% 27.15% 0 33.98%);
}

.depth-readout {
  position: absolute;
  top: calc(var(--surface-y) + var(--drill-start-offset) + var(--drill-depth) - 5px);
  right: calc(100% - var(--drill-x) + 31px);
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(240, 189, 85, 0.44);
  background: #15100b;
  color: var(--paper);
  font-family: "Oswald", sans-serif;
  white-space: nowrap;
}

.depth-readout span {
  color: #b9ad99;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.depth-readout strong {
  color: var(--gold-bright);
  font-size: 15px;
  font-weight: 600;
}

@keyframes helix-turn {
  from { background-position: calc(50% + 2px) calc(100% + 120px); }
  to { background-position: calc(50% + 2px) calc(100% + 157.10px); }
}

@media (max-height: 780px) and (min-width: 901px) {
  :root {
    --header-height: 64px;
  }

  .landing-world {
    min-height: 620px;
  }

  .landing-copy {
    top: calc(var(--header-height) + 12px);
  }

  .panel-copy-scrim {
    padding-inline: 22px;
    padding-bottom: 18px;
  }

  .game-logo {
    width: 360px;
    margin-top: 11px;
  }

  .hero-statement {
    margin-top: 10px;
    font-size: 30px;
  }

  .hero-statement::before {
    height: 3px;
    margin-bottom: 9px;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.46;
  }

  .hero-cta {
    margin-top: 13px;
  }

  .steam-button {
    min-height: 52px;
  }

  .steam-button-copy {
    font-size: 15px;
  }

  .game-facts {
    margin-top: 11px;
    padding-top: 9px;
  }

  .trailer-shell {
    top: clamp(170px, 23vh, 220px);
    left: calc(100% + 28px);
    width: min(38vw, 520px);
    margin: 0;
  }

}

@media (max-width: 1199px) {
  .landing-copy {
    width: min(500px, 46vw);
  }

  .trailer-shell {
    position: relative;
    top: auto;
    left: auto;
    width: min(calc(100% - 34px), 480px);
    margin: 18px 0 0 24px;
  }
}

@media (max-width: 900px) {
  :root {
    --mobile-drill-lane: clamp(96px, 20vw, 180px);
  }

  body {
    overflow-y: auto;
  }

  .landing,
  .landing-world {
    height: auto;
    min-height: 980px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .header-steam span {
    display: none;
  }

  .landing-copy {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: min(620px, calc(100% - var(--mobile-drill-lane) - 16px));
    margin: calc(var(--header-height) + 16px) 0 24px 12px;
  }

  .panel-copy-scrim {
    padding: 0 20px 24px;
  }

  .hero-statement {
    font-size: clamp(27px, 6vw, 36px);
  }

  .hero-lead {
    font-size: 14px;
  }

  .steam-button {
    min-height: 60px;
    padding-left: 16px;
  }

  .steam-button-copy {
    font-size: 15px;
  }

  .steam-button b {
    width: 52px;
    margin-left: 12px;
  }

  .world-background {
    left: auto;
    right: -45px;
  }

  .well-bore,
  .drill-string,
  .depth-readout {
    opacity: 0.5;
  }

  .trailer-shell {
    width: 100%;
    margin: 14px 0 0;
  }

  .footer-window {
    right: auto;
    bottom: 12px;
    left: 8px;
    width: calc(100% - var(--mobile-drill-lane) - 12px);
  }
}

@media (max-width: 540px) {
  :root {
    --header-height: 66px;
  }

  .studio-wordmark {
    font-size: 18px;
  }

  .studio-logo {
    width: 42px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-steam {
    min-height: 38px;
    padding-inline: 11px;
  }

  .landing-copy {
    width: calc(100% - var(--mobile-drill-lane) - 12px);
    margin-right: 0;
    margin-left: 8px;
  }

  .panel-copy-scrim {
    padding: 0 14px 18px;
    border-left-width: 3px;
  }

  .panel-heading {
    gap: 8px;
    font-size: 9px;
  }

  .hero-statement {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 13px;
    line-height: 1.45;
  }

  .steam-button {
    width: 100%;
    min-height: 56px;
    padding-left: 12px;
  }

  .steam-button-copy {
    font-size: 13px;
    line-height: 1.22;
  }

  .steam-button b {
    width: 40px;
    margin-left: 8px;
  }

  .trailer-shell {
    width: 100%;
    margin-left: 0;
    padding: 0 10px 16px;
    border-left-width: 3px;
  }

  .trailer-frame-title {
    min-height: 34px;
    font-size: 10px;
  }

  .trailer-screen {
    margin-top: 10px;
  }

  .footer-window {
    padding: 0 10px 14px;
    border-left-width: 3px;
  }

  .footer-window-title {
    min-height: 34px;
    font-size: 10px;
  }

  .footer-window-body {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-top: 11px;
    font-size: 10px;
  }

  .footer-window-body a {
    gap: 7px;
    font-size: 10px;
  }

  .trailer-play-icon {
    width: 44px;
    height: 44px;
  }

  .trailer-play {
    gap: 10px;
    padding: 10px;
  }

  .trailer-play-copy strong {
    font-size: 13px;
  }

  .game-facts li + li::before {
    margin-inline: 8px;
  }

  .game-facts li {
    font-size: 10px;
  }

  .world-background {
    right: -56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .drill-helix {
    animation: none !important;
  }
}
