/* ============================================================
   CHROMAGRAPH THEME — MAIN STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@700;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #111110;
  --bg-card:       rgba(255,255,255,0.02);
  --bg-input:      rgba(255,255,255,0.05);
  --text-primary:  #f2f0ea;
  --text-muted:    #a09e98;
  --text-faint:    #555451;
  --border-faint:  rgba(255,255,255,0.07);
  --border-subtle: rgba(255,255,255,0.14);
  --accent-red:    #e63329;
  --accent-orange: #f5a623;
  --accent-green:  #34b27d;
  --accent-blue:   #4a90d9;
  --accent-purple: #9b59b6;
  --font-display:  'Noto Sans', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --max-width:     1200px;
  --gutter:        2.5rem;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- NAVIGATION ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17,17,16,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border-faint);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  overflow: hidden;
  max-height: 64px;
}

/* Constrain custom logo to fit the 64px header — works regardless of image size */
.site-branding a.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-branding img.custom-logo,
.site-branding .custom-logo-link img {
  height: 32px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
  display: block;
}

.logo-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
}
.logo-bars span {
  width: 4px;
  border-radius: 1px;
  display: block;
}
.logo-bars span:nth-child(1) { height: 10px; background: var(--accent-red); }
.logo-bars span:nth-child(2) { height: 16px; background: var(--accent-orange); }
.logo-bars span:nth-child(3) { height: 22px; background: var(--accent-green); }
.logo-bars span:nth-child(4) { height: 18px; background: var(--accent-blue); }
.logo-bars span:nth-child(5) { height: 13px; background: var(--accent-purple); }
.logo-bars span:nth-child(6) { height: 8px;  background: var(--accent-red); }

.site-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
}
.main-navigation a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: var(--text-primary); }
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0.5px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  letter-spacing: 0.02em;
  border: none;
  white-space: nowrap;
}
.btn-primary { background: var(--text-primary); color: var(--bg-primary); }
.btn-primary:hover { background: #fff; color: var(--bg-primary); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 0.5px solid var(--border-subtle);
}
.btn-ghost:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.4); }

/* ---- SECTION LABEL ---- */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 3.5rem 0 1.5rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border-faint);
}
.section-label span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ---- HERO ---- */
.hero {
  padding: 5rem 0 3.5rem;
  max-width: 820px;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
}
.hero h1 .gradient-text {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-green), var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 2rem;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- GAME CARDS ---- */
.games-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  padding-bottom: 5rem;
}

.game-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem;
  border: 0.5px solid var(--border-faint);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  align-items: start;
}
.game-card.reverse .game-carousel { order: 2; }
.game-card.reverse .game-info    { order: 1; }

/* ---- CAROUSEL ---- */
.game-carousel {
  position: relative;
  border-radius: 6px;
  background: #1a1a18;
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  position: relative;
}

/* padding-top creates a 16:10 intrinsic box */
.carousel-slide-inner {
  position: relative;
  width: 100%;
  padding-top: 62.5%;
  overflow: hidden;
}

/* Blurred bg fills the box and is scaled up to hide blur fringe */
.carousel-slide-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.35) saturate(1.5);
  transform: scale(1.2);
  transform-origin: center center;
}

/* Foreground: absolutely fills box, object-fit:contain keeps full image visible */
.carousel-slide-fg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.carousel-slide-fg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-slide .slide-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
  font-style: italic;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17,17,16,0.75);
  border: 0.5px solid var(--border-subtle);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
  line-height: 1;
}
.carousel-btn:hover { background: rgba(17,17,16,0.95); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.carousel-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dots button.active {
  background: var(--text-primary);
  transform: scale(1.2);
}

/* ---- GAME INFO ---- */
.game-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.game-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
  line-height: 1.1;
}
.game-status {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}
.game-description {
  font-size: 14px;
  line-height: 1.75;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.game-description p {
  font-size: 14px;
  line-height: 1.75;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.game-description p:last-child { margin-bottom: 0; }
.platform-links { display: flex; gap: 8px; flex-wrap: wrap; }
.platform-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.18s;
  border: 0.5px solid var(--border-subtle);
  color: #c8c6c0;
  background: rgba(255,255,255,0.04);
}
.platform-btn:hover { background: rgba(255,255,255,0.09); color: var(--text-primary); }
.platform-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Web / self-hosted button gets a subtle accent to stand out */
.platform-btn--web {
  border-color: rgba(52, 178, 125, 0.4);
  color: #34b27d;
}
.platform-btn--web:hover {
  background: rgba(52, 178, 125, 0.1);
  color: #34b27d;
  border-color: rgba(52, 178, 125, 0.7);
}

/* ---- GAME SINGLE PAGE ---- */
.game-single-hero {
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}
.game-single-carousel { border-radius: var(--radius-md); overflow: hidden; }
.game-single-meta h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}
.game-single-meta .game-status { font-size: 14px; margin-bottom: 1.5rem; }
.game-single-meta .game-description { font-size: 15px; margin-bottom: 2rem; }
.game-single-meta .platform-links { margin-bottom: 2rem; }

