/* =========================================================
   許軒豪 Howard Hsu — howard.taipei
   Dark cinematic theme · Noto Sans TC
   Inspired by defines.tw layout / interaction language
   ========================================================= */

/* ── Tokens ── */
:root {
  /* Dark palette */
  --bg:        #0A0A09;
  --bg-2:      #111110;
  --bg-3:      #1C1B18;
  --bg-4:      #252420;

  /* Light accent section */
  --lt-bg:     #F4F2EC;
  --lt-ink:    #0A0A09;
  --lt-ink-2:  rgba(10,10,9,0.68);
  --lt-mute:   rgba(10,10,9,0.42);
  --lt-hair:   rgba(10,10,9,0.10);

  /* Text on dark */
  --ink:       rgba(240,238,230,0.92);
  --ink-2:     rgba(240,238,230,0.68);
  --mute:      rgba(240,238,230,0.40);
  --mute-2:    rgba(240,238,230,0.24);
  --hair:      rgba(240,238,230,0.10);
  --hair-2:    rgba(240,238,230,0.06);

  --max:       1320px;
  --gutter:    clamp(24px, 4.8vw, 64px);
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in:   cubic-bezier(0.55, 0, 0.95, 0.45);

  /* 異想天開影像 品牌橘 */
  --brand:      #F0941A;
  --brand-dim:  rgba(240,148,26,0.18);
  --brand-mute: rgba(240,148,26,0.55);

  --font: "Noto Sans TC", "PingFang TC", "Hiragino Sans", -apple-system,
          BlinkMacSystemFont, system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p,dl,dt,dd,blockquote { margin: 0; }
::selection { background: var(--ink); color: var(--bg); }

/* ── Accessibility ── */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--lt-bg); color: var(--lt-ink);
  padding: 12px 18px; z-index: 200; font-size: 14px;
}
.skip:focus { left: 16px; top: 16px; }

/* ── Nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  color: var(--ink);
  transition: color .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10,10,9,0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease);
  pointer-events: none;
}
.nav.scrolled::before {
  background: rgba(10,10,9,0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.nav.scrolled { border-bottom-color: var(--hair-2); }

/* Nav inverts on light philosophy section */
.nav.on-light { color: var(--lt-ink); }
.nav.on-light::before { background: rgba(244,242,236,0.82); }
.nav.on-light.scrolled::before { background: rgba(244,242,236,0.88); }

