/* eclipse-site/styles.css — Eclipse direction, live site */
:root {
  --accent: #C2303B;
  --bg: #0c0b0e;
  --bg2: #111014;
  --ink: #f4f2f5;
  --dim: rgba(255, 255, 255, .72);
  --line: rgba(255, 255, 255, .09);
  --display: 'Anton', sans-serif;
  --body: 'Archivo', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body { font-family: var(--body); color: var(--ink); }
* { box-sizing: border-box; }

::selection { background: var(--accent); color: #fff; }

/* ---------- reveal-on-scroll ---------- */
[data-reveal] { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.motion-on [data-reveal]:not(.in) { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- nav ---------- */
.ec-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 48px;
  padding: 0 56px; height: 80px;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, height .35s ease;
}
.ec-nav.scrolled {
  background: rgba(12, 11, 14, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line); height: 68px;
}
.ec-nav__logo { height: 30px; filter: brightness(10); cursor: pointer; transition: opacity .2s; }
.ec-nav__logo:hover { opacity: .8; }
.ec-nav__links { display: flex; gap: 36px; margin-left: auto; align-items: center; }
.ec-link {
  position: relative; background: none; border: none; padding: 4px 0; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 13.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim); white-space: nowrap;
  transition: color .2s;
}
.ec-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px;
  background: var(--accent); transition: right .25s ease;
}
.ec-link:hover { color: #fff; }
.ec-link:hover::after { right: 0; }

/* ---------- buttons ---------- */
.ec-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 32px; cursor: pointer; white-space: nowrap;
  background: var(--accent); border: 1px solid var(--accent); color: #fff;
  font-family: var(--body); font-weight: 700; font-size: 14.5px;
  letter-spacing: .14em; text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s, color .2s, border-color .2s;
}
.ec-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.ec-btn:active { transform: translateY(0); }
.ec-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.ec-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.ec-btn--sm { padding: 12px 22px; font-size: 12.5px; }
.ec-btn--follow { background: transparent; border-color: var(--accent); padding: 10px 18px; font-size: 12.5px; }
.ec-btn--follow:hover { background: var(--accent); box-shadow: none; }

/* ---------- hero ---------- */
.ec-hero { position: relative; height: 100vh; min-height: 520px; overflow: hidden; }
.ec-hero__media { position: absolute; inset: -12% 0; will-change: transform; }
.ec-hero__art {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-color: #16141c;
}
.ec-hero__video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* When the video leads, the key-art poster becomes an abstract backdrop —
   blurred + zoomed so the wordmark in the banner isn't readable behind the trailer. */
.ec-hero__art--backdrop { filter: blur(22px) brightness(.55) saturate(.9); transform: scale(1.18); }
.ec-hero__video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  aspect-ratio: 16 / 9; width: max(100vw, 222vh); height: auto; border: 0;
}
.ec-hero__shade-a { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,11,14,.6) 0%, rgba(12,11,14,.1) 35%, rgba(12,11,14,.94) 86%, var(--bg) 100%); }
.ec-hero__shade-b { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 50% 60%, transparent 30%, rgba(12,11,14,.5) 100%); }
.ec-hero__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding: 0 8vw max(11vh, 84px);
}
@media (max-height: 760px) {
  .ec-hero__title { font-size: clamp(44px, 7.5vh, 96px); }
  .ec-hero__sub { margin: 14px 0 20px; font-size: 15.5px; }
  .ec-hero__eyebrow { margin-bottom: 10px; }
  .ec-hero__inner { padding-bottom: 48px; }
  .ec-hero .ec-scrollcue { display: none; }
}
.ec-hero__eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.ec-hero__title {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(48px, 6.5vw, 104px); line-height: .98; letter-spacing: .01em;
  text-transform: uppercase; color: var(--ink); text-shadow: 0 8px 60px rgba(0, 0, 0, .8);
}
.ec-hero__sub { margin: 22px 0 30px; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--dim); text-wrap: pretty; }
.ec-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.motion-on .ec-hero__stagger > * { animation: ec-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.motion-on .ec-hero__stagger > *:nth-child(2) { animation-delay: .12s; }
.motion-on .ec-hero__stagger > *:nth-child(3) { animation-delay: .24s; }
.motion-on .ec-hero__stagger > *:nth-child(4) { animation-delay: .36s; }
@keyframes ec-rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ec-hero__stagger > * { animation: none !important; } }

