/* ════════════════════════════════════════════
   After Mars — Main Stylesheet
   ════════════════════════════════════════════ */

/* ── Fonts ── */

@font-face {
  font-family: IbmVga;
  src: url(fonts/ibm_vga8.ttf);
}

@font-face {
  font-family: CrimsonPro;
  src: url(fonts/CrimsonPro-Regular.ttf);
  font-style: normal;
}

@font-face {
  font-family: CrimsonPro;
  src: url(fonts/CrimsonPro-Italic.ttf);
  font-style: italic;
}

@font-face {
  font-family: CormorantGaramond;
  src: url(fonts/CormorantGaramond-Regular.ttf);
  font-style: normal;
}

@font-face {
  font-family: CormorantGaramond;
  src: url(fonts/CormorantGaramond-Italic.ttf);
  font-style: italic;
}

/* ── Reset & base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design tokens ── */
:root {
  --rust: #B5521A;
  --rust-light: #D4713A;
  --dust: #C8A882;
  --parchment: #F2EAD8;
  --parchment-dark: #DDD0B8;
  --mist: #6B5F52;
  --mist-bright: #8C7D6E;
  --night: #0F0D0A;
  --night-mid: #181410;
  --night-lift: #221D17;
  --off-white: #F5EFE3;
  --ink: #2A211A;
  --ink-faint: #7A6A58;

  --font-serif: 'CormorantGaramond', Georgia, serif;
  --font-body: 'CrimsonPro', Georgia, serif;
  --font-ibm: 'IbmVga', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--night);
  color: var(--off-white);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}


/* ════════════════════════════════════════════
   NAV — invisible until scrolled
   ════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: rgba(15, 13, 10, 0);
  border-bottom: 1px solid rgba(181, 82, 26, 0);
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s;
  pointer-events: none;
}

nav.scrolled {
  background: rgba(15, 13, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(181, 82, 26, 0.18);
  pointer-events: auto;
}

.nav-logo {
  font-family: var(--font-elite);
  font-size: 1.6rem;
  position: relative;
  bottom: -0.2rem;
  letter-spacing: 0.1em;
  color: var(--dust);
  text-decoration: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s, transform 0.4s, color 0.2s;
}

nav.scrolled .nav-logo {
  opacity: 0.6;
  transform: translateY(0);
}

.nav-logo:hover {
  opacity: 1 !important;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ibm);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.62);
  text-decoration: none;
  text-wrap: nowrap;
  opacity: 0;
  transition: color 0.2s, opacity 0.4s;
}

nav.scrolled .nav-links a {
  opacity: 1;
}

.nav-links a:hover {
  color: var(--off-white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0rem;
}

.nav-share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ibm);
  font-size: 1.0rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist-bright);
  background: transparent;
  border: 1px solid rgba(107, 95, 82, 0.3);
  padding: 0.38rem 0.85rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  opacity: 0;
}

.nav-share-btn img {
  width: 24px;
  filter: sepia(1) brightness(0.5);
}

nav.scrolled .nav-share-btn {
  opacity: 1;
}

.nav-share-btn:hover {
  color: var(--dust);
  border-color: rgba(200, 168, 130, 0.4);
  background: rgba(200, 168, 130, 0.05);
}

.nav-share-btn:hover img {
  filter: sepia(1) brightness(0.7) saturate(8) hue-rotate(305deg);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust-light);
  text-decoration: none;
  border: 1px solid rgba(181, 82, 26, 0.45);
  padding: 0.4rem 1.1rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  opacity: 0;
}

nav.scrolled .nav-cta {
  opacity: 1;
}

.nav-cta:hover {
  background: rgba(181, 82, 26, 0.1);
  border-color: var(--rust-light);
  color: var(--dust);
}

.logo-h {
  background-image: url(images/ui/logo-h.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: inline-block;
  width: 190px;
  height: 37px;
  position: relative;
  bottom: -0.4rem;
}

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */

/* ════════════════════════════════════════
   HERO SHELL — responsive states
════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  width: 100%;
  height: 100vh;
}

/* mobile */
@media (max-width: 860px) and (orientation: portrait) {
  .hero {
    height: auto;
  }
}