.nav-inner {
  position: relative; z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  display: flex; align-items: baseline; gap: 10px;
  flex: 0 0 auto;
}
.logo-zh { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; }
.logo-en {
  font-size: 10.5px; font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.55;
}
.nav-links {
  flex: 1 1 auto;
  display: flex; justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 36px);
  font-size: 12.5px; font-weight: 400;
  letter-spacing: 0.06em;
}
.nav-links a {
  position: relative; padding: 4px 0;
  opacity: 0.7;
  transition: opacity .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .45s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav-cta {
  flex: 0 0 auto;
  font-size: 11.5px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--brand-mute);
  color: var(--brand);
  padding: 9px 18px;
  opacity: 0.8;
  transition: opacity .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.nav-cta:hover {
  opacity: 1;
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.nav.on-light .nav-cta {
  border-color: var(--lt-ink); color: var(--lt-ink);
}
.nav.on-light .nav-cta:hover {
  background: var(--lt-ink); color: var(--lt-bg);
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  max-height: 1080px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: rgba(240,238,230,0.92);
  background: var(--bg);
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
/* Ken Burns keyframes — 三種方向輪流，每張慢慢 zoom + pan */
@keyframes hero-kb-a {
  from { transform: scale(1.00) translate(0,      0);      }
  to   { transform: scale(1.08) translate(-1.2%, -0.6%);   }
}
@keyframes hero-kb-b {
  from { transform: scale(1.05) translate(0.8%,  0.4%);    }
  to   { transform: scale(1.00) translate(-0.8%, -0.4%);   }
}
@keyframes hero-kb-c {
  from { transform: scale(1.00) translate(-0.6%, 0);        }
  to   { transform: scale(1.07) translate(1.0%,  -0.5%);   }
}

/* Slideshow slides — set style="background-image:url(…)" on each .hero-slide
   z-index 由 JS 控制（默認 1，新進入的設 3，穩定的設 2），確保下一張壓在上面淡入，不會透出底色 */
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 28%;   /* 預設偏上，讓臉落在中上方 */
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0;
  transform: scale(1);
  transition: opacity 4.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
}
/* Ken Burns — 三張一組輪流方向 */
.hero-slide:nth-child(3n+1).active { animation: hero-kb-a 14s ease-in-out forwards; }
.hero-slide:nth-child(3n+2).active { animation: hero-kb-b 14s ease-in-out forwards; }
.hero-slide:nth-child(3n).active   { animation: hero-kb-c 14s ease-in-out forwards; }
/* Gradient vignette on top of photo */
.hero-bg-inner {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 75%, rgba(40,34,22,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(20,18,12,0.45) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(12,10,8,0.28) 0%, transparent 60%),
    linear-gradient(160deg, rgba(22,20,16,0.60) 0%, rgba(10,10,9,0.55) 50%, rgba(17,16,9,0.55) 100%);
}
/* Liquid glass scrim — frosted blur + bottom darkening */
.hero-glass {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
  backdrop-filter: blur(14px) brightness(0.74) saturate(110%);
  -webkit-backdrop-filter: blur(14px) brightness(0.74) saturate(110%);
  background:
    linear-gradient(to top,
      rgba(8,8,7,0.68) 0%,
      rgba(8,8,7,0.28) 18%,
      rgba(8,8,7,0.04) 36%,
      transparent 50%),
    linear-gradient(to right,
      rgba(8,8,7,0.10) 0%,
      transparent 50%);
  -webkit-mask-image: linear-gradient(to top, black 22%, rgba(0,0,0,0.45) 36%, transparent 48%);
  mask-image: linear-gradient(to top, black 22%, rgba(0,0,0,0.45) 36%, transparent 48%);
}
/* CSS film grain */
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

.hero-body {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) clamp(56px, 8vw, 100px);
  max-width: var(--max); width: 100%;
}
.hero-kicker {
  display: flex; align-items: center; gap: 16px;
  font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--mute);
  margin-bottom: clamp(24px, 4vw, 40px);
  overflow: hidden;
}
.kicker-line {
  display: inline-block; width: 28px; height: 1px;
  background: var(--brand); flex: 0 0 auto;
}
.hero-title {
  font-weight: 200;
  line-height: 0.92;
  margin-bottom: clamp(24px, 3.2vw, 40px);
}
.ht-zh {
  display: block;
  font-size: clamp(64px, 14vw, 200px);
  letter-spacing: -0.03em;
  color: rgba(240,238,230,0.95);
}
.ht-en {
  display: flex; align-items: baseline; gap: 0.28em;
  font-size: clamp(36px, 7.5vw, 110px);
  letter-spacing: -0.04em;
  color: rgba(240,238,230,0.55);
}
.hero-title .r {
  display: inline-block;
  opacity: 0;
  transform: translateY(30%);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.is-loaded .hero-title .r { opacity: 1; transform: translateY(0); }
.is-loaded .ht-zh .r:nth-child(1) { transition-delay: .04s; }
.is-loaded .ht-zh .r:nth-child(2) { transition-delay: .12s; }
.is-loaded .ht-zh .r:nth-child(3) { transition-delay: .20s; }
.is-loaded .ht-en .r:nth-child(1) { transition-delay: .34s; }
.is-loaded .ht-en .r:nth-child(2) { transition-delay: .44s; }

.hero-desc {
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 300;
  color: var(--ink-2);
  max-width: 28ch;
  line-height: 1.55;
  letter-spacing: 0.005em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s .6s var(--ease), transform .8s .6s var(--ease);
}
.is-loaded .hero-desc { opacity: 1; transform: translateY(0); }

.hero-foot {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding: 20px var(--gutter);
  font-size: 11.5px; color: var(--mute);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--hair-2);
  max-width: 100%;
  opacity: 0;
  transition: opacity .8s .8s var(--ease);
}
.is-loaded .hero-foot { opacity: 1; }
.hero-foot .sep { color: var(--mute-2); }

