/* ============================================================
   JAVAD LYON STUDIOS — Main Stylesheet
   Premium dark theme, Apple-inspired, mobile-first
   ============================================================ */

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

:root {
  --bg:           #000000;
  --bg-soft:      #0a0a0a;
  --surface-1:    #111111;
  --surface-2:    #161616;
  --surface-3:    #1e1e1e;
  --border:       rgba(255,255,255,0.07);
  --border-md:    rgba(255,255,255,0.12);
  --border-hi:    rgba(255,255,255,0.20);
  --white:        #ffffff;
  --off-white:    #f5f5f7;
  --grey-1:       #cccccc;
  --grey-2:       #aaaaaa;
  --grey-3:       #888888;
  --grey-4:       #555555;
  --grey-5:       #333333;
  --accent-glow:  rgba(255,255,255,0.06);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', sans-serif;

  --ease-out:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-cinema:  cubic-bezier(0.16, 1, 0.3, 1);
  --spring:       cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-s:  8px;
  --radius-m:  14px;
  --radius-l:  20px;
  --radius-xl: 28px;

  --section-v: clamp(80px, 10vw, 140px);
  --container: 1200px;
  --gutter:    clamp(20px, 5vw, 48px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

::selection { background: rgba(255,255,255,0.15); }

/* --- Loader ----------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s var(--ease-out);
}
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--grey-3);
  animation: loaderPulse 1.2s ease infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* --- Layout ----------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-v) 0; }
.section-alt  { background: var(--surface-1); }
.section-dark { background: var(--bg-soft); }

.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: inline; } }

/* --- Typography ------------------------------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-4);
  margin-bottom: 1.1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--grey-5);
  border-radius: 50%;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--white);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--grey-3);
  margin-top: 1rem;
  max-width: 500px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  min-height: 44px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--grey-1);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.12);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-md);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-hi);
  transform: translateY(-1px);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-md);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-hi);
}

/* --- Badges ----------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.07);
  color: var(--grey-2);
  border: 1px solid var(--border);
}
.badge-accent {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--border-md);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.nav-logo-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}
.nav-logo:hover .nav-logo-text { color: var(--grey-1); }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--grey-3);
  border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.nav-link-active {
  color: var(--white);
}
.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.06); }
@media (min-width: 768px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
  transform-origin: center;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.nav-mobile.open { max-height: 400px; }

.nav-mobile-links {
  padding: 1.5rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile-link {
  padding: 0.8rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--grey-2);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(10px);
  transition: color 0.2s, opacity 0.35s var(--ease-cinema), transform 0.35s var(--ease-cinema);
}
.nav-mobile-link.link-in { opacity: 1; transform: translateY(0); }
.nav-mobile-link:hover  { color: var(--white); }
.nav-mobile-link:last-child { border-bottom: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px var(--gutter) 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(70,65,100,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 50% 105%, rgba(20,20,30,0.8) 0%, transparent 55%);
  will-change: transform;
  animation: gradientPulse 14s ease-in-out infinite;
}
@keyframes gradientPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.72; }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero-orb-1 {
  width: min(800px, 110vw);
  height: min(800px, 110vw);
  top: -35%;
  left: -20%;
  background: radial-gradient(circle, rgba(255,255,255,0.032) 0%, transparent 55%);
  filter: blur(70px);
}
.hero-orb-2 {
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  bottom: -25%;
  right: -15%;
  background: radial-gradient(circle, rgba(160,150,255,0.022) 0%, transparent 55%);
  filter: blur(70px);
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey-5);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-cinema) 0.2s forwards;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(3.8rem, 9vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.88;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--white);
}

.hero-title-line {
  display: block;
  opacity: 0;
  animation: heroFadeUp 1.1s var(--ease-cinema) forwards;
}
.hero-title-line:nth-child(1) { animation-delay: 0.35s; }
.hero-title-line:nth-child(2) { animation-delay: 0.55s; color: rgba(255,255,255,0.6); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--grey-3);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-cinema) 0.8s forwards;
}

.hero-description {
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  color: var(--grey-4);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-cinema) 1s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-cinema) 1.15s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-cinema) 1.8s forwards;
}
.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-5);
}
.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--grey-5), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.85) translateY(0); }
  50%       { opacity: 0.8; transform: scaleY(1) translateY(4px); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1.35fr;
    gap: clamp(3rem, 6vw, 7rem);
    align-items: start;
  }
  .about-left { position: sticky; top: 88px; }
}

.about-text {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--grey-2);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}
.about-text:last-of-type { margin-bottom: 2.5rem; }

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
}
@media (max-width: 480px) {
  .about-values { grid-template-columns: 1fr 1fr; }
}

.about-value-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-4);
  margin-bottom: 0.35rem;
}
.about-value-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey-1);
}

/* ============================================================
   FEATURED PROJECT
   ============================================================ */
.featured-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: border-color 0.3s;
}
.featured-card:hover { border-color: var(--border-md); }

@media (min-width: 900px) {
  .featured-card { grid-template-columns: 1fr 1.2fr; min-height: 540px; }
}

.featured-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem);
  background: linear-gradient(135deg, #0e0e0e 0%, #161620 50%, #0d0d12 100%);
  min-height: 320px;
}

