/* ============================================================
   GroXincs Enterprise — style.css
   Dark mode (default) + Light mode via [data-theme="light"]
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Brand */
  --blue:        #09a9ec;
  --blue-dim:    rgba(9, 169, 236, 0.14);
  --blue-glow:   rgba(9, 169, 236, 0.28);
  --blue-mid:    #078fcb;

  /* Dark mode surfaces (default) */
  --bg:          #000000;
  --panel:       #030607;
  --panel-alt:   #060a0e;
  --card-bg:     linear-gradient(160deg, #0c0f12, #050607 70%);
  --card-border: rgba(255,255,255,0.09);
  --ink:         #050608;
  --soft-black:  rgba(0,0,0,0.64);

  /* Dark mode text */
  --white:       #f7f7f7;
  --muted:       #b9bcc0;
  --grey:        #939598;
  --text-body:   #c8cdd3;

  /* Misc */
  --nav-height:  86px;
  --page-pad:    clamp(24px, 7vw, 150px);
  --radius-lg:   20px;
  --radius-md:   12px;
  --radius-sm:   8px;
  --font-display:"Poppins", Arial, Helvetica, sans-serif;
  --font-label:  "Space Grotesk", "Poppins", Arial, sans-serif;

  /* Transitions */
  --trans-theme: background-color 380ms ease, color 380ms ease, border-color 380ms ease, box-shadow 380ms ease;
}

/* ---- Light Mode Overrides ---- */
[data-theme="light"] {
  --bg:          #f0f2f5;
  --panel:       #f4f6f9;
  --panel-alt:   #e8ecf0;
  --card-bg:     linear-gradient(160deg, #ffffff, #f0f3f8 70%);
  --card-border: rgba(0,0,0,0.10);
  --ink:         #ffffff;
  --soft-black:  rgba(255,255,255,0.64);

  --white:       #141618;
  --muted:       #4a4e56;
  --grey:        #666b73;
  --text-body:   #3d4249;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-display);
  transition: var(--trans-theme);
}

body.is-loading { overflow: hidden; height: 100vh; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--ink);
  overflow: hidden;
  transition: transform 720ms cubic-bezier(0.76,0,0.24,1), visibility 720ms;
}

.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(9,169,236,0.18), transparent 55%);
  pointer-events: none;
}

.splash-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
  opacity: 0;
  transform: translateY(14px);
  animation: splashIn 900ms 120ms cubic-bezier(0.16,1,0.3,1) forwards;
}

.splash-mark { width: min(58vw, 300px); }

.splash-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 34px rgba(9,169,236,0.28));
}

.splash-tag {
  margin: 0;
  color: var(--grey);
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.44em;
  text-transform: uppercase;
}

.splash-bar {
  width: min(46vw, 220px);
  height: 2px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}

.splash-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--blue);
  animation: splashBar 1.7s 200ms cubic-bezier(0.65,0,0.35,1) forwards;
}

.splash-drip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50% 50% 50% 0;
  background: var(--blue);
  transform: translate(-50%, 40px) rotate(45deg);
  opacity: 0;
}

body.is-loading .splash-drip {
  animation: dripFall 1.7s 200ms ease-in forwards;
}

.splash.is-hidden { transform: translateY(-100%); }
body:not(.is-loading) .splash { visibility: hidden; }

@keyframes splashIn { to { opacity: 1; transform: translateY(0); } }
@keyframes splashBar { to { width: 100%; } }
@keyframes dripFall {
  0%   { opacity: 0; transform: translate(-50%, 30px) rotate(45deg) scale(0.6); }
  15%  { opacity: 1; }
  80%  { opacity: 1; transform: translate(-50%, 130px) rotate(45deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, 150px) rotate(45deg) scale(0.4); }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 28px clamp(20px,7vw,145px) 0;
  pointer-events: none;
}

.site-header.scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(3,6,7,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 300ms ease, border-color 300ms ease, padding 300ms ease;
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(244,246,249,0.88);
  border-bottom-color: rgba(0,0,0,0.09);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  pointer-events: auto;
}