.hero-scroll {
  position: absolute;
  right: var(--gutter); bottom: clamp(28px, 5vw, 52px);
  z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  opacity: 0;
  transition: opacity .8s 1.1s var(--ease);
}
.is-loaded .hero-scroll { opacity: 1; }
.scroll-label {
  font-size: 9px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--mute-2);
  writing-mode: vertical-rl;
}
.scroll-bar {
  width: 1px; height: 52px;
  background: var(--hair); overflow: hidden;
}
.scroll-bar-inner {
  width: 100%; height: 100%;
  background: var(--brand);
  transform: translateY(-100%);
  animation: scrollTick 2.2s 1.4s var(--ease) infinite;
}
@keyframes scrollTick {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ── Light philosophy section ── */
.section-light {
  background: var(--lt-bg);
  color: var(--lt-ink);
}
.section-philo {
  padding: clamp(100px, 14vw, 180px) var(--gutter);
  text-align: center;
}
.philo-inner {
  max-width: 780px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.philo-main {
  font-size: clamp(32px, 5.5vw, 72px);
  font-weight: 200;
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: var(--lt-ink);
}
.philo-en {
  font-size: 11px; letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--lt-mute);
  font-weight: 400;
}
.philo-body {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--lt-ink-2);
  max-width: 44ch;
  line-height: 1.75;
  letter-spacing: 0.01em;
}
.btn-line {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 400;
  border: 1px solid currentColor;
  padding: 13px 24px;
  transition: background .35s var(--ease), color .35s var(--ease), gap .35s var(--ease);
}
.section-light .btn-line { color: var(--lt-ink); }
.section-light .btn-line:hover {
  background: var(--lt-ink); color: var(--lt-bg); gap: 18px;
}
.section-dark .btn-line { color: var(--ink); opacity: 0.8; }
.section-dark .btn-line:hover {
  background: var(--ink); color: var(--bg); opacity: 1; gap: 18px;
}

/* ── Dark sections ── */
.section-dark { background: var(--bg); }

.section {
  padding: clamp(80px, 11vw, 148px) var(--gutter);
  border-top: 1px solid var(--hair-2);
}
.section-light + .section-dark, .section-dark + .section-light {
  border-top: 0;
}

/* ── Layout split ── */
.layout-split {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split-label {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 10px;
}
.sec-num {
  font-size: 11px; letter-spacing: 0.3em;
  font-weight: 400; color: var(--brand-mute);
}
.sec-title {
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500; letter-spacing: 0.08em;
  color: var(--ink); line-height: 1.4;
}
.split-body {
  display: flex; flex-direction: column; gap: 0;
}
.section-light .sec-num { color: var(--lt-mute); }
.section-light .sec-title { color: var(--lt-ink); }

/* ── Reveal animations ── */
.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .85s var(--delay, 0s) var(--ease),
    transform .85s var(--delay, 0s) var(--ease);
}
.reveal-up.in {
  opacity: 1; transform: translateY(0);
}

/* ── Highlight emphasis (replaces bold in body copy) ── */
.hl {
  background: linear-gradient(transparent 56%, rgba(240,148,26,0.32) 56%);
  font-weight: inherit;
  font-style: normal;
}
.section-light .hl {
  background: linear-gradient(transparent 56%, rgba(240,148,26,0.42) 56%);
}

/* ── Body text helpers ── */
.body-lede {
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 300; line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.5em;
  letter-spacing: 0.005em;
}
.body-lede em { font-style: normal; font-weight: 500; color: rgba(240,238,230,0.98); }
.body-text {
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--ink-2); line-height: 1.8;
  margin-bottom: 1em;
}
.body-text:last-child { margin-bottom: 0; }
.body-text strong { font-weight: 500; color: var(--ink); }
.body-intro {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--ink-2); margin-bottom: clamp(24px, 3.6vw, 44px);
  max-width: 54ch;
}
.body-foot {
  margin-top: clamp(24px, 3vw, 36px);
  font-size: 13.5px; color: var(--mute);
}
.tl {
  color: inherit;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 1px;
  transition: border-color .3s var(--ease), opacity .3s var(--ease);
}
.tl:hover { border-bottom-color: currentColor; opacity: 0.85; }
.section-light .tl { border-bottom-color: var(--lt-hair); }
.section-light .tl:hover { border-bottom-color: var(--lt-ink); }

