/* ===== Variables ===== */
:root {
  --bg: #000000;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --accent: #e8667a;
  --accent-light: #ff8a9b;
  --accent-dark: #c44d5f;
  --glow-pink: rgba(232, 102, 122, 0.35);
  --glow-orange: rgba(255, 140, 80, 0.25);
  --glow-purple: rgba(180, 80, 160, 0.2);
  --font-sans: 'Noto Sans TC', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --section-pad: clamp(3rem, 8vw, 7rem);
  --content-max: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Film Grain ===== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ===== Glow Effects ===== */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.glow-br {
  width: 400px; height: 400px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, var(--glow-orange), transparent 70%);
}
.glow-br-lg {
  width: 600px; height: 500px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle, var(--glow-pink), var(--glow-purple), transparent 70%);
}
.glow-bl {
  width: 350px; height: 350px;
  bottom: 0; left: -80px;
  background: radial-gradient(circle, var(--glow-orange), transparent 70%);
}
.glow-tr {
  width: 300px; height: 300px;
  top: 10%; right: 5%;
  background: radial-gradient(circle, var(--glow-pink), transparent 70%);
}
.glow-center {
  width: 500px; height: 500px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow-orange), var(--glow-pink), transparent 70%);
  opacity: 0.5;
}

/* ===== Sparkle ===== */
.sparkle {
  width: 24px; height: 24px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.sparkle::before, .sparkle::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 1px;
}
.sparkle::before {
  width: 2px; height: 100%;
  left: 50%; top: 0;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--accent);
}
.sparkle::after {
  width: 100%; height: 2px;
  top: 50%; left: 0;
  transform: translateY(-50%);
  box-shadow: 0 0 8px var(--accent);
}
.sparkle-sm { width: 18px; height: 18px; }
.sparkle-tl { position: absolute; top: 2rem; left: 2rem; }

/* ===== Dots Row ===== */
.dots-row {
  display: flex;
  gap: 8px;
  position: absolute;
  bottom: 2rem;
  right: var(--section-pad);
}
.dots-row span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(1.5rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(0, 0, 0, 0.9); }
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Sections ===== */
.section {
  position: relative;
  padding: var(--section-pad) clamp(1.5rem, 4vw, 3rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.section-header { margin-bottom: 3rem; }
.section-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
}
.section-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
}
.section-rule {
  width: 100%;
  height: 1px;
  background: var(--accent-dark);
  margin-top: 1.5rem;
}
.accent-title { color: var(--accent); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(6rem, 15vh, 10rem) clamp(1.5rem, 4vw, 3rem) 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}
.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-name-line { display: block; }
.hero-rule {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 1.5rem 0 1rem;
}
.hero-role {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.hero-footer {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}
.hero-footer p {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1.8;
}

/* ===== About / Timeline ===== */
.about { overflow: hidden; }
.timeline {
  position: relative;
  margin: 4rem 0 3rem;
  padding: 2rem 0;
}
.timeline-line {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}
.timeline-items {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
}
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}
.timeline-year {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  order: -1;
}
.timeline-dot {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 10px var(--glow-pink);
}
.timeline-dot::before {
  content: '✦';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: var(--bg);
}
.timeline-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.about-quote {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 2;
  border: none;
  max-width: 500px;
}
.about-quote .accent { color: var(--accent); }