.brand { display: inline-flex; align-items: center; }

/* Logo switching by theme */
.brand-logo { height: clamp(28px, 3.4vw, 40px); width: auto; }
.brand-logo--light { display: none; }
[data-theme="light"] .brand-logo--dark  { display: none; }
[data-theme="light"] .brand-logo--light { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 48px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--white);
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 220ms ease, transform 220ms ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 220ms ease;
}

.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

.nav-links a.active,
.nav-links a:hover { color: var(--blue); }

.nav-cta {
  padding: 9px 22px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  color: var(--blue) !important;
  transition: background 200ms ease, color 200ms ease !important;
}

.nav-cta:hover {
  background: var(--blue);
  color: #000 !important;
}

.nav-cta::after { display: none !important; }

/* --- Nav actions (theme toggle + hamburger) --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.theme-toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  width: 64px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: background 320ms ease, border-color 320ms ease;
  overflow: hidden;
}

[data-theme="light"] .theme-toggle-track {
  background: rgba(9,169,236,0.15);
  border-color: var(--blue);
}

.theme-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: opacity 280ms ease, transform 280ms ease;
  color: var(--white);
  z-index: 1;
}

.theme-icon--sun  { left: 4px;  }
.theme-icon--moon { right: 4px; }

/* dark mode: show moon, hide sun */
.theme-icon--sun  { opacity: 0; transform: scale(0.5); }
.theme-icon--moon { opacity: 1; transform: scale(1); }

/* light mode: show sun, hide moon */
[data-theme="light"] .theme-icon--sun  { opacity: 1; transform: scale(1); color: var(--blue); }
[data-theme="light"] .theme-icon--moon { opacity: 0; transform: scale(0.5); }

.theme-toggle-thumb {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  top: 50%;
  transform: translateY(-50%) translateX(34px);
  transition: transform 320ms cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 2px 8px rgba(9,169,236,0.4);
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateY(-50%) translateX(4px);
}

/* --- Hamburger --- */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 280ms ease, opacity 280ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--grey);
  font-family: var(--font-label);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.eyebrow-drip {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50% 50% 50% 0;
  background: var(--blue);
  transform: rotate(45deg);
  flex: none;
}

.panel-eyebrow { margin-bottom: 14px; }

h2 {
  margin: 0 0 28px;
  color: var(--white);
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  line-height: 1.02;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.01em;
  transition: color 380ms ease;
}

h2::after {
  content: "";
  display: block;
  width: min(100%, 280px);
  height: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--blue), transparent);
  border-radius: 2px;
}

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

.section-sub {
  max-width: 62ch;
  margin: 0;
  color: var(--text-body);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.6;
  transition: color 380ms ease;
}

/* Panels (full-height sections with bg images) */
.panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--panel);
  background-position: center;
  background-size: cover;
  transition: background-color 380ms ease;
}

.panel-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78), rgba(0,0,0,0.24) 48%, rgba(0,0,0,0.74)),
    rgba(0,0,0,0.26);
  transition: background 380ms ease;
}

[data-theme="light"] .panel-shade {
  background:
    linear-gradient(90deg, rgba(244,246,249,0.92), rgba(244,246,249,0.70) 48%, rgba(244,246,249,0.90)),
    rgba(255,255,255,0.20);
}

/* Pill Button */
.pill-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 58px;
  padding: 8px 28px;
  border: 2px solid rgba(255,255,255,0.82);
  border-radius: 999px;
  color: var(--white);
  line-height: 1;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

[data-theme="light"] .pill-button {
  border-color: rgba(20,22,24,0.6);
}

.pill-button span {
  font-size: clamp(1rem, 1.5vw, 1.6rem);
  font-weight: 900;
}

.pill-button small {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.pill-button:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(9,169,236,0.18);
}

.pill-button--ghost {
  border-color: rgba(9,169,236,0.5);
  color: var(--blue);
}

