/* ═══════════════════════════════════════════════════════════════
   GABAY WORKS — SHARED STYLESHEET
   Linked by all works pages. Page-specific CSS stays inline.
   Canonical values from jennie.html (most refined version).
═══════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --black:      #07070D;
  --surface:    #0F0F1A;
  --card:       #13131F;
  --lift:       #181824;
  --gold:       #FFCC00;
  --gold-mid:   rgba(255, 204, 0, 0.35);
  --gold-line:  rgba(255, 204, 0, 0.14);
  --gold-glow:  rgba(255, 204, 0, 0.06);
  --gold-dim:   rgba(255, 204, 0, 0.06);
  --text:       #F0EDE4;
  --text-muted: rgba(240, 237, 228, 0.85);
  --text-faint: rgba(240, 237, 228, 0.65);
  --text-ghost: rgba(240, 237, 228, 0.10);
  --muted:      rgba(240, 237, 228, 0.85);
  --faint:      rgba(240, 237, 228, 0.65);
  --ghost:      rgba(240, 237, 228, 0.08);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Plus Jakarta Sans', system-ui, sans-serif;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --gap:        3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: rgba(255,204,0,0.18); color: var(--text); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: rgba(255,204,0,0.25); border-radius: 2px; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ─── SCROLL PROGRESS ─── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 0%;
  background: var(--gold);
  z-index: 500;
  transition: width 0.05s linear;
}

/* ─── PAGE LOAD ─── */
.page-veil {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 400;
  pointer-events: none;
  animation: veil-lift 0.8s var(--ease-out) 0.1s both;
}
@keyframes veil-lift {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}

/* ─── NAV ─── */
.g-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease-out);
}
.g-nav.scrolled { padding: 18px 60px; }
.g-nav-logo img { height: 68px; width: auto; display: block; }
.g-nav-links { display: flex; gap: 40px; list-style: none; }
.g-nav-links a {
  font-family: var(--sans);
  font-size: 12px; font-weight: 300;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}
.g-nav-links a:hover { color: var(--gold); }

/* ─── BURGER MENU ─── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 250;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px; background: var(--text);
  transition: transform 0.3s ease, opacity 0.2s ease; transform-origin: center;
}
body.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile-menu {
  display: none; position: fixed; inset: 0;
  background: rgba(7,7,13,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 220; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 40px 60px; gap: 0;
}
body.menu-open .nav-mobile-menu { display: flex; }
body.menu-open { overflow: hidden; }
.nav-mobile-menu a {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(32px, 8vw, 48px);
  font-weight: 600; color: var(--text); text-decoration: none;
  letter-spacing: 0.01em; padding: 16px 0;
  border-bottom: 1px solid rgba(255,204,0,0.1); width: 100%; text-align: center; transition: color 0.2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover, .nav-mobile-menu a:focus { color: var(--gold); outline: none; }

/* ─── WORK NAV ─── */
.work-nav {
  position: fixed;
  top: 125px; left: 0; right: 0;
  z-index: 199;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  height: 42px;
  background: rgba(7,7,13,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-line);
  transition: top 0.4s var(--ease-out);
}
.work-nav-item {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; opacity: 0.7;
  transition: opacity 0.2s;
}
.work-nav-item:hover { opacity: 1; }
.work-nav-item:hover .work-nav-label { color: var(--gold); }
.work-nav-item:hover .work-nav-arrow { color: var(--gold); }
.work-nav-arrow {
  font-size: 14px; color: var(--text-faint);
  transition: color 0.2s;
  flex-shrink: 0;
}
.work-nav-label {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.2s;
}
.work-nav-current { display: none; }

.page-start { height: 167px; }
.cs-page { max-width: 1600px; margin: 0 auto; }

