:root {
  --black: #0a0a0a;
  --black-soft: #111111;
  --white: #f4f4ef;
  --muted: #8b8b85;
  --line: rgba(244, 244, 239, 0.16);
  --yellow: #ffdd00;
  --page-padding: clamp(20px, 3.1vw, 60px);
  color-scheme: dark;
  font-family: Helvetica, Arial, sans-serif;
  font-synthesis: none;
  background: var(--black);
  color: var(--white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--yellow) var(--black); }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--black); color: var(--white); letter-spacing: -0.025em; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.footer-links a, .scroll-link { transition: color 180ms ease; }
.footer-links a:hover, .scroll-link:hover { color: var(--yellow); }

.language-switch {
  display: flex; align-items: center; gap: 4px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px; background: rgba(10, 10, 10, 0.56); color: rgba(255, 255, 255, 0.38);
  font-size: 10px; font-weight: 700; letter-spacing: 0; backdrop-filter: blur(10px);
}
.language-button { padding: 0; border: 0; background: transparent; color: rgba(255, 255, 255, 0.42); cursor: pointer; }
.language-button.is-active { color: var(--yellow); }

.hero {
  position: relative; display: flex; min-height: 100svh; flex-direction: column; justify-content: flex-end;
  padding: 150px var(--page-padding) max(54px, 7vh); border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 221, 0, 0.115), transparent 30%),
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px), var(--black);
  background-size: auto, 64px 64px, 64px 64px, auto;
}

.hero-top {
  position: absolute; top: max(24px, env(safe-area-inset-top)); right: var(--page-padding); left: var(--page-padding);
  display: flex; align-items: center; justify-content: space-between;
}
.hero-logo { display: block; width: clamp(84px, 6.5vw, 118px); }
.hero-logo img { display: block; width: 100%; height: auto; }

.eyebrow { margin: 0; color: var(--yellow); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 {
  max-width: 1180px; margin: clamp(28px, 5vh, 72px) 0 0; font-size: clamp(56px, 7.2vw, 124px);
  font-weight: 400; letter-spacing: -0.072em; line-height: 0.94;
}
.hero h1 span, .work-intro h2 span { display: block; }
.hero h1 span:last-child { color: var(--yellow); }

.hero-bottom {
  display: grid; margin-top: clamp(48px, 8vh, 110px); grid-template-columns: minmax(280px, 620px) auto;
  align-items: end; justify-content: space-between; gap: 40px;
}
.hero-copy { margin: 0; color: #b1b1aa; font-size: clamp(18px, 1.7vw, 28px); line-height: 1.18; }
.scroll-link {
  display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 9px;
  color: var(--white); font-size: 14px; letter-spacing: -0.01em;
}

.work-section { padding: clamp(110px, 15vw, 250px) var(--page-padding) clamp(120px, 14vw, 220px); }
.work-intro {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.45fr); align-items: end;
  column-gap: 8vw;
}
.work-intro .eyebrow { grid-column: 1 / -1; }
.work-intro h2 {
  margin: 34px 0 0; font-size: clamp(54px, 6.8vw, 118px); font-weight: 400;
  letter-spacing: -0.068em; line-height: 0.88;
}
.work-intro h2 span:last-child { color: var(--yellow); }
.work-intro > p:last-child {
  max-width: 460px; margin: 0 0 8px; color: var(--muted); font-size: clamp(17px, 1.3vw, 23px); line-height: 1.25;
}

.category-bar {
  position: sticky; z-index: 20; top: 0; display: flex; margin-top: clamp(80px, 11vw, 170px);
  overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.92); scrollbar-width: none; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.category-bar::-webkit-scrollbar, .portfolio-grid::-webkit-scrollbar { display: none; }
.category-button {
  flex: 1 1 50%; padding: 25px 24px 24px; border: 0; background: transparent; color: var(--white);
  cursor: pointer; font-size: clamp(19px, 2vw, 32px); font-weight: 400; letter-spacing: -0.055em; text-align: center;
  transition: color 180ms ease;
}
.category-button:hover, .category-button.is-active { color: var(--yellow); }
.category-button.is-active::after { display: block; width: 46px; height: 2px; margin: 13px auto 0; background: currentColor; content: ""; }

.portfolio-grid {
  display: grid; margin-top: clamp(34px, 4vw, 70px); grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 28px);
}
.portfolio-card {
  position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(18px, 2vw, 34px); background: var(--black-soft); color: var(--white); cursor: pointer; isolation: isolate;
}
.portfolio-grid[data-view="video"] .portfolio-card { aspect-ratio: 9 / 14; }
.portfolio-grid[data-view="design"] .portfolio-card { aspect-ratio: 1 / 1; }
.portfolio-card::after {
  position: absolute; z-index: 2; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.84));
  content: ""; pointer-events: none;
}
.card-art {
  position: absolute; inset: 0; overflow: hidden;
  transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 400ms ease;
}
.portfolio-card:hover .card-art, .portfolio-card:focus-visible .card-art { transform: scale(1.035); filter: saturate(1.12); }
.portfolio-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.card-art::before, .card-art::after { position: absolute; content: ""; }

