/* Black Envelope Studios — static site v1 */

:root {
  --ink: #070606;
  --ink-soft: #0d0b0b;
  --paper: #d8d0c4;
  --paper-dim: #918a82;
  --line: rgba(165, 132, 86, 0.34);
  --gold: #9d7949;
  --gold-bright: #c09a65;
  --wax: #641312;
  --wax-bright: #8b211e;
  --max: 1240px;
  --pad: clamp(22px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(116, 26, 23, 0.12), transparent 38rem),
    var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--wax);
  color: #fff;
}

a {
  color: inherit;
}

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

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.68);
}

.site-header {
  width: 100%;
  min-height: 86px;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(7, 6, 6, .96), rgba(7, 6, 6, .66), transparent);
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(7, 6, 6, .92);
  backdrop-filter: blur(14px);
  border-color: rgba(157, 121, 73, .12);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .14em;
  line-height: 1;
  font-size: 13px;
}

.wordmark small {
  color: var(--gold);
  letter-spacing: .55em;
  margin-top: 7px;
  font: 8px Arial, Helvetica, sans-serif;
}

.site-nav {
  display: flex;
  gap: 30px;
}

.site-nav a {
  text-decoration: none;
  color: var(--paper-dim);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.site-nav a:hover {
  color: var(--paper);
}

.nav-toggle {
  display: none;
}

.hero {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  min-height: 100svh;
  padding: 132px 0 82px;
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.05fr);
  column-gap: clamp(42px, 7vw, 100px);
  row-gap: 30px;
  align-items: center;
  align-content: center;
  position: relative;
}

.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 3%;
  z-index: -1;
  background: radial-gradient(circle, rgba(99, 18, 17, .2), transparent 63%);
  filter: blur(30px);
}

.hero-visual img {
  width: 100%;
  display: block;
  object-fit: contain;
  filter: contrast(1.04) brightness(.92);
  mix-blend-mode: screen;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: 10px;
  line-height: 1.6;
}

.hero h1,
.section h2,
.game-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 92px);
  line-height: .96;
  letter-spacing: -.025em;
  max-width: 11ch;
}

.hero h1 span {
  display: block;
  color: var(--paper-dim);
  font-style: italic;
  margin-top: .15em;
}

.intro {
  color: var(--paper-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.75;
  max-width: 650px;
  margin: 30px 0 0;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 10px;
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.button-primary {
  background: var(--paper);
  color: #111;
  border-color: var(--paper);
}

.button-primary:hover {
  background: #eee7dc;
}

.button-ghost {
  color: var(--paper);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(157, 121, 73, .09);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 520px;
  height: 520px;
  left: -240px;
  top: 12%;
}

.orbit-two {
  width: 760px;
  height: 760px;
  right: -570px;
  bottom: -300px;
}

.scroll-cue {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--paper-dim);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .3em;
  gap: 10px;
  margin-top: 6px;
}

.scroll-cue i {
  width: 1px;
  height: 38px;
  display: block;
  background: linear-gradient(var(--gold), transparent);
}

.section {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: clamp(90px, 12vw, 170px) 0;
  border-top: 1px solid rgba(157, 121, 73, .15);
  position: relative;
}

.section-number {
  position: absolute;
  top: 28px;
  right: 0;
  color: rgba(216, 208, 196, .12);
  font: 52px Georgia, "Times New Roman", serif;
}

.section-heading {
  max-width: 850px;
}

.section h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.studio-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(50px, 8vw, 120px);
  margin-top: 72px;
}

.lead {
  margin: 0;
  font: italic clamp(26px, 3vw, 42px)/1.3 Georgia, "Times New Roman", serif;
  color: var(--gold-bright);
}

.body-copy {
  max-width: 650px;
}

.body-copy p {
  color: var(--paper-dim);
  margin: 0 0 24px;
  font: 17px/1.85 Georgia, "Times New Roman", serif;
}

.game-card {
  margin-top: 68px;
  border: 1px solid rgba(157, 121, 73, .25);
  background:
    linear-gradient(120deg, rgba(117, 22, 20, .12), transparent 30%),
    #0b0909;
  min-height: 480px;
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}

