/* =========================================================
   OUTSIDE · 望野工作室
   main.css
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Anton';
  src: url('/assets/fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrainsmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrainsmono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Silkscreen';
  src: url('/assets/fonts/silkscreen-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #070708;
  --bg-2: #0c0c0e;
  --bg-3: #121214;
  --ink: #f2ede1;
  --ink-2: #c9c3b6;
  --ink-dim: #8a857a;
  --line: rgba(242, 237, 225, 0.14);
  --line-strong: rgba(242, 237, 225, 0.3);

  --lime: #c6ff3d;
  --acid: #c6ff3d;
  --rust: #b4552d;
  --teal: #2fa79b;
  --bone: #ece6d8;
  --magenta: #ff2e88;
  --violet: #8a6cff;
  --amber: #ffb03a;
  --pink: #f4c9d8;
  --black: #08080a;

  --font-display: 'Anton', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC',
    'Microsoft YaHei', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
    'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei',
    sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-pixel: 'Silkscreen', 'PingFang SC', monospace;

  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1680px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked {
  overflow: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--lime);
  color: #0a0a0a;
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pixel {
  font-family: var(--font-pixel);
  letter-spacing: 0.02em;
}
.hr {
  height: 1px;
  background: var(--line);
  border: 0;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 12000;
  padding: 10px 16px;
  background: var(--lime);
  color: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.3s;
}
.skip:focus {
  transform: none;
}
.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;
}

/* ---------- Grain + scanlines ---------- */
.grain {
  position: fixed;
  inset: -60%;
  z-index: 9500;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  16% { transform: translate(-2%, 1%); }
  33% { transform: translate(1%, -2%); }
  50% { transform: translate(-1%, 2%); }
  66% { transform: translate(2%, -1%); }
  83% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11000;
  pointer-events: none;
  display: none;
}
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
}
.cursor__ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(242, 237, 225, 0.55);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
    background 0.35s, border-color 0.35s;
}
.cursor.is-hover .cursor__ring {
  width: 68px;
  height: 68px;
  background: rgba(201, 242, 77, 0.12);
  border-color: var(--lime);
}
.cursor.is-hover .cursor__dot {
  opacity: 0;
}
body.has-cursor .cursor {
  display: block;
}
body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #050505;
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.loader__inner {
  width: min(420px, 74vw);
  text-align: center;
}
.loader__mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 26px;
  color: var(--lime);
  animation: bob 1.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.loader__word {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.loader__bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}
.loader__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--lime);
  transition: width 0.25s linear;
}
.loader__pct {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  display: flex;
  justify-content: space-between;
}
body.no-loader .loader {
  display: none;
}

/* ---------- Header ---------- */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-head.is-scrolled {
  padding-block: 14px;
  background: rgba(7, 7, 8, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 2px;
  transition: transform 0.6s var(--ease);
}
.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.08);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__cn {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
}
.brand__en {
  font-family: var(--font-pixel);
  font-size: 6.5px;
  letter-spacing: 0.28em;
  color: var(--ink-dim);
  margin-top: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}
.nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  position: relative;
  padding-block: 6px;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}
