@font-face { font-family: "Cormorant"; src: url("/fonts/CormorantGaramond.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "BeVN"; src: url("/fonts/BeVietnamPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "BeVN"; src: url("/fonts/BeVietnamPro-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #07080a;
  --ink2: #0e1013;
  --panel: rgba(18, 20, 24, 0.78);
  --paper: #e8dcc7;
  --dim: #8f877a;
  --amber: #ffb861;
  --ember: #d9773a;
  --water: #4fa3a0;
  --line: rgba(232, 220, 199, 0.14);
  --serif: "Cormorant", "Times New Roman", serif;
  --sans: "BeVN", system-ui, sans-serif;
  --lx: 50vw;
  --ly: 40vh;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 17px/1.7 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--amber); text-decoration: none; }
img { max-width: 100%; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }
.dim { color: var(--dim); }
.center { text-align: center; }

/* ---------------------------------------------------------------- atmosphere */
#rain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; opacity: 0.55; }
.grain { position: fixed; inset: -50%; pointer-events: none; z-index: 4; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 30% { transform: translate(-3%, 2%); } 60% { transform: translate(2%, -3%); } 100% { transform: translate(-1%, 1%); } }
/* the lantern: wherever the pointer goes, a warm pool of light; the rest of the page sinks into the dark */
.lantern { position: fixed; inset: 0; pointer-events: none; z-index: 2; mix-blend-mode: multiply;
  background: radial-gradient(circle 420px at var(--lx) var(--ly), rgb(255, 236, 205) 0%, rgb(205, 190, 175) 40%, rgb(150, 145, 142) 100%);
  transition: opacity 0.6s; animation: flame 3.2s ease-in-out infinite; }
@keyframes flame { 0%, 100% { opacity: 0.85; } 45% { opacity: 0.78; } 50% { opacity: 0.88; } 70% { opacity: 0.8; } }
body:not(.home) .lantern { opacity: 0.55; }
@media (hover: none) { .lantern { display: none; } }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; transition: background 0.4s, padding 0.4s; }
.nav.solid { background: rgba(7, 8, 10, 0.86); backdrop-filter: blur(10px); padding: 10px 40px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); font: 600 24px var(--serif); letter-spacing: 0.04em; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(255, 170, 80, 0.6)); }
.links { display: flex; gap: 26px; align-items: center; }
.links a { color: var(--paper); font-size: 15px; opacity: 0.82; position: relative; transition: opacity 0.3s; }
.links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--amber); transition: right 0.35s; }
.links a:hover { opacity: 1; }
.links a:hover::after { right: 0; }
.links .cta { border: 1px solid var(--amber); color: var(--amber); padding: 6px 16px; border-radius: 2px; opacity: 1; }
.links .cta::after { display: none; }
.links .cta:hover { background: var(--amber); color: var(--ink); box-shadow: 0 0 24px rgba(255, 184, 97, 0.45); }
.burger { display: none; background: none; border: 0; width: 34px; height: 28px; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--paper); transition: 0.3s; }
.burger span:nth-child(1) { top: 6px; } .burger span:nth-child(2) { top: 13px; } .burger span:nth-child(3) { top: 20px; }
.bar { position: relative; z-index: 6; margin-top: 74px; background: linear-gradient(90deg, rgba(217, 119, 58, 0.18), rgba(79, 163, 160, 0.14)); border-bottom: 1px solid var(--line); text-align: center; padding: 9px 16px; font-size: 14px; }
.home .bar { position: absolute; top: 0; left: 0; right: 0; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-block; padding: 13px 28px; border: 1px solid var(--amber); color: var(--amber); background: transparent; font: 600 15px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: 0.35s; position: relative; overflow: hidden; }
.btn.primary { background: var(--amber); color: var(--ink); box-shadow: 0 0 0 rgba(255, 184, 97, 0); }
.btn.primary:hover { box-shadow: 0 0 34px rgba(255, 184, 97, 0.55); transform: translateY(-2px); }
.btn.ghost:hover { background: rgba(255, 184, 97, 0.1); }
.btn::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent); transition: left 0.6s; }
.btn:hover::before { left: 140%; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 8vw 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: -6%; background-size: cover; background-position: center; filter: saturate(0.85) brightness(0.62); transform: scale(1.06); animation: breathe 18s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.14) translateY(-1.5%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7, 8, 10, 0.94) 0%, rgba(7, 8, 10, 0.6) 48%, rgba(7, 8, 10, 0.15) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 30%); }
.hero-water { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 1; opacity: 0.35; background: repeating-linear-gradient(180deg, rgba(79, 163, 160, 0.0) 0 6px, rgba(79, 163, 160, 0.14) 6px 7px); animation: water 6s linear infinite; mask-image: linear-gradient(0deg, black, transparent); }
@keyframes water { to { background-position: 0 42px; } }
.hero-in { position: relative; z-index: 5; max-width: 760px; }
.kicker { color: var(--amber); letter-spacing: 0.3em; text-transform: uppercase; font-size: 13px; margin: 0 0 14px; }
.flicker { animation: flicker 5s infinite; }
@keyframes flicker { 0%, 19%, 21%, 63%, 65%, 100% { opacity: 1; } 20%, 64% { opacity: 0.35; } }
.title { font: 600 clamp(54px, 8.4vw, 124px)/0.95 var(--serif); margin: 0; letter-spacing: 0.01em; text-shadow: 0 0 40px rgba(255, 170, 80, 0.25); }
.title .word { display: inline-block; white-space: nowrap; }
.title .ch { display: inline-block; opacity: 0; transform: translateY(0.4em); filter: blur(8px); animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.subtitle { font: italic 400 26px var(--serif); color: var(--dim); margin: 10px 0 26px; }
.lead { font-size: 18px; color: rgba(232, 220, 199, 0.88); max-width: 620px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.status { margin-top: 22px; font-size: 14px; color: var(--water); letter-spacing: 0.05em; }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--water); margin-right: 10px; box-shadow: 0 0 12px var(--water); animation: pulse 2s infinite; vertical-align: middle; }
@keyframes pulse { 50% { opacity: 0.3; } }
.scroll-hint { position: absolute; z-index: 5; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--amber); border-radius: 2px; animation: drip 1.8s infinite; }
@keyframes drip { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------------------------------------------------------------- sections */
section { position: relative; z-index: 5; }
.h { font: 600 clamp(36px, 4.6vw, 64px)/1.05 var(--serif); margin: 0 0 24px; letter-spacing: 0.01em; }
.h.center { text-align: center; }
.story, .features, .videos, .chars, .gallery, .news, .get, .studio, .signup, .page { padding: 110px 8vw; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; margin-bottom: 110px; }
.split.rev { grid-template-columns: 1.1fr 1fr; }
.split:last-child { margin-bottom: 0; }
.split-img { aspect-ratio: 16/10; background-size: cover; background-position: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); position: relative; }
.split-img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.75); }
blockquote { border-left: 2px solid var(--amber); margin: 28px 0; padding: 4px 0 4px 22px; font: italic 24px/1.4 var(--serif); color: var(--paper); }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.feat { background: var(--ink); padding: 40px 34px; transition: background 0.5s; position: relative; overflow: hidden; }
.feat::before { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 120%; background: radial-gradient(ellipse at 50% 100%, rgba(255, 184, 97, 0.18), transparent 60%); opacity: 0; transition: opacity 0.6s; }
.feat:hover::before { opacity: 1; }
.feat .num { font: 600 15px var(--serif); color: var(--amber); letter-spacing: 0.2em; }
.feat h3 { font: 600 28px var(--serif); margin: 10px 0 12px; }
.feat p { color: rgba(232, 220, 199, 0.75); margin: 0; font-size: 16px; }