/* ─── HERO ─── */
.cs-hero {
  position: relative; width: 100%;
  height: calc(100vh - 123px);
  min-height: 600px; max-height: 980px;
  overflow: hidden;
  background: var(--black);
}
.cs-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.cs-hero-media video, .cs-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Portrait media (detected by JS): right-side panel layout, anchor to top */
.cs-hero-media.hero-media--portrait {
  width: 48%;
  left: auto;
  right: 0;
}
.cs-hero-media.hero-media--portrait video,
.cs-hero-media.hero-media--portrait img {
  object-position: top center;
}
.cs-hero-veil {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to right,  rgba(7,7,13,0.95) 0%, rgba(7,7,13,0.65) 38%, rgba(7,7,13,0.15) 68%, transparent 100%),
    linear-gradient(to top,    rgba(7,7,13,0.88) 0%, rgba(7,7,13,0.42) 28%, rgba(7,7,13,0.08) 55%, transparent 78%),
    linear-gradient(to bottom, rgba(7,7,13,0.55) 0%, transparent 22%);
}
.cs-hero-grain {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}
.cs-hero-content {
  position: absolute;
  bottom: 0; left: 0; z-index: 4;
  padding: 0 80px 80px;
  max-width: 720px;
}
.cs-kicker {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.30em; text-transform: uppercase;
  color: rgba(255, 204, 0, 0.90);
  margin-bottom: 22px; display: block;
  animation: hero-up 0.9s var(--ease-out) 0.5s both;
}
.cs-hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
  animation: hero-up 1.2s var(--ease-out) 0.65s both;
}
.cs-hero-oneliner {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 300; font-style: italic;
  line-height: 1.4;
  color: rgba(240,237,228,0.85);
  border-left: 1.5px solid var(--gold);
  padding-left: 22px;
  animation: hero-up 1s var(--ease-out) 0.85s both;
}
@keyframes hero-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cs-hero-index {
  position: absolute;
  bottom: 80px; right: 80px; z-index: 4;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px;
  animation: hero-up 1s var(--ease-out) 1.0s both;
}
.cs-hero-index-num {
  font-family: var(--serif);
  font-size: 72px; font-weight: 200;
  color: var(--gold); opacity: 0.10;
  line-height: 1; letter-spacing: -0.05em;
}
.cs-hero-index-label {
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--text-faint);
}
.cs-hero-scroll {
  position: absolute;
  bottom: 48px; left: 50%;
  transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.cs-hero-scroll span {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--text-faint);
}
.cs-hero-scroll::after {
  content: '';
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,204,0,0.3), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.25; transform: scaleY(1) translateY(0); }
  50%       { opacity: 0.85; transform: scaleY(0.55) translateY(0); }
}

/* ─── PULLQUOTE ─── */
.cs-pullquote {
  padding: 100px 80px;
  display: flex; flex-direction: column;
  align-items: center; gap: 40px;
  background: var(--black);
  position: relative; overflow: hidden;
}
.cs-pullquote::before {
  content: '';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse, rgba(255,204,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.cs-pullquote-rule { width: 100%; height: 1px; background: var(--gold-line); }
.cs-pullquote-text {
  font-family: var(--serif);
  font-size: clamp(28px, 4.8vw, 68px);
  font-weight: 200; font-style: italic;
  line-height: 1.15; letter-spacing: -0.025em;
  color: var(--text); text-align: center;
  max-width: 960px; position: relative; z-index: 1;
}
.cs-pullquote-text em { font-style: italic; color: var(--gold); font-weight: 300; }

/* ─── OVERVIEW ─── */
.cs-overview {
  padding: 100px 80px 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 88px;
  align-items: start;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  position: relative;
}
.cs-overview::before { display: none; }
.cs-overview-brief { display: flex; flex-direction: column; gap: 24px; }
.cs-overview-meta  { display: flex; flex-direction: column; gap: 40px; padding-top: 6px; }
.cs-section-label {
  font-family: var(--sans);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255, 204, 0, 0.70);
  margin-bottom: 16px; display: block;
}
.cs-overview-heading {
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 300; line-height: 1.12;
  letter-spacing: -0.018em; color: var(--text);
}
.cs-overview-heading em { font-style: italic; font-weight: 300; }
.cs-overview-body {
  font-family: var(--sans);
  font-size: 15px; font-weight: 300;
  line-height: 1.90; color: var(--text-muted);
  max-width: 500px;
}
.cs-meta-block { display: flex; flex-direction: column; gap: 10px; }
.cs-meta-value {
  font-family: var(--sans);
  font-size: 15px; font-weight: 300;
  line-height: 1.80; color: var(--text-muted);
}
.cs-divider { width: 40px; height: 1px; background: var(--gold-line); }

/* ─── WORK SECTION ─── */
.cs-work { background: var(--black); }
.cs-media-label {
  display: flex; align-items: center; gap: 20px;
  padding: 32px 80px 24px;
}
.cs-media-num {
  font-family: var(--serif);
  font-size: 14px; font-weight: 400;
  color: rgba(255, 204, 0, 0.70);
  letter-spacing: 0.08em;
}
.cs-media-title-text {
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-faint);
}
.cs-media-rule { flex: 1; height: 1px; background: var(--gold-line); }