.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.head-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.head-time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  display: none;
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 16px;
}
.menu-toggle i {
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.menu-toggle i::before,
.menu-toggle i::after {
  content: '';
  position: absolute;
  left: 0;
  width: 14px;
  height: 1px;
  background: currentColor;
}
.menu-toggle i::before { top: -4px; }
.menu-toggle i::after { top: 4px; }

/* Header over light project hero */
body[data-theme] .site-head:not(.is-scrolled):not(.is-solid) {
  color: var(--accent-ink, #141014);
}
body[data-theme] .site-head:not(.is-scrolled) .brand__mark {
  color: var(--accent-ink, #141014);
}
body[data-theme] .site-head:not(.is-scrolled) .brand__en,
body[data-theme] .site-head:not(.is-scrolled) .head-time {
  color: color-mix(in srgb, var(--accent-ink, #141014) 55%, transparent);
}
body[data-theme] .site-head:not(.is-scrolled) .nav a {
  color: color-mix(in srgb, var(--accent-ink, #141014) 72%, transparent);
}
body[data-theme] .site-head:not(.is-scrolled) .nav a:hover,
body[data-theme] .site-head:not(.is-scrolled) .nav a.is-active {
  color: var(--accent-ink, #141014);
}
body[data-theme] .site-head:not(.is-scrolled) .nav a::after {
  background: var(--accent-ink, #141014);
}
body[data-theme] .site-head:not(.is-scrolled) .menu-toggle {
  color: var(--accent-ink, #141014);
  border-color: color-mix(in srgb, var(--accent-ink, #141014) 35%, transparent);
}
/* Header while the mobile menu is open */
body.menu-open .site-head,
body.menu-open .site-head:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--ink);
}
body.menu-open .site-head .brand__mark { color: var(--lime); }
body.menu-open .site-head .brand__en,
body.menu-open .site-head .head-time { color: var(--ink-dim); }
body.menu-open .site-head .menu-toggle {
  color: var(--ink);
  border-color: var(--line-strong);
}
body.menu-open .site-head .nav { display: none; }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 8900;
  background: #050505;
  padding: 120px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  visibility: hidden;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}
.menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu__nav a {
  font-family: var(--font-display);
  font-size: clamp(44px, 12vw, 88px);
  line-height: 1.02;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 16px;
}
.menu__nav a span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
}
.menu__foot a:hover { color: var(--lime); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 132px var(--pad) 34px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 50%;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
  will-change: transform;
}
.hero--outside .hero__media img {
  object-position: 64% 54%;
  filter: contrast(1.03);
}
.hero--outside .hero__media::after {
  background:
    linear-gradient(90deg, rgba(6, 7, 8, 0.96) 0%, rgba(6, 7, 8, 0.86) 26%, rgba(6, 7, 8, 0.34) 58%, rgba(6, 7, 8, 0.62) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 7, 8, 0.42) 30%, transparent 62%);
}
@keyframes heroZoom {
  from { transform: scale(1.14); }
  to { transform: scale(1.02); }
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.95) 0%, rgba(7, 7, 8, 0.82) 28%, rgba(7, 7, 8, 0.28) 58%, rgba(7, 7, 8, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 8, 0.35) 32%, transparent 62%);
}
.hero__bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.75;
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-2);
  margin-bottom: clamp(18px, 3vh, 36px);
}
.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(74px, 14.5vw, 236px);
  line-height: 0.84;
  letter-spacing: -0.02em;
  margin-left: -0.04em;
}
.hero__title .cn {
  display: block;
  white-space: nowrap;
}
.hero__title--en {
  font-size: clamp(76px, 16.2vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.015em;
  display: flex;
}
.hero__title--en .line {
  display: block;
  white-space: nowrap;
}
.hero__title--en .ch {
  transform: translateY(116%);
  opacity: 0;
}
.hero__title--en .out {
  color: transparent;
  -webkit-text-stroke: 2px rgba(236, 230, 216, 0.62);
}
body.is-ready .hero__title--en .ch {
  animation: charUp 1.2s var(--ease-out) forwards;
  animation-delay: calc(0.12s * var(--i) + 0.18s);
}
.hero__title .cn .ch {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
body.is-ready .hero__title .ch {
  animation: charUp 1.1s var(--ease-out) forwards;
  animation-delay: calc(0.06s * var(--i) + 0.15s);
}
@keyframes charUp {
  to { transform: translateY(0); opacity: 1; }
}
.hero__sub {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: clamp(14px, 2vh, 26px);
  margin-left: 0.14em;
}
.hero__sub .studio {
  font-size: clamp(18px, 2.1vw, 30px);
  font-weight: 700;
  letter-spacing: 0.42em;
}
.hero__sub .en {
  font-family: var(--font-pixel);
  font-size: clamp(8px, 0.85vw, 11px);
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.hero__tag {
  margin-top: clamp(26px, 4.5vh, 54px);
  font-size: clamp(17px, 1.5vw, 22px);
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: 0;
}
.hero__en {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--ink-dim);
  opacity: 0;
}
body.is-ready .hero__tag,
body.is-ready .hero__en {
  animation: fadeUp 0.9s var(--ease-out) forwards;
  animation-delay: 0.9s;
}
body.is-ready .hero__en { animation-delay: 1.02s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(26px, 4vh, 42px);
  opacity: 0;
  transform: translateY(16px);
}
body.is-ready .hero__actions {
  animation: fadeUp 0.9s var(--ease-out) forwards;
  animation-delay: 1.15s;
}
.btn {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  --btn-line: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s;
  will-change: transform;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover {
  color: #0a0a0a;
  border-color: var(--lime);
}
.btn:hover::before { transform: translateY(0); }
.btn--solid {
  --btn-bg: var(--lime);
  --btn-ink: #0a0a0a;
  --btn-line: var(--lime);
}
.btn--solid::before { background: var(--ink); }
.btn--solid:hover { border-color: var(--ink); }
.btn__dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(40px, 7vh, 90px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  opacity: 0;
}
body.is-ready .hero__bottom {
  animation: fadeUp 1s var(--ease-out) forwards;
  animation-delay: 1.35s;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}
.hero__facts b {
  font-weight: 400;
  color: var(--ink-2);
  margin-left: 6px;
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
}
.hero__scroll .line {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--lime), transparent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  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; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 18px;
  background: var(--bg);
  position: relative;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee--rev .marquee__track {
  animation-direction: reverse;
  animation-duration: 44s;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 82px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 225, 0.4);
  padding-right: 34px;
}
.marquee__track > span em {
  font-style: normal;
  color: var(--ink);
  -webkit-text-stroke: 0;
}
.marquee__track > span i {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--lime);
  margin: 0 30px;
  transform: rotate(45deg);
  -webkit-text-stroke: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Section chrome ---------- */
.section {
  padding-block: clamp(76px, 12vh, 150px);
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 7vh, 84px);
}
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.sec-label::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--lime);
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 8.4vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.sec-title .out {
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
.sec-lead {
  max-width: 40ch;
  color: var(--ink-2);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
  padding-bottom: 8px;
}
.sec-lead em {
  font-style: normal;
  color: var(--ink);
}

/* ---------- Work list ---------- */
.work-list {
  border-top: 1px solid var(--line);
}
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(280px, 440px) 44px;
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  padding-block: clamp(34px, 5vw, 62px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.5s;
}
.work-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--row-tint, rgba(255, 255, 255, 0.035)));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.work-row:hover::before { opacity: 1; }
.work-row > * { position: relative; }
.work-row__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  align-self: start;
  padding-top: 10px;
}
.work-row__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.work-row__title .en {
  font-family: var(--font-pixel);
  font-size: clamp(8px, 0.72vw, 10px);
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  transform: translateY(-0.6em);
}
.work-row__desc {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.85;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  transition: color 0.3s, border-color 0.3s;
}
.work-row:hover .tags li {
  color: var(--ink-2);
  border-color: var(--line-strong);
}
.work-row__media {
  position: relative;
  height: clamp(240px, 30vw, 340px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone {
  position: relative;
  width: clamp(124px, 12vw, 168px);
  aspect-ratio: 9 / 19.2;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #111;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9);
  transition: transform 0.8s var(--ease);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone--back {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-28%, -46%) rotate(7deg) scale(0.92);
  opacity: 0.7;
  filter: brightness(0.72);
}
.phone--front {
  transform: translate(-72%, -50%) rotate(-5deg);
  z-index: 2;
}
.work-row:hover .phone--front {
  transform: translate(-72%, -52%) rotate(-3deg) scale(1.03);
}
.work-row:hover .phone--back {
  transform: translate(-12%, -46%) rotate(9deg) scale(0.94);
}
.work-row__arrow {
  justify-self: end;
  font-size: 20px;
  color: var(--ink-dim);
  transition: transform 0.45s var(--ease), color 0.45s;
}
.work-row:hover .work-row__arrow {
  color: var(--lime);
  transform: translate(4px, -4px);
}

/* Work row: still frame (film) */
.work-row__still {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(-2.5deg);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.9);
  transition: transform 0.8s var(--ease), border-color 0.4s;
}
.work-row__still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-row:hover .work-row__still {
  transform: rotate(0deg) scale(1.02);
  border-color: rgba(255, 255, 255, 0.32);
}

/* ---------- Film ---------- */
.film-section {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.film-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.film-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #101012;
  min-height: 200px;
}
.film-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s;
  filter: none;
}
.film-card:hover img {
  transform: scale(1.045);
  filter: brightness(1.03);
}
.film-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}
.film-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(16px, 2vw, 26px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.film-card__index {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--lime);
  display: block;
  margin-bottom: 8px;
}
.film-card__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 400;
  line-height: 1.05;
}
.film-card__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(242, 237, 225, 0.7);
  margin-top: 8px;
  text-transform: uppercase;
}
.film-card__play {
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.film-card__play svg { width: 10px; height: 10px; fill: var(--ink); }
.film-card:hover .film-card__play {
  background: var(--lime);
  border-color: var(--lime);
  transform: scale(1.08);
}
.film-card:hover .film-card__play svg { fill: #0a0a0a; }
.film-card--feature {
  grid-column: 1 / 9;
  grid-row: 1 / 3;
  aspect-ratio: 16 / 10;
}
.film-card--a { grid-column: 9 / 13; grid-row: 1; aspect-ratio: 16 / 9; }
.film-card--b { grid-column: 9 / 13; grid-row: 2; aspect-ratio: 16 / 9; }
.film-card--wide {
  grid-column: 1 / 13;
  aspect-ratio: 21 / 8;
}
.film-card .play-big {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  transition: background 0.4s, transform 0.5s var(--ease);
}
.film-card:hover .play-big {
  background: rgba(201, 242, 77, 0.92);
  transform: translate(-50%, -50%) scale(1.06);
}
.film-card .play-big svg { width: 14px; height: 14px; fill: var(--ink); }
.film-card:hover .play-big svg { fill: #0a0a0a; }

/* ---------- Photos ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.8vw, 26px);
}
.photo {
  position: relative;
  border: 0;
  padding: 0;
  text-align: left;
  background: none;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.photo__media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
  filter: none;
}
.photo:hover img {
  transform: scale(1.04);
  filter: saturate(1.02);
}
.photo__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.photo__cap b {
  font-weight: 400;
  color: var(--ink-2);
}
.photo--1 { grid-column: 1 / 8; }
.photo--2 { grid-column: 8 / 13; margin-top: clamp(30px, 7vw, 110px); }
.photo--3 { grid-column: 1 / 6; }
.photo--4 { grid-column: 6 / 13; margin-top: clamp(-60px, -4vw, -20px); }
.photo--1 img { aspect-ratio: 4 / 3; }
.photo--2 img { aspect-ratio: 4 / 5; }
.photo--3 img { aspect-ratio: 4 / 5; }
.photo--4 img { aspect-ratio: 4 / 3; }
.photo__media::after {
  content: '＋';
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #0a0a0a;
  background: var(--lime);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.photo:hover .photo__media::after {
  opacity: 1;
  transform: scale(1);
}

/* ---------- About strip ---------- */
.about-strip {
  background: var(--ink);
  color: #0a0a0a;
  padding-block: clamp(64px, 10vh, 120px);
  position: relative;
  overflow: hidden;
}
.about-strip .sec-label { color: #5a564c; }
.about-strip .sec-label::before { background: #0a0a0a; }
.about-strip__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.about-strip__statement {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.about-strip__statement .hl {
  position: relative;
  display: inline-block;
}
.about-strip__statement .hl::after {
  content: '';
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.02em;
  height: 0.18em;
  background: var(--lime);
  z-index: -1;
}
.about-strip__body {
  margin-top: 28px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.9;
  color: #4a463e;
}
.about-strip__body + .about-strip__body { margin-top: 14px; }
.about-strip__side {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.18);
}
.stat b {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1;
}
.stat span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #6b665b;
  text-transform: uppercase;
}
.about-strip__link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  border-bottom: 1px solid #0a0a0a;
  padding-bottom: 4px;
  align-self: flex-start;
}
.about-strip__link:hover { gap: 16px; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding-block: clamp(80px, 13vh, 160px) 0;
  overflow: hidden;
}
.contact__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 7vh, 80px);
}
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 138px);
  line-height: 0.86;
  letter-spacing: -0.01em;
}
.contact__title .out {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 237, 225, 0.5);
}
.contact__note {
  max-width: 30ch;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.85;
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 48px);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 10px;
  transition: color 0.4s, border-color 0.4s;
}
.contact__mail:hover {
  color: var(--lime);
  border-color: var(--lime);
}
.contact__mail svg { width: 20px; height: 20px; }
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.contact__links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.contact__links a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.contact__foot {
  margin-top: clamp(60px, 10vh, 130px);
  border-top: 1px solid var(--line);
  padding-block: 26px 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.contact__foot a:hover { color: var(--lime); }
.contact__bigmark {
  position: absolute;
  right: -2vw;
  bottom: -6vw;
  width: 34vw;
  min-width: 240px;
  color: rgba(242, 237, 225, 0.035);
  pointer-events: none;
}

/* ---------- Footer (project pages) ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 28px;
}
.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.site-foot a:hover { color: var(--lime); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal-img.is-in { clip-path: inset(0 0 0 0); }

/* =========================================================
   Project pages
   ========================================================= */
.project-hero {
  background:
    radial-gradient(
      70% 80% at 78% 28%,
      color-mix(in srgb, var(--accent-pop, transparent) 16%, transparent),
      transparent 62%
    ),
    var(--accent, var(--pink));
  color: var(--accent-ink, #0a0a0a);
  padding: 128px var(--pad) clamp(40px, 6vw, 70px);
  position: relative;
  overflow: hidden;
}
.project-hero .wrap { padding-inline: 0; }
.project-hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: clamp(40px, 8vh, 90px);
}
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.backlink:hover { opacity: 1; }
.project-hero__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9.4vw, 160px);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.project-hero__en {
  font-family: var(--font-pixel);
  font-size: clamp(9px, 1vw, 12px);
  letter-spacing: 0.34em;
  margin-top: 18px;
  opacity: 0.6;
  text-transform: uppercase;
}
.project-hero__lead {
  max-width: 44ch;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.75;
  margin-top: clamp(26px, 4vw, 44px);
  color: color-mix(in srgb, var(--accent-ink, #0a0a0a) 82%, transparent);
}
.project-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(34px, 5vw, 64px);
}
.project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 30px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--accent-ink, #0a0a0a) 22%, transparent);
}
.project-meta div { display: flex; flex-direction: column; gap: 4px; }
.project-meta dt {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}
.project-meta dd { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; }
.project-hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 360px;
}
.project-hero__media .phone {
  width: clamp(180px, 20vw, 280px);
  border-color: color-mix(in srgb, var(--accent-ink, #0a0a0a) 30%, transparent);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
  transform: rotate(3deg);
}
.project-hero__media .phone--main { z-index: 2; }
.project-hero__media .phone--ghost {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-92%) rotate(-6deg) scale(0.9);
  opacity: 0.85;
  z-index: 1;
}
.project-marquee {
  background: var(--accent, var(--pink));
  color: var(--accent-ink, #0a0a0a);
  border-block: 1px solid color-mix(in srgb, var(--accent-ink, #0a0a0a) 18%, transparent);
}
.project-marquee .marquee__track > span {
  -webkit-text-stroke-color: color-mix(in srgb, var(--accent-ink, #0a0a0a) 45%, transparent);
}
.project-marquee .marquee__track > span em { color: var(--accent-ink, #0a0a0a); }
.project-marquee .marquee__track > span i { background: var(--accent-ink, #0a0a0a); }

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(28px, 6vw, 100px);
  padding-block: clamp(70px, 11vh, 130px);
}
.project-intro__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.project-intro__text {
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.project-intro__text p + p { margin-top: 1.2em; color: var(--ink-2); font-size: 0.68em; line-height: 1.9; max-width: 56ch; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature {
  padding: clamp(24px, 3vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.4s;
}
.feature:hover { background: rgba(255, 255, 255, 0.025); }
.feature__ico {
  width: 34px;
  height: 34px;
  color: var(--accent-pop, var(--accent, var(--lime)));
}
.feature h3 {
  font-size: 17px;
  letter-spacing: 0.02em;
  margin-top: auto;
}
.feature p {
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.8;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 1.8vw, 26px);
  max-width: 960px;
  margin-inline: auto;
  padding-block: clamp(40px, 7vh, 80px) clamp(70px, 10vh, 120px);
}
.gallery figure { margin: 0; min-width: 0; }
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1434;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.4s, transform 0.7s var(--ease);
}
.gallery figure:hover img {
  border-color: rgba(236, 230, 216, 0.28);
  transform: translateY(-4px);
}
.gallery figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.gallery .g-1,
.gallery .g-2,
.gallery .g-3,
.gallery .g-4 { grid-column: auto; margin-top: 0; }
.gallery .g-4 img { width: 100%; }
.project-cta {
  max-width: 960px;
  margin: 0 auto clamp(60px, 10vh, 110px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.quote-band {
  padding-block: clamp(60px, 10vh, 110px);
  border-block: 1px solid var(--line);
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 62px);
  line-height: 1.25;
  max-width: 22ch;
  margin-inline: auto;
  letter-spacing: 0.01em;
}
.quote-band cite {
  display: block;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.next-project {
  display: block;
  padding-block: clamp(60px, 10vh, 110px);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.next-project__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.next-project__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.9;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: color 0.4s;
}
.next-project:hover .next-project__title { color: var(--lime); }
.next-project__title span { transition: transform 0.5s var(--ease); }
.next-project:hover .next-project__title span { transform: translateX(12px); }

/* ---------- Film page ---------- */
.film-page-hero {
  padding: 140px var(--pad) clamp(50px, 8vh, 90px);
  border-bottom: 1px solid var(--line);
}
.film-page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 14vw, 210px);
  line-height: 0.84;
}
.film-page-hero__title .out,
.about-hero__title .out {
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
.film-page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.film-list {
  display: grid;
  gap: clamp(40px, 6vw, 90px);
  padding-block: clamp(60px, 9vh, 110px);
}
.film-item {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: clamp(22px, 4vw, 60px);
  align-items: center;
}
.film-item:nth-child(even) { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); }
.film-item:nth-child(even) .film-item__media { order: 2; }
.film-item__media {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 9;
  background: #101012;
}
.film-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.film-item:hover .film-item__media img { transform: scale(1.04); }
.film-item__index {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--lime);
}
.film-item__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1;
  margin-top: 14px;
}
.film-item__desc {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.85;
  max-width: 36ch;
}
.film-item__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
}
.film-item__link:hover { color: var(--lime); border-color: var(--lime); }
.film-note {
  margin-top: 30px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  line-height: 2;
}

/* ---------- About page ---------- */
.about-hero {
  padding: 150px var(--pad) clamp(60px, 9vh, 100px);
}
.about-hero__title {
  font-family: var(--font-display);
  font-size: clamp(60px, 13vw, 200px);
  line-height: 0.85;
}
.about-hero__lead {
  max-width: 50ch;
  margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.8;
  color: var(--ink-2);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(30px, 6vw, 90px);
  border-top: 1px solid var(--line);
  padding-block: clamp(50px, 8vh, 90px);
}
.about-grid h2 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.about-copy p {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 62ch;
}
.about-copy p + p { margin-top: 1.4em; }
.about-copy strong { color: var(--ink); font-weight: 500; }
.cap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 34px;
}
.cap-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.cap-list li span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.timeline {
  display: flex;
  flex-direction: column;
}
.timeline li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.timeline b {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 400;
}
.timeline span {
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.timeline i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10500;
  background: rgba(4, 4, 5, 0.96);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s, visibility 0.45s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.lightbox__cap {
  position: absolute;
  left: 50%;
  bottom: 3vh;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s;
}
.lightbox__close:hover { background: var(--lime); color: #0a0a0a; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: background 0.3s, color 0.3s;
}
.lightbox__nav:hover { background: var(--ink); color: var(--bg); }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 10600;
  background: var(--ink);
  color: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 12px 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* =========================================================
   OUTSIDE components
   ========================================================= */

/* ---------- Games ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.game-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color 0.45s, transform 0.7s var(--ease);
}
.game-card:hover {
  border-color: var(--line-strong);
}
.game-card__media {
  position: relative;
  overflow: hidden;
}
.game-card__media img {
  transition: transform 1.2s var(--ease), filter 0.7s;
}
.game-card:hover .game-card__media img {
  transform: scale(1.035);
}

/* Featured game — key art + editorial panel */
.game-card--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  min-height: clamp(460px, 42vw, 600px);
  border-color: rgba(236, 230, 216, 0.2);
}
.game-card__art {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: #10201c;
}
.game-card__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  filter: none;
  transition: transform 1.4s var(--ease);
}
.game-card--feature:hover .game-card__art img {
  transform: scale(1.035);
}
.game-card__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 62%, rgba(12, 12, 14, 0.55) 100%),
    linear-gradient(0deg, rgba(6, 7, 8, 0.42), transparent 32%);
  pointer-events: none;
}
.game-card__panel {
  padding: clamp(26px, 3.4vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(47, 167, 155, 0.14), transparent 62%),
    var(--bg-2);
}
.game-card__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--acid);
  text-transform: uppercase;
}
.game-card__status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
  animation: pulse 2s infinite;
}
.game-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 88px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px 18px;
}
.game-card__title span {
  font-family: var(--font-pixel);
  font-size: clamp(9px, 0.86vw, 12px);
  letter-spacing: 0.28em;
  color: var(--ink-2);
}
.game-card__desc {
  max-width: 50ch;
  color: var(--ink-2);
  font-size: clamp(13.5px, 1.08vw, 16px);
  line-height: 1.85;
}
.game-card__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}
.game-card__foot .tags {
  margin-top: 0;
}
.game-card__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
}
.game-card__more span {
  transition: transform 0.45s var(--ease);
}
.game-card:hover .game-card__more span {
  transform: translate(4px, -4px);
}

