:root {
  --ink: #0e0b09;
  --ink-2: #17120e;
  --paper: #f3e9dc;
  --muted: #b9a891;
  --rust: #c8642f;
  --amber: #f0a14a;
  --line: rgba(243, 233, 220, .14);
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* film grain over everything */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); }
  66% { transform: translate(2%, -3%); } 100% { transform: translate(-1%, 1%); }
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  transition: background .4s, backdrop-filter .4s;
}
.nav.is-solid { background: rgba(14, 11, 9, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__logo img { height: 42px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav__links a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; opacity: .85; white-space: nowrap;
}
.nav__links a:hover { opacity: 1; color: var(--amber); }
.nav__cta { border: 1px solid var(--amber); padding: 8px 16px; border-radius: 999px; color: var(--amber) !important; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 700 12px var(--body); letter-spacing: .08em; padding: 7px 12px;
}
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.nav__burger { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px;
  overflow: hidden; display: grid; place-items: center;
  cursor: crosshair;
}
.hero__media { position: absolute; inset: 0; }
.hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
}
.hero__video { opacity: 1; }
.hero__video.is-ready { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(14, 11, 9, .55) 100%),
    linear-gradient(to bottom, rgba(14, 11, 9, .55) 0%, transparent 22%, transparent 55%, var(--ink) 100%);
}
.hero__content {
  position: relative; z-index: 2; align-self: end;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 var(--gutter) 13vh;
}
.hero__brand { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 48px); margin-bottom: 4px; }
.hero__logo { width: clamp(150px, 17vw, 260px); filter: drop-shadow(0 6px 30px rgba(0,0,0,.6)); }
.hero__partner {
  position: absolute; z-index: 2; top: var(--eye-y, 35%); transform: translateY(-50%);
  display: block; opacity: 0; transition: opacity .6s, transform .25s;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.8));
}
.hero__partner img { display: block; width: 100%; height: auto; }
.hero.has-eyes .hero__partner { opacity: .92; }
.hero.has-eyes .hero__partner:hover { opacity: 1; transform: translateY(-50%) scale(1.08); }
.hero__partner--art { left: var(--gutter); width: clamp(90px, 9vw, 160px); }
.hero__partner--tkt { right: var(--gutter); width: clamp(66px, 6.6vw, 118px); }
.hero__tag {
  margin: 4px 0 26px; max-width: 34ch;
  font-size: clamp(16px, 1.5vw, 20px); color: var(--paper);
  text-shadow: 0 2px 16px rgba(0,0,0,.8);
}
.hero__stage { display: none; }
.hero__hint {
  position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%);
  margin: 0; display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; transition: opacity .8s;
}
.hero__hint.is-hidden { opacity: 0; }
.hero__mouse {
  width: 16px; height: 24px; border: 1.5px solid currentColor; border-radius: 9px; position: relative;
}
.hero__mouse::after {
  content: ""; position: absolute; top: 9px; left: 50%; width: 10px; height: 2px; margin-left: -5px;
  background: var(--amber); border-radius: 2px; animation: sway 2.4s ease-in-out infinite;
}
@keyframes sway { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }

.btn {
  display: inline-block; text-decoration: none;
  background: var(--amber); color: var(--ink);
  font: 700 14px var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 999px;
  transition: transform .2s, background .2s;
}
.btn:hover { background: var(--paper); transform: translateY(-2px); }
.btn--big { font-size: clamp(15px, 2.2vw, 22px); padding: 20px 36px; text-transform: none; letter-spacing: 0; }

/* ---------- SERVICES ---------- */
.service {
  padding: clamp(80px, 12vw, 150px) var(--gutter);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px 64px;
  border-top: 1px solid var(--line);
}
.service--alt { background: var(--ink-2); }
.service__head { grid-column: 1; }
.service__num { font: 400 16px var(--display); color: var(--rust); letter-spacing: .2em; }
.service h2 {
  font: 400 clamp(44px, 7vw, 104px)/.95 var(--display);
  text-transform: uppercase; margin: 10px 0 22px; letter-spacing: .01em;
}
.service__lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 46ch; margin: 0; }
.service__points {
  grid-column: 2; align-self: end; list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.service__points li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative; }
.service__points li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 2px; background: var(--amber);
}

