/* =========================================================
   STUDIO HIGH GROUND — DARK FANTASY BRUTALISM
   ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
* { border-radius: 0 !important; }

:root {
  --black: #000000;
  --void: #050505;
  --surface: #0a0a0a;
  --border: #1a1a1a;
  --fg: #FFFFFF;
  --fg-mid: #BBBBBB;
  --fg-dim: #808080;
  --fg-ghost: #555555;
  --font: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; background: var(--black); }

body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

::selection { background: var(--fg); color: var(--black); }
a { color: var(--fg); text-decoration: none; }

/* ---------- FILM GRAIN + FLICKER ---------- */
#grain-overlay {
  position: fixed; inset: 0; z-index: 3;
  pointer-events: none; opacity: 0.045; mix-blend-mode: screen;
  contain: strict;
}
#grain-overlay canvas { width: 100%; height: 100%; }

#film-flicker {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none; background: transparent;
  contain: strict;
}

/* ---------- VIGNETTE — 3 dynamic layers ---------- */
#vignette {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  contain: layout style;
}
#vignette .v-dark {
  position: absolute; inset: 0; will-change: background;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.75) 100%);
}
#vignette .v-frost {
  position: absolute; inset: 0; will-change: background;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(140,170,200,0.04) 70%, rgba(180,200,220,0.06) 100%);
}
#vignette .v-edges {
  position: absolute; inset: 0; will-change: background;
  background:
    linear-gradient(180deg, rgba(160,180,200,0.02) 0%, transparent 18%),
    linear-gradient(0deg, rgba(140,160,180,0.02) 0%, transparent 14%);
}

/* ---------- SECTION SCAN LINE ---------- */
#scan-line {
  position: fixed;
  left: 0; right: 0;
  height: 1px;
  background: var(--fg-dim);
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 0 8px rgba(255,255,255,0.3), 0 0 2px rgba(255,255,255,0.6);
}
#scan-line.scan-down {
  top: auto; bottom: 0;
  animation: scanUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
#scan-line.scan-up {
  top: 0; bottom: auto;
  animation: scanDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes scanDown {
  0%   { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}
@keyframes scanUp {
  0%   { transform: translateY(0);     opacity: 1; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

/* ---------- SCROLL HINT ARROW ---------- */
.scroll-hint {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--fg-ghost);
  opacity: 0; transition: opacity 0.8s ease;
  pointer-events: none; z-index: 6;
}
.scroll-hint.visible { opacity: 1; pointer-events: auto; }
.scroll-hint-text {
  font-size: 0.5rem; letter-spacing: 0.25em; text-transform: uppercase;
}
.scroll-hint-arrow {
  font-size: 1.2rem; animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ---------- PIXI CANVAS ---------- */
#pixi-canvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; contain: strict; }

/* ---------- MAIN CONTENT ---------- */
#app { position: relative; z-index: 5; min-height: 100vh; }

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 48px;
  background: rgba(0,0,0,0.85);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; height: 28px; }
.nav-brand img { height: 28px; width: auto; opacity: 0.7; transition: opacity 0.4s var(--ease); }
.nav-brand img:hover { opacity: 1; }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--fg-dim);
  transition: color 0.6s var(--ease); position: relative;
  padding: 14px 10px; margin: -14px -10px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 10px; right: 10px;
  height: 1px; background: var(--fg-mid);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 4px; width: 24px; height: 24px;
  cursor: pointer; background: none; border: none; padding: 0;
}
.hamburger span { display: block; width: 100%; height: 1px; background: var(--fg-mid); transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- MOBILE NAV ---------- */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,0.98); flex-direction: column;
  align-items: center; justify-content: center; gap: 48px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5em;
  text-transform: uppercase; color: var(--fg-dim);
  transition: color 0.4s var(--ease); padding: 18px 28px;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--fg); }

/* ---------- SECTIONS ---------- */
.section {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; position: relative;
}
.section + .section { border-top: 1px solid var(--border); }
.section-inner { max-width: 820px; width: 100%; padding: 120px 48px; }

/* ---------- HOOK — logo only ---------- */
#hook { flex-direction: column; padding-top: 0; cursor: pointer; }
#hook .section-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; opacity: 1; transform: none;
}

/* ---------- SIGNAL ---------- */
.signal-tagline {
  font-size: 1.6rem; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg);
  margin-bottom: 40px; line-height: 1.3;
}
.signal-verse {
  font-size: 0.75rem; font-weight: 300; font-style: italic;
  letter-spacing: 0.1em; color: var(--fg-dim);
  line-height: 2.2; margin-bottom: 32px;
}
.signal-latin {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5em;
  text-transform: uppercase; color: #ffffff;
  margin-bottom: 40px;
}
.signal-sub {
  font-size: 0.55rem; font-weight: 400; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--fg-dim);
  line-height: 2; max-width: 520px;
}
.signal-explainer {
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid var(--border);
}
.signal-explainer p {
  font-size: 0.75rem; font-weight: 400; line-height: 2;
  color: var(--fg-dim); max-width: 540px; letter-spacing: 0.02em;
}
.signal-explainer em { color: var(--fg-mid); font-style: italic; }
.signal-explainer strong { color: var(--fg); font-weight: 600; }