/* App covers built from real in-app screenshots */
.game-card__art--apps {
  background: #141018;
}
.game-card__art--sailing {
  background:
    radial-gradient(70% 78% at 50% 38%, rgba(244, 201, 216, 0.26), transparent 72%),
    linear-gradient(145deg, #2b1b29 0%, #151018 72%);
}
.game-card__art--meow {
  background:
    radial-gradient(66% 76% at 50% 36%, rgba(138, 108, 255, 0.28), transparent 72%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 30px
    ),
    #0c0a14;
}
.game-card__art--apps::after {
  background:
    linear-gradient(90deg, transparent 68%, rgba(12, 12, 14, 0.48) 100%),
    radial-gradient(120% 100% at 50% 50%, transparent 54%, rgba(6, 7, 8, 0.34) 100%);
}
.game-card__art--apps .game-card__shot {
  position: absolute;
  inset: auto;
  top: 50%;
  width: auto;
  height: clamp(240px, 34vw, 470px);
  aspect-ratio: 660 / 1434;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(12px, 1.4vw, 22px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  filter: none;
  transition: transform 1s var(--ease);
}
.game-card__art--apps .game-card__shot--back {
  left: 56%;
  transform: translate(-20%, -47%) rotate(7deg);
  opacity: 0.92;
}
.game-card__art--apps .game-card__shot--front {
  left: 44%;
  z-index: 1;
  transform: translate(-80%, -52%) rotate(-5deg);
}
.game-card--feature:hover .game-card__art--apps .game-card__shot--back {
  transform: translate(-16%, -46%) rotate(9deg);
}
.game-card--feature:hover .game-card__art--apps .game-card__shot--front {
  transform: translate(-80%, -53%) rotate(-4deg) scale(1.015);
}

/* App cards */
.game-card--app {
  display: flex;
  flex-direction: column;
}
.game-card--app .game-card__media {
  height: clamp(250px, 24vw, 330px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(244, 201, 216, 0.16), transparent 70%),
    #101013;
}
.game-card--app[href$="meow-smash"] .game-card__media {
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(138, 108, 255, 0.2), transparent 70%),
    #101013;
}
.game-card--app .game-card__media .phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(108px, 9.2vw, 136px);
}
.game-card--app .game-card__media .phone--back {
  transform: translate(-18%, -48%) rotate(8deg) scale(0.94);
  opacity: 0.68;
}
.game-card--app .game-card__media .phone--front {
  transform: translate(-82%, -50%) rotate(-5deg);
}
.game-card:hover .game-card__media .phone--front {
  transform: translate(-82%, -52%) rotate(-3deg) scale(1.03);
}
.game-card:hover .game-card__media .phone--back {
  transform: translate(-8%, -48%) rotate(10deg) scale(0.96);
}
.game-card--app .game-card__body {
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.game-card--app .game-card__kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.game-card--app .game-card__title {
  font-size: clamp(30px, 3.1vw, 44px);
  gap: 12px;
}
.game-card--app .game-card__desc {
  font-size: 13.5px;
  color: var(--ink-2);
}
.game-card--app .game-card__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
}
.game-card--app .tags {
  gap: 6px;
}
.game-card--app .tags li {
  padding: 5px 9px;
  font-size: 8px;
}