/* ===== Advantages ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 4rem;
}
.advantage-card h3 {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.advantage-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Works ===== */
.works { padding-top: calc(var(--section-pad) + 4rem); }
.work-category { margin-bottom: 5rem; }
.work-category-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.work-category-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
}
.work-category-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
}
.work-poster-link,
.featured-main-link {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}
.work-poster-link { margin-bottom: 1.2rem; }
.featured-main-link { margin-bottom: 1rem; }
.work-poster-link:hover .work-poster,
.featured-main-link:hover .featured-main-img {
  transform: scale(1.03);
}
.work-poster-link:focus-visible,
.featured-main-link:focus-visible,
.watch-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Watch Button */
.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: var(--accent);
  padding: 0.55rem 0.55rem 0.55rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.watch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 102, 122, 0.25);
}
.watch-btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}
.work-grid {
  display: grid;
  gap: 2rem;
}
.work-grid-3 { grid-template-columns: repeat(3, 1fr); }
.work-card {
  text-align: center;
}
.work-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0;
  transition: transform 0.4s ease;
}
.work-poster-link + .work-role,
.work-poster-link ~ .work-role { margin-top: 0; }
.work-role {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.work-role-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.work-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
}
.work-card-wide {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.work-card-wide .work-desc { text-align: left; }
.work-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}
.work-card-wide:hover .work-thumb { transform: scale(1.02); }
.work-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.work-subtitle {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Featured Director Works */
.featured-work {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}
.featured-work-reverse { direction: rtl; }
.featured-work-reverse > * { direction: ltr; }
.featured-main-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.featured-sub-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.featured-sub-imgs img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.featured-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.featured-meta {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.featured-label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.featured-work-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.featured-work-text .watch-btn,
.mv-text .watch-btn {
  margin-top: 1.5rem;
}

/* MV Layout */
.mv-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.mv-images {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}
.mv-images img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.mv-text .work-desc { text-align: left; }

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.photo-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  transition: transform 0.4s;
}
.photo-item:hover img { transform: scale(1.03); }
.photo-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Design Grid */
.design-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.design-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.design-item img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}
.design-item p {
  font-size: 0.8rem;
  color: var(--accent);
}

/* ===== Philosophy ===== */
.philosophy-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.philosophy-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 2.5rem;
}
.philosophy-blocks { display: flex; flex-direction: column; gap: 0; }
.philosophy-block {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(232, 102, 122, 0.3);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
}
.philosophy-block h3 {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}
.philosophy-block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.9;
}
.stamp-frame {
  position: relative;
  padding: 12px;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 40px var(--glow-pink);
}
.stamp-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  pointer-events: none;
}
.stamp-frame img {
  width: 100%;
  border-radius: 2px;
}

/* ===== Brands ===== */
.brands { text-align: left; overflow: hidden; }
.brands-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 1rem;
  line-height: 1.8;
}
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3rem;
  margin: 3rem 0;
  padding: 2rem 0;
}
.brands-grid img {
  height: 50px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.3s;
}
.brands-grid img:hover {
  opacity: 1;
  transform: scale(1.05);
}
.brands-footer {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ===== Contact ===== */
.contact { overflow: hidden; padding-bottom: 6rem; }
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contact-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.contact-title span { display: block; }
.contact-title .accent { color: var(--accent); }
.contact-role {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 2rem;
}
.contact-subtitle {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}
.contact-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.contact-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.wave-bg {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(80, 30, 30, 0.4), transparent);
  pointer-events: none;
}
.wave-bg::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8px,
    rgba(180, 60, 60, 0.15) 8px,
    rgba(180, 60, 60, 0.15) 10px
  );
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-services {
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}
.footer-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.footer-email a {
  color: var(--accent);
  transition: opacity 0.2s;
}
.footer-email a:hover { opacity: 0.8; }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .timeline-items { grid-template-columns: repeat(3, 1fr); }
  .timeline-line { display: none; }
  .timeline-item { margin-bottom: 1.5rem; }
  .advantages-grid { grid-template-columns: 1fr; gap: 2rem; }
  .work-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .featured-work,
  .featured-work-reverse,
  .mv-layout,
  .philosophy-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .featured-work-reverse { direction: ltr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    backdrop-filter: blur(20px);
  }
  .nav-links.open { right: 0; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-name { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-footer { flex-direction: column; gap: 1rem; }
  .timeline-items { grid-template-columns: repeat(2, 1fr); }
  .work-grid-3 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .design-grid { grid-template-columns: 1fr; }
  .philosophy-block { grid-template-columns: 1fr; }
  .philosophy-block h3 { text-align: left; }
  .mv-images { grid-template-columns: 1fr; }
  .brands-grid img { height: 36px; }
  .dots-row { display: none; }
}

@media (max-width: 480px) {
  .section { min-height: auto; }
  .hero { min-height: 100svh; }
}