/* ════════════════════════════════════════
   BACKGROUND
════════════════════════════════════════ */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url(images/ui/back.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left bottom;
  z-index: 0;
  bottom: 10vh;
  filter: brightness(1.2);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(15, 13, 10, 0) 40%,
      rgba(15, 13, 10, 0.4) 75%,
      var(--night) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.08) 3px,
      rgba(0, 0, 0, 0.08) 4px);
  background-size: 100% 40px;
  animation: crt-roll 8s linear infinite;
}

@keyframes crt-roll {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 40px;
  }
}

#vignette {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 30vh 8vh #000;
}

/* ════════════════════════════════════════
   LEFT BLOCK — logo + subtitle + byline
   absolutely pinned to bottom-left
════════════════════════════════════════ */
.hero-left {
  position: absolute;
  left: 3vw;
  bottom: 12vh;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  transform-origin: left bottom;
  z-index: 10;
  pointer-events: none;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 3.8vh;
  margin-bottom: 7vh;
  color: var(--green);
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s ease forwards;
}

.hero-byline {
  font-family: var(--font-ibm);
  font-size: 2.1vh;
  margin-bottom: 3vh;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease forwards;
}

.hero-byline span {
  color: #355e75;
}

.hero-logo {
  background-image: url(images/ui/logo.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left bottom;
  width: 38vh;
  height: 33vh;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s ease forwards;
  pointer-events: none;
}

.hero-quick-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4vh;
  margin-top: 2vh;
}

#quick-links-hint {
  width: 100%;
  margin-top: 1vh;
  font-family: var(--font-ibm);
  font-size: 2vh;
  text-align: center;
  position: relative;
  color: #ffbb76;
}

.quick-link {
  display: inline-block;
  width: 2.9vh;
  height: 2.9vh;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  filter: sepia(1) brightness(0.6) saturate(10) hue-rotate(320deg) drop-shadow(0 0 12px #000);
}

.quick-link:hover {
  filter: sepia(1) brightness(0.8) saturate(10) hue-rotate(320deg) drop-shadow(0 0 6px #000);
}

/* mobile: left block becomes top-pinned, not absolute */
@media (max-width: 860px) and (orientation: portrait) {
  .hero-left {
    position: relative;
    left: auto;
    bottom: auto;
    padding: 5rem 1.5rem 1rem;
    gap: 0.75rem;
  }
}


/* ════════════════════════════════════════
   TABS — fixed width, centered horizontally
   in the space left of the dialog
════════════════════════════════════════ */
.hero-tabs {
  position: absolute;
  /* align bottom with hero bottom */
  bottom: 0;
  /* center in the space left of dialog */
  left: 50%;
  transform: translateX(-50%);
  /* shift left a bit to account for dialog on right */
  /* margin-left: -80px; */

  display: flex;
  align-items: stretch;
  height: 280px;
  transform-origin: bottom center;
}

@media (max-width: 860px) {
  .hero-tabs {
    display: none;
  }
}

.tab {
  width: 185px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 0;
}

.hero-tabs:hover {
  z-index: 20;
}

/* vertical side borders, fading to transparent at top */
.tab::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0px;
  width: 2px;
  z-index: 20;
  background: linear-gradient(transparent 20%, rgba(212, 113, 58, 0.5));
  transform: translateY(100px);
  transition: transform 0.3s ease;
}

.tab::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0px;
  width: 2px;
  z-index: 20;
  background: linear-gradient(transparent 20%, rgba(212, 113, 58, 0.5));
  transform: translateY(100px);
  transition: transform 0.3s ease;
}

.tab:hover .tab-overlay {
  opacity: 0.1;
}

.tab-back {
  position: absolute;
  width: 100%;
  height: 100%;
  position: absolute;
  transform: translateY(100px);
  -webkit-mask-image: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.6));
  mask-image: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

.tab:hover .tab-back {
  transform: translateY(0px);
  -webkit-mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.7) 20%, black);
  mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.7) 20%, black);
}

.tab:hover::before {
  transform: translateY(0px);
  z-index: 20;
  background: linear-gradient(transparent, rgba(212, 113, 58, 0.73) 40%, rgba(212, 113, 58, 1));
}

