/* ============================================================
   STAR GONZALES — site styles
   Palette: deep space black, off-white, signature SW gold
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --ink: #f4f1e6;
  --ink-dim: #b9b4a4;
  --gold: #ffe81f;
  --gold-soft: rgba(255, 232, 31, .14);
  --gold-line: rgba(255, 232, 31, .35);
  --rule: rgba(255, 255, 255, .08);
  --max: 1240px;
  --display: 'Orbitron', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html { background: #03040a; }
body { background: transparent; }

.nebula {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(255,232,31,.035), transparent 70%),
    radial-gradient(800px 500px at 5% 100%, rgba(80,140,255,.025), transparent 70%);
  pointer-events: none;
  z-index: 2;
  animation: nebulaDrift 30s ease-in-out infinite alternate;
}
@keyframes nebulaDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.05); }
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  pointer-events: none;
}

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

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 36px;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(5,6,10,.85), rgba(5,6,10,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-mark,
.nav-socials  { justify-self: start; }
.nav nav      { justify-self: center; }
.nav-cta      { justify-self: end; }

.nav-mark {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: .25em;
  color: var(--gold);
  font-size: 14px;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  opacity: .75;
  transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}
.nav-socials img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.nav-socials a:hover {
  opacity: 1;
  transform: translateY(-1px);
  /* gold tint on hover — works for both white SVGs and light PNGs */
  filter: drop-shadow(0 0 6px rgba(255, 232, 31, .55))
          brightness(1.1)
          sepia(.4) saturate(8) hue-rotate(355deg);
}

@media (max-width: 720px) {
  .nav-socials { gap: 12px; }
  .nav-socials a { width: 20px; height: 20px; }
}

.nav nav { display: flex; gap: 28px; }
.nav nav a {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .25s ease;
}
.nav nav a:hover { color: var(--gold); }

.nav-cta {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  padding: 10px 18px;
  border-radius: 999px;
  transition: background .25s ease, transform .25s ease;
}
.nav-cta:hover { background: var(--gold-soft); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav { padding: 14px 18px; }
  .nav nav { display: none; }
}

/* ---------- Layout helpers ---------- */
main { position: relative; z-index: 10; }
.nav  { z-index: 50; }
.foot { z-index: 10; }

section {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 70px 48px;
  position: relative;
}

@media (max-width: 720px) {
  section { padding: 50px 22px; }
}

.kicker {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 54px);
  letter-spacing: .15em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.section-lede {
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-eyebrow {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeIn 1.2s ease .2s forwards;
}

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(54px, 11vw, 156px);
  line-height: .95;
  margin: 0;
  letter-spacing: .04em;
  display: flex;
  flex-direction: column;
  gap: .04em;
}

.hero-title .word {
  color: var(--gold);
  text-shadow:
    0 0 30px rgba(255,232,31,.25),
    0 0 80px rgba(255,232,31,.12);
  background: linear-gradient(180deg, #fff4a8 0%, #ffe81f 45%, #b08c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(20px) scale(.98);
  animation: heroIn 1.2s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title .word:nth-child(2) { animation-delay: .25s; }

/* ---------- Lightsaber divider ---------- */
.lightsaber {
  position: relative;
  margin: 38px auto 0;
  width: clamp(240px, 52vw, 620px);
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* hilt — small dark cylinder centered (the emitter) */
.lightsaber .hilt {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 8px;
  background: linear-gradient(180deg, #3a3d44 0%, #1a1c22 50%, #3a3d44 100%);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 1px 2px rgba(0,0,0,.6);
  z-index: 2;
  opacity: 0;
  animation: fadeIn .4s ease 1.2s forwards;
}

/* blade — the glowing beam, expands from the hilt outward */
.lightsaber .blade {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%) scaleX(0);
  transform-origin: center center;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.95) 6%,
    #fff 50%,
    rgba(255,255,255,.95) 94%,
    transparent 100%);
  border-radius: 3px;
  box-shadow:
    0 0 6px 1px #5ad7ff,
    0 0 14px 3px #4ec9ff,
    0 0 26px 6px rgba(78, 201, 255, .65),
    0 0 44px 12px rgba(78, 201, 255, .35);
  animation:
    saberIgnite .55s cubic-bezier(.2, .9, .25, 1) 1.4s forwards,
    saberHum 2.4s ease-in-out 2s infinite;
}

/* tip flash — bright pulse at the moment the blade reaches full length */
.lightsaber .tip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(120, 220, 255, .7) 40%, transparent 70%);
  transform: translate(-50%, -50%) scale(.4);
  opacity: 0;
  animation: saberTip .6s ease-out 1.85s forwards;
}

