/* ============================================================
   NOIR STUDIOS — style.css
   ============================================================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #f5f5f0;
  --gold: #c9a96e;
  --gold-dim: rgba(201,169,110,0.12);
  --gray-900: #0a0a0a;
  --gray-800: #111111;
  --gray-700: #1a1a1a;
  --gray-600: #2a2a2a;
  --gray-500: #444444;
  --gray-400: #666666;
  --gray-300: #888888;
  --gray-200: #aaaaaa;
  --gray-100: #cccccc;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 80px;
  --pad: clamp(24px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  position: relative;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: var(--font-body); background: none; outline: none; }
::selection { background: var(--gold); color: var(--black); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ── GRAIN OVERLAY ──────────────────────────────────────── */
.grain-overlay {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9989;
  mix-blend-mode: overlay;
}

/* ── CURSOR ─────────────────────────────────────────────── */
.cursor {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--white);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
}
.cursor.is-hovering {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
}
@media (hover: none) { .cursor, .cursor-dot { display: none; } body { cursor: auto; } button { cursor: pointer; } }

/* ── LOADER ─────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
}
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 36px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.loader-progress {
  width: 180px; height: 1px;
  background: var(--gray-700);
  margin: 0 auto; overflow: hidden;
}
.loader-bar {
  height: 100%; background: linear-gradient(90deg, var(--white), var(--gold));
  width: 0%;
  transition: width 1.6s var(--ease);
}

/* ── NAV ────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  z-index: 1000;
  transition: background .4s var(--ease), backdrop-filter .4s;
}
#nav.scrolled {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-noir {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600; letter-spacing: .06em;
}
.nav-logo-studios {
  font-family: var(--font-display);
  font-size: .6rem; font-weight: 400;
  letter-spacing: .28em; color: var(--gold); text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray-200);
  transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--white) !important; color: var(--black) !important;
  padding: 9px 22px !important; font-weight: 500 !important;
  transition: background .3s, color .3s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--black) !important; }
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 4px; }
.nav-toggle span {
  display: block; width: 26px; height: 1px; background: var(--white);
  transition: transform .3s var(--ease), opacity .3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; background: var(--black);
  z-index: 999;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  transform: translateX(100%);
  transition: transform .5s var(--ease-out);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 20px; }
.mobile-menu ul li a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 400; color: var(--white);
  transition: color .3s;
}
.mobile-menu ul li a:hover { color: var(--gold); }
.mobile-menu-contact { margin-top: 52px; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu-contact a { font-size: .82rem; color: var(--gray-300); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: .78rem;
  font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 34px;
  position: relative; overflow: hidden;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn--outline {
  border: 1px solid rgba(255,255,255,0.3); color: var(--white);
  background-image: linear-gradient(to right, var(--white) 50%, transparent 50%);
  background-size: 202% 100%;
  background-position: 100% 0;
  transition: background-position .45s var(--ease-out), color .45s var(--ease-out), border-color .45s;
}
.btn--outline:hover {
  background-position: 0 0;
  color: var(--black);
  border-color: var(--white);
}
.btn--fill {
  border: 1px solid var(--white);
  color: var(--black);
  background-image: linear-gradient(to right, var(--gold) 50%, var(--white) 50%);
  background-size: 202% 100%;
  background-position: 100% 0;
  transition: background-position .45s var(--ease-out), color .45s, border-color .45s;
}
.btn--fill:hover {
  background-position: 0 0;
  border-color: var(--gold);
  color: var(--black);
}
.btn--sm { font-size: .68rem; padding: 9px 18px; }
.btn--large { font-size: .82rem; padding: 18px 56px; }

/* ── HERO ───────────────────────────────────────────────── */
#hero {
  position: relative; height: 100dvh; min-height: 640px;
  display: flex; align-items: stretch;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('images/hero-bg.webp');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    115deg,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.55) 50%,
    rgba(0,0,0,.22) 100%
  );
  z-index: 1;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.hero-content {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(48px, 8vh, 90px);
  width: 100%;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: .64rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: clamp(10px, 2vw, 22px);
  opacity: 0; transform: translateY(16px);
}
.hero-eyebrow-dot { color: rgba(255,255,255,.22); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(6rem, 21vw, 26rem);
  font-weight: 600; line-height: .86;
  letter-spacing: -.04em;
  display: block; overflow: hidden;
}
.hero-word { display: block; opacity: 0; transform: translateY(110%); }
.hero-sub-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: clamp(12px, 1.8vw, 22px);
  padding-top: clamp(12px, 1.8vw, 22px);
  border-top: 1px solid rgba(255,255,255,.1);
  opacity: 0; transform: translateY(20px);
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(.85rem, 2.2vw, 2.2rem);
  font-weight: 300; letter-spacing: .5em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
}
.hero-tagline {
  font-size: clamp(.72rem, 1.1vw, .9rem);
  color: rgba(255,255,255,.38); letter-spacing: .07em;
  line-height: 1.85; text-align: right;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0; transform: translateY(16px);
  margin-top: clamp(18px, 2.8vw, 32px);
}
.hero-scroll-indicator {
  position: absolute; bottom: clamp(22px, 4vh, 40px); right: var(--pad);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .4; } 50% { opacity: 1; }
}
.hero-scroll-indicator span {
  font-size: .56rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.28);
  writing-mode: vertical-rl;
}

