/* ============ 3rd Rock Creation V2 — main styles (desktop-first) ============ */
:root {
  --yellow: #f5c518;
  --black: #0b0b0c;
  --ink: #0d0d0f;
  --white: #fff;
  --panel: #141417;
  --line: rgba(255, 255, 255, .12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { overflow-x: hidden; }
body {
  background: var(--black); color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.caption-kicker { font-size: .78rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: .6rem; }

/* =========================================================
   Loading overlays
   ========================================================= */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: #070708;
  transition: opacity .6s ease, visibility .6s ease;
}
#loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.loader-ring {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12); border-top-color: var(--yellow);
  animation: loader-spin .9s cubic-bezier(.65,0,.35,1) infinite;
}
.loader-text { color: rgba(255,255,255,.72); font-size: .8rem; letter-spacing: .2em;
  text-transform: uppercase; }
.loader-dots { animation: loader-dots 1.4s ease-in-out infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-dots { 0%,20%{opacity:0} 50%{opacity:1} 100%{opacity:0} }

.hero-loader {
  position: absolute; inset: 0; z-index: 20;
  display: grid; place-items: center; place-content: center; gap: 1rem;
  background: #070708;
  transition: opacity .6s ease, visibility .6s ease;
}
.hero-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.hero-loader-ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12); border-top-color: var(--yellow);
  animation: loader-spin .9s cubic-bezier(.65,0,.35,1) infinite;
}
.hero-loader-text { color: rgba(255,255,255,.72); font-size: .78rem;
  letter-spacing: .24em; text-transform: uppercase; }

/* =========================================================
   SECTION 1 · HERO
   ========================================================= */
#hero { position: relative; }
.scrub-section { height: 100vh; overflow: hidden; }
.scrub-stage { position: relative; width: 100%; height: 100%; }
.scrub-video { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-ui {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.2rem, 3vw, 2.6rem); overflow: hidden;
}
.hero-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark { height: 2.3rem; width: auto; object-fit: contain; }
.brand-name { font-weight: 700; letter-spacing: .02em;
  text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.hero-links a {
  pointer-events: auto; margin-left: 1.6rem; font-size: .86rem;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.hero-links a:hover { color: var(--yellow); }

.hero-foot { display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap; }
.hero-title {
  position: relative; display: block; width: 100%;
  font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1.04;
  text-transform: uppercase; font-weight: 900;
  text-shadow: 0 2px 26px rgba(0,0,0,.75);
  min-height: 3.4em; overflow: hidden;
}
.hero-phrase {
  position: absolute; inset: 0; display: block; opacity: 0;
  transition: opacity .7s ease; white-space: normal;
}
.hero-phrase.is-active { opacity: 1; }
.hero-phrase .since-line { display: block; }
.hero-title em { color: var(--yellow); font-style: normal; }

.hero-foot-right { text-align: right; flex: 0 0 auto; }
.hero-tag { font-size: .84rem; letter-spacing: .2em; text-transform: uppercase; opacity: .9;
  text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.hero-cta {
  pointer-events: auto; display: inline-block; margin-top: .9rem; font-weight: 700;
  font-size: .95rem; text-decoration: none; border-bottom: 2px solid var(--yellow);
  padding-bottom: .25rem; text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.hero-cta:hover { color: var(--yellow); }

.scroll-cue { position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%);
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; opacity: .75;
  text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.scroll-cue span { display: block; width: 1px; height: 2.4rem; background: var(--white);
  margin: 0 auto .5rem; animation: drip 1.6s ease-in-out infinite; }
@keyframes drip { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1)}
  100%{transform:scaleY(0);transform-origin:bottom} }

/* =========================================================
   SECTION 2 · PLAYER
   ========================================================= */
.player-section { position: relative; background: var(--black); }
.player-pin { position: relative; height: 100vh; width: 100%;
  display: grid; place-items: center; padding: clamp(3rem,6vh,6rem) clamp(1.2rem,4vw,4rem);
  background-color: #080809;
}
.player-pin::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/hero/thirdrock-logo.png") center / clamp(480px, 60vh, 760px) no-repeat;
  filter: grayscale(1) brightness(.5) contrast(.75); opacity: .07;
}
.player-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1;
}
.player-content {
  position: relative; z-index: 2; width: 100%;
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.player-title {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); text-transform: uppercase; font-weight: 900;
  letter-spacing: .02em; margin-bottom: 1.1rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.85), 0 1px 4px rgba(0,0,0,.7);
}
.player-frame { width: min(1000px, 94vw); }
.player-frame iframe { width: 100%; aspect-ratio: 16/9; background: #000;
  border: 1px solid var(--line); display: block; }
.player-story {
  margin-top: 1.4rem; max-width: 62ch; color: rgba(255,255,255,.92);
  font-size: 1.02rem; line-height: 1.65;
  text-shadow: 0 1px 10px rgba(0,0,0,.85);
}
.player-story strong { color: var(--white); }

/* Cingkus */
.cingkus {
  position: absolute; z-index: 60; bottom: 4vh; left: -220px; opacity: 0; will-change: transform;
  pointer-events: none; display: flex; flex-direction: column; align-items: center;
}
.cingkus-body { height: 30vh; width: auto;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,.55)); }

/* =========================================================
   SECTION 3 · SERVICES
   ========================================================= */