.game-content {
  padding: 3rem 0 5rem;
  max-width: 720px;
}
.game-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}
.game-content p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ---- PORTFOLIO PAGE ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 5rem;
}
.portfolio-item {
  border: 0.5px solid var(--border-faint);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.portfolio-item:hover {
  border-color: var(--border-subtle);
  transform: translateY(-2px);
}
.portfolio-item-thumb {
  aspect-ratio: 16 / 9;
  background: #1a1a18;
  overflow: hidden;
}
.portfolio-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-item-body { padding: 1.25rem; }
.portfolio-item-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.portfolio-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}
.portfolio-item-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}
.portfolio-item-body p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.portfolio-item-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.portfolio-item-link:hover { color: var(--text-primary); }
.portfolio-item-link::after { content: '→'; }

/* ---- PORTFOLIO BIO HEADER ---- */
.portfolio-bio {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
  padding: 4rem 0 3rem;
  border-bottom: 0.5px solid var(--border-faint);
}
.portfolio-bio-content {}
.portfolio-bio-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.0;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
}
.portfolio-bio-content p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 1rem;
}
.portfolio-bio-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 1rem;
}
.portfolio-bio-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.portfolio-bio-photo {
  width: 200px;
  flex-shrink: 0;
}
.portfolio-bio-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 0.5px solid var(--border-faint);
}
.portfolio-bio-photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #1a1a18;
  border: 0.5px solid var(--border-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- PORTFOLIO GRID ---- */
.portfolio-grid-section {
  padding: 0 0 5rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.portfolio-grid-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
}
.portfolio-grid-thumb {
  aspect-ratio: 1;
  background: #1a1a18;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.6rem;
  transition: opacity 0.2s;
}
.portfolio-grid-item:hover .portfolio-grid-thumb { opacity: 0.8; }
.portfolio-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-grid-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ---- PORTFOLIO SINGLE PAGE ---- */
.pf-single-card {
  margin-top: 2rem;
  border: 0.5px solid var(--border-faint);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
}

.pf-single-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  min-height: 300px;
}

/* Carousel column — aspect-ratio drives its height */
.pf-single-carousel {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.pf-single-carousel .game-carousel {
  border-radius: 0;
  height: 100%;
  width: 100%;
}
.pf-single-carousel .carousel-track { height: 100%; }
.pf-single-carousel .carousel-slide { height: 100%; }
.pf-single-carousel .carousel-slide-inner {
  padding-top: 0;
  height: 100%;
}
.pf-single-carousel .carousel-slide-bg,
.pf-single-carousel .carousel-slide-fg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

/* Sidebar column */
.pf-single-sidebar {
  border-left: 0.5px solid var(--border-faint);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pf-single-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0 0 0.6rem;
}
.pf-single-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a90d9;
  background: rgba(74,144,217,0.1);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 1rem;
}
.pf-single-meta-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pf-meta-item {
  padding: 0.75rem 0;
  border-top: 0.5px solid var(--border-faint);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf-meta-item:last-child { margin-top: auto; }
.pf-meta-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pf-meta-value {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
}
.pf-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.portfolio-tech-pill {
  font-size: 11px;
  font-weight: 400;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 0.5px solid var(--border-faint);
  white-space: nowrap;
}

/* Description — full width below */
.pf-single-desc {
  border-top: 0.5px solid var(--border-faint);
  padding: 1.75rem 2rem 2.25rem;
}
.pf-single-desc p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.pf-single-desc p:last-child { margin-bottom: 0; }
.pf-single-desc h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.75rem 0 0.5rem;
}
.pf-single-desc h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.25rem 0 0.4rem;
}
.pf-single-desc ul,
.pf-single-desc ol {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  margin: 0 0 1rem;
}
.pf-single-desc li { margin-bottom: 0.3rem; }
.pf-single-desc strong { color: var(--text-primary); font-weight: 500; }
.pf-single-desc a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .pf-single-top { grid-template-columns: 1fr; min-height: 0; }
  .pf-single-carousel { aspect-ratio: 16 / 10; height: auto; }
  .pf-single-carousel .carousel-slide-inner { padding-top: 62.5%; height: 0; }
  .pf-single-sidebar { border-left: none; border-top: 0.5px solid var(--border-faint); }
  .pf-single-desc { padding: 1.25rem; }
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  padding: 4rem 0 5rem;
  align-items: start;
}
.about-sidebar {}
.about-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: #1a1a18;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-social { display: flex; flex-direction: column; gap: 8px; }
.about-social a {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  padding: 6px 0;
  border-bottom: 0.5px solid var(--border-faint);
}
.about-social a:hover { color: var(--text-primary); }
.about-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 1.5rem;
}
.about-content p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 1rem;
}
.skill-pill {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 8px 14px;
  border: 0.5px solid var(--border-faint);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  text-align: center;
}