/* ── Craft list ── */
.craft-list {
  width: 100%;
  border-top: 1px solid var(--hair-2);
}
.craft-list > li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  padding: clamp(20px, 2.8vw, 32px) 0;
  border-bottom: 1px solid var(--hair-2);
  counter-increment: craft;
  transition: padding-left .4s var(--ease);
}
.craft-list > li::before {
  content: counter(craft, decimal-leading-zero);
  font-size: 10.5px; letter-spacing: 0.22em;
  color: var(--brand-mute); font-weight: 400;
  padding-top: 8px; align-self: start;
}
.craft-content { display: flex; flex-direction: column; gap: 8px; }
.craft-content h3 {
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 500; letter-spacing: -0.005em; color: var(--ink);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
}
.craft-content h3 .tag {
  font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mute); font-weight: 400;
}
.craft-content p {
  font-size: clamp(14px, 1.1vw, 15.5px);
  color: var(--ink-2); line-height: 1.8;
}
@media (hover: hover) {
  .craft-list > li:hover { padding-left: 6px; }
}

/* ── Studio ── */
.studio-logo {
  max-width: 180px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.studio-brand { margin-bottom: 18px; }
.brand-zh {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 200; letter-spacing: -0.02em;
  line-height: 1; color: var(--ink);
  margin-bottom: 8px;
}
.brand-en {
  font-size: 11.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--mute); font-weight: 400;
}
.brand-quote {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300; font-style: normal;
  color: var(--ink-2);
  border-left: 2px solid var(--brand);
  padding-left: 18px;
  margin: 24px 0 28px;
  line-height: 1.6;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair-2);
  border-bottom: 1px solid var(--hair-2);
  margin: 32px 0 28px;
}
.stat-row li {
  padding: 20px 0;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--hair-2);
}
.stat-row li:last-child { border-right: 0; }
.sn {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 200; letter-spacing: -0.01em; color: var(--brand);
}
.sn sup { font-size: 0.5em; vertical-align: super; }
.sl {
  font-size: 10.5px; letter-spacing: 0.2em; color: var(--mute);
  text-transform: uppercase;
}

/* ── Card grid (Films) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 2.8vw, 40px) clamp(18px, 2vw, 30px);
  width: 100%;
}
.card { display: flex; flex-direction: column; gap: 14px; }
.card-frame {
  position: relative; width: 100%;
  background: var(--bg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform .6s var(--ease);
}
.ph-16-9 { aspect-ratio: 16 / 9; }
.ph-4-5  { aspect-ratio: 4 / 5; }
.ph-3-4  { aspect-ratio: 3 / 4; }
.ph-3-2  { aspect-ratio: 3 / 2; }
.ph-1-1  { aspect-ratio: 1 / 1; }
/* Logo card — centers a PNG logo on dark background */
.card-logo-frame {
  background: #0d0c0b;
  display: flex; align-items: center; justify-content: center;
}
.card-logo-frame img {
  width: 62%; max-width: 220px; height: auto;
  object-fit: contain;
}
/* Placeholder card — for Behance/external projects without local thumbnail */
.card-placeholder-frame {
  background: #141310;
  display: flex; align-items: center; justify-content: center;
}
.card-placeholder-label {
  font-size: 1.1rem; font-weight: 300;
  letter-spacing: .12em; color: var(--mute);
  text-align: center; line-height: 1.6;
  pointer-events: none;
}
.ph-num {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font-size: 10px; letter-spacing: 0.26em;
  color: var(--mute); text-transform: uppercase;
}
.ph-icon {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; z-index: 2;
  border: 1px solid var(--hair);
  border-radius: 50%;
}
.ph-icon::before, .ph-icon::after {
  content: ""; position: absolute;
  left: 50%; top: 50%; background: var(--hair);
}
.ph-icon::before { width: 1px; height: 14px; transform: translate(-50%, -50%); }
.ph-icon::after { width: 14px; height: 1px; transform: translate(-50%, -50%); }
@media (hover: hover) {
  .card:hover .card-frame {
    transform: translateY(-4px);
  }
}
.card-meta { display: flex; flex-direction: column; gap: 6px; }
.card-title {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 400; color: var(--ink);
  letter-spacing: -0.005em; line-height: 1.45;
}
.card-info {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mute);
}
.mdot { color: var(--mute-2); }