/* Poster cards — a big piece of art instead of a screenshot */
.game-card--poster {
  display: flex;
  flex-direction: column;
}
.game-card--poster .game-card__art {
  height: clamp(240px, 25vw, 360px);
  min-height: 0;
  background: #0b0d10;
}
.game-card--poster .game-card__art img {
  object-position: 50% 50%;
  filter: saturate(1.02) contrast(1.04);
}
.game-card--poster .game-card__art::after {
  background:
    linear-gradient(0deg, rgba(6, 7, 8, 0.72), transparent 52%),
    linear-gradient(90deg, rgba(6, 7, 8, 0.28), transparent 40%);
}
.game-card--poster .game-card__body {
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.game-card--poster .game-card__kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--acid);
  text-transform: uppercase;
}
.game-card--poster .game-card__title {
  font-size: clamp(30px, 3.1vw, 44px);
  gap: 12px;
}
.game-card--poster .game-card__desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.85;
}
.game-card--poster .game-card__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
}
.game-card--poster .game-card__foot .game-card__more { margin-left: auto; }
.game-card--poster .tags {
  gap: 6px;
}
.game-card--poster .tags li {
  padding: 5px 9px;
  font-size: 8px;
}

/* Meow Smash gets its mascot instead of stock imagery */
.game-card--meow .game-card__art--meow {
  background:
    radial-gradient(58% 76% at 50% 34%, rgba(138, 108, 255, 0.24), transparent 72%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 30px
    ),
    #0c0a14;
}
.game-card__art .game-card__mascot {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: clamp(150px, 16vw, 210px);
  height: auto;
  object-fit: contain;
  object-position: 50% 50%;
  transform: translate(-50%, -50%);
  filter: saturate(1.02) drop-shadow(0 20px 44px rgba(0, 0, 0, 0.55));
  transition: transform 0.85s var(--ease);
}
.game-card:hover .game-card__art .game-card__mascot {
  transform: translate(-50%, -53%) scale(1.05);
}