/* ── MARQUEE ────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 20px 0;
  background: var(--gray-900);
  position: relative;
}
.marquee-wrap::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(to right, var(--gray-900), transparent);
  z-index: 1; pointer-events: none;
}
.marquee-wrap::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(to left, var(--gray-900), transparent);
  z-index: 1; pointer-events: none;
}
.marquee-track { display: flex; white-space: nowrap; }
.marquee-content {
  flex-shrink: 0;
  font-size: .95rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gray-300);
  animation: marquee 30s linear infinite;
}
.marquee-content .marquee-dot {
  color: var(--gold);
  margin: 0 4px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.marquee-wrap:hover .marquee-content { animation-play-state: paused; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); }
.container--narrow { max-width: 860px; }

/* ── SECTION HEADER ─────────────────────────────────────── */
.section-header { margin-bottom: clamp(44px, 6vw, 72px); }
.section-header--center { text-align: center; }
.section-label {
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: inline-block; width: 24px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 400; line-height: 1.05; letter-spacing: -.02em;
}
.section-title em { font-style: italic; font-weight: 300; }
.section-subtitle {
  font-size: .9rem; color: var(--gray-300);
  max-width: 540px; margin-top: 14px; line-height: 1.75;
}
.section-header--center .section-subtitle { margin: 14px auto 0; }
.section-header--center .section-label { justify-content: center; }

/* ── WORK ───────────────────────────────────────────────── */
#work { padding: clamp(80px, 11vw, 130px) 0; }
#work .container { margin-bottom: clamp(40px, 5vw, 60px); }

.work-list { border-top: 1px solid rgba(255,255,255,.07); }

.work-list-item {
  border-bottom: 1px solid rgba(255,255,255,.07);
  overflow: hidden; cursor: none;
}
.work-list-img {
  height: 0; overflow: hidden;
  background-size: cover; background-position: center;
  transition: height .9s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.work-list-img .work-img-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.22);
}
.work-list-item:hover .work-list-img { height: clamp(200px, 30vw, 460px); }
.work-list-img-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 10rem);
  font-weight: 600; letter-spacing: .08em;
  color: rgba(255,255,255,.06);
  pointer-events: none; user-select: none;
}
.work-list-row {
  display: flex; align-items: center;
  padding: clamp(16px, 2.4vw, 30px) var(--pad);
  gap: clamp(12px, 2.5vw, 44px);
  position: relative;
  transition: padding-left .45s var(--ease-out), background .3s;
}
.work-list-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--gold);
  transition: width .35s var(--ease-out);
}
.work-list-item:hover .work-list-row::before { width: 3px; }
.work-list-item:hover .work-list-row {
  padding-left: calc(var(--pad) + 20px);
  background: rgba(255,255,255,.018);
}
.work-list-num {
  font-family: var(--font-display);
  font-size: .75rem; color: var(--gold);
  letter-spacing: .1em; min-width: 28px; flex-shrink: 0;
}
.work-list-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 5.5rem);
  font-weight: 400; line-height: 1; flex: 1;
  letter-spacing: -.025em;
  transition: letter-spacing .55s var(--ease-out), color .3s;
}
.work-list-item:hover .work-list-title { letter-spacing: .01em; color: var(--off-white); }
.work-list-tags {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0;
}
.work-list-tag { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.work-list-year { font-size: .68rem; color: var(--gray-500); letter-spacing: .06em; }
.work-list-arrow {
  font-size: 1.4rem; color: var(--gray-600); flex-shrink: 0;
  transition: color .3s, transform .45s var(--ease-out);
}
.work-list-item:hover .work-list-arrow { color: var(--gold); transform: translate(5px, -5px); }

/* keep .work-img-overlay for list images */
.work-img-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.2); }