.pill-button.small {
  min-width: 200px;
  min-height: 50px;
  border-color: var(--blue);
}

.pill-button.small span { font-size: 1.2rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-height) var(--page-pad) 100px;
  background-image: url("img/home.jpg");
  position: relative;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  animation: particleFloat 8s infinite ease-in-out;
}

.hero-particles span:nth-child(1)  { width:4px;  height:4px;  left:12%;  animation-delay:0s;    animation-duration:7s;  }
.hero-particles span:nth-child(2)  { width:6px;  height:6px;  left:28%;  animation-delay:1.5s;  animation-duration:9s;  }
.hero-particles span:nth-child(3)  { width:3px;  height:3px;  left:44%;  animation-delay:3s;    animation-duration:6s;  }
.hero-particles span:nth-child(4)  { width:5px;  height:5px;  left:62%;  animation-delay:0.8s;  animation-duration:10s; }
.hero-particles span:nth-child(5)  { width:4px;  height:4px;  left:76%;  animation-delay:2.2s;  animation-duration:8s;  }
.hero-particles span:nth-child(6)  { width:7px;  height:7px;  left:88%;  animation-delay:4s;    animation-duration:7s;  }
.hero-particles span:nth-child(7)  { width:3px;  height:3px;  left:18%;  animation-delay:5s;    animation-duration:9s;  }
.hero-particles span:nth-child(8)  { width:5px;  height:5px;  left:52%;  animation-delay:1s;    animation-duration:11s; }
.hero-particles span:nth-child(9)  { width:4px;  height:4px;  left:34%;  animation-delay:6s;    animation-duration:7s;  }
.hero-particles span:nth-child(10) { width:6px;  height:6px;  left:70%;  animation-delay:2.8s;  animation-duration:8s;  }

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(100vh) scale(0.5); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1.2); }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 65vw);
}

.hero-content h1 {
  margin: 0;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.hero-content h1::after { display: none; }

.hero-content h1 span,
.hero-content h1 strong { display: block; }

.hero-content h1 span {
  font-size: clamp(3.2rem, 7vw, 9rem);
  font-weight: 300;
  color: var(--white);
  opacity: 0.9;
}

.hero-content h1 strong {
  font-size: clamp(3.8rem, 7.5vw, 9.6rem);
  font-weight: 900;
  color: var(--blue);
  -webkit-text-fill-color: currentColor;
}

[data-theme="light"] .hero-content h1 span { color: var(--white); }
[data-theme="light"] .hero-content h1 strong {
  color: var(--blue);
  -webkit-text-fill-color: currentColor;
}

.hero-tagline {
  margin: 18px 0 14px 4px;
  font-size: clamp(1.3rem, 2vw, 2.4rem);
  letter-spacing: 0.32em;
  font-weight: 300;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 380ms ease;
}

.hero-quote {
  max-width: 50ch;
  margin: 0 0 38px 4px;
  padding-left: 20px;
  border-left: 3px solid var(--blue);
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.2rem);
  font-style: italic;
  line-height: 1.5;
  transition: color 380ms ease;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-label {
  color: var(--grey);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}

.scroll-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-panel {
  display: flex;
  align-items: center;
  padding: clamp(100px,12vw,160px) var(--page-pad);
  background-image: url("img/about.jpg");
  background-position: right center;
  min-height: 100vh;
}

.about-panel .panel-shade {
  background:
    linear-gradient(120deg, rgba(0,0,0,0.82) 45%, rgba(0,0,0,0.38) 100%),
    rgba(0,0,0,0.2);
}

[data-theme="light"] .about-panel .panel-shade {
  background:
    linear-gradient(120deg, rgba(244,246,249,0.94) 50%, rgba(244,246,249,0.60) 100%),
    rgba(255,255,255,0.15);
}

.about-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  width: 100%;
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--text-body);
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  line-height: 1.65;
  transition: color 380ms ease;
}

.about-founder {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px !important;
  padding-top: 24px;
  border-top: 1px solid rgba(9,169,236,0.3);
}