.video-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; margin: 40px 0 60px; }
.video-card { position: relative; aspect-ratio: 16/9; border: 0; background-size: cover; background-position: center; cursor: pointer; overflow: hidden; }
.video-card::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); transition: background 0.4s; }
.video-card:hover::before { background: rgba(0, 0, 0, 0.2); }
.play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px; border-radius: 50%; border: 1px solid var(--amber); box-shadow: 0 0 40px rgba(255, 184, 97, 0.4); transition: transform 0.4s; }
.play::after { content: ""; position: absolute; left: 36px; top: 28px; border-left: 24px solid var(--amber); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.video-card:hover .play { transform: scale(1.1); }
.vlabel { position: absolute; left: 22px; bottom: 16px; font: 600 26px var(--serif); color: var(--paper); letter-spacing: 0.08em; }

.char-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 40px; }
.char { background: var(--ink2); border: 1px solid var(--line); overflow: hidden; transition: transform 0.5s, border-color 0.5s; }
.char:hover { transform: translateY(-8px); border-color: rgba(255, 184, 97, 0.5); }
.char-img { aspect-ratio: 3/4; background-size: cover; background-position: center 25%; filter: grayscale(0.5) brightness(0.8); transition: filter 0.6s, transform 0.8s; }
.char:hover .char-img { filter: none; transform: scale(1.05); }
.char-body { padding: 20px; }
.char h3 { font: 600 28px var(--serif); margin: 6px 0; }
.char p { font-size: 14.5px; color: rgba(232, 220, 199, 0.72); margin: 0; }
.tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }

.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 40px 0; }
.g-item { position: relative; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; aspect-ratio: 16/9; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s, filter 0.6s; filter: brightness(0.75); }
.g-item:hover img { transform: scale(1.08); filter: brightness(1); }
.g-item span { position: absolute; left: 12px; bottom: 8px; font-size: 13px; color: var(--paper); text-shadow: 0 1px 6px #000; opacity: 0; transform: translateY(8px); transition: 0.4s; }
.g-item:hover span { opacity: 1; transform: none; }
.g-grid .g-item:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin: 40px 0; }
.post-card { background: var(--ink2); border: 1px solid var(--line); color: var(--paper); display: flex; flex-direction: column; transition: border-color 0.4s, transform 0.4s; }
.post-card:hover { border-color: rgba(255, 184, 97, 0.5); transform: translateY(-4px); }
.pc-img { aspect-ratio: 16/9; background-size: cover; background-position: center; filter: brightness(0.8); transition: filter 0.5s; }
.post-card:hover .pc-img { filter: brightness(1); }
.pc-body { padding: 22px; }
.pc-body h3 { font: 600 26px/1.2 var(--serif); margin: 8px 0; }
.pc-body p { color: rgba(232, 220, 199, 0.72); font-size: 15px; margin: 0 0 10px; }
.pc-body time { font-size: 13px; color: var(--dim); }