/* ---------- Motion / signal cards ---------- */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.signal-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: clamp(330px, 34vw, 440px);
  padding: clamp(24px, 3.2vw, 46px);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(47, 167, 155, 0.16), transparent 48%),
    var(--bg-2);
  transition: border-color 0.45s, transform 0.7s var(--ease);
}
.signal-card:nth-child(2) {
  background:
    linear-gradient(155deg, rgba(180, 85, 45, 0.2), transparent 48%),
    var(--bg-2);
}
.signal-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.signal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.55;
  pointer-events: none;
}
.signal-card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.04) contrast(1.02);
  transition: opacity 0.6s, transform 1.2s var(--ease);
}
.signal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    0deg,
    rgba(6, 7, 8, 0.86) 0%,
    rgba(6, 7, 8, 0.24) 58%,
    rgba(6, 7, 8, 0.46) 100%
  );
  pointer-events: none;
}
.signal-card:hover .signal-card__bg {
  opacity: 0.74;
  transform: scale(1.03);
}
.signal-card__num {
  position: absolute;
  top: clamp(10px, 1.6vw, 24px);
  right: clamp(14px, 2.4vw, 34px);
  font-family: var(--font-display);
  font-size: clamp(86px, 11vw, 156px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 225, 0.16);
  pointer-events: none;
}
.signal-card__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.signal-card__label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
}
.signal-card:nth-child(2) .signal-card__label::before {
  background: var(--rust);
}
.signal-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 0.96;
  margin-top: auto;
  padding-top: 42px;
}
.signal-card__title em {
  font-style: normal;
  color: rgba(236, 230, 216, 0.5);
  -webkit-text-stroke: 0;
}
.signal-card__desc {
  margin-top: 14px;
  max-width: 36ch;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.8;
}
.signal-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.signal-card__cta span:last-child {
  color: var(--acid);
  transition: transform 0.45s var(--ease);
}
.signal-card:hover .signal-card__cta span:last-child {
  transform: translate(4px, -4px);
}

/* ---------- Photography ---------- */
.photo-grid--mono .photo img {
  filter: none;
}
.photo-grid--mono .photo:hover img {
  filter: brightness(1.03);
}

/* ---------- Contact big word ---------- */
.contact__bigword {
  position: absolute;
  right: -0.06em;
  bottom: -0.24em;
  font-family: var(--font-display);
  font-size: clamp(180px, 27vw, 420px);
  line-height: 0.7;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 225, 0.07);
  pointer-events: none;
  user-select: none;
}

/* ---------- Rust Tide project ---------- */
.project-hero--art {
  background: #0a100e;
  color: var(--bone);
  isolation: isolate;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.project-hero--art .rust-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.project-hero--art .rust-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: none;
}
.project-hero--art::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 9, 8, 0.94) 0%, rgba(5, 9, 8, 0.72) 32%, rgba(5, 9, 8, 0.12) 66%, rgba(5, 9, 8, 0.42) 100%),
    linear-gradient(0deg, #0a100e 0%, rgba(10, 16, 14, 0.55) 26%, transparent 62%);
  pointer-events: none;
}
.project-hero--art .project-hero__bar {
  color: rgba(236, 230, 216, 0.7);
  margin-bottom: clamp(30px, 6vh, 70px);
}
.project-hero--art .project-hero__title {
  font-size: clamp(62px, 11vw, 180px);
  line-height: 0.82;
}
.project-hero--art .project-hero__title .out {
  color: transparent;
  -webkit-text-stroke: 2px rgba(236, 230, 216, 0.48);
}
.project-hero--art .project-hero__en {
  color: var(--acid);
  opacity: 0.9;
}
.project-hero--art .project-hero__lead {
  color: var(--ink-2);
  max-width: 42ch;
}
.project-hero--art .project-meta {
  border-top-color: rgba(236, 230, 216, 0.18);
}
.project-hero--art .project-meta dt {
  color: var(--ink-dim);
}
.project-marquee--rust {
  background: #0e1714;
  color: var(--bone);
  border-color: rgba(236, 230, 216, 0.14);
}
.project-marquee--rust .marquee__track > span {
  -webkit-text-stroke-color: rgba(236, 230, 216, 0.38);
}
.project-marquee--rust .marquee__track > span em {
  color: var(--acid);
}
.project-marquee--rust .marquee__track > span i {
  background: var(--rust);
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.8vw, 26px);
  padding-block: clamp(40px, 7vh, 80px) clamp(60px, 9vh, 110px);
}
.game-gallery figure {
  margin: 0;
}
.game-gallery img {
  width: 100%;
  border: 1px solid var(--line);
}
.game-gallery figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.game-gallery .gg-a {
  grid-column: 1 / 7;
}
.game-gallery .gg-b {
  grid-column: 7 / 13;
}
.game-gallery .gg-a img,
.game-gallery .gg-b img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.game-gallery .gg-a img {
  object-position: 50% 0%;
}
.game-gallery .gg-c {
  grid-column: 1 / 13;
  margin-top: clamp(20px, 4vw, 50px);
}
.game-gallery .gg-c img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Motion page */
.signal-grid--page {
  padding-block: clamp(50px, 8vh, 90px) clamp(30px, 5vh, 60px);
}
.signal-card--page {
  min-height: clamp(400px, 44vw, 560px);
}
.motion-note {
  padding-block: 0 clamp(60px, 9vh, 110px);
}

