/* ═══════════════════════════════════════════════════════════════════════
   Superego Software LTD — stylesheet
   Design: minimalist, dark, typographic
   ═══════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:           #0d0d0d;
  --bg-raised:    #141414;
  --bg-card:      #181818;
  --border:       #242424;
  --text:         #e8e8e8;
  --text-muted:   #737373;
  --text-faint:   #404040;
  --accent:       #c8a96e;
  --accent-dim:   rgba(200, 169, 110, 0.12);
  --accent-glow:  rgba(200, 169, 110, 0.06);
  --white:        #ffffff;

  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --nav-h:        68px;
  --footer-h:     56px;
  --radius:       4px;
  --radius-lg:    8px;

  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover { color: var(--white); }

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

/* ── Typography helpers ──────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* ── Layout helpers ──────────────────────────────────────────────────── */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: .65rem 1.75rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition);
}
.btn-primary:hover {
  background-color: var(--accent);
  color: var(--bg);
}

/* ═══════════════════════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background-color: rgba(13, 13, 13, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
}

.nav-container {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 30px;
  width: auto;
  display: block;
}
.nav-logo:hover .nav-logo-img { opacity: .8; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
}
.nav-links a {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

/* Brand name link in nav */
.nav-links .nav-brand {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .06em;
  font-size: .78rem;
  text-transform: uppercase;
  opacity: .85;
  white-space: nowrap;
}
.nav-links .nav-brand:hover {
  color: var(--accent);
  opacity: 1;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

/* ═══════════════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
  position: relative;
  overflow: hidden;
}

/* Subtle background grid */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .35;
  pointer-events: none;
}

/* Radial fade over grid */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 40%,
    transparent 20%, var(--bg) 80%);
  pointer-events: none;
}

/* Hero canvas animation */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-logo {
  display: block;
  margin: 0 auto 2rem;
  width: clamp(160px, 40vw, 340px);
  height: auto;
  /* Boost the red against the dark background */
  filter: drop-shadow(0 0 18px rgba(232, 0, 13, 0.25));
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   About
   ═══════════════════════════════════════════════════════════════════════ */
#about {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

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

.about-text p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }

/* ── Current project feature ───────────────────────────────────────── */
.current-work {
  --project-accent: #f20d0d;
  position: relative;
  margin: 3rem 0 4.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 0%, rgba(242, 13, 13, .14), transparent 34%),
    linear-gradient(145deg, #151515, #0a0a0a 68%);
  border: 1px solid #2f2222;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .26);
}

.current-work::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--project-accent);
  box-shadow: 0 0 28px rgba(242, 13, 13, .6);
}

.current-work-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.current-work-eyebrow,
.current-work-count {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.current-work-eyebrow { color: var(--project-accent); }
.current-work-count { color: var(--text-faint); }

.current-work-heading h3 {
  margin-top: .25rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
}

.current-project-card {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 1.2fr;
  align-items: stretch;
  overflow: hidden;
  color: inherit;
  background: #050505;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.current-project-card:hover {
  color: inherit;
  border-color: rgba(242, 13, 13, .72);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
}

.current-project-visual {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #000;
}

.current-project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(5, 5, 5, .78));
  pointer-events: none;
}

.current-project-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms cubic-bezier(.4, 0, .2, 1), opacity var(--transition);
  opacity: .88;
}

.current-project-card:hover .current-project-visual img {
  transform: scale(1.025);
  opacity: 1;
}

.current-project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.current-project-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.25rem;
  color: #cfcfcf;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.current-project-status > span {
  width: 7px;
  height: 7px;
  background: var(--project-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(242, 13, 13, .75);
}

.current-project-copy h4 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: .035em;
  line-height: .95;
  color: var(--white);
}

.current-project-copy p {
  max-width: 38rem;
  margin: 1rem 0 2rem;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.75;
}