.founder-label {
  color: var(--grey);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.about-founder strong {
  color: var(--blue);
  font-size: clamp(1.1rem, 1.4vw, 1.5rem);
  font-weight: 700;
}

.founder-title {
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
  transition: color 380ms ease;
}

/* Stats grid */
.about-visual {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--trans-theme), border-color 220ms ease, transform 220ms ease;
}

[data-theme="light"] .stat-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(9,169,236,0.4);
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 380ms ease;
}

.location-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(9,169,236,0.2);
}

.location-badge strong {
  font-size: clamp(1.2rem, 1.6vw, 1.7rem);
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 380ms ease;
}

.location-badge span {
  color: var(--grey);
  font-size: 0.9rem;
  margin-top: 4px;
  transition: color 380ms ease;
}

/* ============================================================
   STUDIOS
   ============================================================ */
.studios-panel {
  background-image: url("img/Resume.jpg");
  padding: clamp(100px,12vw,160px) var(--page-pad);
  display: flex;
  align-items: center;
}

.studios-panel .panel-shade {
  background:
    linear-gradient(160deg, rgba(0,0,0,0.85) 55%, rgba(0,0,0,0.55) 100%),
    rgba(0,0,0,0.3);
}

[data-theme="light"] .studios-panel .panel-shade {
  background:
    linear-gradient(160deg, rgba(244,246,249,0.95) 55%, rgba(244,246,249,0.75) 100%),
    rgba(255,255,255,0.2);
}

.studios-shell {
  position: relative;
  z-index: 1;
  width: 100%;
}

.studios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
}

.studio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--trans-theme), transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  overflow: hidden;
}

[data-theme="light"] .studio-card {
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.studio-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0;
  transition: opacity 240ms ease;
}

.studio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(9,169,236,0.4);
  box-shadow: 0 16px 40px rgba(9,169,236,0.12);
}

.studio-card:hover::before { opacity: 1; }

.studio-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--blue-dim);
  border: 1px solid rgba(9,169,236,0.25);
  color: var(--blue);
  flex-shrink: 0;
}

.studio-name {
  margin: 0;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 380ms ease;
}

.studio-desc {
  margin: 0;
  color: var(--text-body);
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.55;
  flex: 1;
  transition: color 380ms ease;
}

.studio-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--blue-dim);
  border: 1px solid rgba(9,169,236,0.3);
  color: var(--blue);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: flex-start;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-panel {
  background-image: url("img/home.jpg");
  background-position: center;
  padding: clamp(100px,12vw,160px) var(--page-pad);
  display: flex;
  align-items: center;
}

.services-shell {
  position: relative;
  z-index: 1;
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--trans-theme), transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

[data-theme="light"] .service-card {
  background: rgba(255,255,255,0.72);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(9,169,236,0.4);
  box-shadow: 0 14px 36px rgba(9,169,236,0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--blue-dim);
  border: 1px solid rgba(9,169,236,0.25);
  color: var(--blue);
  transition: background 220ms ease, border-color 220ms ease;
}

.service-card:hover .service-icon {
  background: var(--blue);
  color: #000;
}

.service-card h3 {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 380ms ease;
}

.service-card p {
  margin: 0;
  color: var(--text-body);
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.6;
  transition: color 380ms ease;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-panel {
  background-image: url("img/about.jpg");
  background-position: center;
  padding: clamp(100px,12vw,160px) clamp(22px,9.7vw,190px) 80px;
  min-height: auto;
}

.gallery-panel .panel-shade {
  background:
    linear-gradient(160deg, rgba(0,0,0,0.80) 50%, rgba(0,0,0,0.65) 100%),
    rgba(0,0,0,0.28);
}

[data-theme="light"] .gallery-panel .panel-shade {
  background:
    linear-gradient(160deg, rgba(244,246,249,0.94) 50%, rgba(244,246,249,0.78) 100%),
    rgba(255,255,255,0.2);
}

.gallery-shell {
  position: relative;
  z-index: 1;
}

/* Filter row */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 44px;
}