/* ---------- AI video page ---------- */
.film-page-hero--video {
  overflow: hidden;
}
.film-page-hero__meta b {
  font-weight: 400;
  color: var(--acid);
}
.video-strip {
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, 0.8vw, 12px);
  height: clamp(104px, 14.5vw, 212px);
  margin-top: clamp(32px, 5vw, 62px);
  padding-bottom: 14px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
}
.video-strip__item {
  flex: 0 0 auto;
  height: calc(100% - 14px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.video-strip__item:nth-child(even) {
  transform: translateY(14px);
}
.video-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(1.02) contrast(1.02);
  transition: opacity 0.6s, filter 0.6s, transform 1.2s var(--ease);
}
.video-strip__item:hover img {
  opacity: 1;
  filter: saturate(1.04) contrast(1.03) brightness(1.02);
  transform: scale(1.04);
}

.video-module {
  padding-block: clamp(52px, 8.5vh, 104px);
  border-bottom: 1px solid var(--line);
}
.video-module:first-of-type {
  padding-top: clamp(38px, 6vh, 76px);
}
.video-module__head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1.08fr) minmax(280px, 0.66fr);
  gap: clamp(20px, 4vw, 62px);
  align-items: start;
  margin-bottom: clamp(26px, 4vw, 52px);
}
.video-module__no {
  font-family: var(--font-display);
  font-size: clamp(76px, 10vw, 148px);
  line-height: 0.74;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 225, 0.18);
  pointer-events: none;
  user-select: none;
}
.video-module__name {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.26em;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 94px);
  line-height: 0.94;
  letter-spacing: -0.01em;
}
.video-module--demo .video-module__name {
  font-size: clamp(34px, 4.4vw, 66px);
}
.video-module__name .out {
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
.video-module__en {
  margin-top: 20px;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
}
.video-module__side {
  max-width: 42ch;
  padding-top: clamp(4px, 1.8vw, 24px);
}
.video-module__side > p:first-child {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
}
.video-module__count {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.video-module__count::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: var(--acid);
  vertical-align: 1px;
}
#demo-reel .video-module__count::before {
  background: var(--rust);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(var(--video-cols, 4), minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
.video-grid__noscript {
  color: var(--ink-dim);
  font-size: 13px;
}
.video-card {
  min-width: 0;
}
.video-card__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0c;
  transition: border-color 0.4s;
}
.video-card:hover .video-card__frame {
  border-color: var(--line-strong);
}
.video-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.5s;
}
.video-card:hover .video-card__cover {
  transform: scale(1.035);
}
.video-card__open {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  text-align: left;
  cursor: pointer;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0) 38%,
    rgba(0, 0, 0, 0.68) 100%
  );
}
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(48px, 4vw, 62px);
  height: clamp(48px, 4vw, 62px);
  border: 1px solid rgba(242, 237, 225, 0.55);
  border-radius: 50%;
  background: rgba(7, 7, 8, 0.28);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transform: translate(-50%, -50%);
  transition: background 0.35s, border-color 0.35s, color 0.35s,
    transform 0.55s var(--ease);
}
.video-card__play svg {
  width: 15px;
  height: 15px;
  margin-left: 3px;
}
.video-card__open:hover .video-card__play {
  color: #0a0a0a;
  background: var(--acid);
  border-color: var(--acid);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-card__index {
  position: absolute;
  top: 13px;
  left: 13px;
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}
.video-card__dur {
  position: absolute;
  bottom: 13px;
  left: 13px;
  padding: 4px 7px;
  border: 1px solid rgba(242, 237, 225, 0.22);
  background: rgba(7, 7, 8, 0.74);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.video-card__hint {
  position: absolute;
  right: 13px;
  bottom: 13px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(242, 237, 225, 0.68);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s, transform 0.35s;
}
.video-card:hover .video-card__hint {
  opacity: 1;
  transform: none;
}
.video-card__meta {
  padding-top: 13px;
}
.video-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.video-card__subtitle {
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-dim);
  font-size: 11.5px;
  line-height: 1.6;
}
.video-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.video-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  transition: color 0.3s;
}
.video-card__link:hover {
  color: var(--acid);
}
.video-card__link span {
  transition: transform 0.35s var(--ease);
}
.video-card__link:hover span {
  transform: translate(2px, -2px);
}
.video-card__open:focus-visible {
  outline-offset: -3px;
}
.video-note {
  padding-top: clamp(26px, 4vh, 44px);
}

/* ---------- Video modal ---------- */
body.modal-open {
  overflow: hidden;
}
.video-modal {
  width: min(94vw, 384px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.72);
}
.video-modal::backdrop {
  background: rgba(4, 4, 5, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.video-modal__panel {
  display: flex;
  flex-direction: column;
}
.video-modal__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.video-modal__heading {
  min-width: 0;
}
.video-modal__label {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}
.video-modal__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.video-modal__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}
.video-modal__link {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.video-modal__link:hover {
  color: var(--acid);
}
.video-modal__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.video-modal__close:hover {
  color: #0a0a0a;
  background: var(--acid);
  border-color: var(--acid);
}
.video-modal__player {
  display: grid;
  place-items: center;
  height: 672px;
  background: #000;
}
.video-modal__player iframe {
  display: block;
  width: min(324px, 100%);
  height: 100%;
  border: 0;
}
.video-modal__note {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: center;
}
.video-modal__note > span {
  display: block;
}
.video-modal__fallback {
  margin-top: 6px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.video-modal__retry {
  padding: 0;
  border: 0;
  background: none;
  color: var(--acid);
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.video-modal__retry:hover {
  color: var(--ink);
}

/* =========================================================
   Side quest / services / team / channels / photography
   ========================================================= */

/* ---------- Home photography link ---------- */
.photo-grid--ghost .photo img {
  aspect-ratio: 4 / 3;
  filter: none;
}

/* Home preview: every frame the same size, no mosaic offsets */
.photo-grid--uniform {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.photo-grid--uniform .photo {
  grid-column: auto;
  margin-top: 0;
}
.photo-grid--uniform .photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: none;
}
.photo-grid--uniform .photo:hover img {
  filter: brightness(1.04);
}
@media (max-width: 900px) {
  .photo-grid--uniform {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.photo-grid--ghost .photo:hover img {
  filter: brightness(1.04);
}

.ghost-link {
  margin-top: clamp(26px, 3.4vw, 44px);
  text-align: right;
}
.ghost-link a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  text-transform: uppercase;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}
.ghost-link a:hover {
  gap: 16px;
  color: var(--acid);
  border-color: var(--acid);
}

/* ---------- Side quest ---------- */
.sidequest {
  padding-bottom: clamp(22px, 4vw, 48px);
}
.sidequest__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  overflow: hidden;
  padding: clamp(20px, 2.8vw, 30px) clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.sidequest__inner::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--acid);
  box-shadow: 0 0 24px rgba(198, 255, 61, 0.45);
}
.sidequest__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--acid);
  text-transform: uppercase;
}
.sidequest__title {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.8vw, 38px);
  font-weight: 400;
  line-height: 1;
}
.sidequest__title span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.sidequest__desc {
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-dim);
}
.sidequest__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
  transition: color 0.3s, gap 0.3s;
}
.sidequest__link:hover {
  gap: 16px;
  color: var(--acid);
}