/* ── SERVICES ───────────────────────────────────────────── */
#services { padding: clamp(80px, 11vw, 130px) 0; background: var(--gray-900); }

.services-list {
  border-top: 1px solid rgba(255,255,255,.08);
}
.service-row {
  display: flex; align-items: flex-start;
  padding: clamp(26px, 3.5vw, 44px) 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: clamp(20px, 4vw, 60px);
  cursor: none;
  transition: padding-left .35s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.service-ghost-num {
  position: absolute; right: -10px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 16rem);
  font-weight: 600; line-height: 1;
  letter-spacing: -.05em;
  color: rgba(255,255,255,.028);
  pointer-events: none; user-select: none;
  transition: color .5s var(--ease);
}
.service-row:hover .service-ghost-num { color: rgba(201,169,110,.07); }
.service-row::before {
  content: '';
  position: absolute; left: -4px; top: 0; bottom: 0;
  width: 0; background: var(--gold);
  transition: width .3s var(--ease-out);
}
.service-row:hover::before { width: 3px; }
.service-row:hover { padding-left: 20px; }
.service-num {
  font-family: var(--font-display);
  font-size: clamp(.8rem, 1.2vw, 1rem);
  color: var(--gold);
  letter-spacing: .1em;
  min-width: 44px;
  padding-top: 6px;
  flex-shrink: 0;
}
.service-row-body { flex: 1; }
.service-row-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 400; line-height: 1.2;
  margin-bottom: 10px;
  transition: color .3s;
}
.service-row:hover .service-row-body h3 { color: var(--off-white); }
.service-row-body p {
  font-size: .85rem; color: var(--gray-300);
  line-height: 1.75; max-width: 540px;
}
.service-arr {
  color: var(--gray-500);
  flex-shrink: 0;
  margin-top: 8px;
  transition: color .3s, transform .35s var(--ease-out);
}
.service-row:hover .service-arr {
  color: var(--gold);
  transform: translateX(6px);
}

/* ── MANIFESTO ──────────────────────────────────────────── */
.manifesto {
  background: var(--white);
  color: var(--black);
  padding: clamp(80px, 12vw, 160px) var(--pad);
  overflow: hidden;
  position: relative;
}
.manifesto-eyebrow {
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(0,0,0,.35); display: block; margin-bottom: 44px;
}
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10.5vw, 13rem);
  font-weight: 300; line-height: .96;
  letter-spacing: -.04em;
}
.manifesto-text em {
  font-style: italic;
  color: rgba(0,0,0,.28);
}
.manifesto-cta {
  display: flex; align-items: center; gap: 20px;
  margin-top: 52px;
}
.manifesto-cta .btn--fill {
  background-image: linear-gradient(to right, var(--black) 50%, var(--black) 50%);
  border-color: var(--black); color: var(--white);
}
.manifesto-cta .btn--fill:hover {
  background-image: linear-gradient(to right, var(--gold) 50%, var(--black) 50%);
  background-position: 0 0;
  border-color: var(--gold); color: var(--black);
}
.manifesto-line {
  position: absolute; bottom: 0; left: var(--pad); right: var(--pad);
  height: 1px; background: rgba(0,0,0,.08);
}

