/* ============================================
   IMAGINARIUM CREATIVE STUDIO
   Shared Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #0A0E18;
  --bg2: #0E1322;
  --ivory: #F0ECE2;
  --gold: #C4A05A;
  --green: #5BF06C;
  --text: #F0ECE2;
  --text-muted: rgba(240,236,226,0.5);
  --text-dim: rgba(240,236,226,0.3);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Libre Franklin', Helvetica, Arial, sans-serif;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-pad: clamp(4rem, 10vw, 8rem);
  --nav-height: 80px;
  --max-width: 1400px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Skip-to-content (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--ivory);
  outline-offset: 2px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.25rem); }
p { font-size: clamp(0.95rem, 1.1vw, 1.1rem); color: var(--text-muted); max-width: 65ch; }
.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* --- Layout Utilities --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: var(--section-pad) 0; }
.grid { display: grid; gap: var(--gap); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: 1px solid var(--gold);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  z-index: 0;
}
.btn:hover::before { transform: scaleX(1); }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn:hover { color: var(--bg); }
.btn--filled {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.btn--filled::before { background: var(--ivory); }
.btn--green { border-color: var(--green); }
.btn--green::before { background: var(--green); }

/* Arrow icon for buttons */
.btn .arrow {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
  position: relative;
  z-index: 1;
  transition: width var(--transition);
}
.btn .arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 30px; }


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--gap);
  background: rgba(10,14,24,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(10,14,24,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav__logo img {
  height: 36px;
  width: auto;
}
.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--gold); }

/* Language switcher */
.nav__lang {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 1.5rem;
}
.nav__lang a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__lang a:hover,
.nav__lang a.active { color: var(--ivory); }
.nav__mobile .nav__lang {
  font-size: 1rem;
  margin-left: 0;
  margin-top: 1rem;
}

/* Mobile hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.nav__burger span {
  width: 24px;
  height: 1.5px;
  background: var(--ivory);
  transition: var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* Mobile menu */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 999;
}
.nav__mobile.open { opacity: 1; pointer-events: all; }
.nav__mobile a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}


/* ============================================
   SHOWREEL
   ============================================ */
.showreel {
  position: relative;
  width: 100%;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--bg);
}
.showreel__video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
}
.showreel__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none;
}
.showreel__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 6rem 0 8rem;
  position: relative;
  overflow: hidden;
}
.hero__content { position: relative; z-index: 2; }
.hero__label { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  margin-bottom: 2.5rem;
  max-width: 50ch;
}
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}


/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(240,236,226,0.08);
  border-bottom: 1px solid rgba(240,236,226,0.08);
  position: relative;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee__item {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.marquee__item::after {
  content: '\2726';
  color: var(--gold);
  font-size: 0.6rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ============================================
   PORTFOLIO GRID
   ============================================ */
.portfolio { background: var(--bg); }
.portfolio__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.portfolio__card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  display: block;
}
.portfolio__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio__card:hover img { transform: scale(1.05); }
.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(10,14,24,0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio__card:hover .portfolio__overlay { opacity: 1; }
.portfolio__overlay .tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.portfolio__overlay h3 {
  font-size: 1.3rem;
  color: var(--ivory);
  margin-bottom: 0.25rem;
}
.portfolio__overlay p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Grid layout: first big, then pairs */
.portfolio__card:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 500px; }
.portfolio__card:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 2; min-height: 240px; }
.portfolio__card:nth-child(3) { grid-column: 8 / 13; grid-row: 2 / 3; min-height: 240px; }
.portfolio__card:nth-child(4) { grid-column: 1 / 7; min-height: 320px; }
.portfolio__card:nth-child(5) { grid-column: 7 / 13; min-height: 320px; }
.portfolio__card:nth-child(6) { grid-column: 1 / 7; min-height: 320px; }
.portfolio__card:nth-child(7) { grid-column: 7 / 13; min-height: 320px; }
.portfolio__card:nth-child(8) { grid-column: 1 / 7; min-height: 320px; }
.portfolio__card:nth-child(9) { grid-column: 7 / 13; min-height: 320px; }

@media (max-width: 768px) {
  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio__card,
  .portfolio__card:nth-child(n) {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-height: 250px !important;
  }
  .portfolio__overlay { opacity: 1; }
}


/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--bg2); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service__card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(240,236,226,0.06);
  border-radius: 4px;
  transition: border-color var(--transition), transform var(--transition);
}
.service__card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.service__num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: rgba(196,160,90,0.15);
  margin-bottom: 1rem;
  line-height: 1;
}
.service__card h3 {
  margin-bottom: 0.75rem;
  color: var(--ivory);
}
.service__card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .services__grid { grid-template-columns: 1fr; }
}


/* ============================================
   ABOUT
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about__text .label { margin-bottom: 1rem; }
.about__text h2 { margin-bottom: 1.5rem; }
.about__text p { margin-bottom: 1.25rem; }

.pullquote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  line-height: 1.5;
}

.stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.stat__num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
}
.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.about__image {
  border-radius: 4px;
  overflow: hidden;
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; gap: 1.5rem; }
}


/* ============================================
   PRESS
   ============================================ */
