:root {
  --bg: #07080a;
  --paper: #101218;
  --ink: #efe8dc;
  --muted: #9b9386;
  --line: rgba(239, 232, 220, 0.12);
  --brass: #c4a574;
  --teal: #6aa8a2;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

body {
  overflow-x: hidden;
}

body.cinema-open .nav {
  opacity: 0;
  pointer-events: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>");
}

.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body.has-cursor {
    cursor: none;
  }
  body.has-cursor a,
  body.has-cursor button {
    cursor: none;
  }
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border: 1px solid var(--brass);
    border-radius: 50%;
    pointer-events: none;
    z-index: 80;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
  }
  .cursor.grow {
    width: 54px;
    height: 54px;
    background: rgba(196, 165, 116, 0.08);
  }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  mix-blend-mode: difference;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Syne, sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-cta span {
  border: 1px solid currentColor;
  padding: 2px 6px;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  padding: 0 8vw 10vh;
  overflow: visible;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: ken 28s var(--ease) infinite alternate;
  filter: saturate(0.86) contrast(1.08);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 10, 0.18) 0%, rgba(7, 8, 10, 0.18) 40%, rgba(7, 8, 10, 0.88) 100%),
    radial-gradient(ellipse at 70% 40%, transparent 20%, rgba(7, 8, 10, 0.45) 100%);
}

@keyframes ken {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.16) translate3d(-1.5%, 1%, 0);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  container-type: inline-size;
}

.kicker {
  color: var(--brass);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 .word {
  display: block;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 22cqi, 188px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-transform: lowercase;
}

.hero h1 .sub {
  display: block;
  margin-top: 8px;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d8cfc2;
}

.lede {
  margin-top: 28px;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 300;
  line-height: 1.7;
  color: #d7d0c5;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}

.btn.primary {
  background: var(--ink);
  color: #111;
  border-color: var(--ink);
}

.btn.ghost:hover,
.btn.primary:hover {
  transform: translateY(-2px);
}

.hero-meta {
  position: absolute;
  right: 8vw;
  bottom: 10vh;
  z-index: 2;
  display: grid;
  gap: 8px;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: slide 28s linear infinite;
  font-family: Syne, sans-serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee-track span::before {
  content: "✦";
  margin-right: 48px;
  color: var(--brass);
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.section-head {
  padding: 0 8vw 48px;
  max-width: 920px;
}

.section-head h2,
.contact h2 {
  font-family: Syne, sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
}

.section-head p:last-child {
  color: var(--muted);
  line-height: 1.8;
}

.work,
.services,
.contact {
  scroll-margin-top: 12px;
}

.work {
  padding: 96px 0 40px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  padding: 0 10px;
}

.shot {
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 52vh;
}

.shot.featured {
  grid-column: 1 / -1;
  min-height: 72vh;
}

.shot-open {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-align: left;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 52vh;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease), filter 0.6s;
  filter: saturate(0.92) contrast(1.05);
}

.shot.featured img {
  min-height: 72vh;
}

.shot:hover img {
  transform: scale(1.1);
}

.shot-overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.55));
}

.shot-index,
.cinema-index {
  font-family: Syne, sans-serif;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--brass);
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  border: 1px solid rgba(239, 232, 220, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  background: rgba(7, 8, 10, 0.28);
  transition: transform 0.4s var(--ease), background 0.3s;
}

.play i {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 3px;
}

.play em {
  position: absolute;
  bottom: -28px;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.shot:hover .play {
  transform: scale(1.08);
  background: rgba(196, 165, 116, 0.2);
}

.shot-copy p,
.cinema-meta p {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d6cfc4;
  margin-bottom: 6px;
}

.shot-copy h3,
.cinema-meta h3 {
  font-family: Syne, sans-serif;
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -0.03em;
}

.services {
  padding: 120px 0 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid article {
  background: var(--bg);
  padding: 48px 8vw 56px;
}

.service-grid article:nth-child(2) {
  padding-left: 40px;
  padding-right: 40px;
}

.service-grid span {
  color: var(--brass);
  font-family: Syne, sans-serif;
  letter-spacing: 0.16em;
}

.service-grid h3 {
  font-family: Syne, sans-serif;
  font-size: 28px;
  margin: 16px 0 14px;
}

.service-grid p {
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
}

.manifesto {
  padding: 80px 8vw 0;
  max-width: 980px;
}

.manifesto p {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.45;
  color: #e7dfd3;
}

.contact {
  padding: 140px 8vw 80px;
}

.mail {
  display: inline-block;
  margin-top: 20px;
  font-family: Syne, sans-serif;
  font-size: clamp(28px, 5vw, 64px);
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--brass);
}

.contact-lede,
.domain {
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

.domain {
  margin-top: 18px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 8vw 40px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

.cinema {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 6, 8, 0.96);
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.cinema[hidden] {
  display: none;
}

.cinema-stage {
  width: min(1120px, 100%);
}

.cinema-close {
  margin-bottom: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}

.cinema-frame {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.cinema-frame video,
.cinema-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinema-frame img {
  z-index: 1;
}

.cinema-frame video.is-on {
  z-index: 2;
}

.cinema-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 3;
}

.cinema-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brass);
}

.cinema-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: end;
  padding-top: 18px;
}

.cinema-len {
  font-family: Syne, sans-serif;
  letter-spacing: 0.16em;
  color: var(--brass);
}

@media (max-width: 900px) {
  .nav {
    padding: 16px 20px;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hero {
    padding: 18vh 6vw 8vh;
    place-items: end start;
  }
  .hero h1 .word {
    font-size: clamp(44px, 14cqi, 78px);
    letter-spacing: -0.04em;
  }
  .hero-meta {
    display: none;
  }
  .work-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .shot,
  .shot img,
  .shot.featured,
  .shot.featured img {
    min-height: 58vh;
  }
  .service-grid article,
  .service-grid article:nth-child(2) {
    padding: 36px 8vw;
  }
  .cinema {
    padding: 72px 16px 24px;
    align-items: start;
  }
  .cinema-meta {
    grid-template-columns: auto 1fr;
  }
  .cinema-len {
    grid-column: 2;
  }
  .foot {
    flex-direction: column;
  }
  .nav {
    mix-blend-mode: normal;
    background: linear-gradient(180deg, rgba(7, 8, 10, 0.7), transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-media img {
    transform: none;
  }
}