/* ── STATEMENT BAND ─────────────────────────────────────── */
.statement-band {
  padding: clamp(70px, 11vw, 140px) var(--pad);
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,.06);
  position: relative; overflow: hidden;
}
.statement-band-inner { max-width: 1400px; margin: 0 auto; }
.statement-band-label {
  font-size: .65rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 12px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.statement-band-label::before {
  content: ''; display: inline-block;
  width: 24px; height: 1px; background: var(--gold);
}
.statement-band-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.5vw, 11rem);
  font-weight: 300; line-height: .97;
  letter-spacing: -.04em;
}
.statement-band-text em {
  font-style: italic; color: var(--gold);
}
.statement-band-bg {
  position: absolute; right: -2vw; bottom: -4vw;
  font-family: var(--font-display);
  font-size: clamp(10rem, 26vw, 34rem);
  font-weight: 600; line-height: 1;
  color: rgba(255,255,255,.022);
  letter-spacing: -.06em;
  pointer-events: none; user-select: none;
}

/* ── ABOUT ──────────────────────────────────────────────── */
#about { padding: clamp(80px, 11vw, 130px) 0; }
.about-grid {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 96px); align-items: center;
}
.about-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5; background: var(--gray-800);
}
.about-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.about-img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.about-img-wrap:hover .about-img { transform: scale(1.03); }
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 2px;
}
.stat-item {
  padding: 22px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600; line-height: 1; display: inline-block;
  color: var(--gold);
}
.stat-plus { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); }
.stat-label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-400); display: block; margin-top: 7px; }
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 300; line-height: 1.45; margin-bottom: 20px; color: var(--off-white);
}
.about-body { font-size: .88rem; color: var(--gray-300); line-height: 1.85; margin-bottom: 14px; }
.about-content .btn { margin-top: 30px; }

/* ── AI SERVICES (embedded) ─────────────────────────────── */
#ai-services { background: var(--bg); }
#ai-services .ai-container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }
#ai-services .ai-section { padding: clamp(48px, 6vw, 80px) 0; }

#ai-services .ai-hero {
  padding-top: 80px; padding-bottom: 0; text-align: center; position: relative;
}
#ai-services .ai-hero::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}
#ai-services .ai-hero-badge {
  font-size: 10px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
#ai-services .ai-hero-badge::before, #ai-services .ai-hero-badge::after {
  content: ''; width: 40px; height: 1px; background: var(--gold);
}
#ai-services .ai-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 5.5vw, 80px); line-height: 1.05;
  margin-bottom: 24px; max-width: 900px; margin-left: auto; margin-right: auto;
}
#ai-services .ai-hero h1 em { color: var(--gold); font-style: italic; }
#ai-services .ai-hero-sub {
  font-size: 13px; color: var(--gray-400); font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  line-height: 1.7; margin-top: 56px; margin-bottom: 56px; max-width: 600px; margin-left: auto; margin-right: auto;
}

#ai-services .ai-showcase { padding: clamp(20px, 4vw, 60px) 0; }
#ai-services .ai-showcase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
}
#ai-services .ai-showcase-grid img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%;
  filter: brightness(0.85); transition: all 0.5s var(--ease);
}
#ai-services .ai-showcase-grid img:hover { filter: brightness(1); transform: scale(1.02); z-index: 2; }
#ai-services .ai-showcase-caption {
  text-align: center; padding: 28px 0 0;
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gray-500);
}

#ai-services .ai-section-label {
  font-size: 10px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
#ai-services .ai-section-label::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
#ai-services .ai-section-label.center { justify-content: center; }
#ai-services .ai-section-label.center::after { content: ''; width: 40px; height: 1px; background: var(--gold); }
#ai-services .ai-section-title {
  font-family: var(--font-display); font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400; line-height: 1.15; margin-bottom: 20px;
}
#ai-services .ai-section-desc {
  font-size: 16px; color: var(--gray-400); max-width: 560px; line-height: 1.7; margin-bottom: 60px;
}

#ai-services .ai-tier { border-top: 1px solid rgba(201,169,110,0.06); }
#ai-services .ai-tier-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px; flex-wrap: wrap; gap: 16px;
}
#ai-services .ai-tier-sublabel {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-500);
}