.tab:hover::after {
  transform: translateY(0px);
  z-index: 20;
  background: linear-gradient(transparent, rgba(212, 113, 58, 0.73) 40%, rgba(212, 113, 58, 1));
}

.tab-content {
  position: relative;
  z-index: 2;
  padding: 0 12px 10px;
}

.tab-prefix {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--orange);
  display: block;
  margin-bottom: 0.25em;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.tab-name {
  font-family: var(--font-ibm);
  font-size: 16px;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.75);
  line-height: 1.3;
  display: block;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.tab-name .arrow {
  transform: rotate(90deg);
  position: relative;
  display: inline-block;
  width: 1vh;
}

.tab:hover .tab-prefix {
  opacity: 1;
}

.tab:hover .tab-name {
  color: var(--off-white);
}

@media (min-width: 1600px) {
  .tab::before {
    transform: translateY(0px);
  }

  .tab::after {
    transform: translateY(0px);
  }

  .tab-back {
    transform: translateY(0px);
  }
}

/* ════════════════════════════════════════
   DIALOG — png image, right edge
════════════════════════════════════════ */
.hero-dialog {
  position: absolute;
  top: 10vh;
  bottom: 10vh;
  right: 0;
  z-index: 10;
  /* dialog image size — adjust to match your png */
  width: 600px;
  transition: transform 0.4s ease, right 0.4s ease;
  background: url(images/ui/dialog.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
  pointer-events: none;
}

@media (max-width: 860px) and (orientation: portrait) {
  .hero-dialog {
    display: none;
  }
}

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-art::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(15, 13, 10, 0.05) 0%,
      rgba(15, 13, 10, 0) 25%,
      rgba(15, 13, 10, 0.55) 75%,
      var(--night) 100%);
}

#dialog {
  background: url(images/ui/dialog.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
}

.logo-big {
  background-image: url(images/ui/logo.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  width: 335px;
  height: 320px;
}

.tab[href="#about"] .tab-back {
  background-image: url(images/art/heroes.jpg);
  background-size: 240px;
  background-position-x: -29px;
  background-position-y: 10px;
}

.tab[href="#art"] .tab-back {
  background-image: url(images/art/easel.jpg);
  background-size: 410px;
  background-position-x: -142px;
  background-position-y: -570px;
}

.tab[href="#contact"] .tab-back {
  background-image: url(images/art/carter.jpg);
  background-size: 630px;
  background-position-x: -100px;
  background-position-y: -470px;
}

.tab[href="#world"] .tab-back {
  background-image: url(images/art/mammoth.jpg);
  background-size: 1100px;
  background-position-x: -320px;
  background-position-y: -30px;
}

.tab[href="#faq"] .tab-back {
  background-image: url(images/art/greenmothers.jpg);
  background-size: 860px;
  background-position-x: -140px;
  background-position-y: -140px;
}


/* ════════════════════════════════════════════
   DIVIDER
   ════════════════════════════════════════════ */

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 82, 26, 0.18), transparent);
  margin: 0 3rem;
}


/* ════════════════════════════════════════════
   SECTION SHELL
   ════════════════════════════════════════════ */

.section {
  padding: 3rem 3rem;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  font-family: var(--font-ibm);
}

.section-label-ref {
  font-size: 1.96rem;
  text-transform: uppercase;
  color: rgba(181, 82, 26, 0.42);
  white-space: nowrap;
}

.section-label-title {
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--rust-light);
  white-space: nowrap;
}

.section-label-rule {
  display: none;
  flex: 1;
  height: 1px;
  background: rgba(181, 82, 26, 0.14);
  max-width: 5rem;
}