/* ---- CONTACT PAGE ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 4rem 0 5rem;
  align-items: start;
}
.contact-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 1.25rem;
}
.contact-intro p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.form-input,
.form-textarea {
  background: var(--bg-input);
  border: 0.5px solid var(--border-faint);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-subtle);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }
.form-textarea { min-height: 140px; resize: vertical; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 4rem 0 2rem;
  border-bottom: 0.5px solid var(--border-faint);
  margin-bottom: 0;
}
.page-hero .hero-eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 1rem;
}
.page-hero p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 0.5px solid var(--border-faint);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}
.footer-nav ul { display: flex; gap: 1.5rem; }
.footer-nav a {
  font-size: 12px;
  color: var(--text-faint);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text-muted); }

/* ---- LIGHTBOX ---- */
.carousel-zoom-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(17,17,16,0.75);
  border: 0.5px solid rgba(255,255,255,0.2);
  color: #f2f0ea;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  padding: 0;
}
.game-carousel:hover .carousel-zoom-btn { opacity: 1; }
.carousel-zoom-btn:hover { background: rgba(17,17,16,0.95); }
.carousel-zoom-btn svg { width: 14px; height: 14px; pointer-events: none; }

.cg-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.cg-lightbox.open { display: flex; }
.cg-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.8);
}
.cg-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.2);
  color: #f2f0ea;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cg-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* WordPress more-link & page-links */
.more-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 0.5px solid var(--border-subtle);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, border-color 0.2s;
}
.more-link:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.4); }

.page-links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 2rem;
  font-size: 13px;
  color: var(--text-muted);
}
.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color 0.2s;
}
.page-links a:hover { color: var(--text-primary); }

/* WordPress block content inside game/about pages */
.about-body p,
.game-content p { color: var(--text-muted); font-weight: 300; line-height: 1.8; margin-bottom: 1rem; }
.about-body h2, .about-body h3,
.game-content h2, .game-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}
.about-body ul, .about-body ol,
.game-content ul, .game-content ol {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-body a, .game-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  :root { --gutter: 1.5rem; }

  .game-card,
  .game-card.reverse {
    grid-template-columns: 1fr;
  }
  .game-card.reverse .game-carousel { order: 0; }
  .game-card.reverse .game-info    { order: 0; }

  .game-single-hero { grid-template-columns: 1fr; gap: 2rem; }
  .about-layout     { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout   { grid-template-columns: 1fr; gap: 2.5rem; }

  .portfolio-bio {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .portfolio-bio-photo { order: -1; }
  .portfolio-bio-photo img,
  .portfolio-bio-photo-placeholder { width: 120px; height: 120px; }
  .portfolio-bio-photo { width: 120px; }

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

@media (max-width: 640px) {
  :root { --gutter: 1rem; }

  .main-navigation { display: none; }
  .main-navigation.open { display: block; }
  .main-navigation.open ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-top: 0.5px solid var(--border-faint);
  }
  .main-navigation.open a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 0.5px solid var(--border-faint);
  }
  .nav-toggle { display: block; }

  .hero h1 { font-size: 2.2rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
}