#ai-services .ai-products-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
}
#ai-services .ai-product-card {
  background: #111111; padding: clamp(32px, 3vw, 48px);
  transition: all 0.4s var(--ease); border: 1px solid rgba(255,255,255,0.03);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 300px; position: relative;
}
#ai-services .ai-product-card:hover {
  background: #1a1a1a; border-color: rgba(201,169,110,0.15);
  transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
#ai-services .ai-product-tag {
  font-size: 9px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); background: rgba(201,169,110,0.12); padding: 4px 10px;
  display: inline-block; margin-bottom: 16px; width: fit-content;
}
#ai-services .ai-product-name {
  font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 400; line-height: 1.2; margin-bottom: 12px;
}
#ai-services .ai-product-desc {
  font-size: 14px; color: var(--gray-400); line-height: 1.7; margin-bottom: 24px; flex-grow: 1;
}
#ai-services .ai-product-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
#ai-services .ai-product-price { display: flex; align-items: baseline; gap: 10px; }
#ai-services .ai-product-price-current {
  font-family: var(--font-display); font-size: 28px; color: var(--gold); font-weight: 400;
}
#ai-services .ai-product-price-original {
  font-size: 14px; color: var(--gray-500); text-decoration: line-through;
}
#ai-services .ai-product-cta {
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: #000; background: var(--gold); padding: 14px 28px;
  transition: all 0.3s var(--ease); cursor: pointer; display: inline-block; text-decoration: none;
}
#ai-services .ai-product-cta:hover { background: #fff; color: #000; }
#ai-services .ai-product-cta.outline {
  background: transparent; color: var(--gold); border: 1px solid var(--gold);
}
#ai-services .ai-product-cta.outline:hover { background: var(--gold); color: #000; }

#ai-services .ai-product-card.full {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px);
  align-items: center; min-height: auto;
}
#ai-services .ai-product-card.full .ai-product-visual img {
  width: 100%; height: 300px; object-fit: cover; border: 1px solid rgba(201,169,110,0.1);
}

#ai-services .ai-limited {
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: #e85d4a; margin-top: 12px; display: flex; align-items: center; gap: 6px;
}
#ai-services .ai-limited::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #e85d4a; flex-shrink: 0;
}

#ai-services .ai-cinematic { width: 100%; overflow: hidden; position: relative; }
#ai-services .ai-cinematic img {
  width: 100%; height: clamp(300px, 50vw, 560px); object-fit: cover;
  display: block; filter: brightness(0.85); transition: filter 0.6s var(--ease);
}
#ai-services .ai-cinematic:hover img { filter: brightness(0.95); }
#ai-services .ai-cinematic-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 15%, transparent 85%, var(--bg) 100%);
  pointer-events: none;
}
#ai-services .ai-cinematic-caption {
  position: absolute; bottom: clamp(20px, 4vw, 48px); left: clamp(20px, 5vw, 80px);
  font-size: 10px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

#ai-services .ai-process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
}
#ai-services .ai-process-step {
  background: #111111; padding: clamp(32px, 3vw, 48px); text-align: center;
  transition: all 0.4s var(--ease); border: 1px solid rgba(255,255,255,0.03);
  position: relative;
}
#ai-services .ai-process-step:hover { background: #1a1a1a; border-color: rgba(201,169,110,0.1); }
#ai-services .ai-process-step::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--gold); transition: width 0.4s var(--ease);
}
#ai-services .ai-process-step:hover::after { width: 60%; }
#ai-services .ai-process-num {
  font-family: var(--font-display); font-size: 48px; color: var(--gold);
  font-weight: 300; margin-bottom: 20px; opacity: 0.8;
}
#ai-services .ai-process-name { font-size: 13px; font-weight: 500; letter-spacing: 1px; margin-bottom: 8px; }
#ai-services .ai-process-detail { font-size: 14px; color: var(--gray-400); line-height: 1.6; }