/* ════════════════════════════════════════════
   THE GAME
   ════════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: 1.0fr 0.6fr;
  gap: 3rem;
  align-items: start;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--off-white);
  margin-bottom: 1.5rem;
}

.about-heading em {
  color: var(--rust-light);
  font-style: italic;
}

.about-body {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(245, 239, 227, 0.7);
  line-height: 1.88;
}

.about-body p+p {
  margin-top: 1.2em;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.fact-item {
  border-left: 2px solid rgba(181, 82, 26, 0.28);
  padding-left: 1.4rem;
  max-width: 20rem;
}

.fact-label {
  font-family: var(--font-ibm);
  font-size: 1.0rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-light);
  margin-bottom: 0.35rem;
}

.fact-value {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--parchment);
}

.fact-desc {
  font-size: 0.95rem;
  color: var(--mist-bright);
  font-style: italic;
  margin-top: 0.2rem;
}

#screenshots-area {
  width: 100%;
  margin: 30px auto;
  display: flex;
  flex-direction: row;
}

#screenshots-previews {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

#screenshot-picture {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border: 1px solid var(--dust);
  background: url("images/screenshots/Screenshot 1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.screenshot-preview {
  display: inline-block;
  font-family: var(--font-ibm);
  font-size: 1rem;
  color: var(--rust);
  cursor: pointer;
  pointer-events: all;
}

.screenshot-preview.selected {
  color: var(--dust);
  cursor: default;
  pointer-events: none;
}


/* ════════════════════════════════════════════
   ART & CHARACTERS
   ════════════════════════════════════════════ */

.section--art {
  padding-bottom: 5rem;
}

.art-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  /* background: rgba(181, 82, 26, 0.1); */
  margin-top: 3rem;
  width: 60.6rem;
}

.art-card {
  background: rgba(98, 64, 45, 0.14);
  overflow: hidden;
  transition: background 0.25s;
  margin: 4px;
}

.art-card:hover {
  background: var(--night-lift);
}

.art-card.wide {
  grid-column: span 2;
}

.art-img-wrap {
  overflow: hidden;
  display: block;
  /* or inline-block if needed */
}

.art-img-wrap img {
  display: block;
  /* removes inline bottom gap */
  width: 100%;
}

.art-img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  display: block;
}

.art-card.wide .art-ph {
  aspect-ratio: 16 / 9;
}

.art-ph--wide {
  aspect-ratio: 16 / 9;
}

.art-card.char .art-ph {
  aspect-ratio: 3 / 4;
  background:
    repeating-linear-gradient(-45deg,
      rgba(200, 168, 130, 0.018) 0px,
      rgba(200, 168, 130, 0.018) 1px,
      transparent 1px,
      transparent 10px),
    var(--night-lift);
}

.art-ph-icon {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(181, 82, 26, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-caption {
  padding: 1rem 1.3rem 1.35rem;
  border-top: 1px solid rgba(181, 82, 26, 0.08);
}

.art-caption-type {
  font-family: var(--font-ibm);
  font-size: 1.0rem;
  text-transform: uppercase;
  color: var(--rust-light);
  opacity: 0.65;
  margin-bottom: 0.3rem;
}

.art-caption-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--dust);
  margin-bottom: 0.35rem;
}

.art-caption-desc {
  font-size: 0.93rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(245, 239, 227, 0.48);
  line-height: 1.6;
}

.art-more {
  font-family: var(--font-ibm);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(107, 95, 82, 0.38);
  margin-top: 1.25rem;
  text-align: right;
}

.art-more a {
  color: var(--rust-light);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.art-more a:hover {
  opacity: 1;
}


/* ════════════════════════════════════════════
   WORLD & STORY
   ════════════════════════════════════════════ */

.text-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.text-col-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--off-white);
  margin-bottom: 1.4rem;
}

.text-col-heading em {
  color: var(--rust-light);
  font-style: italic;
}

.text-col-body {
  font-size: 1.04rem;
  font-weight: 300;
  color: rgba(245, 239, 227, 0.68);
  line-height: 1.88;
}

.text-col-body p+p {
  margin-top: 1.1em;
}

.about-body p b,
.text-col-body p b {
  font-weight: 700;
  color: var(--dust);
}

.text-col-footer {
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(181, 82, 26, 0.1);
  font-family: var(--font-ibm);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(107, 95, 82, 0.42);
}

.text-col-footer a {
  color: var(--rust-light);
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.2s;
}

.text-col-footer a:hover {
  opacity: 1;
}


/* ════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════ */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(181, 82, 26, 0.12);
  margin-top: 3rem;
}

.faq-item {
  padding: 2.4rem 2.5rem;
  border-bottom: 1px solid rgba(181, 82, 26, 0.1);
  border-right: 1px solid rgba(181, 82, 26, 0.1);
}

.faq-item:nth-child(even) {
  border-right: none;
}