@keyframes saberIgnite {
  0%   { transform: translateY(-50%) scaleX(0);    filter: brightness(1.4); }
  60%  { filter: brightness(1.6); }
  100% { transform: translateY(-50%) scaleX(1);    filter: brightness(1); }
}
@keyframes saberHum {
  0%, 100% {
    box-shadow:
      0 0 6px 1px #5ad7ff,
      0 0 14px 3px #4ec9ff,
      0 0 26px 6px rgba(78, 201, 255, .65),
      0 0 44px 12px rgba(78, 201, 255, .35);
  }
  50% {
    box-shadow:
      0 0 5px 1px #5ad7ff,
      0 0 11px 2px #4ec9ff,
      0 0 22px 5px rgba(78, 201, 255, .55),
      0 0 38px 10px rgba(78, 201, 255, .28);
  }
}
@keyframes saberTip {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  40%  { opacity: 1; transform: translate(-50%, -50%) scale(1.6); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); }
}

.hero-tag {
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.hero-socials {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 0 16px;
  max-width: 100%;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink);
  opacity: 0;
  animation: fadeIn 1s ease 2.4s forwards;
}
.hero-socials a { border-bottom: 1px solid var(--gold-line); padding-bottom: 2px; }
.hero-socials a:hover { color: var(--gold); }
.hero-socials .dot { color: var(--gold); }

@media (max-width: 720px) {
  .hero-socials {
    font-size: 11px;
    letter-spacing: .08em;
    gap: 6px 10px;
    padding: 0 20px;
  }
  /* hide the bullet dots on mobile — wrapping rows look cleaner without them */
  .hero-socials .dot { display: none; }
}
@media (max-width: 420px) {
  .hero-socials { font-size: 10px; }
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  opacity: 0;
  animation: fadeIn 1.2s ease 2.8s forwards;
}
.scroll-cue span {
  width: 2px;
  height: 6px;
  background: var(--gold);
  border-radius: 2px;
  animation: cue 1.6s ease-in-out infinite;
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes cue {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- COUNTERS ---------- */
.counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 0;
  padding-bottom: 80px;
}
@media (max-width: 720px) { .counters { grid-template-columns: 1fr; padding-bottom: 40px; } }

.counter {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 18px;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.counter:hover { border-color: var(--gold-line); transform: translateY(-2px); }

.counter-icon {
  grid-row: 1 / span 2;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  color: var(--gold);
}
.counter-icon svg { width: 22px; height: 22px; }

.counter-meta { grid-column: 2; }
.counter-label {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.counter-handle {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px dashed var(--rule);
}
.counter-handle:hover { color: var(--gold); border-color: var(--gold-line); }

.counter-value {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--gold);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.counter-sub {
  grid-column: 2;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.counter-pulse {
  position: absolute;
  top: 14px; right: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255,232,31,.5);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,232,31,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(255,232,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,232,31,0); }
}

/* ---------- BIO ---------- */
.bio {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 560px);
  column-gap: 80px;
  row-gap: 56px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .bio { grid-template-columns: minmax(0, 480px); justify-items: center; row-gap: 40px; }
  .bio-copy { text-align: center; }
  .bio-stats { justify-content: center; }
}

.bio-photo { position: relative; }

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #0e1018, #05060a);
  border: 1px solid var(--gold-line);
  box-shadow:
    0 30px 80px rgba(0,0,0,.6),
    inset 0 0 0 1px rgba(255,255,255,.03);
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}
.photo-frame img.missing { display: none; }

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--ink-dim);
  font-family: var(--display);
  letter-spacing: .25em;
  font-size: 12px;
  text-transform: uppercase;
  z-index: 1;
}
.photo-placeholder small {
  font-family: var(--body);
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  margin-top: 12px;
  color: var(--ink-dim);
  opacity: .8;
}
.photo-placeholder code {
  background: var(--gold-soft);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
}
.photo-frame.missing .photo-placeholder { z-index: 3; }