.poster-amber {
  background: linear-gradient(150deg, rgba(0,0,0,.12), rgba(0,0,0,.78)), radial-gradient(circle at 28% 24%, #ffe04a, transparent 28%), linear-gradient(130deg, #542406, #cf6f12 52%, #190c08);
}
.poster-amber::before { width: 62%; height: 48%; top: 17%; left: 18%; border: 2px solid rgba(255,255,255,.55); border-radius: 49% 49% 8% 8%; transform: rotate(-8deg); }
.poster-cyan { background: linear-gradient(165deg, rgba(255,255,255,.32), transparent 28%), linear-gradient(135deg, #9de8e2 0 24%, #207c84 24% 46%, #f8d5bb 46% 67%, #171f26 67%); }
.poster-cyan::before { inset: 9% 14% 22% 26%; border: 2px solid rgba(255,255,255,.55); transform: skewY(-10deg); }
.poster-blue { background: radial-gradient(circle at 78% 27%, rgba(255,221,0,.88), transparent 8%), linear-gradient(180deg, #7ad8f4 0 45%, #28785c 45% 62%, #12251b 62%); }
.poster-blue::before { right: -10%; bottom: -6%; width: 85%; height: 50%; border-radius: 50% 0 0; background: rgba(0,0,0,.32); transform: rotate(-10deg); }
.poster-red { background: linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(#ffdd00 0 18%, #b0172d 18% 67%, #26080c 67%); background-size: 11% 100%, 100% 100%; }
.poster-red::before { inset: 26% 17% 25%; border: 3px solid var(--white); border-radius: 50%; }
.poster-silver { background: radial-gradient(circle at 52% 44%, rgba(255,255,255,.62), transparent 18%), conic-gradient(from 220deg at 50% 45%, #171717, #999, #292929, #e1e1da, #151515); }
.poster-silver::before { width: 44%; height: 44%; top: 24%; left: 28%; border: 1px solid rgba(255,255,255,.78); border-radius: 50%; box-shadow: 0 0 0 18px rgba(10,10,10,.5); }
.poster-green { background: linear-gradient(35deg, transparent 0 42%, rgba(255,221,0,.86) 42% 50%, transparent 50%), radial-gradient(circle at 25% 26%, #8cd454, transparent 30%), linear-gradient(140deg, #102818, #37793d 58%, #07100a); }
.poster-green::before { inset: 17% 22% 18%; border-left: 1px solid rgba(255,255,255,.58); border-right: 1px solid rgba(255,255,255,.58); transform: rotate(10deg); }
.poster-lime { background: linear-gradient(145deg, #d1ff51 0 54%, #151515 54%); }
.poster-lime::before { width: 64%; height: 64%; top: 11%; left: 18%; border: 2px solid #0a0a0a; border-radius: 50%; }
.poster-yellow { background: linear-gradient(90deg, rgba(10,10,10,.16) 1px, transparent 1px), linear-gradient(rgba(10,10,10,.16) 1px, transparent 1px), var(--yellow); background-size: 12.5% 100%, 100% 12.5%, auto; }
.poster-yellow::before { inset: 14%; border: 4px solid var(--black); transform: rotate(-5deg); }
.poster-violet { background: radial-gradient(circle at 74% 23%, #ffdd00 0 8%, transparent 8.5%), radial-gradient(circle at 35% 45%, #a168ff 0 22%, transparent 22.5%), linear-gradient(155deg, #24113b, #09131c); }
.poster-violet::before { right: -8%; bottom: 8%; width: 70%; height: 24%; border: 2px solid rgba(255,255,255,.72); transform: rotate(-22deg); }

.card-ghost-word {
  position: absolute; z-index: 1; top: 11%; left: 7%; max-width: 86%; color: rgba(255,255,255,.86);
  font-size: clamp(46px, 6vw, 112px); font-weight: 700; letter-spacing: -0.085em; line-height: .78;
  mix-blend-mode: overlay; text-transform: uppercase;
}
.portfolio-grid[data-view="design"] .card-ghost-word { color: var(--black); mix-blend-mode: normal; }
.card-play {
  position: absolute; z-index: 4; top: 22px; right: 22px; display: grid; width: 50px; height: 50px; place-items: center;
  border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(10,10,10,.28); font-size: 16px;
  opacity: 0; transform: scale(.8); transition: opacity 200ms ease, transform 200ms ease, background 200ms ease;
  backdrop-filter: blur(8px);
}
.portfolio-card:hover .card-play, .portfolio-card:focus-visible .card-play { opacity: 1; transform: scale(1); }
.portfolio-card:hover .card-play { background: var(--yellow); color: var(--black); }
.card-meta {
  position: absolute; z-index: 4; right: clamp(18px, 2vw, 32px); bottom: clamp(18px, 2vw, 32px); left: clamp(18px, 2vw, 32px);
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
}
.card-meta small { max-width: 42%; color: rgba(255,255,255,.68); font-size: 10px; font-weight: 700; letter-spacing: .05em; line-height: 1.2; text-transform: uppercase; }
.card-meta strong { max-width: 62%; font-size: clamp(24px, 2.5vw, 46px); font-weight: 400; letter-spacing: -.065em; line-height: .92; text-align: right; }

.media-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: #000; color: var(--white); }
.media-dialog::backdrop { background: #000; }
.media-stage { position: relative; width: 100%; height: 100%; background: #000; }
.media-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.dialog-close {
  position: fixed; z-index: 5; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right));
  width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.46); border-radius: 50%; background: rgba(10,10,10,.46);
  color: #fff; cursor: pointer; backdrop-filter: blur(12px);
}
.dialog-close span { position: absolute; top: 25px; left: 14px; width: 22px; height: 1px; background: currentColor; }
.dialog-close span:first-child { transform: rotate(45deg); }
.dialog-close span:last-child { transform: rotate(-45deg); }
.dialog-caption {
  position: absolute; z-index: 3; right: clamp(22px, 4vw, 70px); bottom: max(24px, env(safe-area-inset-bottom)); left: clamp(22px, 4vw, 70px);
  display: flex; align-items: end; justify-content: space-between; gap: 24px; pointer-events: none;
}
.dialog-caption span { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.dialog-caption strong { max-width: 70%; font-size: clamp(34px, 6vw, 96px); font-weight: 400; letter-spacing: -.07em; line-height: .88; text-align: right; }

.design-preview { position: absolute; inset: 0; overflow: hidden; background: var(--yellow); color: var(--black); }
.design-preview::before {
  position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.12) 1px, transparent 1px), linear-gradient(rgba(10,10,10,.12) 1px, transparent 1px);
  background-size: 7.5vw 7.5vw; content: "";
}
.design-preview__index { position: absolute; top: 6vw; left: 6vw; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.design-preview__word { position: absolute; right: 5vw; bottom: 5vw; left: 5vw; font-size: clamp(80px, 20vw, 360px); font-weight: 700; letter-spacing: -.095em; line-height: .7; text-transform: uppercase; }
.design-preview__rule { position: absolute; top: 7vw; right: 7vw; width: 26vw; height: 1px; background: var(--black); transform: rotate(-24deg); transform-origin: right; }

.site-footer { overflow: hidden; border-top: 1px solid var(--line); background: var(--black); }
.footer-marquee { overflow: hidden; padding: clamp(36px, 5vw, 80px) 0; border-bottom: 1px solid var(--line); }
.footer-marquee > div {
  display: flex; width: max-content; align-items: center; gap: 5vw; animation: marquee 22s linear infinite;
  color: var(--white); font-size: clamp(52px, 6.5vw, 108px); font-weight: 700; letter-spacing: -.068em; line-height: .82; white-space: nowrap;
}
.footer-marquee b { color: var(--yellow); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }
.footer-main {
  display: grid; min-height: 360px; padding: clamp(56px, 7vw, 110px) var(--page-padding);
  grid-template-columns: 1fr 1.2fr; align-items: end; gap: 60px;
}
.footer-logo { display: block; width: clamp(180px, 18vw, 270px); }
.footer-logo img { display: block; width: 100%; height: auto; }
.footer-brand p { margin: 48px 0 0; color: var(--muted); font-size: 14px; letter-spacing: -.02em; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links a { color: #444; font-size: clamp(30px, 3vw, 52px); font-weight: 700; letter-spacing: -.06em; line-height: 1.18; }
.footer-legal { padding: 18px var(--page-padding) max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: #666; font-size: 12px; }
.footer-legal p { margin: 0; }

@media (max-width: 900px) {
  .work-intro { grid-template-columns: 1fr; }
  .work-intro > p:last-child { margin-top: 44px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --page-padding: 18px; }
  .hero-top { top: max(14px, env(safe-area-inset-top)); }
  .hero-logo { width: 78px; }
  .language-switch { padding: 5px 7px; font-size: 9px; }
  .hero { min-height: 100svh; padding-top: 118px; padding-bottom: max(28px, env(safe-area-inset-bottom)); background-size: auto, 40px 40px, 40px 40px, auto; }
  .hero h1 { margin-top: 28px; max-width: 350px; font-size: clamp(42px, 11.8vw, 58px); letter-spacing: -.068em; line-height: .97; }
  .hero-bottom { grid-template-columns: 1fr; gap: 38px; margin-top: 50px; }
  .hero-copy { max-width: 92%; font-size: 17px; line-height: 1.25; }
  .scroll-link { width: 100%; justify-content: space-between; }
  .work-section { padding-top: 100px; padding-right: 0; padding-bottom: 110px; padding-left: 0; }
  .work-intro { padding: 0 var(--page-padding); }
  .work-intro h2 { margin-top: 26px; max-width: 350px; font-size: clamp(44px, 12vw, 62px); line-height: .92; }
  .work-intro > p:last-child { max-width: 88%; margin-top: 36px; font-size: 17px; }
  .category-bar { top: 0; margin-top: 76px; padding-left: var(--page-padding); }
  .category-button { flex: 0 0 auto; padding: 20px 32px 18px 0; font-size: 20px; text-align: left; white-space: nowrap; }
  .category-button.is-active::after { width: 34px; margin: 10px 0 0; }
  .portfolio-grid { padding: 0 var(--page-padding); grid-template-columns: 1fr; gap: 16px; }
  .portfolio-grid[data-view="video"] {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 390px); grid-template-columns: none;
    overflow-x: auto; scroll-padding-left: var(--page-padding); scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .portfolio-grid[data-view="video"] .portfolio-card { max-height: 72svh; scroll-snap-align: start; }
  .portfolio-grid[data-view="design"] .portfolio-card { aspect-ratio: 1 / 1; }
  .card-play { top: 15px; right: 15px; width: 44px; height: 44px; opacity: 1; transform: none; }
  .card-meta { right: 18px; bottom: 18px; left: 18px; }
  .card-meta strong { font-size: clamp(28px, 8.5vw, 42px); }
  .card-ghost-word { font-size: 15vw; }
  .dialog-close { width: 46px; height: 46px; }
  .dialog-close span { top: 22px; left: 12px; width: 20px; }
  .dialog-caption { display: grid; gap: 8px; }
  .dialog-caption strong { max-width: 88%; font-size: 46px; text-align: left; }
  .footer-marquee { padding: 42px 0; }
  .footer-marquee > div { gap: 28px; font-size: 44px; }
  .footer-main { padding-top: 66px; padding-bottom: 72px; gap: 66px; }
  .footer-logo { width: 190px; }
  .footer-brand p { margin-top: 30px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-links a { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