/* ---------- Services ---------- */
.services {
  border-top: 1px solid var(--line);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.service-card {
  display: flex;
  flex-direction: column;
  min-height: clamp(220px, 24vw, 300px);
  padding: clamp(22px, 2.8vw, 36px);
  background: var(--bg);
}
.service-card__num {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--acid);
}
.service-card__title {
  margin-top: auto;
  padding-top: 44px;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}
.service-card__title span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(198, 255, 61, 0.62);
  text-transform: uppercase;
}
.service-card__desc {
  margin-top: 18px;
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}
.service-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  margin-top: clamp(16px, 2vw, 26px);
  padding: clamp(24px, 3.2vw, 42px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(198, 255, 61, 0.09), transparent 58%),
    var(--bg-2);
}
.service-cta__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--acid);
  text-transform: uppercase;
}
.service-cta p {
  margin-top: 10px;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}
.service-cta__link {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1;
  transition: color 0.3s;
}
.service-cta__link small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}
.service-cta__link:hover { color: var(--acid); }
.service-cta__note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}

/* ---------- Team ---------- */
.team-card {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 42px);
  align-items: start;
}
.team-card__portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}
.team-card__role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--acid);
  text-transform: uppercase;
}
.team-card__name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
}
.team-card__bio {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}
.team-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 22px;
}
.team-card__links a {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  text-transform: uppercase;
  transition: color 0.3s, border-color 0.3s;
}
.team-card__links a:hover {
  color: var(--acid);
  border-color: var(--acid);
}

/* ---------- Channels ---------- */
.channel-list {
  border-top: 1px solid var(--line);
}
.channel-list__row {
  display: grid;
  grid-template-columns: minmax(100px, 0.24fr) minmax(0, 0.76fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.channel-list__platform {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.channel-list__names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.channel-list__names a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  transition: color 0.3s;
}
.channel-list__names a span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-dim);
}
.channel-list__names a:hover { color: var(--acid); }
.channel-list__names a:hover span { color: var(--acid); }