#ai-services .ai-final-cta {
  text-align: center; background: #000;
  border-top: 1px solid rgba(201,169,110,0.08);
  position: relative; overflow: hidden;
}
#ai-services .ai-final-cta::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.04) 0%, transparent 70%);
  pointer-events: none;
}
#ai-services .ai-final-cta .ai-section-title { margin-bottom: 8px; position: relative; }
#ai-services .ai-final-cta .ai-section-title em { color: var(--gold); font-style: italic; }
#ai-services .ai-final-tagline { font-size: 18px; color: var(--gray-400); margin-bottom: 40px; font-weight: 300; position: relative; }

@media (max-width: 1024px) {
  #ai-services .ai-process-grid { grid-template-columns: repeat(2, 1fr); }
  #ai-services .ai-product-card.full { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  #ai-services .ai-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  #ai-services .ai-products-grid { grid-template-columns: 1fr; }
  #ai-services .ai-product-card.full { grid-template-columns: 1fr; }
  #ai-services .ai-process-grid { grid-template-columns: 1fr; }
  #ai-services .ai-product-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  #ai-services .ai-product-cta { padding: 16px 32px; font-size: 12px; width: 100%; text-align: center; }
  #ai-services .ai-hero h1 { font-size: clamp(32px, 8vw, 48px); }
}

/* ── SHOP ───────────────────────────────────────────────── */
#shop { padding: 0; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.product-card {
  background: var(--gray-800);
  overflow: hidden;
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column;
  cursor: none;
  position: relative;
}
.product-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .4s var(--ease-out);
  transform-origin: left;
}
.product-card:hover::after { transform: scaleX(1); }
.product-card:hover { transform: translateY(-6px); }
.product-img {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(201,169,110,.08), transparent 60%);
  pointer-events: none;
}
.product-img-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 600; letter-spacing: .14em;
  color: rgba(255,255,255,.1);
  text-align: center; line-height: 1.2;
}
.product-info {
  padding: 22px; display: flex; flex-direction: column;
  justify-content: space-between; flex: 1; gap: 18px;
}
.product-tag { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 7px; }
.product-info h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; line-height: 1.3; margin-bottom: 9px; }
.product-info p { font-size: .78rem; color: var(--gray-300); line-height: 1.65; }
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06);
}
.product-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }

/* ── START A PROJECT ────────────────────────────────────── */
#start { padding: clamp(80px, 11vw, 130px) 0; }
.project-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-400);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--white); padding: 13px 15px;
  font-size: .88rem; font-weight: 300;
  transition: border-color .3s var(--ease), background .3s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201,169,110,.04);
}
.form-group select { appearance: none; cursor: none; }
.form-group select option { background: var(--gray-800); color: var(--white); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-500); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { display: flex; justify-content: center; margin-top: 16px; }

/* ── FOOTER BG TEXT ─────────────────────────────────────── */
.footer-bg-text {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 28rem);
  font-weight: 600; letter-spacing: -.04em;
  line-height: .85; color: rgba(255,255,255,.03);
  text-align: center; display: block;
  white-space: nowrap; pointer-events: none;
  user-select: none; overflow: hidden;
  margin: 0 0 -2rem;
}

/* ── FOOTER ─────────────────────────────────────────────── */
#footer {
  background: var(--gray-900);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: clamp(56px, 8vw, 96px) var(--pad) 36px;
  overflow: hidden;
}
.footer-statement {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 9rem);
  font-weight: 300; line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-statement span { display: block; color: var(--off-white); }
.footer-statement em {
  font-style: italic;
  color: var(--gold);
}
.footer-top {
  text-align: center; margin-bottom: 56px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 14px; }