/* ---------- SECTION LABELS / HEADINGS / TEXT ---------- */
.section-label {
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.6em;
  text-transform: uppercase; color: var(--fg-ghost);
  margin-bottom: 40px; display: block;
}
.section-heading {
  font-size: 2.8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--fg); margin-bottom: 32px; line-height: 1.1;
}
.section-text {
  font-size: 0.8rem; font-weight: 400; line-height: 2;
  color: var(--fg-dim); max-width: 540px; letter-spacing: 0.02em;
}
.section-text strong { color: var(--fg-mid); font-weight: 600; }
.rule { width: 40px; height: 1px; background: var(--fg-ghost); margin: 40px 0; }

/* ---------- PHILOSOPHY GRID ---------- */
.philosophy-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); margin-top: 48px;
}
.philosophy-cell {
  background: var(--black); padding: 40px 28px;
  transition: background 0.6s var(--ease);
}
.philosophy-cell:hover { background: var(--void); }
.philosophy-cell .cell-num {
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.4em;
  color: var(--fg-ghost); margin-bottom: 20px; display: block;
}
.philosophy-cell h3 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--fg-mid); margin-bottom: 16px;
}
.philosophy-cell p { font-size: 0.75rem; font-weight: 400; line-height: 1.9; color: var(--fg-dim); }

/* ---------- APPROACH GRID ---------- */
.approach-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border); margin-top: 48px;
}
.approach-cell {
  background: var(--black); padding: 40px 28px;
  transition: background 0.6s var(--ease);
}
.approach-cell:hover { background: var(--void); }
.approach-cell h3 {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--fg-mid); margin-bottom: 14px;
}
.approach-cell p { font-size: 0.75rem; font-weight: 400; line-height: 1.9; color: var(--fg-dim); }

/* ---------- CREATION (AMY'S ESCAPE) ---------- */
.creation-header {
  margin-bottom: 48px;
}
.creation-logo {
  max-width: 320px; width: 100%; height: auto;
  margin-bottom: 24px; display: block;
  filter: grayscale(100%) brightness(1.2);
  transition: filter 0.6s var(--ease);
}
.creation-logo:hover { filter: grayscale(60%) brightness(1.0); }
.creation-tagline {
  font-size: 0.8rem; font-weight: 400; line-height: 2;
  color: var(--fg-dim); max-width: 540px; letter-spacing: 0.02em;
}

/* Gallery */
.creation-gallery { margin-top: 0; }
.gallery-main {
  position: relative; width: 100%;
  border: 1px solid var(--border);
  overflow: hidden; background: var(--black);
}
.gallery-main img {
  width: 100%; height: auto; display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: opacity 0.2s var(--ease), filter 0.6s var(--ease);
}
.gallery-main:hover img { filter: grayscale(0%) contrast(1.0); }
.gallery-counter {
  position: absolute; bottom: 12px; right: 16px;
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--fg-ghost);
  background: rgba(0,0,0,0.7); padding: 4px 10px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  margin-top: 1px;
}
.gallery-thumb {
  background: var(--black); border: none; padding: 0;
  cursor: pointer; position: relative;
  outline: none; display: block;
}
.gallery-thumb img {
  width: 100%; height: auto; display: block;
  filter: grayscale(60%) contrast(1.0); opacity: 0.5;
  transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
}
.gallery-thumb:hover img { opacity: 0.8; filter: grayscale(30%); }
.gallery-thumb.active img { opacity: 1; filter: grayscale(0%); }
.gallery-thumb.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--fg-mid);
}

/* ---------- TEAM ---------- */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); margin-top: 48px;
}
.team-member {
  background: var(--black); padding: 40px 28px;
  transition: background 0.6s var(--ease);
}
.team-member:hover { background: var(--void); }
.team-member .member-avatar {
  width: 72px; height: 72px; object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  margin-bottom: 20px; display: block;
  transition: filter 0.6s var(--ease);
}
.team-member:hover .member-avatar { filter: grayscale(60%) contrast(1.05); }
.team-member .member-role {
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--fg-ghost);
  margin-bottom: 12px; display: block;
}
.team-member h3 {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg); margin-bottom: 16px;
}
.team-member p { font-size: 0.7rem; font-weight: 400; line-height: 1.9; color: var(--fg-dim); }