#services { position: relative; background: #000; }
.services-pin {
  position: relative; height: 100vh; width: 100%; overflow: hidden;
  display: flex; align-items: center;
}
.services-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .35;
}
.services-bg-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.05), rgba(0,0,0,.72));
}
.services-head {
  position: absolute; top: clamp(4rem,9vh,7rem); left: 0; right: 0; text-align: center;
  z-index: 6; pointer-events: none;
  text-shadow: 0 2px 16px rgba(0,0,0,.9);
}
.services-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); text-transform: uppercase;
  font-weight: 900; }

.sv-track { display: flex; width: 100%; will-change: transform; position: relative; z-index: 5; }
.sv-slide {
  flex: 0 0 100vw; display: flex; align-items: center; justify-content: center;
  padding: clamp(4rem,12vh,8rem) clamp(1.2rem,6vw,6rem) clamp(3rem,9vh,6rem);
}
.sv-card {
  width: min(1080px, 100%); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center; justify-items: center;
}
.sv-media {
  position: relative; width: 100%; aspect-ratio: 16 / 11; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(135deg, #232326, #0c0c0e);
  will-change: transform;
}
.sv-media img { width: 100%; height: 100%; object-fit: cover; }
.sv-media .sv-num {
  position: absolute; top: 1rem; left: 1.2rem; z-index: 2;
  font-size: .8rem; letter-spacing: .2em; color: var(--yellow);
  background: rgba(0,0,0,.55); padding: .35rem .6rem; border-radius: 999px;
  text-transform: uppercase;
}
.sv-body { will-change: transform; }
.sv-body h3 {
  font-size: clamp(1.6rem, 3vw, 2.5rem); text-transform: uppercase;
  font-weight: 900; line-height: 1.08; margin-bottom: 1rem;
}
.sv-body h3 em { color: var(--yellow); font-style: normal; }
.sv-body p { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.7;
  color: rgba(255,255,255,.8); max-width: 46ch; }
.sv-progress { position: absolute; bottom: 2rem; left: 0; right: 0; z-index: 6;
  display: flex; justify-content: center; gap: .45rem; }
.sv-progress i { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); }
.sv-progress i.on { background: var(--yellow); }

/* logo rails (falling client logos) */
.logo-rail {
  position: absolute; top: 0; bottom: 0; z-index: 4; pointer-events: none;
  width: clamp(120px, 15vw, 230px); overflow: hidden; z-index: 4;
}
.logo-rail-left { left: 0; }
.logo-rail-right { right: 0; }
.fall-logo {
  position: absolute; top: 0; left: 4%;
  width: 56%; aspect-ratio: 16/9; object-fit: contain; background: #fff;
  border-radius: 10px; padding: .35rem;
  will-change: transform; box-shadow: 0 4px 16px rgba(0,0,0,.35);
}

/* =========================================================
   SECTION 4 · STUDIO
   ========================================================= */
#studio { min-height: 100vh; display: flex; align-items: center;
  background: #080809; padding: clamp(3rem,8vh,6rem) clamp(1.2rem,4vw,4rem); }
.studio-inner { width: 100%; max-width: 1200px; margin: 0 auto; }
#studio h2 { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase;
  font-weight: 900; margin-bottom: 2.4rem; }
/* studio grid: 3 columns; the 4th video is tall and spans BOTH rows */
.studio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr; gap: 1rem; align-items: stretch;
}
.studio-video {
  width: 100%; height: 100%; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); background: #000; display: block;
  will-change: transform, opacity; min-height: 0;
}
.studio-video.is-tall {
  grid-column: 3; grid-row: 1 / span 2;   /* vertical video fills the whole right column */
}

/* =========================================================
   SECTION 5 · CONTACT / FOOTER
   ========================================================= */
#contact { position: relative; background: var(--ink); overflow: hidden; }
.contact-inner {
  min-height: 92vh; display: flex; flex-direction: column; justify-content: center;
  max-width: 1200px; margin: 0 auto;
  padding: clamp(4rem,10vh,8rem) clamp(1.2rem,4vw,4rem) clamp(2rem,4vh,3rem);
}
#contact h2 { font-size: clamp(2.2rem, 5vw, 4rem); text-transform: uppercase;
  font-weight: 900; line-height: 1; margin-bottom: clamp(2rem,6vh,4rem); }
.contact-cols {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem,5vw,5rem);
  align-items: center;
}
.contact-list { display: flex; flex-direction: column; gap: 1.3rem; }
.person { display: flex; flex-direction: column; line-height: 1.4;
  border-left: 2px solid var(--line); padding-left: 1rem; }
.person strong { font-size: 1.12rem; }
.person span { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--yellow); margin-bottom: .15rem; }
.person a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .98rem; }
.person a:hover { color: var(--yellow); }
address { font-style: normal; opacity: .72; line-height: 1.6; margin-top: .5rem;
  border-left: 2px solid var(--line); padding-left: 1rem; }
.contact-brand { display: grid; place-items: center; }
.contact-brand img { width: min(300px, 70%); opacity: .92;
  filter: drop-shadow(0 0 40px rgba(245,197,24,.12)); }
.site-footer {
  border-top: 1px solid var(--line); padding: 1.4rem clamp(1.2rem,4vw,4rem);
  display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap;
}
.site-footer p { font-size: .86rem; color: rgba(255,255,255,.6); }
.site-footer small { font-size: .78rem; color: rgba(255,255,255,.45); }
.site-footer small a { color: var(--yellow); text-decoration: none; }
.site-footer .footer-brand { color: inherit; text-decoration: none; }
.site-footer .footer-brand:hover { color: var(--yellow); }

/* =========================================================
   MOBILE OVERRIDES (added after desktop is verified)
   ========================================================= */
@media (max-width: 900px) {
  /* placeholder — desktop is built first; mobile refined after */
}