.get-in { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.get-card { background: linear-gradient(160deg, rgba(255, 184, 97, 0.08), rgba(79, 163, 160, 0.05)); border: 1px solid var(--line); padding: 44px; }
.get-card h3, .get-card h2 { font: 600 34px var(--serif); margin: 0 0 12px; }
.get-card.big { margin-bottom: 26px; }
.spec { color: rgba(232, 220, 199, 0.8); }
.sig { font: italic 22px var(--serif); color: var(--amber); }

.signup { text-align: center; background: radial-gradient(ellipse at 50% 120%, rgba(217, 119, 58, 0.22), transparent 60%); }
.signup-in { max-width: 680px; margin: 0 auto; }
.subscribe { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.subscribe input[type="email"] { flex: 1 1 320px; padding: 14px 18px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line); color: var(--paper); font: 16px var(--sans); }
.subscribe input[type="email"]:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 20px rgba(255, 184, 97, 0.25); }
.subscribe button { padding: 14px 28px; background: var(--amber); color: var(--ink); border: 0; font: 600 15px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.subscribe .chk { flex-basis: 100%; font-size: 14px; color: var(--dim); }
.msg { flex-basis: 100%; min-height: 1.6em; margin: 4px 0 0; color: var(--water); }
.msg.err { color: #e2786a; }

/* ---------------------------------------------------------------- inner pages */
.page-head { position: relative; z-index: 5; height: 44vh; min-height: 300px; display: flex; align-items: flex-end; padding: 0 8vw 40px; background-size: cover; background-position: center; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink), rgba(7, 8, 10, 0.4)); }
.page-head h1 { position: relative; }
.page.narrow { max-width: 900px; margin: 0 auto; }
.tabs { display: flex; gap: 10px; justify-content: center; }
.tab { padding: 8px 18px; border: 1px solid var(--line); color: var(--paper); }
.tab.on { border-color: var(--amber); color: var(--amber); }
.article { position: relative; z-index: 5; }
.art-head { height: 66vh; min-height: 380px; position: relative; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.art-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 5%, rgba(7, 8, 10, 0.35)); }
.art-head-in { position: relative; padding: 0 8vw 50px; max-width: 1000px; }
.art-head h1 { font: 600 clamp(40px, 5.5vw, 76px)/1.05 var(--serif); margin: 10px 0; }
.art-head time { color: var(--dim); }
.art-body { max-width: 760px; margin: 0 auto; padding: 50px 24px; font-size: 18px; }
.art-body h2, .art-body h3 { font: 600 34px var(--serif); margin: 40px 0 10px; }
.art-body img { margin: 30px 0; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.share { max-width: 760px; margin: 0 auto 60px; padding: 20px 24px; border-top: 1px solid var(--line); display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.share button { background: none; border: 1px solid var(--line); color: var(--paper); padding: 6px 14px; cursor: pointer; font: 14px var(--sans); }
.press { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.press a { position: relative; display: block; border: 1px solid var(--line); }
.press span { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.7); color: var(--amber); padding: 4px 10px; font-size: 13px; }

.auth-box { position: relative; z-index: 5; max-width: 460px; margin: 150px auto 100px; padding: 44px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.auth-box form, .contact { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.auth-box label, .contact label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--dim); }
.auth-box input, .contact input, .contact textarea { padding: 12px 14px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line); color: var(--paper); font: 16px var(--sans); }
.auth-box label.chk { flex-direction: row; align-items: center; gap: 10px; }
.err { color: #e2786a; }
.ok { color: var(--water); }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; z-index: 5; border-top: 1px solid var(--line); padding: 60px 8vw 30px; background: #050506; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-title { font: 600 32px var(--serif); }
.foot-links, .social { display: flex; flex-direction: column; gap: 8px; }
.foot-links a, .social a { color: var(--paper); opacity: 0.75; }
.copy { margin-top: 40px; font-size: 13px; color: var(--dim); }

/* ---------------------------------------------------------------- overlays */
.lightbox, .modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.94); display: flex; align-items: center; justify-content: center; flex-direction: column; animation: fadein 0.35s; }
.lightbox[hidden], .modal[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.lightbox img { max-width: 90vw; max-height: 82vh; box-shadow: 0 0 80px rgba(0, 0, 0, 0.9); }
.lightbox p { color: var(--paper); font: italic 22px var(--serif); }
.lb-x { position: absolute; right: 24px; top: 16px; background: none; border: 0; color: var(--paper); font-size: 46px; cursor: pointer; }
.lb-prev, .lb-next { position: absolute; top: 50%; background: none; border: 0; color: var(--paper); font-size: 64px; cursor: pointer; padding: 20px; transform: translateY(-50%); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.modal .frame { width: min(1200px, 92vw); aspect-ratio: 16/9; }
.modal video, .modal iframe { width: 100%; height: 100%; border: 0; background: #000; }

/* ---------------------------------------------------------------- the studio (Seasay) */
.brand.studio { font: 600 22px var(--sans); letter-spacing: 0.32em; }
.brand.studio img { filter: drop-shadow(0 0 10px rgba(236, 120, 80, 0.45)); }
.brand img.sq { border-radius: 8px; filter: none; box-shadow: 0 0 14px rgba(255, 170, 80, 0.35); }
.links .back { color: var(--dim); }
.hero-mark { width: 92px; margin-bottom: 18px; filter: drop-shadow(0 0 26px rgba(255, 170, 80, 0.55)); animation: flame 3.2s ease-in-out infinite; }
.epigraph { font: italic 600 28px/1.3 var(--serif); color: var(--amber); border: 0; margin: 0 0 22px; padding: 0; }
.ask { font: italic 22px/1.45 var(--serif); color: var(--paper); border-left: 2px solid var(--ember); padding-left: 18px; }
.banner { position: relative; z-index: 5; height: 92vh; min-height: 560px; overflow: hidden; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.2s, transform 7s linear; display: flex; align-items: flex-end; }
.slide.on { opacity: 1; transform: scale(1); }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 4%, rgba(7, 8, 10, 0.55) 45%, rgba(7, 8, 10, 0.25)), linear-gradient(90deg, rgba(7, 8, 10, 0.85), transparent 65%); }
.slide-in { position: relative; padding: 0 8vw 13vh; max-width: 900px; }
.slide-logo { width: 96px; height: 96px; border-radius: 16px; margin-bottom: 18px; box-shadow: 0 0 40px rgba(255, 170, 80, 0.35); }
.slide-title { font: 600 clamp(48px, 7vw, 108px)/0.95 var(--serif); margin: 0; }
.dots { position: absolute; z-index: 6; left: 8vw; bottom: 6vh; display: flex; gap: 10px; }
.dots button { width: 34px; height: 3px; border: 0; padding: 0; background: rgba(232, 220, 199, 0.3); cursor: pointer; }
.dots button.on { background: var(--amber); }
.intro-studio, .prods { position: relative; z-index: 5; padding: 110px 8vw; }
.intro-studio { padding-bottom: 20px; }
.intro-in { display: flex; gap: 46px; align-items: center; max-width: 1100px; margin: 0 auto; }
.intro-logo { width: 150px; flex: none; filter: drop-shadow(0 0 30px rgba(236, 120, 80, 0.35)); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; margin: 40px 0; }
.prod-card { background: var(--ink2); border: 1px solid var(--line); color: var(--paper); display: block; transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s; }
.prod-card:hover { transform: translateY(-6px); border-color: rgba(255, 184, 97, 0.5); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.prod-img { position: relative; aspect-ratio: 16/9; background-size: cover; background-position: center; filter: brightness(0.85); }
.prod-logo { position: absolute; left: 18px; bottom: -28px; width: 64px; height: 64px; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7); }
.prod-body { padding: 40px 24px 24px; }
.prod-body h3 { font: 600 32px/1.1 var(--serif); margin: 8px 0 0; }
.prod-body .en { font: italic 20px var(--serif); color: var(--dim); margin: 2px 0 10px; }
.prod-body p { color: rgba(232, 220, 199, 0.75); font-size: 15px; }
.prod-body .more { color: var(--amber); font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.foot-brand img { width: 40px; }
@media (max-width: 860px) {
  .banner { height: 86vh; }
  .slide-in { padding: 0 16px 14vh; }
  .dots { left: 16px; }
  .intro-studio, .prods { padding: 70px 16px; }
  .intro-in { flex-direction: column; text-align: center; gap: 20px; }
  .prod-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .title .ch { opacity: 1; transform: none; filter: none; }
  #rain { display: none; }
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1100px) {
  .char-row { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { padding: 14px 16px; } .nav.solid { padding: 10px 16px; }
  .burger { display: block; }
  .links { position: fixed; inset: 0 0 0 30%; background: rgba(7, 8, 10, 0.97); flex-direction: column; align-items: flex-start; padding: 90px 30px; gap: 20px; transform: translateX(100%); transition: transform 0.45s; }
  .links.open { transform: none; }
  .hero { padding: 110px 16px 80px; }
  .story, .features, .videos, .chars, .gallery, .news, .get, .studio, .signup, .page { padding: 70px 16px; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 30px; margin-bottom: 70px; }
  .split.rev .split-img { order: 2; }
  .feat-grid, .video-grid, .get-in, .foot-in, .news-grid, .press { grid-template-columns: 1fr; }
  .char-row { grid-template-columns: 1fr 1fr; }
  .g-grid { grid-template-columns: 1fr 1fr; }
  .g-grid .g-item:nth-child(5n + 1) { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
  .get-card { padding: 28px; }
  .auth-box { margin: 110px 16px 60px; padding: 28px; }
  .page-head, .art-head-in { padding-left: 16px; padding-right: 16px; }
}

[hidden] { display: none !important; }

/* phones: the two things people come for, always in reach at the bottom */
.m-cta { display: none; }
@media (max-width: 720px) {
  .m-cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(7, 8, 10, 0), rgba(7, 8, 10, 0.92) 30%); }
  .m-cta a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 15px; letter-spacing: 0.02em; text-align: center; }
  .m-cta .mc-main { background: var(--amber); color: #1a1006; box-shadow: 0 10px 30px -10px rgba(255, 184, 97, 0.8); }
  .m-cta .mc-alt { background: rgba(255, 255, 255, 0.08); color: var(--paper); border: 1px solid rgba(232, 220, 199, 0.25); backdrop-filter: blur(8px); }
  body.is-game { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  a, button { -webkit-tap-highlight-color: transparent; }
}

/* phones: shorter page, swipe rows, menu and buttons sized for thumbs */
@media (max-width: 720px) {
  .nav { padding: 10px 12px; }
  .burger { width: 44px; height: 44px; z-index: 60; }
  .burger span { left: 10px; right: 10px; }
  .burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 28px; }
  .links { inset: 0; padding: 88px 24px calc(100px + env(safe-area-inset-bottom)); gap: 4px; overflow-y: auto; z-index: 55; }
  .links a { display: block; width: 100%; padding: 13px 4px; font-size: 18px; border-bottom: 1px solid var(--line); opacity: 1; }
  .links a::after { display: none; }
  .links .cta { margin-top: 14px; text-align: center; border-radius: 10px; padding: 14px; }
  .links .me { border-bottom: 0; }
  .hero { min-height: 92svh; padding: 96px 16px 120px; }
  .title { font-size: clamp(44px, 13vw, 60px); }
  .hero .lead { font-size: 15.5px; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-cta .btn { text-align: center; padding: 13px 10px; }
  .hero-cta .btn:first-child { grid-column: 1 / -1; }
  .story, .features, .videos, .chars, .gallery, .news, .get, .studio, .signup, .page { padding: 52px 16px; }
  .split, .split.rev { gap: 20px; margin-bottom: 44px; }
  .h { font-size: 32px; margin-bottom: 16px; }
  .feat-grid, .char-row, .news-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 26px -16px 0; padding: 0 16px 14px; background: none; border: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .feat-grid::-webkit-scrollbar, .char-row::-webkit-scrollbar, .news-grid::-webkit-scrollbar { display: none; }
  .feat { flex: 0 0 80%; scroll-snap-align: start; border: 1px solid var(--line); padding: 26px 22px; }
  .feat h3 { font-size: 23px; }
  .feat p { font-size: 15px; }
  .char { flex: 0 0 64%; scroll-snap-align: start; }
  .news-grid .post-card { flex: 0 0 82%; scroll-snap-align: start; }
  .feat-grid .reveal, .char-row .reveal, .news-grid .reveal { opacity: 1; transform: none; }
  .get-card { padding: 22px 18px; }
  .get-card .btn { display: block; text-align: center; }
  .signup .subscribe button, .subscribe input { min-height: 48px; }
  .foot { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .scroll-hint { display: none; }
  .bar { font-size: 13px; padding: 8px 12px; }
  .bar a { display: inline-block; padding: 8px 4px; margin: -8px 0; }
}

/* the game's mark in the hero: bigger, with a strong breathing glow */
.hero-mark { width: 118px; animation: markglow 3.2s ease-in-out infinite; }
@keyframes markglow {
  0%, 100% { filter: brightness(1.1) drop-shadow(0 0 16px rgba(255, 205, 120, 1)) drop-shadow(0 0 48px rgba(255, 165, 60, 0.9)) drop-shadow(0 0 110px rgba(255, 130, 40, 0.65)); }
  50% { filter: brightness(1.3) drop-shadow(0 0 24px rgba(255, 228, 150, 1)) drop-shadow(0 0 72px rgba(255, 180, 80, 1)) drop-shadow(0 0 160px rgba(255, 140, 40, 0.85)); }
}
.brand img.sq { filter: drop-shadow(0 0 8px rgba(255, 190, 90, 0.75)); }

/* ================================================================ the scroll cinema (game page opening) */
/* still version first: what everyone gets without WebGL or with reduced motion */
.cine { position: relative; z-index: 5; background: radial-gradient(ellipse at 50% 60%, #1c140b 0%, #07080a 70%); }
.cine-stage { position: relative; min-height: 100vh; padding: 120px 8vw 90px; display: flex; flex-direction: column; justify-content: center; gap: 26px; overflow: hidden; }
.cine-gl { display: none; }
.cine-still { width: 120px; filter: drop-shadow(0 0 18px rgba(255, 205, 120, 1)) drop-shadow(0 0 60px rgba(255, 160, 60, 0.8)); }
.cine-shade, .cine-bar, .cine-hint { display: none; }
.cine-cap .kicker { margin: 0 0 10px; }
.cine-line { max-width: 640px; font-size: 18px; color: rgba(232, 220, 199, 0.85); margin: 0; }
.cine-big { font: italic 500 clamp(24px, 3vw, 40px)/1.3 var(--serif); color: var(--paper); margin: 0; max-width: 820px; }
.cine-kick { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); margin: 0 0 16px; }

/* the scene, when WebGL runs: a pinned stage, the story told along the scroll */
.cine-on .cine { height: 420vh; }
.cine-on .cine-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding: 0; display: block; }
.cine-on .cine-gl { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.cine-on .cine.cine-ready .cine-gl { opacity: 1; }
.cine-on .cine-still { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 110px; transition: opacity 1s; animation: markglow 3.2s ease-in-out infinite; }
.cine-on .cine.cine-ready .cine-still { opacity: 0; }
.cine-on .cine-shade { display: block; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(7, 8, 10, 0.55) 75%, rgba(7, 8, 10, 0.92) 100%), linear-gradient(180deg, rgba(7, 8, 10, 0.6) 0%, transparent 22%, transparent 70%, rgba(7, 8, 10, 0.85) 100%); }
.cine-on .cine-cap { position: absolute; left: 8vw; right: 8vw; bottom: 14vh; opacity: 0; will-change: opacity, transform; }
.cine-on .cine-cap.c0 { opacity: 1; }
.cine-on .cine-cap.mid { left: 50%; right: auto; width: min(760px, 84vw); transform: translateX(-50%); bottom: 16vh; text-align: center; }
.cine-on .cine-cap.mid .cine-line, .cine-on .cine-cap.mid .cine-big { margin: 0 auto; }
.cine-on .cine-cap.mid { translate: -50% 0; transform: none; }
.cine-on .cine-cap.end { bottom: 12vh; }
.cine-on .cine-line { font-size: clamp(17px, 1.9vw, 24px); line-height: 1.6; color: #f1e6d2; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9); }
.cine-on .cine-big { text-shadow: 0 0 40px rgba(255, 170, 80, 0.35), 0 2px 20px rgba(0, 0, 0, 0.9); }
.cine-on .cine-bar { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(232, 220, 199, 0.08); }
.cine-on .cine-bar i { display: block; height: 100%; background: linear-gradient(90deg, #d9773a, var(--amber)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(255, 184, 97, 0.8); }
.cine-on .cine-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); margin: 0; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(232, 220, 199, 0.7); }
.cine-on .cine-hint span { width: 1px; height: 38px; background: linear-gradient(180deg, transparent, var(--amber)); animation: hintdrop 1.8s ease-in-out infinite; }
@keyframes hintdrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.cine-on .cine-cap.c0 .title { font-size: clamp(56px, 8vw, 120px); }

@media (max-width: 720px) {
  .cine-on .cine { height: 340vh; }
  .cine-on .cine-cap { left: 18px; right: 18px; bottom: calc(96px + env(safe-area-inset-bottom)); }
  .cine-on .cine-cap.mid { width: calc(100vw - 36px); bottom: calc(110px + env(safe-area-inset-bottom)); }
  .cine-on .cine-cap.c0 .title { font-size: clamp(46px, 13vw, 64px); }
  .cine-on .cine-line { font-size: 16px; }
  .cine-on .cine-cap.end .hero-cta { grid-template-columns: 1fr 1fr; }
  .cine-on .cine-hint { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .cine-stage { padding: 100px 16px 120px; }
}
@media (prefers-reduced-motion: reduce) { .cine-on .cine { height: auto; } }

/* the game's menu on mid-size screens: one line, tighter */
@media (max-width: 1240px) and (min-width: 861px) {
  .links { gap: 16px; }
  .links a { font-size: 14px; white-space: nowrap; }
  .links .back { display: none; }
}
@media (max-width: 1060px) and (min-width: 861px) {
  .links a[href$="#gameplay"], .links a[href$="#trailer"] { display: none; }
}

/* ---- the opening, shorter, with the alley behind the lamp */
.cine-on .cine { height: 230vh; }
.cine-bg, .cine-light { display: none; }
.cine-on .cine-bg { display: block; position: absolute; inset: -6%; background: url("/img/scenes/alley.jpg") center 60% / cover; transform: scale(calc(1.18 - var(--p, 0) * 0.14)); filter: brightness(calc(0.32 + var(--p, 0) * 0.3)) saturate(0.85) blur(calc(5px - var(--p, 0) * 4px)); will-change: transform, filter; }
.cine-on .cine-light { display: block; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 60% at 50% 42%, rgba(255, 170, 70, calc(0.12 + var(--p, 0) * 0.28)), transparent 70%); mix-blend-mode: screen; }
@media (max-width: 720px) {
  .cine-on .cine { height: 175vh; }
  .cine-on .cine-bg { filter: brightness(calc(0.32 + var(--p, 0) * 0.28)) saturate(0.85); }
  .grain { display: none; }
}

/* ---- content below: headings rise word by word, text blocks one line after another,
   pictures open like a curtain and settle, cards lean to the mouse */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1) calc(var(--i) * 55ms); }
.split-words.in .w > span, .in .split-words .w > span { transform: none; }
.h.reveal, .reveal .h { opacity: 1; transform: none; }
.stagger.reveal { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease calc(var(--k, 0) * 90ms + 150ms), transform 1.1s cubic-bezier(0.19, 1, 0.22, 1) calc(var(--k, 0) * 90ms + 150ms); }
.stagger.in > *, .in .stagger > * { opacity: 1; transform: none; }
.split-img.reveal { opacity: 1; transform: translate3d(0, var(--py, 0), 0) scale(1.14); clip-path: inset(12% 8% 12% 8%); filter: brightness(0.35); transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.18, 1), transform 1.9s cubic-bezier(0.19, 1, 0.22, 1), filter 1.6s ease; }
.split-img.reveal.in { transform: translate3d(0, var(--py, 0), 0) scale(1); clip-path: inset(0 0 0 0); filter: none; }
.feat.reveal, .char.reveal, .g-item.reveal, .post-card.reveal, .get-card.reveal, .video-card.reveal { transform: translateY(46px) scale(0.96); transition: opacity 0.9s ease var(--d, 0ms), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1) var(--d, 0ms); }
.feat.reveal.in, .char.reveal.in, .g-item.reveal.in, .post-card.reveal.in, .get-card.reveal.in, .video-card.reveal.in { transform: none; }
.tilt { position: relative; transform-style: preserve-3d; }
.tilt.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.9s ease; }
.tilt::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 200, 120, 0.16), transparent 55%); transition: opacity 0.4s; }
.tilt:hover::before { opacity: 1; }
.char-img, .g-item img { transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1); }
.char:hover .char-img, .g-item:hover img { transform: scale(1.06); }
.epigraph { position: relative; }
@media (max-width: 720px) {
  .split-img.reveal { clip-path: inset(10% 0 10% 0); }
  .feat.reveal, .char.reveal, .post-card.reveal { transform: translateY(30px); }
}
@media (prefers-reduced-motion: reduce) {
  .split-words .w > span, .stagger > * { transform: none !important; opacity: 1 !important; }
  .split-img.reveal { clip-path: none; filter: none; transform: none; }
}