.reel, .cast, .browser { grid-column: 1 / -1; margin-top: 30px; }
.reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reel--wide { grid-template-columns: 2fr 1fr; }
.frame {
  margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px;
  background: #000;
}
.reel--wide .frame { aspect-ratio: auto; min-height: 340px; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.85); }
.frame:hover img { transform: scale(1.06); filter: saturate(1.1); }
.frame::before { /* play button */
  content: ""; position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(14,11,9,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l9 6-9 6z' fill='%23f3e9dc'/%3E%3C/svg%3E") center/26px no-repeat;
  border: 1px solid rgba(243,233,220,.4); backdrop-filter: blur(4px);
  transition: transform .3s;
}
.frame:hover::before { transform: scale(1.12); }
.frame figcaption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  font-weight: 500; font-size: 15px;
}

/* animated website demo */
.browser { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #1f1915; }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a3d33; }
.browser__bar span { margin-left: 14px; font-size: 12px; color: var(--muted); background: #2a221c; padding: 3px 14px; border-radius: 5px; }
.browser__view { position: relative; aspect-ratio: 16 / 7; cursor: crosshair; }
.browser__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: 0; transition: opacity .35s; }
.browser__img.is-on { opacity: 1; }
.browser__note {
  position: absolute; right: 16px; bottom: 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(14,11,9,.7); padding: 6px 12px; border-radius: 999px; color: var(--amber);
}

/* characters */
.cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cast__card { margin: 0; }
.cast__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; }
.cast__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.cast__card:hover .cast__img img { transform: scale(1.07) rotate(-1deg); }
.cast__card figcaption { padding: 14px 2px 0; display: flex; flex-direction: column; }
.cast__card b { font: 400 26px var(--display); text-transform: uppercase; letter-spacing: .02em; }
.cast__card span { color: var(--muted); font-size: 15px; }

/* ---------- CONTACT / FOOTER ---------- */
.contact {
  text-align: center; padding: clamp(100px, 14vw, 180px) var(--gutter);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 120%, rgba(200,100,47,.35), transparent 60%);
}
.contact h2 { font: 400 clamp(52px, 9vw, 140px)/.95 var(--display); text-transform: uppercase; margin: 0 0 18px; }
.contact p { color: var(--muted); max-width: 44ch; margin: 0 auto 36px; font-size: 19px; }
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.footer img { height: 34px; width: auto; }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .service { grid-template-columns: 1fr; }
  .service__points { grid-column: 1; }
  .cast { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 14px; }
  .nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav__burger span { height: 2px; background: var(--paper); transition: transform .3s; }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .lang { margin-left: auto; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(14,11,9,.97);
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav__links a { font-size: 20px; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
}
@media (max-width: 640px) {
  .reel, .reel--wide { grid-template-columns: 1fr; }
  .reel .frame { aspect-ratio: 16 / 10; }
  .reel--wide .frame { min-height: 0; }
  .browser__view { aspect-ratio: 4 / 3; }
  .footer { flex-direction: column; }
}
@media (orientation: portrait) and (max-width: 820px) {
  /* phones: logo above the characters, text below; .hero__stage is the gap
     between them, and the canvas paints the full frame into it (main.js) */
  .hero { height: auto; min-height: 0; }
  .hero__content {
    position: relative; width: 100%; align-self: stretch;
    justify-content: flex-start;
    padding: calc(54px + env(safe-area-inset-top, 0px)) 16px calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .hero__logo { width: clamp(120px, 36vw, 190px); }
  .hero__partner--art { left: 4vw; width: 21vw; }
  .hero__partner--tkt { right: 4vw; width: 16vw; }
  /* height of the zoomed 16:9 frame (1.62 × screen width × 9/16); shrinks on short screens */
  .hero__stage { display: block; flex: 0 1 91vw; min-height: 0; width: 100%; margin: -6px 0; }
  .hero__tag { margin: 0 0 18px; }
  .nav:not(.is-solid) .nav__logo { visibility: hidden; }
  .hero__hint { white-space: normal; width: calc(100% - 32px); justify-content: center; text-align: center; font-size: 12px; }
  .hero__shade { background: linear-gradient(to bottom, transparent 60%, var(--ink) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