/* ── Design gallery ── */
.design-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  width: 100%;
}
.dgal-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dgal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  background-size: cover;
  background-position: center top;
  overflow: hidden;
  transition: transform .6s var(--ease);
}
@media (hover: hover) {
  .dgal-item:hover .dgal-frame { transform: translateY(-4px); }
}
.dgal-cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dgal-title {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.45;
}
.dgal-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ── Photo grid ── */
.photo-grid {
  columns: 3;
  column-gap: clamp(10px, 1.4vw, 18px);
  width: 100%;
}
.photo-item {
  break-inside: avoid;
  display: block;
  position: relative; width: 100%;
  background: var(--bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform .6s var(--ease);
  margin-bottom: clamp(10px, 1.4vw, 18px);
}
@media (hover: hover) {
  .photo-item:hover {
    transform: translateY(-3px);
  }
}
.photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: baseline; gap: 8px;
  padding: 24px 12px 11px;
  background: linear-gradient(to top, rgba(12,12,10,0.7) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.photo-item:hover .photo-cap { opacity: 1; }
.cap-zh { font-size: 12.5px; font-weight: 400; color: var(--ink); }
.cap-en {
  font-size: 9.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--mute);
}

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; }
.tl-row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: clamp(18px, 2.4vw, 36px);
  padding: 22px 0;
  border-top: 1px solid var(--hair-2);
  align-items: baseline;
}
.tl-row:last-child { border-bottom: 1px solid var(--hair-2); }
.tl-row dt {
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--mute); font-weight: 400; text-transform: uppercase;
}
.tl-row dd {
  margin: 0; display: flex; flex-direction: column; gap: 4px;
  font-size: clamp(14.5px, 1.1vw, 16.5px);
}
.tl-row dd strong { font-weight: 500; color: var(--ink); }
.tl-row dd span { color: var(--ink-2); font-size: 13.5px; }
.tl-row dd .skills { color: var(--mute); line-height: 1.85; font-size: 13px; }

/* ── Contact ── */
.contact-lede {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 200; line-height: 1.42;
  letter-spacing: -0.015em; color: var(--ink);
  margin-bottom: clamp(36px, 5vw, 56px);
}
.contact-list { border-top: 1px solid var(--hair-2); }
.contact-list li {
  display: grid; grid-template-columns: 112px 1fr;
  gap: 24px; padding: 17px 0;
  border-bottom: 1px solid var(--hair-2);
  align-items: baseline;
}
.ck {
  font-size: 10.5px; letter-spacing: 0.24em;
  color: var(--mute); text-transform: uppercase;
}
.cv {
  font-size: clamp(14.5px, 1.15vw, 17px);
  color: var(--ink); font-weight: 400;
}
a.cv {
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .3s var(--ease);
}
a.cv:hover { border-bottom-color: var(--hair); }

/* ── Footer ── */
.foot {
  border-top: 1px solid var(--hair-2);
  padding: clamp(52px, 8vw, 96px) var(--gutter) clamp(32px, 4vw, 48px);
}
.foot-inner { max-width: var(--max); margin: 0 auto; }
.foot-top {
  display: flex; flex-wrap: wrap;
  align-items: flex-start; justify-content: space-between;
  gap: 24px 40px; margin-bottom: clamp(40px, 6vw, 72px);
}
.foot-brand {
  display: flex; align-items: baseline; gap: 12px;
}
.fb-zh {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 200; letter-spacing: -0.02em; color: var(--ink);
}
.fb-en {
  font-size: 10.5px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--mute);
}
.foot-desc {
  font-size: 13.5px; color: var(--ink-2);
  max-width: 44ch; line-height: 1.7;
}
.foot-desc a { border-bottom: 1px solid var(--hair-2); padding-bottom: 1px; }
.foot-desc a:hover { border-bottom-color: var(--hair); }
.foot-bot .sep { color: var(--mute-2); }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet: 641–1024 */
@media (min-width: 641px) and (max-width: 1024px) {
  .nav-links { gap: 20px; font-size: 12px; }

  .ht-zh { font-size: clamp(72px, 12.5vw, 130px); }
  .ht-en { font-size: clamp(40px, 7vw, 75px); }
  .hero-desc { font-size: clamp(18px, 2.6vw, 22px); }

  .layout-split { grid-template-columns: 1fr; gap: 24px; }
  .split-label { position: static; flex-direction: row; align-items: baseline; gap: 16px; }
  .sec-title { line-height: 1.1; }

  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 22px; }
  .design-gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .photo-grid { columns: 2; column-gap: 12px; }
  .photo-item { margin-bottom: 12px; }

  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .tl-row { grid-template-columns: 130px 1fr; }
  .contact-list li { grid-template-columns: 96px 1fr; }
  .philo-main { font-size: clamp(32px, 6.5vw, 56px); }
}