.cs-work-cap {
  padding: 64px 80px;
  display: flex; align-items: center; gap: 40px;
  border-top: 1px solid var(--gold-line);
}
.cs-work-cap-label {
  font-family: var(--sans);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255, 204, 0, 0.70); white-space: nowrap;
}
.cs-work-cap-line { flex: 1; height: 1px; background: var(--gold-line); }

.cs-exhibit {
  padding: 0 80px 64px;
}

/* ─── MEDIA HELPERS (gallery pages) ─── */
.cs-media-full { width: 100%; }
.cs-media-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap, 3px);
}
.cs-media-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap, 3px);
}

/* ─── FOOTER STRIP ─── */
.cs-footer-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 48px 80px;
  border-top: 1px solid var(--gold-line);
  background: var(--black);
  position: relative; overflow: hidden;
}
/* Each page overrides ::before with its own client name ghost text */
.cs-footer-strip::before {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 200; letter-spacing: 0.10em;
  color: var(--text-ghost);
  pointer-events: none; user-select: none;
  white-space: nowrap;
}
.cs-footer-client {
  font-family: var(--serif);
  font-size: 22px; font-weight: 300;
  color: var(--text-muted); letter-spacing: 0.02em;
  position: relative; z-index: 1;
}
.cs-footer-back {
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  display: flex; align-items: center; gap: 12px;
  transition: color 0.25s; position: relative; z-index: 1;
}
.cs-footer-back:hover { color: var(--gold); }
.cs-footer-back::before { content: '←'; font-size: 16px; line-height: 1; }

/* ─── GABAY FOOTER ─── */
.g-footer {
  background: var(--black);
  border-top: 1px solid var(--gold-line);
  padding: 32px 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.g-footer img { height: 24px; width: auto; opacity: 0.60; }
.g-footer-copy {
  font-family: var(--sans);
  font-size: 14px; color: var(--text-faint); letter-spacing: 0.08em;
}

/* ─── SCROLL REVEAL ─── */
.sr {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.sr.visible { opacity: 1; transform: translateY(0); }
.sr-left { opacity: 0; transform: translateX(-32px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); }
.sr-left.visible { opacity: 1; transform: translateX(0); }
.sr-right { opacity: 0; transform: translateX(32px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); }
.sr-right.visible { opacity: 1; transform: translateX(0); }
.sr-d1 { transition-delay: 0.10s; }
.sr-d2 { transition-delay: 0.22s; }
.sr-d3 { transition-delay: 0.36s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .g-nav, .g-nav.scrolled { padding: 18px 40px; }
  .work-nav { padding: 0 40px; top: 105px; }
  .page-start { height: 147px; }
  .cs-hero-content { padding: 0 48px 64px; }
  .cs-hero-index { right: 48px; bottom: 64px; }
  .cs-pullquote { padding: 72px 48px; }
  .cs-overview { padding: 80px 48px 72px; gap: 48px 56px; }
  .cs-media-label { padding: 28px 48px 20px; }
  .cs-exhibit { padding: 0 48px 48px; }
  .cs-work-cap { padding: 48px; }
  .cs-footer-strip { padding: 40px 48px; }
}
@media (max-width: 768px) {
  .g-nav { padding: 16px 24px; }
  .g-nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .work-nav { padding: 0 24px; top: 101px; }
  .work-nav-current { display: none; }
  .page-start { height: 143px; }
  .cs-hero { height: calc(100vh - 143px); min-height: 500px; }
  .cs-hero-content { padding: 0 28px 52px; max-width: 100%; }
  .cs-hero-index { display: none; }
  .cs-hero-scroll { display: none; }
  .cs-pullquote { padding: 56px 28px; gap: 28px; }
  .cs-overview { grid-template-columns: 1fr; padding: 60px 28px 52px; gap: 44px; }
  .cs-overview::before { display: none; }
  .cs-media-label { padding: 24px 28px 16px; }
  .cs-exhibit { padding: 0 16px 40px; }
  .cs-media-2col, .cs-media-3col { grid-template-columns: 1fr; }
  .cs-work-cap { padding: 36px 28px; }
  .cs-footer-strip { padding: 36px 28px; }
  .cs-footer-strip::before { font-size: 14vw; }
  .g-footer { padding: 28px 24px; }
}