.game-card::after {
  content: "";
  width: 360px;
  height: 360px;
  border: 1px solid rgba(157, 121, 73, .12);
  border-radius: 50%;
  position: absolute;
  right: -120px;
  bottom: -160px;
  box-shadow:
    0 0 0 48px rgba(157, 121, 73, .035),
    0 0 0 100px rgba(157, 121, 73, .02);
}

.game-card-topline,
.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper-dim);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 9px;
  position: relative;
  z-index: 2;
}

.status {
  color: #bd8f87;
}

.game-card-content {
  min-height: 320px;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 60px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.game-kicker {
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 9px;
  color: var(--gold-bright);
}

.game-card h3 {
  margin: 14px 0 0;
  font-size: clamp(52px, 7vw, 104px);
  line-height: .92;
  max-width: 8ch;
}

.game-description {
  margin: 0;
  color: var(--paper-dim);
  font: 17px/1.8 Georgia, "Times New Roman", serif;
  max-width: 500px;
}

.seal-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--wax-bright), var(--wax) 60%, #2d0605);
  box-shadow: 0 0 22px rgba(100, 19, 18, .36);
}

.section-contact {
  border-bottom: 1px solid rgba(157, 121, 73, .15);
}

.contact-panel {
  text-align: center;
  padding: clamp(50px, 7vw, 100px) 0 10px;
}

.contact-panel h2 {
  margin-inline: auto;
  max-width: 13ch;
}

.contact-panel > p:not(.eyebrow) {
  color: var(--paper-dim);
  font: 17px/1.7 Georgia, "Times New Roman", serif;
}

.contact-email {
  display: inline-block;
  margin-top: 20px;
  color: var(--paper);
  font: clamp(18px, 2.5vw, 34px) Georgia, "Times New Roman", serif;
  text-underline-offset: 7px;
  text-decoration-color: rgba(157, 121, 73, .5);
}

.contact-meta {
  margin: 68px auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(157, 121, 73, .16);
}

.contact-meta div {
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid rgba(157, 121, 73, .16);
}

.contact-meta div:last-child {
  border-right: 0;
}

.contact-meta span {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 8px;
  color: var(--gold);
}

.contact-meta a {
  color: var(--paper-dim);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
}

.contact-meta a:hover {
  color: var(--paper);
}

.site-footer {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: 42px 0 58px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--paper-dim);
}

.site-footer div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.site-footer strong {
  color: var(--paper);
  font: 12px Georgia, "Times New Roman", serif;
  letter-spacing: .12em;
}

.site-footer span,
.site-footer p {
  font-size: 10px;
  letter-spacing: .08em;
}

.site-footer p {
  margin: 0;
  align-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 76px;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto;
    padding: 28px var(--pad) 36px;
    flex-direction: column;
    background: rgba(7, 6, 6, .98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform .3s ease;
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    display: grid;
    align-content: center;
    gap: 7px;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 1px;
    background: var(--paper);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 110px;
  }

  .hero-visual {
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1 {
    margin-inline: auto;
  }

  .intro {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .scroll-cue {
    display: inline-flex;
    margin-top: 4px;
  }

  .studio-grid,
  .game-card-content {
    grid-template-columns: 1fr;
  }

  .studio-grid {
    gap: 36px;
  }

  .game-card-content {
    gap: 30px;
  }

  .contact-meta {
    grid-template-columns: 1fr;
  }

  .contact-meta div {
    border-right: 0;
    border-bottom: 1px solid rgba(157, 121, 73, .16);
  }

  .contact-meta div:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer p {
    align-self: auto;
  }
}

@media (max-width: 520px) {
  :root {
    --pad: 18px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .section h2 {
    font-size: 42px;
  }

  .game-card h3 {
    font-size: 54px;
  }

  .button {
    width: 100%;
  }

  .contact-email {
    font-size: 17px;
    word-break: break-word;
  }
}

.game-card-footer-single {
  justify-content: flex-end;
}