/* Mobile: ≤640 */
@media (max-width: 640px) {
  :root { --gutter: 22px; }

  .nav-inner { padding: 15px 20px; gap: 12px; }
  .logo-zh { font-size: 14px; }
  .logo-en { display: none; }
  .nav-links { display: none; }
  .nav-cta { display: none; }

  .hero { max-height: none; height: 100svh; min-height: 560px; }
  .ht-zh { font-size: clamp(62px, 19.5vw, 86px); }
  .ht-en { font-size: clamp(34px, 10.5vw, 50px); }
  .hero-desc { font-size: 18px; max-width: 24ch; }
  .hero-kicker { font-size: 9.5px; letter-spacing: 0.26em; }
  .kicker-line { width: 20px; }
  .hero-scroll { right: 20px; bottom: 28px; }
  .hero-foot .sep { display: none; }
  .hero-foot { flex-direction: column; gap: 5px; font-size: 11px; padding: 16px 22px; }

  .section { padding: 72px 22px; }
  .philo-inner { gap: 22px; }
  .philo-main { font-size: clamp(30px, 9.5vw, 44px); }
  .section-philo { padding: 88px 22px; }

  .layout-split { grid-template-columns: 1fr; gap: 22px; }
  .split-label { position: static; flex-direction: row; align-items: baseline; gap: 14px; }

  .craft-list > li { grid-template-columns: 38px 1fr; gap: 12px; }
  .craft-content h3 { font-size: 18px; gap: 9px; }
  .craft-content h3 .tag { font-size: 9.5px; }

  .brand-zh { font-size: clamp(34px, 10vw, 48px); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row li:nth-child(2) { border-right: 0; }
  .stat-row li:nth-child(1), .stat-row li:nth-child(2) { border-bottom: 1px solid var(--hair-2); }

  .card-grid { grid-template-columns: 1fr; gap: 28px; }
  .design-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photo-grid { columns: 2; column-gap: 8px; }
  .photo-item { margin-bottom: 8px; }
  .photo-cap { opacity: 1; background: linear-gradient(to top, rgba(12,12,10,0.6) 0%, transparent 100%); }

  .tl-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .contact-lede { font-size: 26px; }

  .foot-top { flex-direction: column; gap: 16px; }
  .foot-top-link { margin-left: 0; }
}

/* Very small phones */
@media (max-width: 380px) {
  .ht-zh { font-size: clamp(54px, 19vw, 72px); }
  .ht-en { font-size: clamp(30px, 10vw, 44px); }
  .nav-links { gap: 11px; font-size: 11.5px; }
}

/* ── 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-up,
  .hero-title .r,
  .hero-desc,
  .hero-foot,
  .hero-scroll { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Light mode token overrides
   ========================================================= */
[data-theme="light"] {
  --bg:        #F4F2EC;
  --bg-2:      #ECEAE4;
  --bg-3:      #E2E0DA;
  --bg-4:      #D8D6D0;
  --ink:       rgba(12,11,10,0.92);
  --ink-2:     rgba(12,11,10,0.68);
  --mute:      rgba(12,11,10,0.42);
  --mute-2:    rgba(12,11,10,0.24);
  --hair:      rgba(12,11,10,0.12);
  --hair-2:    rgba(12,11,10,0.08);
}
[data-theme="light"] body { background: var(--bg); color: var(--ink); }
[data-theme="light"] .section-dark { background: var(--bg); }
[data-theme="light"] .hero { background: var(--bg-2); color: var(--ink); }
[data-theme="light"] ::selection { background: var(--ink); color: var(--bg); }
[data-theme="light"] .nav.scrolled::before {
  background: rgba(244,242,236,0.88);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
[data-theme="light"] .nav.scrolled { border-bottom-color: rgba(12,11,10,0.1); }

/* =========================================================
   Theme toggle button
   ========================================================= */
.nav-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: none; border: none;
  border-left: 1px solid var(--hair-2);
  padding: 0 0 0 14px;
  margin-left: 6px;
  flex: 0 0 auto;
  cursor: pointer; color: inherit;
  opacity: 0.5;
  transition: opacity .3s var(--ease);
}
.nav-theme-toggle:hover { opacity: 1; }
.nav-theme-toggle svg { width: 15px; height: 15px; stroke-width: 1.6; }
.nav-theme-toggle .icon-sun  { display: none; }
.nav-theme-toggle .icon-moon { display: block; }
[data-theme="light"] .nav-theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .nav-theme-toggle .icon-moon { display: none; }
@media (max-width: 640px) {
  .nav-theme-toggle { border-left: none; padding-left: 0; margin-left: 0; }
}

/* =========================================================
   Hamburger button
   ========================================================= */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: flex-end;
  gap: 6px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  color: inherit;
  padding: 4px; flex: 0 0 auto;
  margin-left: 4px;
}
.nav-hamburger span {
  display: block; height: 1px;
  background: currentColor;
  transition: transform .4s var(--ease), opacity .3s var(--ease), width .4s var(--ease);
  transform-origin: center center;
}
.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 16px; }
.nav-hamburger span:nth-child(3) { display: none; }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); width: 22px; }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); width: 22px; }
@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
}