.filter-row button {
  padding: 8px 20px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

[data-theme="light"] .filter-row button {
  border-color: rgba(0,0,0,0.2);
  color: var(--muted);
}

.filter-row button:hover {
  color: var(--white);
  border-color: var(--blue);
}

[data-theme="light"] .filter-row button:hover { color: var(--white); }

.filter-row button.active {
  color: #000;
  background: var(--blue);
  border-color: var(--blue);
}

/* Project cards grid */
.project-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, var(--trans-theme);
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(9,169,236,0.5);
  box-shadow: 0 16px 40px rgba(9,169,236,0.12);
  outline: none;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--card-tint, radial-gradient(circle at 30% 20%, rgba(9,169,236,0.22), transparent 60%)),
    linear-gradient(150deg, #101418, #06070a 75%);
}

[data-theme="light"] .card-media {
  background: var(--card-tint, radial-gradient(circle at 30% 20%, rgba(9,169,236,0.15), transparent 60%)),
    linear-gradient(150deg, #dde2ea, #c8d0db 75%);
}

.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 34px);
}

[data-theme="light"] .card-media::before {
  background-image: repeating-linear-gradient(115deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 34px);
}

.card-swipe {
  position: absolute;
  right: -18%;
  top: -30%;
  width: 62%;
  height: 160%;
  background: rgba(255,255,255,0.05);
  transform: skewX(-18deg);
}

.card-play {
  position: relative;
  z-index: 1;
  width: clamp(48px, 6vw, 62px);
  height: clamp(48px, 6vw, 62px);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.card-play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 14px;
  border-color: transparent transparent transparent rgba(255,255,255,0.9);
  margin-left: 3px;
}

.project-card:hover .card-play {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.1);
}

.card-year {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}

[data-theme="light"] .card-year { color: rgba(0,0,0,0.6); }

.card-body {
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-type {
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.card-title {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.22rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  transition: color 380ms ease;
}

.card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.card-cta::after {
  content: "→";
}

.project-card:hover .card-cta {
  opacity: 1;
  transform: translateX(0);
}

/* Placeholder cards for Flyer / Picture designs */
.card-placeholder .card-media {
  background: repeating-linear-gradient(
    45deg,
    rgba(9,169,236,0.04) 0 10px,
    transparent 10px 20px
  ), linear-gradient(150deg, #0d1115, #06070a);
  border: 2px dashed rgba(9,169,236,0.25);
}

[data-theme="light"] .card-placeholder .card-media {
  background: repeating-linear-gradient(
    45deg,
    rgba(9,169,236,0.06) 0 10px,
    transparent 10px 20px
  ), linear-gradient(150deg, #e4eaf0, #ccd4de);
  border: 2px dashed rgba(9,169,236,0.35);
}

.card-placeholder-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  opacity: 0.7;
  text-align: center;
}

.card-placeholder-label svg { opacity: 0.6; }

.card-placeholder-label span {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: var(--panel-alt);
  padding: clamp(80px,10vw,140px) var(--page-pad);
  transition: background-color 380ms ease;
}

[data-theme="light"] .contact-section {
  background: #e8ecf1;
}

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.contact-copy h2 { margin-bottom: 16px; }

.contact-copy p {
  margin: 0;
  color: var(--text-body);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  transition: color 380ms ease;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  font-weight: 600;
  transition: var(--trans-theme), border-color 200ms ease, transform 200ms ease;
}

[data-theme="light"] .contact-item {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.1);
}

.contact-item:hover {
  border-color: var(--blue);
  transform: translateX(6px);
}

.contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-dim);
  border: 1px solid rgba(9,169,236,0.3);
  color: var(--blue);
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  padding: 48px var(--page-pad) 36px;
  border-top: 1px solid rgba(255,255,255,0.07);
  transition: var(--trans-theme);
}