.press { background: var(--bg2); }
.press__list { margin-top: 2.5rem; }
.press__item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(240,236,226,0.06);
  transition: border-color var(--transition);
}
.press__item:hover { border-color: var(--gold); }
.press__year {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-dim);
}
.press__title {
  font-size: 1rem;
  color: var(--ivory);
}
.press__outlet {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .press__item {
    grid-template-columns: 60px 1fr;
  }
  .press__outlet { grid-column: 2; }
}


/* ============================================
   COSMO GAME LAB SECTION
   ============================================ */
.cosmo {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* CRT Scanlines */
.cosmo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(91,240,108,0.015) 2px,
    rgba(91,240,108,0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Pixel stars */
.cosmo__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.cosmo__star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--green);
  animation: blink 2s infinite alternate;
}
.cosmo__star:nth-child(2) { animation-delay: 0.4s; }
.cosmo__star:nth-child(3) { animation-delay: 0.8s; }
.cosmo__star:nth-child(4) { animation-delay: 1.2s; }
.cosmo__star:nth-child(5) { animation-delay: 1.6s; }
.cosmo__star:nth-child(6) { animation-delay: 0.3s; }
.cosmo__star:nth-child(7) { animation-delay: 0.7s; }
.cosmo__star:nth-child(8) { animation-delay: 1.1s; }
@keyframes blink {
  0%, 40% { opacity: 0.2; }
  50% { opacity: 1; }
  60%, 100% { opacity: 0.2; }
}

.cosmo .container { position: relative; z-index: 2; }
.cosmo .label { color: var(--green); }
.cosmo h2 { color: var(--green); margin-bottom: 1rem; }

.cosmo__games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.cosmo__card {
  background: rgba(91,240,108,0.04);
  border: 1px solid rgba(91,240,108,0.12);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.cosmo__card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}
.cosmo__card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.cosmo__card__body {
  padding: 1.25rem;
}
.cosmo__card h3 {
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.cosmo__card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.cosmo__cta {
  margin-top: 3rem;
  text-align: center;
}

@media (max-width: 768px) {
  .cosmo__games { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cosmo__games { grid-template-columns: 1fr; }
}


/* ============================================
   CONTACT / CTA
   ============================================ */
.contact {
  text-align: center;
  background: var(--bg2);
}
.contact h2 { margin-bottom: 1rem; }
.contact > .container > p { margin: 0 auto 2.5rem; }
.contact__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}
.contact__info {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(240,236,226,0.06);
}
.contact__info div {
  text-align: center;
}
.contact__info .label { margin-bottom: 0.25rem; }
.contact__info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 auto;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(240,236,226,0.06);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer__social {
  display: flex;
  gap: 1.5rem;
}
.footer__social a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__social a:hover { color: var(--gold); }

.footer__legal {
  display: flex;
  gap: 1.5rem;
}
.footer__legal a {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer__legal a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .footer__inner { flex-direction: column; gap: 1rem; text-align: center; }
}

/* --- Legal pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--ivory);
  margin: 2.5rem 0 1rem;
}
.legal-content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ivory);
  margin: 1.5rem 0 0.75rem;
}
.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.legal-content ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}
.legal-content li {
  margin-bottom: 0.5rem;
}
.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover {
  color: var(--ivory);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
}
.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(240,236,226,0.08);
}
.legal-table th {
  color: var(--ivory);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.legal-table td {
  color: var(--text-muted);
}
@media (max-width: 600px) {
  .legal-table { font-size: 0.78rem; }
  .legal-table th, .legal-table td { padding: 0.5rem; }
}

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg2);
  border-top: 1px solid rgba(240,236,226,0.1);
  padding: 1.25rem 1.5rem;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  min-width: 250px;
}
.cookie-banner__text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-banner__btn {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 2px;
}
.cookie-banner__btn--accept {
  background: var(--gold);
  color: var(--bg);
}
.cookie-banner__btn--accept:hover {
  background: var(--ivory);
  border-color: var(--ivory);
}
.cookie-banner__btn--reject {
  background: transparent;
  color: var(--text-muted);
}
.cookie-banner__btn--reject:hover {
  color: var(--ivory);
  border-color: var(--ivory);
}
@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; text-align: center; }
  .cookie-banner__buttons { justify-content: center; }
}


/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.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.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }


/* ============================================
   PROJECT PAGE — HERO
   ============================================ */
.project-hero {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}
.project-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.project-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(10,14,24,0.9));
}
.project-hero__content {
  position: relative;
  z-index: 2;
}
.project-hero .tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.project-hero h1 { margin-bottom: 1rem; }
.project-hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--text-muted);
  max-width: 60ch;
}


/* ============================================
   PROJECT PAGE — DETAILS
   ============================================ */
.project-details {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(240,236,226,0.06);
}
.project-details__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.project-details__item .label { margin-bottom: 0.5rem; }
.project-details__item p { color: var(--ivory); font-size: 1rem; }