.featured-mockup {
  width: min(220px, 55vw);
  aspect-ratio: 9/16;
  background: linear-gradient(160deg, #1a1a2e 0%, #0f0f1a 50%, #16162a 100%);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(100,80,200,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: mockupFloat 7s ease-in-out infinite;
}
@keyframes mockupFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.featured-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(120,100,220,0.08) 0%, transparent 70%);
}
.featured-mockup::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.featured-mockup-logo {
  width: 78%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 14px;
}

.featured-info {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.featured-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.featured-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

.featured-description {
  font-size: 1rem;
  color: var(--grey-3);
  line-height: 1.75;
  max-width: 440px;
}

.featured-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.featured-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.featured-detail-label {
  font-size: 0.78rem;
  color: var(--grey-4);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.featured-detail-value {
  font-size: 0.88rem;
  color: var(--grey-1);
  font-weight: 500;
}

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.04);
}

.project-card-visual {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0e0e1e 0%, #12121c 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.project-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(100,80,200,0.06) 0%, transparent 70%);
}
.project-card-visual .card-icon {
  font-size: 3.5rem;
  color: rgba(255,255,255,0.55);
  position: relative;
  z-index: 1;
}

.project-card-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 14px;
}

.project-card-visual-placeholder {
  background: linear-gradient(135deg, #111 0%, #151515 100%);
}
.project-card-visual-placeholder::before { display: none; }

.placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--grey-5);
  position: relative;
  z-index: 1;
}
.placeholder-icon svg { width: 100%; height: 100%; }

.project-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-card-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.project-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.project-card-description {
  font-size: 0.88rem;
  color: var(--grey-3);
  line-height: 1.65;
  flex: 1;
}
.project-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-2);
  transition: color 0.2s;
}
.project-card-link:hover { color: var(--white); }
.project-card-coming {
  font-size: 0.78rem;
  color: var(--grey-5);
  font-style: italic;
}