[data-theme="light"] .site-footer {
  background: #dce1e8;
  border-top-color: rgba(0,0,0,0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo { height: 32px; width: auto; }
.footer-logo--light { display: none; }
[data-theme="light"] .footer-logo--dark  { display: none; }
[data-theme="light"] .footer-logo--light { display: block; }

.footer-brand p {
  margin: 0;
  color: var(--grey);
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 380ms ease;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 180ms ease;
}

.footer-nav a:hover { color: var(--blue); }

.footer-copy {
  margin: 0;
  text-align: right;
  color: var(--grey);
  font-size: 0.78rem;
  font-family: var(--font-label);
  transition: color 380ms ease;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: #0a0e12;
  border: 1px solid rgba(9,169,236,0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(9,169,236,0.08);
}

[data-theme="light"] .modal-panel {
  background: #ffffff;
  border-color: rgba(9,169,236,0.3);
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 180ms ease, border-color 180ms ease, color 380ms ease;
}

.modal-close:hover {
  background: rgba(9,169,236,0.2);
  border-color: var(--blue);
}

.project-shell { padding: 40px; }
.project-shell.is-changing { opacity: 0; transition: opacity 60ms; }

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.media-preview { display: flex; flex-direction: column; gap: 20px; }

.video-stage {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #0c1218, #070a0e);
  display: grid;
  place-items: center;
  border: 1px solid rgba(9,169,236,0.15);
  overflow: hidden;
}

[data-theme="light"] .video-stage {
  background: linear-gradient(150deg, #e0e6ef, #cdd4de);
}

.video-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--white);
  transition: transform 200ms ease;
}

.video-play:hover { transform: scale(1.08); }

.video-play span {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.5);
  background: rgba(9,169,236,0.18);
  backdrop-filter: blur(6px);
  position: relative;
}

.video-play span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%,-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent rgba(255,255,255,0.9);
}

.video-play b {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  transition: color 380ms ease;
}

.slide-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slide-controls button {
  padding: 8px 18px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}

.slide-controls button:hover { border-color: var(--blue); color: var(--blue); }

.slide-controls > span {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}

.slide-controls i {
  display: block;
  height: 100%;
  background: var(--blue);
  transition: width 280ms ease;
  width: 0%;
}

.project-details h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 20px;
  text-transform: none;
}

.project-details h2::after { width: 60px; }

.meta-row {
  display: flex;
  gap: 28px;
  margin-bottom: 16px;
}

.project-details p {
  margin: 0 0 14px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.55;
  transition: color 380ms ease;
}

.project-details p strong {
  display: block;
  color: var(--blue);
  font-family: var(--font-label);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.watch-row { margin-top: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .studios-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid-cards { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
  .footer-brand { align-items: center; }
}

@media (max-width: 768px) {
  :root { --page-pad: clamp(20px, 6vw, 48px); }

  .nav-links {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(5,6,8,0.97);
    backdrop-filter: blur(20px);
    padding: calc(var(--nav-height) + 20px) 32px 40px;
    transform: translateY(-110%);
    transition: transform 360ms cubic-bezier(0.76,0,0.24,1);
    pointer-events: none;
    z-index: 98;
    width: 100%;
  }

  [data-theme="light"] .nav-links {
    background: rgba(244,246,249,0.97);
  }

  .nav-links.open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  [data-theme="light"] .nav-links li { border-bottom-color: rgba(0,0,0,0.06); }

  .nav-links a {
    display: block;
    padding: 18px 0;
    font-size: 1.4rem;
  }

  .nav-links a::after { display: none; }
  .nav-cta { border: none; padding: 18px 0; }

  .menu-toggle { display: flex; }
  .site-header { z-index: 101; }

  .hero-content { width: 100%; }
  .hero-content h1 span  { font-size: clamp(2.6rem, 11vw, 5rem); }
  .hero-content h1 strong { font-size: clamp(3rem, 12vw, 5.6rem); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }

  .studios-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .project-grid-cards { grid-template-columns: 1fr; }

  .footer-nav { gap: 14px; }

  .project-shell { padding: 24px; }
}

@media (max-width: 520px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
}