@media (max-width: 768px) {
  .project-details__grid { grid-template-columns: 1fr 1fr; }
}


/* ============================================
   PROJECT PAGE — NARRATIVE
   ============================================ */
.project-narrative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.project-narrative__text h2 { margin-bottom: 1.5rem; }
.project-narrative__text p { margin-bottom: 1.25rem; }
.project-narrative__media {
  overflow: visible;
}
.project-narrative__media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
  max-height: none;
}
.project-narrative__media figcaption {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .project-narrative {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-narrative__media { overflow: visible; }
}


/* ============================================
   PROJECT PAGE — PULLQUOTE (centered)
   ============================================ */
.project-pullquote {
  text-align: center;
  padding: var(--section-pad) 0;
}
.project-pullquote blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  color: var(--gold);
  line-height: 1.4;
  max-width: 50ch;
  margin: 0 auto;
}


/* ============================================
   PROJECT PAGE — VIDEO
   ============================================ */
.project-video {
  padding: var(--section-pad) 0;
}
.project-video__wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg2);
}
.project-video__wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ============================================
   PROJECT PAGE — GALLERY
   ============================================ */
.project-gallery__grid {
  columns: 2;
  column-gap: 0;
  border-radius: 6px;
}
.project-gallery__grid img {
  width: 100%;
  height: auto;
  display: block;
  break-inside: avoid;
  border: 0.5px solid rgba(240,236,226,0.35);
  box-sizing: border-box;
}
.project-gallery__grid img:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .project-gallery__grid {
    columns: 1;
  }
}

/* Masonry variant — preserves original proportions */
.project-gallery__masonry {
  columns: 2;
  column-gap: 0;
  border-radius: 6px;
}
.project-gallery__masonry img {
  width: 100%;
  height: auto;
  display: block;
  break-inside: avoid;
  border: 0.5px solid rgba(240,236,226,0.35);
  box-sizing: border-box;
  object-fit: contain;
}
.project-gallery__masonry img:hover {
  opacity: 0.85;
}
@media (max-width: 768px) {
  .project-gallery__masonry {
    columns: 1;
  }
}


/* ============================================
   PROJECT PAGE — NEXT PROJECT
   ============================================ */
.next-project {
  display: block;
  padding: var(--section-pad) 0;
  border-top: 1px solid rgba(240,236,226,0.06);
  text-align: center;
  transition: background var(--transition);
}
.next-project:hover { background: var(--bg2); }
.next-project .label { margin-bottom: 0.5rem; }
.next-project h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  transition: color var(--transition);
}
.next-project:hover h2 { color: var(--gold); }


/* ============================================
   PROJECT PAGE — CTA BANNER
   ============================================ */
.project-cta {
  text-align: center;
  padding: var(--section-pad) 0;
  background: var(--bg2);
}
.project-cta h2 { margin-bottom: 1.5rem; }


/* ============================================
   CUSTOM CURSOR (optional enhancement)
   ============================================ */
@media (hover: hover) {
  .portfolio__card { cursor: pointer; }
}


/* ============================================
   PORTFOLIO PAGE
   ============================================ */

/* Hero */
.portfolio-page-hero {
  padding: calc(var(--nav-height) + 6rem) 0 3rem;
}
.portfolio-page-hero h1 { margin-bottom: 1rem; }
.portfolio-page-hero p:last-child { max-width: 55ch; }

/* Filter tabs */
.portfolio-filters {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid rgba(240,236,226,0.06);
  padding: 1rem 0;
}
.portfolio-filters__tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.portfolio-filters__tabs::-webkit-scrollbar { display: none; }
.portfolio-filters__tab {
  white-space: nowrap;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 100px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.portfolio-filters__tab:hover {
  color: var(--ivory);
  border-color: rgba(240,236,226,0.15);
}
.portfolio-filters__tab.active {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

/* Category section */
.portfolio-cat {
  padding: var(--section-pad) 0 2rem;
}
.portfolio-cat__header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(240,236,226,0.06);
}
.portfolio-cat__num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.portfolio-cat__header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

/* Card grid */
.portfolio-cat__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Portfolio card */
.pf-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg2);
  transition: transform var(--transition);
}
.pf-card:hover {
  transform: translateY(-4px);
}
.pf-card__img {
  overflow: hidden;
}
.pf-card__img img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform var(--transition);
}
.pf-card:hover .pf-card__img img {
  transform: scale(1.05);
}
.pf-card__info {
  padding: 1.25rem;
}
.pf-card__info h3 {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}
.pf-card:hover .pf-card__info h3 {
  color: var(--gold);
}
.pf-card__info .tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 1024px) {
  .portfolio-cat__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .portfolio-cat__grid { grid-template-columns: 1fr; }
  .portfolio-cat__header { flex-direction: column; gap: 0.5rem; }
  .portfolio-filters__tab { font-size: 0.65rem; padding: 0.5rem 1rem; }
}


/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: var(--gold);
  color: var(--bg);
}


/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(196,160,90,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