/* =========================================================
   Mobile menu overlay
   ========================================================= */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  background: rgba(10,10,9,0.97);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  display: flex; flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
[data-theme="light"] .mobile-menu { background: rgba(244,242,236,0.97); }
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity .45s var(--ease), visibility 0s linear 0s;
}
.mm-inner {
  display: flex; flex-direction: column; justify-content: center;
  flex: 1; padding: 100px var(--gutter) 60px;
  max-width: var(--max); width: 100%;
  margin: 0 auto;
  gap: 0;
}
.mm-nav { display: flex; flex-direction: column; }
.mm-link {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair-2);
  font-size: clamp(26px, 8vw, 46px);
  font-weight: 200; letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.mobile-menu.is-open .mm-link { transform: translateY(0); opacity: 0.85; }
.mobile-menu.is-open .mm-link:nth-child(1) { transition-delay: .05s; }
.mobile-menu.is-open .mm-link:nth-child(2) { transition-delay: .09s; }
.mobile-menu.is-open .mm-link:nth-child(3) { transition-delay: .13s; }
.mobile-menu.is-open .mm-link:nth-child(4) { transition-delay: .17s; }
.mobile-menu.is-open .mm-link:nth-child(5) { transition-delay: .21s; }
.mobile-menu.is-open .mm-link:nth-child(6) { transition-delay: .25s; }
.mobile-menu.is-open .mm-link:nth-child(7) { transition-delay: .29s; }
.mobile-menu.is-open .mm-link:nth-child(8) { transition-delay: .33s; }
.mm-link:hover { opacity: 1; }
.mm-cta-link { color: var(--brand); opacity: 1; }
.mm-num {
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--brand-mute); font-weight: 400;
  flex: 0 0 30px;
}
.mm-foot {
  display: flex; gap: 12px; align-items: center;
  margin-top: 40px;
  font-size: 12px; letter-spacing: 0.14em;
  color: var(--mute);
}
.mm-foot a { color: var(--mute); transition: color .3s; }
.mm-foot a:hover { color: var(--ink); }
.mm-foot .sep { color: var(--mute-2); }

/* =========================================================
   Video card: play overlay
   ========================================================= */