.photo-glow {
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), transparent 60%);
  filter: blur(40px);
  opacity: .25;
  z-index: 0;
}

.bio-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: .1em;
  margin: 0 0 22px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #c8c2a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bio-copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0 0 16px;
}
.bio-lede {
  color: var(--ink);
  font-weight: 400;
}

.bio-stats {
  list-style: none;
  padding: 28px 0 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--rule);
}
.bio-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
}
.bio-stats strong {
  font-family: var(--display);
  font-size: 26px;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.bio-stats span {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.35;
}
@media (max-width: 900px) {
  .bio-stats { justify-items: center; }
  .bio-stats li { align-items: center; text-align: center; }
}
@media (max-width: 560px) {
  .bio-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

/* ---------- BIO GALLERY ---------- */
.bio-gallery {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}
@media (max-width: 600px) { .bio-gallery { flex-wrap: wrap; } }

.g-tile {
  position: relative;
  flex: 0 0 auto;
  width: 130px;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #0c0e16;
  cursor: pointer;
  padding: 0;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.g-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.45));
  opacity: .6;
  transition: opacity .3s ease;
  pointer-events: none;
}
.g-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: 0 14px 32px rgba(0,0,0,.5), 0 0 24px rgba(255,232,31,.12);
}
.g-tile:hover::after { opacity: 0; }
.g-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, filter .3s ease;
  filter: saturate(.92);
}
.g-tile:hover img { transform: scale(1.06); filter: saturate(1.05); }

/* ---------- GALLERY LIGHTBOX ---------- */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
  opacity: 0;
  transition: opacity .3s ease;
  cursor: zoom-out;
}
.gallery-modal.is-open { display: flex; opacity: 1; }
.gallery-modal-img,
.gallery-modal .modal-close,
.gallery-modal-nav { cursor: pointer; }
.gallery-modal-img { cursor: default; }

.gallery-modal-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 60px rgba(255,232,31,.10);
  object-fit: contain;
  transition: opacity .25s ease;
}

/* gallery modal uses the shared .modal-close pill — see above */

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  transition: background .25s ease, transform .25s ease;
}
.gallery-modal-nav.prev { left: 22px; }
.gallery-modal-nav.next { right: 22px; }
.gallery-modal-nav:hover {
  background: var(--gold-soft);
  transform: translateY(-50%) scale(1.06);
}
@media (max-width: 600px) {
  .gallery-modal { padding: 50px 12px; }
  .gallery-modal-nav { width: 42px; height: 42px; font-size: 26px; }
  .gallery-modal-nav.prev { left: 8px; }
  .gallery-modal-nav.next { right: 8px; }
}

/* ---------- BRANDS ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 44px;
  max-width: 1080px;
}
@media (max-width: 1000px) {
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; }
}
@media (max-width: 600px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 480px; }
}

.brand-cell {
  position: relative;
  aspect-ratio: 1.4 / 1;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease, background .3s ease;
}
.brand-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,232,31,.12), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.brand-cell:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  background: linear-gradient(180deg, rgba(255,232,31,.04), rgba(255,255,255,0));
}
.brand-cell:hover::before { opacity: 1; }
.brand-cell.is-active {
  border-color: var(--gold);
  background: rgba(255,232,31,.06);
}

.brand-cell .logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .15em;
  color: var(--ink);
  text-align: center;
  text-transform: uppercase;
  transition: filter .3s ease, opacity .3s ease, color .3s ease, transform .3s ease;
}
.brand-cell .logo.has-img {
  filter: grayscale(1) brightness(1.6) contrast(1.05);
  opacity: .75;
}
.brand-cell:hover .logo.has-img,
.brand-cell.is-active .logo.has-img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}
.brand-cell:hover .logo:not(.has-img),
.brand-cell.is-active .logo:not(.has-img) {
  color: var(--gold);
}
.brand-cell .logo img {
  max-width: 78%;
  max-height: 70%;
  object-fit: contain;
}

.brand-detail {
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(255,232,31,.06), transparent 60%),
    rgba(255,255,255,.02);
  border-radius: 18px;
  padding: 36px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color .3s ease;
}
.brand-detail-inner { max-width: 620px; }
.brand-detail-name {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.brand-detail-copy { color: var(--ink-dim); font-size: 16px; }
.brand-detail-copy strong { color: var(--ink); font-weight: 500; }

/* ---------- FEED ---------- */
.feed-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}
.feed-tab {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-dim);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
}
.feed-tab:hover { color: var(--ink); border-color: var(--gold-line); }
.feed-tab.is-active {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

.feed-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.post {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: linear-gradient(135deg, #0c0e16, #14161e);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s ease;
  display: block;
}
.post:hover { transform: translateY(-3px); border-color: var(--gold-line); }

.post-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
}
.post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.85));
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.post-platform {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(0,0,0,.5);
  border: 1px solid var(--gold-line);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.post-caption {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-stats {
  display: flex; gap: 14px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: .1em;
}

.feed-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--rule);
  border-radius: 14px;
  color: var(--ink-dim);
}