.footer-logo-noir {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 600; letter-spacing: .05em; line-height: 1;
}
.footer-logo-studios {
  font-family: var(--font-display);
  font-size: clamp(.55rem, 1.2vw, .8rem); font-weight: 400;
  letter-spacing: .42em; color: var(--gold); text-transform: uppercase;
}
.footer-tagline { font-size: .82rem; color: var(--gray-400); letter-spacing: .08em; }
.footer-middle {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; max-width: 860px; margin: 0 auto 56px;
}
.footer-col h4 { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a,
.footer-col ul li span { font-size: .84rem; color: var(--gray-300); transition: color .3s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: .72rem; color: var(--gray-500); letter-spacing: .05em;
}

/* ── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--gray-800);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 2px solid var(--gold);
  max-width: 580px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  transform: translateY(32px);
  transition: transform .4s var(--ease-out);
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  color: var(--gray-300); cursor: none; transition: color .3s; z-index: 1;
}
.modal-close:hover { color: var(--gold); }
.modal-content { padding: 44px 36px 36px; }
.modal-product-img {
  aspect-ratio: 16/9; margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center;
}
.modal-product-img-text {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 600;
  letter-spacing: .1em; color: rgba(255,255,255,.14); text-align: center; line-height: 1.2;
}
.modal-tag { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }
.modal-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; margin-bottom: 14px; }
.modal-desc { font-size: .86rem; color: var(--gray-300); line-height: 1.8; margin-bottom: 10px; }
.modal-includes { margin: 22px 0; padding: 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.modal-includes h5 { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.modal-includes ul { display: flex; flex-direction: column; gap: 6px; }
.modal-includes ul li { font-size: .82rem; color: var(--gray-200); padding-left: 16px; position: relative; }
.modal-includes ul li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }
.modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.modal-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; }
.modal-note { font-size: .68rem; color: var(--gray-400); margin-top: 3px; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .work-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 380px 380px 340px;
  }
  .work-item:nth-child(1) { grid-column: span 3; }
  .work-item:nth-child(2) { grid-column: span 1; }
  .work-item:nth-child(3) { grid-column: span 1; }
  .work-item:nth-child(4) { grid-column: span 3; }
  .work-item:nth-child(5) { grid-column: span 2; }
  .work-item:nth-child(6) { grid-column: span 2; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .work-item { grid-column: span 1 !important; }
  .work-img { flex: none; aspect-ratio: 4/3; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-statement { font-size: clamp(2.4rem, 7vw, 4.5rem); margin-bottom: 52px; padding-bottom: 52px; }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .service-row { flex-wrap: wrap; gap: 16px; }
  .service-arr { display: none; }
  .manifesto-text { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .shop-grid { grid-template-columns: 1fr; }
  .footer-middle { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .modal-content { padding: 44px 22px 28px; }
  .modal-footer { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ── Gallery Modal ─────────────────────────────── */
.gallery-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4,4,4,.96);
  display: none; overflow-y: auto;
  padding: clamp(20px,4vw,60px);
}
.gallery-overlay.open { display: block; }

.gallery-close {
  position: fixed; top: 24px; right: 28px; z-index: 1010;
  background: none; border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 18px; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.gallery-close:hover { border-color: var(--gold); color: var(--gold); }

.gallery-modal {
  max-width: 1400px; margin: 0 auto;
}

.gallery-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-bottom: clamp(24px,4vw,48px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: clamp(24px,4vw,48px);
}
.gallery-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem,6vw,5rem);
  font-weight: 600; letter-spacing: -.03em;
  color: var(--white); margin: 0 0 6px;
}
.gallery-subtitle {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); opacity: .85;
}
.gallery-count {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.28);
}

/* Case Study */
.gallery-case-study {
  margin-bottom: clamp(40px,6vw,80px);
}
.gallery-case-study:empty { display: none; }

.cs-intro {
  max-width: 780px;
  font-size: clamp(1rem,1.8vw,1.2rem);
  line-height: 1.75;
  color: rgba(255,255,255,.65);
  margin-bottom: clamp(36px,5vw,64px);
}