.card[data-video-id] { cursor: pointer; }
.card-play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,9,0.22);
  transition: background .4s var(--ease);
}
.card-play-circle {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(240,238,230,0.70);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.card-play-circle::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 7px 0 7px 13px;
  border-color: transparent transparent transparent rgba(240,238,230,0.85);
  margin-left: 3px;
}
@media (hover: hover) {
  .card[data-video-id]:hover .card-play { background: rgba(10,10,9,0.10); }
  .card[data-video-id]:hover .card-play-circle {
    transform: scale(1.12);
    border-color: rgba(240,238,230,0.95);
    background: rgba(240,238,230,0.08);
  }
}

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,8,7,0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity .4s var(--ease), visibility 0s linear 0s;
}
.lb-content {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 80vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-img {
  display: block;
  max-width: 100%; max-height: 80vh;
  object-fit: contain;
  transition: opacity .35s var(--ease);
  border: none; outline: none;
}
.lb-iframe-wrap {
  width: min(88vw, 1120px);
  aspect-ratio: 16 / 9;
}
.lb-iframe-wrap iframe {
  width: 100%; height: 100%;
  border: none;
}
.lb-img[src=""], .lb-img:not([src]) { display: none; }
.lb-iframe-wrap:empty { display: none; }

.lb-close {
  position: fixed; top: 24px; right: 28px; z-index: 210;
  width: 44px; height: 44px;
  background: rgba(240,238,230,0.08); border: 1px solid rgba(240,238,230,0.15);
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, opacity .3s;
  opacity: 0.7;
}
.lb-close:hover { opacity: 1; background: rgba(240,238,230,0.18); }
.lb-close svg { width: 20px; height: 20px; }

.lb-prev, .lb-next {
  position: fixed; top: 50%; z-index: 210;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(240,238,230,0.08); border: 1px solid rgba(240,238,230,0.15);
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, opacity .3s;
  opacity: 0.6;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { opacity: 1; background: rgba(240,238,230,0.18); }
.lb-prev svg, .lb-next svg { width: 22px; height: 22px; }
/* Hide arrows in video mode */
.lightbox.lb-video .lb-prev,
.lightbox.lb-video .lb-next { display: none; }

.lb-caption {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 210;
  display: flex; align-items: baseline; gap: 10px;
  color: var(--mute); font-size: 12.5px; letter-spacing: 0.1em;
  white-space: nowrap;
}
.lb-cap-text { color: var(--ink-2); }
.lb-counter { color: var(--mute-2); }

/* =========================================================
   Enhanced footer
   ========================================================= */
.foot .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(48px, 7vw, 72px);
  border-bottom: 1px solid var(--hair-2);
  margin-bottom: clamp(28px, 4vw, 40px);
}
.foot-col-brand .foot-brand {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 18px;
}
.foot-tagline {
  font-size: 14px; color: var(--ink-2);
  line-height: 1.75; margin-bottom: 28px;
}
.foot-contact-btn {
  font-size: 11px; padding: 11px 20px;
  display: inline-flex;
}
.foot-col-title {
  font-size: 10px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--brand-mute);
  font-weight: 400; margin-bottom: 14px;
  opacity: 0.85;
}
.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-links a {
  font-size: 13.5px; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 1px;
  transition: color .25s var(--ease);
}
.foot-links a:hover { color: var(--ink); }
.foot-link-sub {
  font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--mute); font-weight: 400;
}
.foot-bot {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 10px 24px;
  border-top: 1px solid var(--hair-2);
  padding-top: 24px;
  margin-top: 0;
}
.foot-bot-left {
  display: flex; flex-direction: column; gap: 6px;
  flex: 1 1 auto;
}
.foot-bot-left > span:first-child {
  font-size: 11.5px; color: var(--mute);
}
.foot-privacy {
  font-size: 10.5px; color: var(--mute-2);
  line-height: 1.6; max-width: 56ch;
}
.foot-top-link {
  flex: 0 0 auto;
  margin-left: 0;
  font-size: 11.5px; color: var(--mute);
  border-bottom: 1px solid transparent; padding-bottom: 1px;
  align-self: flex-start;
  transition: border-color .3s var(--ease), opacity .3s var(--ease);
  opacity: 0.6;
}
.foot-top-link:hover { opacity: 1; border-bottom-color: var(--mute); }

/* Footer responsive */
@media (max-width: 900px) {
  .foot .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .foot .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-col-brand { grid-column: auto; }
  .foot-bot { flex-direction: column; gap: 14px; }
  .foot-top-link { margin-left: 0; }
}