/* ---------- VIDEOS ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}
@media (max-width: 1100px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 880px; } }
@media (max-width: 760px)  { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; } }
@media (max-width: 480px)  { .video-grid { grid-template-columns: 1fr; max-width: 320px; } }

.video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: linear-gradient(135deg, #0c0e16, #14161e);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .3s ease;
  display: block;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 30px rgba(255,232,31,.12);
}
.video-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .9;
  transition: transform .6s ease, opacity .3s ease;
}
.video-card:hover .video-card-thumb { transform: scale(1.05); opacity: 1; }

.video-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85));
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.video-card-platform {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(0,0,0,.55);
  border: 1px solid var(--gold-line);
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.video-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform .3s ease, background .3s ease;
}
.video-card-play::after {
  content: "";
  width: 0; height: 0;
  border-left: 14px solid var(--gold);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.video-card:hover .video-card-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255,232,31,.15);
}

.video-card-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- VIDEO MODAL ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .3s ease;
  cursor: zoom-out;
}
.video-modal.is-open { display: flex; opacity: 1; }
.video-modal-frame, .video-modal .modal-close { cursor: default; }
.video-modal .modal-close, .video-modal-frame iframe { cursor: pointer; }

/* Shared modal close pill — used by both video + gallery modals */
.modal-close {
  position: absolute;
  top: 22px; right: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 14px;
  background: rgba(255, 232, 31, .08);
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 0 24px rgba(255, 232, 31, .18);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.modal-close > span:first-child {
  font-family: var(--body);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}
.modal-close:hover {
  background: var(--gold);
  color: var(--bg);
  transform: scale(1.04);
  box-shadow: 0 0 36px rgba(255, 232, 31, .35);
}

/* Shared modal hint — subtle bottom caption */
.modal-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(244, 241, 230, .55);
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
}
.modal-hint .hint-mobile { display: none; }
.modal-hint kbd {
  font-family: var(--display);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0;
  margin: 0 2px;
  padding: 0;
  background: none;
  border: none;
}

@media (max-width: 720px) {
  .modal-close {
    height: 40px;
    padding: 0 14px 0 12px;
    font-size: 10px;
    letter-spacing: .25em;
    top: 16px; right: 16px;
  }
  .modal-close > span:first-child { font-size: 20px; }
  /* show the touch-friendly variant on mobile */
  .modal-hint { font-size: 9px; bottom: 18px; }
  .modal-hint .hint-desktop { display: none; }
  .modal-hint .hint-mobile { display: inline; }
}

.video-modal-frame {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 60px rgba(255,232,31,.12);
}
.video-modal-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- CONTACT ---------- */
.contact {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.contact h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.contact p { color: var(--ink-dim); margin-bottom: 36px; }
.contact-btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 18px 32px;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 0 40px rgba(255,232,31,.25);
}
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(255,232,31,.4); }

.contact-socials {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.contact-socials a { border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.contact-socials a:hover { color: var(--gold); border-color: var(--gold-line); }

/* ---------- FOOTER ---------- */
.foot {
  border-top: 1px solid var(--rule);
  padding: 30px 36px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .foot { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