.faq-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.faq-q {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--off-white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.faq-a {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(245, 239, 227, 0.58);
  line-height: 1.82;
}


/* ════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════ */

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.connect-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--off-white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.connect-heading em {
  color: var(--rust-light);
  font-style: italic;
}

.connect-sub {
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(245, 239, 227, 0.52);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.connect-links {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.connect-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  padding: 1rem 1rem;
  border: 1px solid rgba(181, 82, 26, 0.14);
  background: rgba(181, 82, 26, 0.025);
  transition: border-color 0.2s, background 0.2s;
}

.connect-link:hover {
  border-color: rgba(181, 82, 26, 0.38);
  background: rgba(181, 82, 26, 0.065);
}

.connect-link-icon {
  width: 34px;
  height: 34px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: sepia(1) brightness(0.5) saturate(20) hue-rotate(320deg);
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.icon[data-type="steam"] {
  background-image: url(images/icons/icon_steam.png);
}

.icon[data-type="youtube"] {
  background-image: url(images/icons/icon_youtube.png);
}

.icon[data-type="discord"] {
  background-image: url(images/icons/icon_discord.png);
}

.icon[data-type="kofi"] {
  background-image: url(images/icons/icon_kofi.png);
}

.icon[data-type="email"] {
  background-image: url(images/icons/icon_envelope.png);
}

.icon[data-type="twitter"] {
  background-image: url(images/icons/icon_x.png);
}

.icon[data-type="mastodon"] {
  background-image: url(images/icons/icon_mastodon.png);
}

.icon[data-type="reddit"] {
  background-image: url(images/icons/icon_reddit.png);
}

.icon[data-type="wizard"] {
  background-image: url(images/icons/hat_wizard.png);
}

.connect-link-text {
  line-height: 1.3;
}

.connect-link-text strong {
  display: block;
  font-family: var(--font-ibm);
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--parchment);
}

.connect-link-text strong b {
  color: var(--rust-light);
}

.connect-link-text span {
  font-family: var(--font-body);
  font-size: 1.0rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.connect-link-text span b {
  color: var(--dust);
}

.contact-box {
  border: 1px solid rgba(181, 82, 26, 0.14);
  padding: 2.1rem 2.4rem;
  background: rgba(181, 82, 26, 0.025);
}

.contact-box-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 0.45rem;
}

.contact-box-sub {
  font-size: 0.96rem;
  font-weight: 300;
  color: rgba(245, 239, 227, 0.48);
  margin-bottom: 1.8rem;
  line-height: 1.72;
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(181, 82, 26, 0.08);
}

.contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-row-label {
  font-family: var(--font-ibm);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-light);
  width: 5rem;
  flex-shrink: 0;
}

.contact-row-value {
  font-size: 0.98rem;
  color: var(--parchment);
  font-weight: 300;
}

.contact-row-value a {
  color: var(--parchment);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-row-value a:hover {
  color: var(--dust);
}


/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */

footer {
  padding: 2.4rem 3rem;
  border-top: 1px solid rgba(181, 82, 26, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 300;
  font-style: italic;
  color: rgb(176 139 99 / 45%);
}

.footer-right {
  font-family: var(--font-ibm);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(132 116 98 / 32%);
}


/* ════════════════════════════════════════════
   SHARE TOAST
   ════════════════════════════════════════════ */

.share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--night-lift);
  border: 1px solid rgba(181, 82, 26, 0.3);
  padding: 0.65rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dust);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .about-grid {
    gap: 3.5rem;
  }

  .text-two-col {
    gap: 3.5rem;
  }

  .connect-grid {
    gap: 2rem;
  }
}

@media (max-width: 860px) {

  /* Nav */
  nav {
    display: none;
  }

  /* Sections */
  .section {
    padding: 5rem 1.5rem;
  }

  .about-grid,
  .text-two-col,
  .connect-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Art grid */
  .art-mosaic {
    grid-template-columns: 1fr 1fr;
    width: 40.4rem;
  }

  .art-card.wide {
    grid-column: span 2;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(181, 82, 26, 0.1) !important;
  }

  .faq-item:last-child {
    border-bottom: none !important;
  }

  /* Misc */
  .divider {
    margin: 0 1.5rem;
  }

  footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .art-mosaic {
    zoom: 0.75;
  }
}