.cs-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px,3vw,48px);
  margin-bottom: clamp(36px,5vw,64px);
  padding-bottom: clamp(36px,5vw,64px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.cs-section-label {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; opacity: .85;
}

.cs-section-body {
  font-size: .88rem; line-height: 1.8;
  color: rgba(255,255,255,.48);
}

.cs-section-body ul {
  list-style: none; padding: 0; margin: 0;
}
.cs-section-body ul li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cs-section-body ul li:last-child { border-bottom: none; }
.cs-section-body ul li::before {
  content: '—'; margin-right: 10px; color: var(--gold); opacity: .6;
}

.cs-outcome {
  max-width: 780px;
  margin-bottom: clamp(36px,5vw,64px);
}
.cs-outcome-label {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; opacity: .85;
}
.cs-outcome-body {
  font-size: clamp(.95rem,1.5vw,1.1rem); line-height: 1.8;
  color: rgba(255,255,255,.55);
}
.cs-view-photos {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: clamp(24px,3vw,40px);
  padding: 12px 28px;
  border: 1px solid var(--gold);
  color: var(--gold); font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.cs-view-photos:hover { background: var(--gold); color: #000; }

/* Masonry-style grid */
.gallery-grid {
  columns: 3; column-gap: clamp(10px,1.5vw,20px);
}
.gallery-thumb {
  break-inside: avoid; margin-bottom: clamp(10px,1.5vw,20px);
  cursor: pointer; overflow: hidden; display: block;
  position: relative;
}
.gallery-thumb img {
  width: 100%; display: block;
  transition: transform .7s cubic-bezier(0.16,1,0.3,1), filter .4s;
  filter: brightness(.9);
}
.gallery-thumb:hover img { transform: scale(1.04); filter: brightness(1); }
.gallery-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.25);
  transition: opacity .3s;
}
.gallery-thumb:hover::after { opacity: 0; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1020;
  background: rgba(0,0,0,.95);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-height: 90vh; max-width: 90vw;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.06);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none;
  border: 1px solid rgba(255,255,255,.15);
  color: #fff; cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 18px;
  transition: border-color .2s, color .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  border-color: var(--gold); color: var(--gold);
}
.lightbox-close { top: 24px; right: 28px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 768px) {
  .gallery-grid { columns: 2; }
}
@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
}

/* ── MOBILE OPTIMIZATIONS ─────────────────────────────── */
/* Ensure media stays within container bounds */
img, video, iframe { max-width: 100%; height: auto; }
/* Prevent text elements from overflowing */
p, h1, h2, h3, h4, h5, h6, blockquote { max-width: 100%; overflow-wrap: break-word; word-wrap: break-word; }
/* Exempt scrolling marquees from max-width constraints */
.marquee-content, .marquee-track { max-width: none; }

/* Touch-device optimizations */
@media (hover: none), (pointer: coarse) {
  /* Disable hover-only animations that break on touch */
  .product-card:hover, .ai-product-card:hover, .work-item:hover { transform: none; }
  /* Larger tap targets */
  .btn, button, a.nav-cta, .ai-product-cta, .product-card a { min-height: 44px; }
  /* Remove tap highlight */
  * { -webkit-tap-highlight-color: transparent; }
  /* Smooth momentum scrolling */
  body { -webkit-overflow-scrolling: touch; }
  /* Allow text selection */
  p, h1, h2, h3, h4, h5, h6, span, li { -webkit-user-select: text; user-select: text; }
}

/* Small phones — tighter layouts */
@media (max-width: 480px) {
  /* Prevent hero text from being cut off */
  .hero-content { padding: 0 20px; }
  .hero-title { font-size: clamp(60px, 22vw, 120px); }
  .hero-actions { gap: 12px; width: 100%; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* Ensure nav fits */
  #nav { padding: 16px 20px; }
  .nav-logo-noir { font-size: 20px; }

  /* Tighter container padding */
  .container, .container--narrow { padding-left: 20px; padding-right: 20px; }

  /* Section titles smaller */
  .section-title { font-size: clamp(2rem, 9vw, 3rem); }

  /* AI services hero */
  #ai-services .ai-hero { padding: 60px 20px; }

  /* Form buttons full width */
  .btn--large { width: 100%; }

  /* Footer spacing */
  .footer-top, .footer-middle { padding: 0 20px; }
  .footer-bottom { padding: 24px 20px; font-size: 11px; }

  /* Studio Store product grid */
  #studio-store .container > .grid,
  #studio-store [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
  }
}

/* Medium phones and up */
@media (max-width: 600px) {
  .ai-section-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .ai-container, #ai-services .ai-container { padding-left: 20px; padding-right: 20px; }
  .ai-tier-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ai-showcase-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 2px; }
  .ai-showcase-grid img { aspect-ratio: 1; object-fit: cover; }
  .footer-statement { padding: 0 20px; }
  .hero-sub-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
