/* Big Shoulders Display - vietnamese */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/bigshouldersdisplay/v24/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cw9DuDJAM23AZ.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Big Shoulders Display - latin-ext */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/bigshouldersdisplay/v24/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1cwtDuDJAM23AZ.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Big Shoulders Display - latin */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("../assets/fonts/big-shoulders-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Sans - latin-ext */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/instrumentsans/v4/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0She1ZuWi3hKpA.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Sans - latin */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0c0e16;
  --paper: #f3ead3;
  --gold: #ebaa3b;
  --gold-deep: #1a1206;
  --dock-space: calc(148px + env(safe-area-inset-bottom));
  --ui: "Instrument Sans", "Hiragino Sans", "PingFang SC", "Noto Sans CJK SC", "Noto Sans JP", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  --display: "Big Shoulders Display", "Hiragino Sans", "PingFang SC", "Noto Sans CJK SC", "Noto Sans JP", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.4;
}

body,
a,
button {
  cursor: url("../assets/cursor-hand.png") 5 2, auto;
}

body:active,
a:active,
button:active {
  cursor: url("../assets/cursor-hand-down.png") 5 2, auto;
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: max(14px, env(safe-area-inset-top)) 16px 0;
  pointer-events: none;
}

.logo {
  grid-column: 2;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  line-height: 0;
  transform-origin: 50% 50%;
}

.logo.is-ready {
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.topbar .logo {
  transform: translate(var(--logo-x, 0px), var(--logo-y, 0px)) scale(calc(var(--logo-scale, 1) * 0.7));
}

.topbar.is-top .logo {
  transform: translate(var(--logo-x, 0px), var(--logo-y, 0px)) scale(var(--logo-scale, 1));
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.45));
}

.logo.is-beating img {
  animation: heartbeat 1.8s ease-in-out;
}

@keyframes heartbeat {
  0%, 36%, 50%, 86%, 100% { transform: scale(1); }
  7%, 57% { transform: scale(1.12); }
  14%, 64% { transform: scale(1.02); }
  21%, 71% { transform: scale(1.08); }
}

.lang {
  grid-column: 3;
  justify-self: end;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 2px 0 8px;
  border: 0;
  background: none;
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.chev {
  display: block;
  transition: transform 0.15s ease;
}

.lang.is-open .chev {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  z-index: 6;
  min-width: 196px;
  max-height: min(68vh, 440px);
  margin: 0;
  padding: 6px;
  overflow: auto;
  list-style: none;
  background: rgba(12, 14, 22, 0.96);
  border: 1px solid rgba(243, 234, 211, 0.22);
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
  text-align: left;
}

.lang-menu button[aria-current="true"] {
  color: var(--gold);
}

.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: rgba(243, 234, 211, 0.06);
}

.hero {
  position: relative;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-scene {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: calc(3840 / 1240 * 100%);
  min-width: 100%;
}

.hero-art,
.hero-loop {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-loop {
  position: absolute;
  inset: 0;
}

.sun-halo {
  position: absolute;
  left: 50%;
  top: 26.3%;
  height: 52.6%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 60, 30, 0) 38%, rgba(255, 70, 30, 0.45) 52%, rgba(255, 40, 20, 0) 72%);
  animation: pulse 4.5s ease-in-out infinite;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8, 10, 16, 0.62), rgba(8, 10, 16, 0) 26%),
    linear-gradient(to top, rgba(8, 10, 16, 0.78) 0%, rgba(8, 10, 16, 0.28) 24%, rgba(8, 10, 16, 0) 48%);
}

.dock {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--gold);
  background: rgba(12, 14, 22, 0.88);
  color: #f6e7c1;
  font: inherit;
  font-size: clamp(13px, 3.4vw, 15px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  gap: 10px;
}

.cta-icon {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  fill: currentColor;
}

.cta:hover {
  background: var(--gold);
  color: var(--gold-deep);
}

.socials {
  position: fixed;
  top: calc(max(14px, env(safe-area-inset-top)) + 4px);
  left: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  color: #fff;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
  transition: opacity 0.15s ease;
}

.social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-logo {
  display: block;
  width: auto;
  height: 22px;
}

.social:hover {
  opacity: 0.7;
}

.cta:focus-visible,
.social:focus-visible,
.lang-toggle:focus-visible,
.trailer-close:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.shots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 calc(168px + env(safe-area-inset-bottom));
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #141826;
}

.trailer {
  width: min(960px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid rgba(235, 170, 59, 0.45);
  background: var(--ink);
  color: var(--paper);
}

.trailer::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.trailer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(243, 234, 211, 0.35);
  background: rgba(12, 14, 22, 0.8);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trailer-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  aspect-ratio: 16 / 9;
}

.trailer-frame iframe,
.trailer-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.trailer-frame p {
  margin: 0;
  padding: 32px 24px;
  text-align: center;
  letter-spacing: 0.04em;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

@media (max-width: 799px) {
  .dock { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 54px); }
  .socials {
    top: auto;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    flex-direction: row;
    gap: 6px;
    width: min(420px, calc(100vw - 36px));
  }
  .social { flex: 1; width: auto; height: 44px; }
  .shots { padding-bottom: calc(222px + env(safe-area-inset-bottom)); }
}

@media (min-width: 800px) {
  .logo img { height: 72px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .socials { top: max(14px, env(safe-area-inset-top)); left: 28px; gap: 4px; }
  .social { width: 44px; height: 44px; }
  .social svg { width: 26px; height: 26px; }
  .social-logo { height: 26px; }
  .shots { width: min(1100px, calc(100% - 48px)); gap: 16px; }
}

@media (max-height: 560px) {
  .logo img { height: 40px; }
  .cta { min-height: 42px; }
  :root { --dock-space: calc(116px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun-halo { animation: none; }
  .logo.is-ready { transition: none; }
  .logo.is-beating img { animation: none; }
}