.current-project-link {
  color: var(--project-accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-services {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.service-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.service-icon {
  flex-shrink: 0;
  font-size: .85rem;
  color: var(--accent);
  margin-top: .18rem;
  line-height: 1;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: .3rem;
  letter-spacing: .01em;
}

.service-item p {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════
   Portfolio
   ═══════════════════════════════════════════════════════════════════════ */
#portfolio {
  padding: 7rem 0;
  background-color: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.game-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.game-cover-wrap {
  aspect-ratio: 460 / 215;
  overflow: hidden;
  background-color: var(--bg);
}

.game-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.4, 0, .2, 1), opacity var(--transition);
  opacity: .85;
}
.game-card:hover .game-cover {
  transform: scale(1.04);
  opacity: 1;
}

/* "And more…" placeholder tile */
.game-cover-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
}
.game-cover-more span {
  font-size: 1.5rem;
  color: var(--text-faint);
  line-height: 1;
  letter-spacing: .05em;
}

/* No-image placeholder tile (e.g. The Grand Tour) */
.game-cover-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
}
.game-cover-no-image span {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  padding: 0 1rem;
}

.game-info {
  padding: .75rem 1rem;
}

.game-info h3 {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: .2rem;
}

.game-role {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .02em;
}

.game-studio {
  font-size: .68rem;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: .15rem;
  opacity: .75;
}

/* ═══════════════════════════════════════════════════════════════════════
   Tools / Fab Marketplace
   ═══════════════════════════════════════════════════════════════════════ */
#tools {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.tool-card:hover { border-color: var(--accent); }

/* Media area */
.tool-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg);
}

.tool-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.tool-media img,
.tool-media video,
.tool-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #181818 0%, #111 100%);
  border-bottom: 1px solid var(--border);
}
.tool-media-placeholder span {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Body */
.tool-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tool-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: .65rem;
  letter-spacing: -.005em;
}

.tool-desc {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Meta list */
.tool-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.tool-meta li {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  font-size: .78rem;
}

.meta-label {
  flex-shrink: 0;
  min-width: 90px;
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .68rem;
}

.tool-meta a {
  color: var(--text-muted);
  word-break: break-all;
}
.tool-meta a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════
   Contact
   ═══════════════════════════════════════════════════════════════════════ */
#contact {
  padding: 8rem 0;
  background-color: var(--bg-raised);
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-text {
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: .15rem;
  transition: color var(--transition), border-color var(--transition);
}
.contact-email:hover {
  color: var(--accent);
  border-color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════ */
#site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  min-height: var(--footer-h);
  border-top: 1px solid var(--border);
  padding: .55rem 0 calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(13, 13, 13, .92);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text-muted);
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 32px;
  padding: .25rem .65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .03em;
}
.footer-contact-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-contact-icon--fill {
  fill: currentColor;
  stroke: none;
}
.footer-contact a:hover {
  color: var(--white);
  border-color: var(--border);
  background: rgba(255, 255, 255, .035);
}
.footer-contact a:focus-visible {
  color: var(--white);
  border-color: var(--accent);
  outline: 2px solid var(--accent-dim);
  outline-offset: 2px;
}

.footer-copy {
  font-size: .72rem;
  color: var(--text-faint);
}

/* ═══════════════════════════════════════════════════════════════════════
   DESLOT project page
   ═══════════════════════════════════════════════════════════════════════ */
.project-page {
  --project-accent: #f20d0d;
  background: #050505;
}

.project-page #site-header {
  background-color: rgba(5, 5, 5, .9);
  border-bottom-color: #241717;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #a5a5a5;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-back:hover { color: var(--white); }

.project-brand {
  position: absolute;
  left: 50%;
  width: clamp(92px, 10vw, 118px);
  transform: translateX(-50%);
}

.project-brand img {
  width: 100%;
  height: auto;
}

.project-detail-main {
  padding-top: var(--nav-h);
}

.project-detail-hero {
  position: relative;
  min-height: min(760px, calc(100svh - var(--nav-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #251717;
  background:
    linear-gradient(rgba(255, 0, 0, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 0, .035) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(242, 13, 13, .12), transparent 34%),
    #030303;
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.project-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 68%, #050505 100%);
  pointer-events: none;
}

.project-detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) 2rem;
  text-align: center;
}

.project-detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.25rem;
  color: #d8d8d8;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project-detail-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--project-accent);
  box-shadow: 0 0 12px rgba(242, 13, 13, .75);
}

.project-title-art {
  width: min(100%, 1040px);
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 43%;
  margin: 0 auto;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, .48));
}