.team-additional {
  margin-top: 1px; background: var(--black);
  border-top: 1px solid var(--border); padding: 32px 28px;
}
.team-additional .additional-label {
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--fg-ghost);
  margin-bottom: 16px; display: block;
}
.talent-row { display: flex; flex-wrap: wrap; gap: 24px; }
.talent-item { font-size: 0.65rem; color: var(--fg-dim); line-height: 1.6; }
.talent-item strong { color: var(--fg-mid); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.talent-item span { display: block; font-size: 0.55rem; color: var(--fg-ghost); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 2px; }
.tba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.tba-card {
  border: 1px solid var(--border);
  padding: 32px 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.tba-role { font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-ghost); }
.tba-name { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mid); font-style: italic; margin: 0; }
.tba-badge {
  display: inline-block; margin-top: 8px;
  font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-dim); border: 1px solid var(--fg-ghost); padding: 4px 10px;
}
.talent-note { margin-top: 16px; font-size: 0.6rem; color: var(--fg-dim); letter-spacing: 0.04em; line-height: 1.6; }
.talent-note a { color: var(--fg-mid); text-decoration: underline; text-underline-offset: 3px; }
.talent-note a:hover { color: var(--fg); }
.talent-hush { color: var(--fg-ghost); font-style: italic; font-size: 0.5rem; }

.team-mascot {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}
.team-mascot img {
  width: 48px; height: 48px; object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
}
.team-mascot .mascot-text {
  font-size: 0.55rem; color: var(--fg-ghost);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.team-mascot strong { color: var(--fg-dim); }

.motto-block {
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid var(--border);
}
.motto-block blockquote {
  font-size: 1rem; font-weight: 300; font-style: italic;
  letter-spacing: 0.06em; color: var(--fg-dim);
  line-height: 2; max-width: 500px;
  border-left: 1px solid var(--fg-ghost);
  padding-left: 24px; margin-bottom: 24px;
}
.motto-block .motto-attr {
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--fg-ghost);
}

/* ---------- JOBS ---------- */
.jobs-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--border); margin-top: 48px;
}
.job-card {
  background: var(--black); padding: 40px 28px;
  transition: background 0.6s var(--ease);
}
.job-card:hover { background: var(--void); }
.job-card .job-type {
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--fg-ghost);
  margin-bottom: 16px; display: block;
}
.job-card h3 {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg); margin-bottom: 20px;
}
.job-card > p {
  font-size: 0.7rem; font-weight: 400; line-height: 1.9;
  color: var(--fg-dim); margin-bottom: 0;
}
.job-card .job-details {
  margin: 24px 0; padding: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.job-card .job-details-label {
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--fg-ghost);
  margin-bottom: 14px; display: block;
}
.job-card .job-details ul {
  list-style: none; padding: 0; margin: 0;
}
.job-card .job-details li {
  font-size: 0.65rem; font-weight: 400; line-height: 2.2;
  color: var(--fg-dim); padding-left: 20px; position: relative;
}
.job-card .job-details li::before {
  content: '\2014'; position: absolute; left: 0; color: var(--fg-ghost);
}
.job-card .job-warning {
  font-size: 0.65rem; font-weight: 500; line-height: 1.9;
  color: var(--fg-mid); font-style: italic; margin-bottom: 0;
}
.job-card .job-apply {
  display: inline-block; margin-top: 24px;
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--fg-mid);
  border-bottom: 1px solid var(--fg-ghost); padding-bottom: 3px;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.job-card .job-apply:hover { color: var(--fg); border-color: var(--fg); }

/* ---------- CONTACT ---------- */
#contact .section-label,
#contact .section-heading,
#contact .section-text,
#contact .section-text strong,
#contact p { color: var(--fg); }
#contact .rule { background: var(--fg-mid); }

.contact-link {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 4px;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.contact-link:hover { color: #ffffff; border-color: #ffffff; }

.social-row { display: flex; gap: 32px; margin-top: 48px; }
.social-row a {
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  transition: color 0.4s var(--ease);
}
.social-row a:hover { color: #ffffff; }

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 40px 48px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.site-footer span {
  font-size: 0.5rem; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: #ffffff;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.5rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  transition: color 0.4s var(--ease);
}
.footer-links a:hover { color: #ffffff; }

/* ---------- REVEAL ---------- */
.section-inner {
  opacity: 0; transform: translateY(16px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  will-change: opacity, transform;
}
.section-inner.visible { opacity: 1; transform: translateY(0); }
#hook .section-inner { opacity: 1; transform: none; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 750px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  nav { padding: 18px 24px; }
  .section-inner { padding: 80px 24px !important; }
  h2.section-heading { font-size: 1.8rem !important; }
  .philosophy-grid, .team-grid { grid-template-columns: 1fr !important; }
  .approach-grid { grid-template-columns: 1fr !important; }
  .tba-grid { grid-template-columns: 1fr !important; }
  .talent-row { flex-direction: column; gap: 16px; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
}

@media (max-width: 480px) {
  h2.section-heading { font-size: 1.3rem !important; }
}