/* ============================================================
   NEWS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-md);
}
.news-card-placeholder { opacity: 0.6; }

.news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.news-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-3);
  padding: 0.25rem 0.6rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.news-date {
  font-size: 0.75rem;
  color: var(--grey-4);
}

.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--white);
}

.news-excerpt {
  font-size: 0.88rem;
  color: var(--grey-3);
  line-height: 1.65;
  flex: 1;
}

.news-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-2);
  transition: color 0.2s;
  align-self: flex-start;
}
.news-link:hover { color: var(--white); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: clamp(4rem, 11vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.contact-text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--grey-3);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: left;
  max-width: 680px;
  margin: 0 auto;
}
@media (min-width: 540px) {
  .contact-methods { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 840px) {
  .contact-methods { grid-template-columns: repeat(3, 1fr); }
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
}
.contact-method:hover {
  background: var(--surface-3);
  border-color: var(--border-md);
  transform: translateY(-2px);
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--white);
}
.contact-method-icon svg { width: 18px; height: 18px; }

.contact-method-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-4);
  margin-bottom: 0.2rem;
}
.contact-method-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey-1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: clamp(3rem, 6vw, 5.5rem) 0 2rem;
  background: var(--bg-soft);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.footer-logo {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.45rem;
}

.footer-tagline {
  font-size: 0.83rem;
  color: var(--grey-4);
  line-height: 1.5;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey-3);
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.25s var(--ease-out);
  flex-shrink: 0;
}
.footer-social:hover {
  color: var(--white);
  border-color: var(--border-md);
  background: rgba(255,255,255,0.05);
}
.footer-social svg { width: 15px; height: 15px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.footer-nav-link {
  font-size: 0.82rem;
  color: var(--grey-3);
  padding: 0.35rem 1.5rem 0.35rem 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-nav-link:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-copy, .footer-credit {
  font-size: 0.76rem;
  color: var(--grey-5);
  line-height: 1.5;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.24s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.36s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-label, .hero-title-line, .hero-subtitle, .hero-description, .hero-actions, .hero-scroll {
    opacity: 1; transform: none;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero {
  padding: 140px var(--gutter) 60px;
  border-bottom: 1px solid var(--border);
}
.legal-hero-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-4);
  margin-bottom: 0.75rem;
}
.legal-hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.legal-nav {
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}
.legal-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.legal-nav-inner::-webkit-scrollbar { display: none; }
.legal-tab {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-3);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.legal-tab:hover        { color: var(--white); }
.legal-tab.active-tab   { color: var(--white); border-bottom-color: var(--white); }

.legal-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
  display: none;
}
.legal-section.active-section { display: block; }
.legal-section:last-child      { border-bottom: none; }

.legal-content { max-width: 720px; }
.legal-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--grey-1);
  margin: 2rem 0 0.5rem;
}
.legal-content p {
  font-size: 0.95rem;
  color: var(--grey-3);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal-content li {
  font-size: 0.95rem;
  color: var(--grey-3);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.legal-content a {
  color: var(--grey-1);
  text-decoration: underline;
  text-decoration-color: var(--border-hi);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.legal-content a:hover { color: var(--white); }
.legal-updated {
  font-size: 0.78rem;
  color: var(--grey-5);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ============================================================
   ABOUT — SERVICES CALLOUT
   ============================================================ */
.about-services {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.2rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}
.about-services-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-4);
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.about-services-icon svg { width: 17px; height: 17px; }
.about-services-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-4);
  margin-bottom: 0.3rem;
}
.about-services-text {
  font-size: 0.88rem;
  color: var(--grey-3);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   FOOTER — ADDRESS
   ============================================================ */
.footer-address {
  font-size: 0.78rem;
  color: var(--grey-5);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* ============================================================
   CONTACT — STATIC METHOD (non-clickable, e.g. address)
   ============================================================ */
.contact-method-static { cursor: default; }
.contact-method-static:hover {
  transform: none;
  background: var(--surface-2);
  border-color: var(--border);
}
.contact-method-value { overflow-wrap: break-word; word-break: break-word; }

/* ============================================================
   HERO ORBS — AMBIENT PULSE
   ============================================================ */
@keyframes orbPulse1 {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}
@keyframes orbPulse2 {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
.hero-orb-1 { animation: orbPulse1 20s ease-in-out infinite; }
.hero-orb-2 { animation: orbPulse2 16s ease-in-out infinite; }

/* ============================================================
   NEWS — FOLLOW CARD
   ============================================================ */
.news-card-follow {
  background: linear-gradient(145deg, #141420 0%, var(--surface-2) 70%);
  border-color: rgba(180,160,255,0.1);
  position: relative;
  overflow: hidden;
}
.news-card-follow::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(120,90,230,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.news-follow-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-1);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.6rem 1.1rem;
  border-radius: 100px;
  transition: all 0.25s var(--ease-out);
  align-self: flex-start;
  margin-top: auto;
}
.news-follow-cta:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
  transform: translateX(2px);
}
.news-follow-cta svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ============================================================
   FOOTER — REFINED
   ============================================================ */
.footer { position: relative; }
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-md) 40%, var(--border-md) 60%, transparent 100%);
}
.footer-tagline { font-size: 0.78rem; }
.footer-nav-link { font-size: 0.78rem; }

/* ============================================================
   GAME PAGE — MANFEE LYON CARD
   ============================================================ */
.game-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px var(--gutter) 80px;
  text-align: center;
}
.game-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.game-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  width: 100%;
}