.project-overview {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.project-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.project-overview-copy .section-label { color: var(--project-accent); }

.project-overview-copy h2 {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--white);
}

.project-description {
  max-width: 760px;
  margin-top: 2rem;
  color: #a2a2a2;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.9;
}

.project-wishlist { margin-top: 1.5rem; }

.project-wishlist-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .25rem;
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid var(--project-accent);
}

.project-wishlist-link:hover { color: var(--project-accent); }

.project-wishlist-link:focus-visible,
.project-fact--steam:focus-visible {
  outline: 2px solid var(--project-accent);
  outline-offset: 4px;
}

.project-facts {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  list-style: none;
}

.project-fact {
  min-height: 98px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #101010, #080808);
  border: 1px solid #242424;
  border-radius: var(--radius-lg);
}

.project-fact--steam:hover { border-color: var(--project-accent); }

.project-fact-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  border: 1px solid #2c2c2c;
  border-radius: var(--radius);
}

.project-fact-icon img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.project-fact-icon--developer img {
  width: 94%;
  height: auto;
}

.project-fact-label {
  display: block;
  margin-bottom: .2rem;
  color: #5f5f5f;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-fact-value {
  display: block;
  color: #dedede;
  font-family: var(--font-display);
  font-size: .92rem;
}

.project-updates {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  border-top: 1px solid #201515;
  background:
    radial-gradient(circle at 15% 0%, rgba(242, 13, 13, .1), transparent 34%),
    #070707;
}

.project-updates .section-label { color: var(--project-accent); }

.project-updates h2 {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--white);
}

.dev-updates-list {
  display: grid;
  gap: 1.5rem;
}

.dev-update-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr);
  overflow: hidden;
  background: linear-gradient(135deg, #111, #080808 70%);
  border: 1px solid #2a2020;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
}

.dev-update-video {
  aspect-ratio: 16 / 9;
  background: #000;
}

.dev-update-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.dev-update-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: left;
}

.dev-update-number {
  margin-bottom: 1rem;
  color: var(--project-accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.dev-update-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--white);
}

.dev-update-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.5rem;
  padding-bottom: .3rem;
  color: #d9d9d9;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid #5b3030;
}

.dev-update-link:hover {
  color: var(--white);
  border-color: var(--project-accent);
}

.dev-update-link:focus-visible {
  outline: 2px solid var(--project-accent);
  outline-offset: 5px;
}

.dev-updates-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
  padding: .9rem 1.5rem;
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--project-accent);
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}

.dev-updates-more:hover {
  background: var(--project-accent);
  transform: translateY(-2px);
}

.dev-updates-more:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.project-news {
  padding: 5rem 0 6rem;
  text-align: center;
  border-top: 1px solid #201515;
  background: radial-gradient(circle at 50% 100%, rgba(242, 13, 13, .08), transparent 42%);
}

.project-news .section-label { color: var(--project-accent); }

.project-news h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--white);
}

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

/* ═══════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background-color: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }

  /* About grid */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .current-project-card { grid-template-columns: 1fr; }
  .current-project-visual { min-height: 0; aspect-ratio: 16 / 10; }
  .current-project-visual::after {
    background: linear-gradient(180deg, transparent 66%, rgba(5, 5, 5, .82));
  }

  .project-detail-hero {
    min-height: 0;
    align-items: flex-start;
  }

  .project-detail-hero-inner {
    padding-block: clamp(1.5rem, 6vw, 2.5rem) clamp(.75rem, 3vw, 1.5rem);
  }

  .project-overview-grid { grid-template-columns: 1fr; }
  .dev-update-card { grid-template-columns: 1fr; }

  /* Portfolio */
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
  }

  /* Tools */
  .tools-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { justify-content: center; }
  .footer-logo,
  .footer-copy { display: none; }
  .footer-contact { width: 100%; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .current-work-heading { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .current-project-copy h4 { font-size: 2.35rem; }
  .project-detail-hero-inner { padding-inline: 1rem; }
  .project-page .nav-logo { display: none; }
  .project-brand { position: static; width: 96px; transform: none; }
  .footer-contact { gap: .25rem; }
  .footer-contact a { padding-inline: .7rem; }
  .footer-contact a span { display: none; }
}

/* ── Scroll-triggered fade-in ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