.ec-scrollcue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.ec-scrollcue__line { width: 1px; height: 34px; background: linear-gradient(180deg, rgba(255,255,255,.7), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .motion-on .ec-scrollcue__line { animation: ec-bob 1.8s ease-in-out infinite; }
}
@keyframes ec-bob { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: .5; } }

/* ---------- sections ---------- */
.ec-section { padding: 110px 7vw; }
.ec-section--alt { background: var(--bg2); }

/* game */
.ec-game { display: flex; align-items: center; gap: 64px; }
.ec-game__media { position: relative; flex: 0 0 52%; aspect-ratio: 16 / 9; cursor: pointer; overflow: visible; }
.ec-game__thumb {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-color: #16141c; filter: saturate(.85) brightness(.85); transition: filter .3s ease;
}
.ec-game__media:hover .ec-game__thumb { filter: saturate(1) brightness(1); }
.ec-game__caption {
  position: absolute; left: 0; bottom: -34px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5);
}
.ec-game__media .ec-corner { position: absolute; width: 52px; height: 52px; pointer-events: none; transition: transform .3s ease; }
.ec-corner--tl { left: -13px; top: -13px; border-top: 3px solid var(--accent); border-left: 3px solid var(--accent); }
.ec-corner--br { right: -13px; bottom: -13px; border-bottom: 3px solid var(--accent); border-right: 3px solid var(--accent); }
.ec-game__media:hover .ec-corner--tl { transform: translate(-5px, -5px); }
.ec-game__media:hover .ec-corner--br { transform: translate(5px, 5px); }
.ec-game__playwrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ec-game__media .ec-play { transition: transform .3s ease; }
.ec-game__media:hover .ec-play { transform: scale(1.08); }
.ec-h2 { margin: 0 0 22px; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.ec-p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.65; color: var(--dim); text-wrap: pretty; }
.ec-meta { margin-top: 12px; }
.ec-meta--lead { margin-top: 0; border-top: 1px solid var(--line); }
.ec-meta--lead .ec-meta__row { padding: 20px 0; font-size: 16px; }
.ec-meta__row { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ec-meta__row dt { color: rgba(255, 255, 255, .5); margin: 0; white-space: nowrap; }
.ec-meta__row dd { font-weight: 600; margin: 0; text-align: right; text-wrap: balance; }
@media (max-width: 1000px) {
  .ec-meta__row { font-size: 14px; gap: 16px; }
  .ec-game { flex-direction: column; align-items: stretch; }
  .ec-game__media { flex: none; }
}

/* pillars */
.ec-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ec-pillar { position: relative; background: var(--bg); padding: 60px 52px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; transition: background .3s ease; }
.ec-pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 100%; height: 3px; background: var(--accent); transition: right .35s ease; }
.ec-pillar:hover { background: #151318; }
.ec-pillar:hover::before { right: 0; }
.ec-pillar__n { font-family: var(--mono); font-size: 14px; color: var(--accent); letter-spacing: .2em; }
.ec-pillar__t { font-family: var(--display); font-size: 32px; text-transform: uppercase; color: var(--ink); line-height: 1.05; }
.ec-pillar__d { font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .65); }

/* studio */
.ec-studio { position: relative; overflow: hidden; text-align: center; padding: 140px 10vw; }
.ec-studio__mark { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 520px; opacity: .07; filter: brightness(10); pointer-events: none; will-change: transform; }
.ec-studio__content { position: relative; display: flex; flex-direction: column; align-items: center; }
.ec-eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.ec-studio__title { margin: 0 0 28px; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5vw, 68px); line-height: 1.04; text-transform: uppercase; color: var(--ink); }
.ec-studio__blurb { margin: 0; max-width: 660px; font-size: 19px; line-height: 1.65; color: var(--dim); text-wrap: pretty; }