/* ---------- Contact channels ---------- */
.contact__channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  background: var(--line);
}
.contact__channels a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--bg);
  transition: background 0.3s, color 0.3s;
}
.contact__channels span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.contact__channels b {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.contact__channels a:hover { background: var(--bg-2); color: var(--acid); }
.contact__channels a:hover b { color: var(--acid); }

/* ---------- Photography page ---------- */
/* Layout after the old Sea Photo Show gallery: black ground, serif album
   headings, a counts row, and two equal columns of full images. */
body[data-page="photography"] { background: #000; }

.ph {
  --ph-serif: Georgia, 'Times New Roman', 'Songti SC', 'STSong', 'SimSun',
    'Noto Serif SC', serif;
}
.ph .wrap { max-width: 1440px; }

.ph-top {
  padding-top: clamp(76px, 12vh, 148px);
  padding-bottom: clamp(34px, 5vw, 56px);
}
.ph-top__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.ph-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.ph-title {
  margin-top: 18px;
  font-family: var(--ph-serif);
  font-size: clamp(40px, 5.4vw, 74px);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.ph-title span {
  display: block;
  margin-top: 12px;
  font-size: 0.36em;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}
.ph-counts {
  display: flex;
  gap: clamp(26px, 4vw, 56px);
  margin-top: clamp(26px, 3.4vw, 42px);
}
.ph-counts b {
  font-family: var(--ph-serif);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 400;
  color: var(--ink);
}
.ph-counts span {
  margin-left: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(242, 237, 225, 0.38);
  text-transform: uppercase;
}
.ph-back {
  flex: none;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.ph-back:hover { color: var(--acid); border-color: var(--acid); }
.ph-collection { padding-bottom: clamp(56px, 9vw, 104px); }
.ph-collection__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  margin-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.ph-collection__head h2 {
  font-family: var(--ph-serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.ph-collection__head span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.ph-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
}
.ph-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #050505;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.ph-item .photo__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.ph-item img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  filter: none;
  transition: filter 0.5s, transform 0.8s var(--ease);
}
.ph-item:hover img { filter: brightness(1.04); transform: none; }
.ph-item .photo__media::after { content: none; }
.ph-item__hover {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 14px 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.ph-item:hover .ph-item__hover,
.ph-item:focus-visible .ph-item__hover { opacity: 1; }
.ph-item__hover b {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.ph-item__hover span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
}
.ph-end {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-top: clamp(20px, 3vw, 30px);
  padding-bottom: clamp(72px, 11vh, 130px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.ph-end a { color: var(--ink-2); }
.ph-end a:hover { color: var(--acid); }

@media (max-width: 900px) {
  .sidequest__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .sidequest__desc {
    grid-column: 1 / 2;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 0;
  }
  .service-card__title {
    padding-top: 26px;
  }
  .service-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .service-cta__link {
    white-space: normal;
  }
  .contact__channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .ph-grid {
    grid-template-columns: 1fr;
    gap: clamp(16px, 4vw, 24px);
  }
  .ph-top__row {
    flex-direction: column;
    gap: 20px;
  }
  .ph-back {
    order: -1;
  }
  .ph-collection__head {
    flex-direction: column;
    gap: 8px;
  }
  .team-card {
    grid-template-columns: 1fr;
  }
  .team-card__portrait {
    max-width: 220px;
  }
  .channel-list__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .sidequest__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .sidequest__link {
    margin-top: 4px;
  }
  .contact__channels {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .head-time { display: block; }
  .work-row {
    grid-template-columns: 44px minmax(0, 1fr) minmax(230px, 340px) 32px;
  }
  .hero__title { font-size: clamp(70px, 13vw, 190px); }
}
@media (max-width: 980px) {
  .sec-head { grid-template-columns: 1fr; gap: 22px; }
  .sec-lead { padding-bottom: 0; }
  .film-card--feature { grid-column: 1 / 13; grid-row: auto; aspect-ratio: 16 / 10; }
  .film-card--a { grid-column: 1 / 7; grid-row: auto; }
  .film-card--b { grid-column: 7 / 13; grid-row: auto; }
  .about-strip__grid { grid-template-columns: 1fr; }
  .about-strip__side { max-width: 460px; }
  .project-hero__grid { grid-template-columns: 1fr; }
  .project-hero__media { min-height: 300px; justify-content: flex-start; margin-top: 20px; }
  .project-intro { grid-template-columns: 1fr; gap: 24px; }
  .film-item { grid-template-columns: 1fr; gap: 22px; }
  .film-item:nth-child(even) .film-item__media { order: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-head.is-scrolled { background: rgba(7, 7, 8, 0.86); }
  .hero { padding-top: 112px; }
  .hero__media img { object-position: 70% 50%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(7, 7, 8, 0.9) 0%, rgba(7, 7, 8, 0.6) 45%, rgba(7, 7, 8, 0.3) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 8, 0.5) 40%, transparent 70%);
  }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .work-row {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 34px;
  }
  .work-row__num { padding-top: 0; }
  .work-row__media { height: 260px; justify-content: flex-start; padding-left: 20px; }
  .phone { width: 128px; }
  .work-row__arrow { position: absolute; right: 0; top: 34px; }
  .work-row__title .en { transform: translateY(-0.4em); }
  .photo--1, .photo--2, .photo--3, .photo--4 { grid-column: 1 / 13; margin-top: 0; }
  .photo--1 img { aspect-ratio: 4 / 3; }
  .photo--2 img, .photo--3 img { aspect-ratio: 4 / 3; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 460px;
  }
  .gallery .g-1, .gallery .g-2, .gallery .g-3, .gallery .g-4 {
    grid-column: auto; margin-top: 0;
  }
  .project-cta { max-width: 460px; }
  .timeline li { grid-template-columns: 84px minmax(0, 1fr); }
  .timeline i { grid-column: 2; }
  .contact__bigmark { display: none; }
  .lightbox__nav { display: none; }
}
@media (max-width: 560px) {
  :root { --pad: 20px; }
  .brand__cn { font-size: 12px; }
  .brand__en { display: none; }
  .head-time { display: none; }
  .hero__title { font-size: clamp(64px, 21vw, 110px); }
  .hero__tag { font-size: 16px; }
  .hero__en { font-size: 8px; letter-spacing: 0.24em; }
  .hero__facts { gap: 6px 18px; font-size: 9px; }
  .hero__facts li:nth-child(3) { display: none; }
  .sec-title { font-size: clamp(44px, 15vw, 72px); }
  .contact__title { font-size: clamp(46px, 15vw, 74px); }
  .about-strip__statement { font-size: clamp(28px, 8.6vw, 44px); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .project-hero { padding-top: 110px; }
  .project-hero__title { font-size: clamp(58px, 20vw, 100px); }
  .project-meta { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .project-hero__media .phone { width: 170px; }
  .cap-list { grid-template-columns: 1fr; }
  .contact__mail { font-size: clamp(17px, 5.2vw, 26px); word-break: break-all; }
  .film-card--a, .film-card--b { grid-column: 1 / 13; }
  .film-card--wide { aspect-ratio: 16 / 9; }
  .hero__actions .btn { padding: 13px 20px; font-size: 10px; }
}

/* ---------- New components: responsive ---------- */
@media (max-width: 980px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-card--feature { grid-template-columns: 1fr; min-height: 0; }
  .game-card__art { min-height: clamp(300px, 56vw, 460px); }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-card { min-height: 360px; }
  .game-gallery .gg-a,
  .game-gallery .gg-b {
    grid-column: 1 / 13;
    margin-top: 0;
  }
  .game-gallery .gg-a img,
  .game-gallery .gg-b img { aspect-ratio: 1 / 1; }
  .game-gallery .gg-c img { aspect-ratio: 16 / 9; }
}
@media (max-width: 820px) {
  .hero--outside .hero__media img { object-position: 66% 54%; }
  .hero--outside .hero__media::after {
    background:
      linear-gradient(90deg, rgba(6, 7, 8, 0.9) 0%, rgba(6, 7, 8, 0.62) 46%, rgba(6, 7, 8, 0.28) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(6, 7, 8, 0.5) 38%, transparent 68%);
  }
  .project-hero--art {
    min-height: 82svh;
    padding-top: 112px;
    padding-bottom: 50px;
  }
  .project-hero--art .rust-bg img { object-position: 56% 40%; }
  .project-hero--art .project-hero__bar { margin-bottom: 26px; }
}
@media (max-width: 560px) {
  .hero__title--en { font-size: clamp(66px, 20.2vw, 96px); }
  .hero__title--en .out { -webkit-text-stroke-width: 1.4px; }
  .brand__cn { font-size: 17px; letter-spacing: 0.12em; }
  .game-card--feature { min-height: 470px; }
  .game-card__overlay { padding: 20px; gap: 10px; }
  .game-card__title { font-size: clamp(36px, 11vw, 52px); }
  .game-card__title span { font-size: 8px; }
  .game-card__desc { font-size: 12.5px; line-height: 1.7; }
  .game-card__foot .tags { display: none; }
  .game-card--app .game-card__media { height: 230px; }
  .game-card--app .game-card__media .phone { width: 104px; }
  .signal-card { min-height: 340px; padding: 22px; }
  .signal-card__num { font-size: 82px; }
  .signal-card__title { padding-top: 34px; }
  .project-hero--art { min-height: 78svh; }
  .project-hero--art .project-hero__title { font-size: clamp(52px, 17vw, 84px); }
  .project-hero--art .project-meta { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .contact__bigword { font-size: 62vw; }
}

/* ---------- AI video page: responsive ---------- */
@media (max-width: 1180px) {
  .video-module__head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .video-module__side {
    grid-column: 2;
    max-width: 60ch;
    padding-top: 0;
  }
}
@media (max-width: 980px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .video-module__no { font-size: clamp(68px, 12vw, 110px); }
  .video-strip { height: clamp(96px, 18vw, 160px); }
}
@media (max-width: 820px) {
  .film-page-hero--video .film-page-hero__title .out {
    display: block;
  }
}
@media (max-width: 560px) {
  .film-page-hero--video .film-page-hero__title { font-size: clamp(52px, 16.8vw, 82px); }
  .video-strip {
    height: 104px;
    gap: 6px;
    margin-top: 26px;
  }
  .video-strip__item { height: calc(100% - 10px); }
  .video-strip__item:nth-child(even) { transform: translateY(10px); }
  .video-module { padding-block: 44px; }
  .video-module__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .video-module__no { display: none; }
  .video-module__side { grid-column: auto; }
  .video-module__name { font-size: clamp(38px, 12vw, 58px); }
  .video-module--demo .video-module__name { font-size: clamp(32px, 9.6vw, 42px); }
  .video-grid { gap: 10px; }
  .video-card__title { font-size: 14px; }
  .video-card__subtitle { font-size: 10.5px; }
  .video-card__foot { font-size: 8px; letter-spacing: 0.06em; }
  .video-card__index,
  .video-card__dur { top: 9px; left: 9px; }
  .video-card__dur {
    top: auto;
    bottom: 9px;
    padding: 3px 5px;
    font-size: 8px;
  }
  .video-card__hint { display: none; }
  .video-card__play { width: 42px; height: 42px; }
  .video-card__play svg { width: 12px; height: 12px; }
  .video-modal__head { padding: 12px 13px; }
  .video-modal__title { font-size: 14px; }
  .video-modal__link { font-size: 8px; }
  .video-modal__close { width: 30px; height: 30px; }
  .video-modal__player { height: 672px; }
  .video-modal__note { font-size: 7.5px; letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  .signal-card:hover,
  .game-card--feature:hover .game-card__bg { transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .hero__title .ch { transform: none; opacity: 1; }
  .hero__tag, .hero__en, .hero__actions, .hero__bottom { opacity: 1; transform: none; }
}