.game-studio-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey-5);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-cinema) 0.2s forwards;
}
.game-logo {
  width: min(180px, 48vw);
  height: auto;
  border-radius: 28px;
  margin-bottom: 2rem;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 30px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(100,80,200,0.12);
  animation: mockupFloat 7s ease-in-out infinite, heroFadeUp 1.1s var(--ease-cinema) 0.35s both;
}
.game-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: heroFadeUp 1.1s var(--ease-cinema) 0.55s forwards;
}
.game-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--grey-3);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 480px;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-cinema) 0.75s forwards;
}
.game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-cinema) 0.9s forwards;
}
.game-store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-cinema) 1.05s forwards;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-m);
  min-width: 158px;
  text-align: left;
  transition: all 0.25s var(--ease-out);
}
.store-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hi);
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
}
.store-btn svg { flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; }
.store-btn-sub {
  font-size: 0.6rem;
  color: var(--grey-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}
.store-btn-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
}
.game-stat {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.game-stat:nth-child(odd)  { padding-right: 1.5rem; }
.game-stat:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}
.game-stat-label {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-4);
}
.game-stat-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-1);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-md);
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  color: var(--grey-2);
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.feature-text {
  font-size: 0.88rem;
  color: var(--grey-3);
  line-height: 1.65;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .screenshots-grid { grid-template-columns: repeat(4, 1fr); }
}
.screenshot-placeholder {
  aspect-ratio: 9/16;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
}
.screenshot-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot-inner span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-5);
}

.trailer-wrap { max-width: 860px; }
.trailer-placeholder {
  aspect-ratio: 16/9;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
}
.trailer-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(100,80,200,0.05) 0%, transparent 65%);
}
.trailer-play {
  width: 68px;
  height: 68px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.25s var(--ease-out);
}
.trailer-placeholder:hover .trailer-play {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  transform: scale(1.06);
}
.trailer-play svg { width: 22px; height: 22px; margin-left: 3px; }
.trailer-label {
  font-size: 0.78rem;
  color: var(--grey-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.release-wrap {
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
}

.back-to-studio {
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.back-link {
  font-size: 0.8rem;
  color: var(--grey-4);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.back-link:hover { color: var(--white); }

/* ============================================================
   MOBILE — CORE IMPROVEMENTS
   ============================================================ */

/* Tablet & phone: larger touch targets, better nav */
@media (max-width: 767px) {
  :root { --section-v: clamp(60px, 14vw, 100px); }

  .nav-mobile-link {
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .hero { padding: clamp(96px, 26vw, 116px) var(--gutter) 64px; }
  .hero-label  { margin-bottom: 1.2rem; }
  .hero-title  { font-size: clamp(3rem, 9vw, 4.8rem); margin-bottom: 1.4rem; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 1rem; }
  .hero-description {
    font-size: 0.93rem;
    color: var(--grey-3);
    margin-bottom: 1.75rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .featured-visual { min-height: 240px; padding: 2rem 1.5rem; }
  .featured-info   { padding: 1.75rem; gap: 1.1rem; }
  .featured-title  { font-size: 1.7rem; }

  .project-card-body { padding: 1.25rem; }

  .news-card { padding: 1.5rem; }

  .contact-title { font-size: clamp(3rem, 13.5vw, 5.5rem); }
  .contact-text  { font-size: 0.95rem; }
  .contact-methods { max-width: 100%; }

  .footer-main { gap: 1.5rem; }
  .footer-nav-link { padding: 0.45rem 1.2rem 0.45rem 0; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .legal-hero  { padding: 100px var(--gutter) 40px; }
  .legal-section { padding: 40px 0; }
  .legal-tab   { padding: 0.9rem 1rem; font-size: 0.82rem; }
}

/* Landscape phone: hide scroll indicator */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-scroll { display: none; }
}

/* Game page mobile */
@media (max-width: 767px) {
  .game-hero { padding: clamp(96px, 26vw, 116px) var(--gutter) 64px; }
  .game-logo { width: min(140px, 38vw); border-radius: 22px; margin-bottom: 1.5rem; }
  .game-title { font-size: clamp(2rem, 8vw, 3rem); }
  .game-tagline { font-size: 0.95rem; }
  .game-store-btns { gap: 0.75rem; }
  .store-btn { min-width: 0; flex: 1; min-width: 140px; }
  .trailer-placeholder { border-radius: var(--radius-l); }
  .release-wrap { text-align: left; }
}

/* Very small phones (< 390px) */
@media (max-width: 389px) {
  .nav-logo-text { font-size: 0.65rem; letter-spacing: 0.09em; }
  .hero-title    { font-size: clamp(2.4rem, 11vw, 3rem); }
  .btn           { padding: 0.85rem 1.3rem; font-size: 0.88rem; }
  .about-values  { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .featured-mockup { width: min(180px, 50vw); }
}