/* team */
.ec-team__head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 46px; flex-wrap: wrap; }
.ec-team__loc { font-family: var(--mono); font-size: 14px; letter-spacing: .2em; color: var(--accent); }
.ec-team__row { display: flex; gap: 18px; }
.ec-member { position: relative; flex: 1; height: 340px; transform: skewX(-6deg); overflow: hidden; background: var(--bg); cursor: pointer; transition: flex .45s cubic-bezier(.2, .7, .2, 1); }
.ec-member:hover { flex: 1.7; }
.ec-member__fill { position: absolute; inset: 0 -40px; transform: skewX(6deg); }
.ec-member__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .12); transition: background .3s; }
.ec-member:hover .ec-member__bar { background: var(--accent); }
.ec-member__tag {
  position: absolute; left: 24px; bottom: 18px; transform: skewX(6deg);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; color: #fff;
  background: rgba(12, 11, 14, .75); padding: 6px 10px;
  opacity: 0; translate: 0 8px; transition: opacity .3s ease, translate .3s ease;
}
.ec-member:hover .ec-member__tag { opacity: 1; translate: 0 0; }

/* footer */
.ec-footer { border-top: 1px solid var(--line); padding: 90px 7vw 60px; display: flex; align-items: center; gap: 72px; flex-wrap: wrap; }
.ec-footer__mark { width: 160px; filter: brightness(10); opacity: .9; }
.ec-footer__hiring { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.ec-footer__hiring-title { font-family: var(--display); font-size: 28px; text-transform: uppercase; color: var(--ink); }
.ec-footer__col { margin-left: auto; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.ec-footer__link { display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 0; cursor: pointer; font-family: var(--body); font-size: 15px; color: var(--dim); text-decoration: none; transition: color .2s; }
.ec-footer__link:hover { color: #fff; }
.ec-footer__fine { color: rgba(255, 255, 255, .35); font-size: 13px; }
.ec-footer__label { font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.ec-footer__socials { display: flex; gap: 10px; }
.ec-footer__socialbtn {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}
.ec-footer__socialbtn:hover { border-color: var(--accent); background: rgba(255, 255, 255, .04); transform: translateY(-2px); }
.ec-nav__social {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; text-decoration: none; border: 1px solid transparent;
  transition: border-color .2s, opacity .2s;
}
.ec-nav__social:hover { border-color: var(--line); }

/* ---------- trailer modal ---------- */
.ec-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 6vw; background: rgba(5, 4, 6, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: ec-fade .25s ease both; }
@keyframes ec-fade { from { opacity: 0; } to { opacity: 1; } }
.ec-modal__frame { position: relative; width: min(1100px, 90vw); aspect-ratio: 16 / 9; background: #000; animation: ec-pop .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ec-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ec-modal, .ec-modal__frame { animation: none !important; } }
.ec-modal__close {
  position: absolute; top: -48px; right: 0; background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7);
  transition: color .2s;
}
.ec-modal__close:hover { color: #fff; }

/* ---------- back to top ---------- */
.ec-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 60;
  width: 48px; height: 48px; border-radius: 0; cursor: pointer;
  background: rgba(12, 11, 14, .85); border: 1px solid var(--line); color: var(--dim);
  font-size: 18px; line-height: 1;
  opacity: 0; pointer-events: none; transition: opacity .3s, border-color .2s, color .2s;
}
.ec-top.show { opacity: 1; pointer-events: auto; }
.ec-top:hover { border-color: var(--accent); color: #fff; }

/* ---------- gallery ---------- */
.ec-shots { display: flex; flex-direction: column; gap: 14px; }
.ec-shots__stage { position: relative; aspect-ratio: 16 / 9; background: #0b0a0e; border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; }
.ec-shots__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; opacity: 0; transition: opacity .35s ease; }
.ec-shots__img.is-active { opacity: 1; }
.ec-shots__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 66px; display: grid; place-items: center; font-size: 30px; line-height: 1; color: var(--ink); background: rgba(10, 9, 12, .55); border: 1px solid var(--line); backdrop-filter: blur(6px); cursor: pointer; opacity: 0; transition: opacity .25s ease, background .25s ease; }
.ec-shots__stage:hover .ec-shots__arrow { opacity: 1; }
.ec-shots__arrow:hover { background: var(--accent); border-color: var(--accent); }
.ec-shots__arrow--l { left: 14px; }
.ec-shots__arrow--r { right: 14px; }
.ec-shots__count { position: absolute; right: 14px; bottom: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: rgba(255, 255, 255, .6); background: rgba(10, 9, 12, .6); padding: 5px 9px; }
.ec-shots__rail { display: grid; gap: 12px; }
.ec-shots__thumb { position: relative; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #141318; border: 1px solid var(--line); cursor: pointer; opacity: .5; transition: opacity .25s ease, border-color .25s ease; }
.ec-shots__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.ec-shots__thumb:hover { opacity: .85; }
.ec-shots__thumb.is-active { opacity: 1; border-color: var(--accent); }
.ec-lightbox { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 5vh 5vw; background: rgba(8, 7, 10, .94); cursor: zoom-out; animation: ecFade .2s ease; }
.ec-lightbox__img { max-width: 100%; max-height: 84vh; image-rendering: pixelated; border: 1px solid rgba(255, 255, 255, .16); cursor: default; }
.ec-lightbox__hint { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
@keyframes ecFade { from { opacity: 0 } to { opacity: 1 } }

/* ---------- comic interlude ---------- */
.ec-comic__head { display: flex; align-items: baseline; gap: 28px; margin-bottom: 46px; flex-wrap: wrap; }
.ec-comic__sub { margin: 0; max-width: 460px; font-size: 15.5px; }
.ec-comic__strip { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ec-comic__panel {
  position: relative; aspect-ratio: 16 / 9;
  background: #141318; border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  transition: transform .3s ease, border-color .3s ease;
}
.ec-comic__panel:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .4); }
.ec-comic__caption {
  position: absolute; left: -8px; bottom: 14px;
  background: var(--accent); color: #fff; padding: 7px 12px 5px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  pointer-events: none;
}

/* ---------- burger + mobile menu ---------- */
.ec-burger {
  display: none; margin-left: auto; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: none; cursor: pointer;
}
.ec-burger span { display: block; height: 2px; width: 100%; background: #fff; transition: transform .25s ease, opacity .25s ease; }
.ec-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ec-burger.open span:nth-child(2) { opacity: 0; }
.ec-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ec-mobilemenu {
  position: fixed; inset: 0; z-index: 40; padding: 110px 9vw 40px;
  background: rgba(10, 9, 12, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 10px;
}
.ec-mobilemenu__link {
  background: none; border: none; border-bottom: 1px solid var(--line); cursor: pointer;
  padding: 18px 0; text-align: left;
  font-family: var(--display); font-size: 32px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink);
}
.ec-mobilemenu__link:hover { color: var(--accent); }

/* ---------- mobile pass ---------- */
@media (max-width: 860px) {
  .ec-nav { padding: 0 24px; }
  .ec-nav__links { display: none; }
  .ec-burger { display: flex; }
}
@media (max-width: 760px) {
  .ec-section { padding: 72px 24px; }
  .ec-hero__inner { padding-left: 24px; padding-right: 24px; }
  .ec-hero__title { font-size: clamp(44px, 13vw, 72px); }
  .ec-hero__cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .ec-hero__cta .ec-btn { justify-content: center; }
  .ec-game { flex-direction: column; gap: 44px; }
  .ec-game__media { flex: none; width: 100%; }
  .ec-pillars { grid-template-columns: 1fr; }
  .ec-pillar { padding: 40px 28px; }
  .ec-studio { padding: 90px 24px; }
  .ec-studio__mark { width: 360px; right: -140px; }
  .ec-team__row { flex-wrap: wrap; }
  .ec-member { flex: 1 1 42%; height: 230px; }
  .ec-member:hover { flex: 1 1 42%; }
  .ec-shots__rail { grid-template-columns: repeat(4, 1fr) !important; }
  .ec-shots__arrow { opacity: 1; width: 38px; height: 54px; font-size: 24px; }
  .ec-comic__strip { grid-template-columns: 1fr; }
  .ec-comic__panel { margin-top: 0 !important; }
  .ec-footer { flex-direction: column; align-items: flex-start; gap: 36px; padding: 64px 24px 48px; }
  .ec-footer__col { margin-left: 0; align-items: flex-start; }
}
@media (max-width: 480px) {
  .ec-comic__strip { grid-template-columns: 1fr; }
  .ec-member { flex: 1 1 100%; }
}
