/* 胡晉愷 personal site — cinematic dark atelier, shared visual language with KAIENET */
@property --tone-a {
  syntax: "<color>";
  inherits: true;
  initial-value: #d7b07a;
}
@property --tone-b {
  syntax: "<color>";
  inherits: true;
  initial-value: #8aa396;
}
@property --aura-a {
  syntax: "<color>";
  inherits: true;
  initial-value: #d7b07a;
}
@property --aura-b {
  syntax: "<color>";
  inherits: true;
  initial-value: #8aa396;
}

:root {
  --bg: #0b0a09;
  --bg-elev: #141210;
  --ink: #f4eee6;
  --muted: #a79d91;
  --faint: #6f675e;
  --line: rgba(244, 238, 230, 0.08);
  --line-strong: rgba(244, 238, 230, 0.16);
  --gold: #d7b07a;
  --gold-2: #f0d7a8;
  --gold-dim: rgba(215, 176, 122, 0.14);
  --sage: #8aa396;
  --radius: 22px;
  --nav-h: 76px;
  --max: 1180px;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", serif;
  --font-display: "Syne", "Noto Sans TC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --tone-a: #d7b07a;
  --tone-b: #8aa396;
}
:root[data-tone="kuro"], .case[data-tone="kuro"] { --tone-a: #8b83ff; --tone-b: #6c63ff; }
:root[data-tone="suisui"], .case[data-tone="suisui"] { --tone-a: #e8a5b3; --tone-b: #c4a5e8; }
:root[data-tone="karok"], .case[data-tone="karok"] { --tone-a: #6fb3ff; --tone-b: #2f5fb3; }
:root[data-tone="makenote"], .case[data-tone="makenote"] { --tone-a: #9fc0ff; --tone-b: #6ad1c4; }
:root[data-tone="meeting"], .case[data-tone="meeting"] { --tone-a: #ddb58a; --tone-b: #a0663f; }
:root[data-tone="tidelight"], .case[data-tone="tidelight"] { --tone-a: #e9b949; --tone-b: #3f7cac; }
:root[data-tone="talq"], .case[data-tone="talq"] { --tone-a: #818cf8; --tone-b: #06b6d4; }
:root[data-tone="zhixing"], .case[data-tone="zhixing"] { --tone-a: #7b93ff; --tone-b: #14b8a6; }
:root[data-tone="photo"] { --tone-a: #e6b98a; --tone-b: #c9a8a3; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body.is-hovering a,
body.is-hovering button { cursor: none; }

img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(215, 176, 122, 0.35); color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 16px;
  transform: translateY(-200%);
  background: var(--gold);
  color: #1a140c;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 300;
}
.skip:focus { transform: none; }

.text-link {
  color: var(--gold-2);
  border-bottom: 1px solid rgba(215, 176, 122, 0.4);
  transition: border-color 0.25s, color 0.25s;
}
.text-link:hover { color: var(--ink); border-color: var(--gold-2); }

/* Intro curtain (CSS only, shown once per session) */
.intro { display: none; }
html.js:not(.intro-done) .intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  animation: intro-out 0.95s 1.3s var(--ease-in-out) forwards;
}
.intro-mark {
  display: flex;
  align-items: center;
  gap: 20px;
}
.intro-mark svg { width: 58px; height: 58px; }
.intro-mark path {
  stroke: var(--gold-2);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: intro-draw 1s 0.1s var(--ease) forwards;
}
.intro-word {
  display: flex;
  gap: 0.28em;
  font: 600 1.5rem/1 var(--font-serif);
  letter-spacing: 0.1em;
}
.intro-word i {
  font-style: normal;
  opacity: 0;
  transform: translateY(16px);
  animation: intro-letter 0.7s var(--ease) forwards;
}
.intro-word i:nth-child(1) { animation-delay: 0.38s; }
.intro-word i:nth-child(2) { animation-delay: 0.48s; }
.intro-word i:nth-child(3) { animation-delay: 0.58s; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-letter { to { opacity: 1; transform: none; } }
@keyframes intro-out {
  0% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0); visibility: hidden; }
}

/* Ambient layers */
.aura,
.noise,
.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
}
/* Only the aura eases between project colors, so a tone change never re-styles the whole page per frame */
.aura {
  z-index: 0;
  overflow: hidden;
  --aura-a: var(--tone-a);
  --aura-b: var(--tone-b);
  transition: --aura-a 1.6s var(--ease), --aura-b 1.6s var(--ease);
}
.aura span {
  position: absolute;
  width: 78vmax;
  height: 78vmax;
  border-radius: 50%;
  opacity: 0.17;
}
.aura span:nth-child(1) {
  right: -30vmax;
  top: -32vmax;
  background: radial-gradient(circle, var(--aura-a), transparent 64%);
  animation: aura-a 28s ease-in-out infinite alternate;
}
.aura span:nth-child(2) {
  left: -34vmax;
  bottom: -40vmax;
  background: radial-gradient(circle, var(--aura-b), transparent 64%);
  animation: aura-b 34s ease-in-out infinite alternate;
}
@keyframes aura-a { to { transform: translate3d(-12vmax, 10vmax, 0) scale(1.1); } }
@keyframes aura-b { to { transform: translate3d(14vmax, -12vmax, 0) scale(0.92); } }
.noise {
  z-index: 1;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  z-index: 2;
  background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0,0,0,.45) 100%);
}

.scroll-progress {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--tone-b), var(--tone-a), var(--gold-2));
  transform: scaleX(var(--sp, 0));
  transform-origin: left;
  pointer-events: none;
}

/* Cursor */
.cursor {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border: 1px solid var(--gold-2);
  background: rgba(215, 176, 122, 0.12);
  border-radius: 50%;
  pointer-events: none;
  z-index: 180;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s;
}
.cursor.is-on { display: grid; place-items: center; }
.cursor.is-down {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--gold);
}
.cursor.is-link {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  background: rgba(215,176,122,.12);
}
.cursor.is-label {
  width: 74px; height: 74px; margin: -37px 0 0 -37px;
  background: rgba(11, 10, 9, 0.55);
  border-color: var(--tone-a);
  backdrop-filter: blur(6px);
}
.cursor-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0;
  transition: opacity .2s;
}
.cursor.is-label .cursor-label { opacity: 1; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 40;
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(11, 10, 9, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, transform .5s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 10, 9, 0.82);
}
.nav.is-hidden:not(.is-open) { transform: translateY(-100%); }
.nav-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.nav-panel {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav-links a {
  position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--tone-a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  border-radius: 999px;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.nav-cta:hover {
  background: var(--gold);
  color: #1a140c;
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 12px;
  position: relative;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--ink);
  content: "";
  transition: transform .25s var(--ease), opacity .2s;
}
.menu-btn span { top: 50%; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.nav.is-open .menu-btn span { background: transparent; }
.nav.is-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }
body.menu-lock { overflow: hidden; }

/* Reveal helpers */
html.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
.split .line {
  display: block;
  overflow: hidden;
  padding: 0 0.12em 0.1em 0;
  margin-bottom: -0.1em;
}
.split .line > span { display: inline-block; }
html.js .split .line > span {
  transform: translateY(108%);
  transition: transform 1.15s var(--ease);
}
html.js .split .line:nth-child(2) > span { transition-delay: .1s; }
html.js .split .line:nth-child(3) > span { transition-delay: .2s; }
html.js .split.is-in .line > span { transform: none; }

/* Hero */
.hero {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 96px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  transform: translate3d(0, calc(var(--hero-p, 0) * -90px), 0);
  opacity: calc(1 - var(--hero-p, 0) * 1.15);
}
.hero .wrap::before {
  content: "KAI";
  position: absolute;
  right: -6%;
  top: 2%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(8rem, 28vw, 22rem);
  line-height: 0.75;
  color: transparent;
  -webkit-text-stroke: 1px rgba(215, 176, 122, 0.07);
  pointer-events: none;
  z-index: -1;
  transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px), 0);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2);
  letter-spacing: 0.12em;
}
.pulse i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #9dce8c;
  box-shadow: 0 0 0 0 rgba(157,206,140,.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(157,206,140,0); }
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.7vw, 5.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero h1 .line { white-space: nowrap; }
.hero h1 em {
  font-style: italic;
  color: var(--gold-2);
  font-weight: 500;
}
.hero-lead {
  max-width: 580px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 300;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  justify-self: end;
}
.morph-caption {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 220px;
  text-align: center;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.morph-caption.is-swapping { opacity: 0; transform: translate(-50%, 8px); }
.morph-index {
  font: 600 0.72rem/1.4 var(--font-display);
  letter-spacing: 0.24em;
  color: var(--tone-a);
}
.morph-name { font: 600 1.22rem/1.4 var(--font-serif); }
.morph-kind { font-size: 0.8rem; color: var(--muted); }

.scroll-cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--faint);
  font: 600 0.66rem/1 var(--font-display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: calc(1 - var(--hero-p, 0) * 3);
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: var(--line-strong);
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--gold-2);
  transform: translateY(-100%);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { to { transform: translateY(100%); } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, translate .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a140c;
  font-weight: 600;
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.magnetic { translate: var(--tx, 0) var(--ty, 0); }

/* Marquee */
.marquee {
  position: relative;
  z-index: 3;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1.2;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 238, 230, 0.38);
  will-change: transform;
}
html:not(.js) .marquee-track { animation: marquee 48s linear infinite; }
.marquee-track span {
  display: inline-block;
  white-space: nowrap;
  transform: skewX(calc(var(--skew, 0) * 1deg));
}
.marquee-track b {
  color: var(--tone-a);
  -webkit-text-stroke: 0;
  font-weight: 500;
  margin: 0 0.25em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
main > section {
  position: relative;
  z-index: 3;
  padding: 120px 0;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--tone-a);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 16px;
}
.kicker::after {
  content: "";
  width: 64px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
}
.section-head h2,
.photos-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1.15;
  font-weight: 600;
}
.section-head > p {
  max-width: 380px;
  color: var(--muted);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.portrait {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 20%, rgba(215,176,122,.35), transparent 36%),
    linear-gradient(160deg, #2a241c, #12100d);
  border: 1px solid var(--line);
  transform: perspective(1200px) rotateX(calc(var(--ry, 0) * 1deg)) rotateY(calc(var(--rx, 0) * 1deg));
  transition: transform .5s var(--ease), opacity .9s var(--ease);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 10, 9, 0.72));
  pointer-events: none;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.04) saturate(0.9);
  transform: scale(1.08) translate3d(0, calc(var(--pp, 0.5) * -4% + 2%), 0);
}
.portrait-px {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
  transform: scale(1.08) translate3d(0, calc(var(--pp, 0.5) * -4% + 2%), 0);
  transition: opacity .7s var(--ease);
}
html:not(.js) .portrait-px,
.portrait.is-resolved .portrait-px { opacity: 0; }
.portrait-meta {
  position: absolute;
  z-index: 2;
  left: 18px; right: 18px; bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(12,11,10,.72);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
}
.portrait-meta span:last-child { color: var(--muted); letter-spacing: 0.04em; }
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.fact {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}
.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}
.fact span { color: var(--muted); font-size: 0.88rem; }
.about-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.22;
  margin-bottom: 20px;
}
.about-copy > p { color: var(--muted); margin-bottom: 14px; }

/* Work: one sticky chapter per project */
main > section.work { padding-bottom: 72px; }
.case { position: relative; }
.case-sticky {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 48px;
  overflow: hidden;
}
.case-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) 1.28fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.case--phone .case-inner { grid-template-columns: minmax(330px, 1fr) 1fr; }
.case-ghost {
  position: absolute;
  inset: auto 0 1vh 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.6;
}
.case-ghost span {
  display: block;
  width: max-content;
  font: 800 clamp(5rem, 15vw, 14rem)/0.9 var(--font-display);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--tone-a) 22%, transparent);
  transform: translate3d(calc(18vw - var(--p, 0.5) * 50vw), 0, 0);
}
.case-index {
  font: 600 0.78rem/1 var(--font-display);
  letter-spacing: 0.2em;
  color: var(--faint);
}
.case-index b { color: var(--tone-a); font-weight: 700; }
.case-type {
  margin-top: 18px;
  color: var(--tone-a);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}
.case-title {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
}
.case-title small {
  font-size: 0.42em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-left: 0.3em;
}
.case-lead {
  margin-top: 16px;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.98rem;
}
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.case-stack li {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 24px;
}
.case-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.case-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9dce8c;
  box-shadow: 0 0 0 4px rgba(157, 206, 140, 0.14);
}
html.js .case-info > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform 1s var(--ease);
}
html.js .case.is-in .case-info > * { opacity: 1; transform: none; }
html.js .case.is-in .case-info > :nth-child(2) { transition-delay: .06s; }
html.js .case.is-in .case-info > :nth-child(3) { transition-delay: .12s; }
html.js .case.is-in .case-info > :nth-child(4) { transition-delay: .18s; }
html.js .case.is-in .case-info > :nth-child(5) { transition-delay: .24s; }
html.js .case.is-in .case-info > :nth-child(6) { transition-delay: .3s; }
html.js .case.is-in .case-info > :nth-child(7) { transition-delay: .36s; }
html.js .case.is-in .case-info > :nth-child(8) { transition-delay: .42s; }

.case-stage {
  position: relative;
  perspective: 1800px;
}
.case-stage::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone-a) 26%, transparent), transparent);
  opacity: calc(0.25 + var(--enter, 1) * 0.75);
  pointer-events: none;
}
.case-stage .demo {
  transform-style: preserve-3d;
  transform:
    translate3d(0, calc((1 - var(--enter, 1)) * 140px - var(--exit, 0) * 60px), 0)
    rotateX(calc((1 - var(--enter, 1)) * 16deg))
    rotateY(calc((1 - var(--enter, 1)) * var(--turn, -20deg)))
    scale(calc(0.86 + var(--enter, 1) * 0.14 - var(--exit, 0) * 0.05));
  opacity: calc(0.15 + var(--enter, 1) * 0.85);
  cursor: pointer;
}
.case--phone .case-stage .demo { --turn: 22deg; }
body.is-hovering .demo.is-ready:not(.is-static) { cursor: none; }
.demo.is-paused::after {
  content: "已暫停 · 點一下繼續";
  position: absolute;
  z-index: 5;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 10, 9, 0.82);
  color: var(--ink);
  font-size: 0.76rem;
  white-space: nowrap;
}
.case-float {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.case-float > * {
  position: absolute;
  transform: translate3d(0, calc((0.5 - var(--p, 0.5)) * var(--depth, 1) * 220px), 0);
}
.float-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tone-a) 40%, transparent);
  background: rgba(16, 14, 13, 0.76);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  font-size: 0.84rem;
  white-space: nowrap;
}
.case-float > :nth-child(1) { left: 0; top: 14%; }
.case-float > :nth-child(2) { right: 0; top: 46%; }
.case-float > :nth-child(3) { left: 4%; bottom: 12%; }

/* Studio link under the cases */
.studio-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(520px 160px at 0% 0%, rgba(215,176,122,.1), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  transition: border-color .3s, transform .4s var(--ease), opacity .9s var(--ease);
}
.studio-link:hover { border-color: color-mix(in srgb, var(--gold) 55%, transparent); transform: translateY(-3px); }
.studio-mark img { width: 52px; height: 52px; border-radius: 14px; }
.studio-copy { display: grid; gap: 2px; }
.studio-copy small { color: var(--gold); font-size: 0.74rem; letter-spacing: 0.2em; }
.studio-copy b { font: 600 1.3rem/1.4 var(--font-serif); }
.studio-copy span { color: var(--muted); font-size: 0.92rem; }
.studio-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.88rem;
  white-space: nowrap;
  transition: border-color .25s, color .25s;
}
.studio-go i { font-style: normal; transition: transform .3s var(--ease); }
.studio-link:hover .studio-go { border-color: var(--gold); color: var(--gold-2); }
.studio-link:hover .studio-go i { transform: translate(2px, -2px); }

/* Card system shared by archive projects and skills */
.project,
.skill {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, background .3s, opacity .9s var(--ease);
}
.project::before,
.project::after,
.skill::before,
.skill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
}
.project::before,
.skill::before {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(215,176,122,.12), transparent 60%);
}
.project::after,
.skill::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(240,215,168,.6), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.project:hover::before,
.project:hover::after,
.skill:hover::before,
.skill:hover::after { opacity: 1; }
.project:hover,
.skill:hover { transform: translateY(-6px); }
.project .num,
.skill .num {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}
.project h3,
.skill h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.35;
  margin: 12px 0 10px;
  font-weight: 600;
}
.project h3 small {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.3em;
}
.project p,
.skill p { color: var(--muted); font-size: 0.93rem; }
.project ul,
.skill ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.project li,
.skill li {
  font-size: 0.76rem;
  color: var(--gold-2);
  border: 1px solid var(--gold-dim);
  background: var(--gold-dim);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Archive */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.filter i {
  font-style: normal;
  font: 600 0.7rem/1 var(--font-display);
  color: var(--faint);
  transition: color .25s;
}
.filter:hover { color: var(--ink); border-color: var(--gold); }
.filter.is-on {
  color: #1a140c;
  border-color: transparent;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.filter.is-on i { color: rgba(26, 20, 12, 0.6); }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project { display: flex; flex-direction: column; }
.project ul { margin-bottom: 4px; }
.project.is-hidden { display: none; }
.project.is-entering { animation: card-in .6s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.project-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 18px;
}
.project-links a,
.project-links button,
.skill-case {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
  transition: color .25s, border-color .25s;
}
.project-links a::after { content: "↗"; transition: transform .3s var(--ease); }
.project-links button::after,
.skill-case::after { content: "→"; transition: transform .3s var(--ease); }
.project-links a:hover,
.project-links button:hover,
.skill-case:hover { color: var(--gold-2); border-color: var(--gold); }
.project-links a:hover::after { transform: translate(2px, -2px); }
.project-links button:hover::after,
.skill-case:hover::after { transform: translateX(4px); }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.skill { min-height: 250px; }
.skill-case { margin-top: 20px; }
.icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  margin-bottom: 8px;
  color: var(--gold-2);
}

/* Path */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.process-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line-strong);
}
.process-line i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(var(--pp, 0));
  transform-origin: left;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(215,176,122,.05), transparent 48%);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  color: var(--faint);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 18px;
  transition: color .5s;
}
.step::after {
  content: "";
  position: absolute;
  left: 24px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  transition: background .5s, border-color .5s, box-shadow .5s;
}
.step.is-lit::before { color: var(--gold); }
.step.is-lit::after {
  background: var(--gold-2);
  border-color: var(--gold-2);
  box-shadow: 0 0 0 5px rgba(215, 176, 122, 0.15);
}
.step small {
  display: block;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 0.92rem; }

/* Photography: the strip pins and slides sideways as you scroll (desktop), swipes on phones */
main > section.photos { padding: 0; }
.photos-sticky {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 36px;
  padding: 120px 0 96px;
  overflow: hidden;
}
.photos-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}
.photos-aside {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 380px;
  color: var(--muted);
}
.photos-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.photos-viewport::-webkit-scrollbar { display: none; }
.photos-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
}
.photos-track li { scroll-snap-align: center; }
.photo {
  --h: min(56vh, 520px);
  position: relative;
  display: block;
  height: var(--h);
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elev);
  overflow: hidden;
  cursor: zoom-in;
}
.photo.is-land { aspect-ratio: 3 / 2; }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06) translate3d(calc(var(--par, 0) * 1px), 0, 0);
  transition: transform 1.2s var(--ease), filter .6s;
  filter: saturate(0.92);
}
.photo:hover img { transform: scale(1.1) translate3d(calc(var(--par, 0) * 1px), 0, 0); filter: saturate(1.05); }
.photo-cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(11, 10, 9, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .45s var(--ease);
}
.photo-cap b { font: 600 0.7rem/1 var(--font-display); letter-spacing: 0.14em; color: var(--tone-a); }
.photo:hover .photo-cap,
.photo:focus-visible .photo-cap { opacity: 1; transform: none; }
.photos-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--faint);
  font: 600 0.78rem/1 var(--font-display);
  letter-spacing: 0.2em;
}
.photos-count b { color: var(--tone-a); }
.photos-bar {
  flex: 1;
  max-width: 260px;
  height: 1px;
  background: var(--line-strong);
}
.photos-bar i {
  display: block;
  height: 100%;
  background: var(--tone-a);
  transform: scaleX(var(--gp, 0));
  transform-origin: left;
}
/* Pinned mode (set by js/gallery.js when there is room for it) */
.photos.is-pinned .photos-pin { height: var(--pin-h, 300vh); }
.photos.is-pinned .photos-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: calc(var(--nav-h) + 16px) 0 40px;
}
.photos.is-pinned .photos-viewport { overflow: visible; scroll-snap-type: none; }
.photos.is-pinned .photos-track { transform: translate3d(calc(var(--gx, 0) * -1px), 0, 0); will-change: transform; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 64px 84px;
  background: rgba(8, 7, 6, 0.94);
  backdrop-filter: blur(10px);
  animation: lb-in .35s ease both;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox-fig {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-fig img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 12px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  animation: lb-img .5s var(--ease) both;
}
@keyframes lb-img { from { opacity: 0; transform: scale(0.97); } }
.lightbox-fig figcaption { color: var(--muted); font-size: 0.86rem; letter-spacing: 0.06em; }
.lightbox-btn,
.lightbox-close {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.lightbox-btn { top: 50%; width: 48px; height: 48px; margin-top: -24px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close { top: 18px; right: 18px; padding: 6px 16px; font-size: 0.84rem; }
.lightbox-btn:hover,
.lightbox-close:hover { border-color: var(--gold); color: var(--gold-2); }
.lightbox.is-single .lightbox-btn { display: none; }

/* Contact */
.contact-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 48px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 220px at 10% 0%, rgba(215,176,122,.12), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.contact-box h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.15;
  margin: 12px 0 16px;
}
.contact-lead { color: var(--muted); }
.contact-links {
  display: grid;
  gap: 4px;
  margin-top: 28px;
}
.contact-links > * {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.contact-links a { color: var(--ink); transition: color .25s; }
.contact-links a:hover { color: var(--gold-2); }
.email-copy {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--gold);
  cursor: pointer;
  transition: opacity .2s;
  overflow-wrap: anywhere;
  text-align: right;
}
.email-copy:hover { opacity: .7; }
.email-copy.copied { color: var(--sage); opacity: 1; }
.contact-box form {
  display: grid;
  align-content: start;
  gap: 14px;
}
.contact-box label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.contact-box input,
.contact-box textarea,
.contact-box select {
  width: 100%;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.contact-box select option { background: var(--bg-elev); }
.contact-box textarea { min-height: 150px; resize: vertical; }
.contact-box input:focus,
.contact-box textarea:focus,
.contact-box select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-dim);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note {
  min-height: 1.4em;
  font-size: 0.88rem;
  color: var(--sage);
}

/* Footer */
.footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  padding: 0 0 40px;
  color: var(--faint);
  font-size: 0.86rem;
  overflow: hidden;
}
.footer-mark {
  padding: 40px 0 20px;
  text-align: center;
}
.footer-mark span {
  display: inline-block;
  font: 700 clamp(2.5rem, 8vw, 7rem)/1 var(--font-serif);
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(215, 176, 122, 0.3);
  background: linear-gradient(90deg, var(--gold-2), var(--gold) var(--fill, 0%), transparent var(--fill, 0%));
  -webkit-background-clip: text;
  background-clip: text;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; }
.footer a:hover { color: var(--gold-2); }

/* Desktop: pin each project chapter while its demo plays */
@media (min-width: 981px) and (min-height: 700px) {
  .case { height: 150vh; }
  .case-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
  }
}
@media (min-width: 981px) and (max-height: 860px) {
  .scene-tab { padding-block: 9px 11px; }
  .case-lead { font-size: 0.92rem; }
  .case-type { margin-top: 12px; }
  .case-title { font-size: clamp(2rem, 3.4vw, 2.9rem); }
  .case-stack { margin-top: 14px; }
  .case-actions { margin-top: 18px; }
}

@media (max-width: 980px) {
  .hero-grid, .about, .contact-box { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 420px; margin-top: 8px; }
  .archive-grid, .skills-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .process-line { display: none; }
  .section-head, .photos-head { flex-direction: column; align-items: start; }
  .portrait { max-width: 520px; }
  .case-inner,
  .case--phone .case-inner { grid-template-columns: 1fr; }
  .case-sticky { padding: 56px 0; }
  .case--phone .case-stage { max-width: 420px; margin-inline: auto; width: 100%; }
  .case-ghost { inset: 0 0 auto 0; top: 30px; }
  .studio-link { grid-template-columns: auto 1fr; }
  .studio-go { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 720px) {
  :root { --nav-h: 66px; }
  .wrap, .nav-inner { width: min(var(--max), calc(100% - 32px)); }
  .nav-panel {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 22px 24px 28px;
    background: rgba(11, 10, 9, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-panel { display: flex; }
  .nav-links { flex-direction: column; gap: 16px; font-size: 1.05rem; }
  .menu-btn { display: block; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-visual { max-width: 320px; }
  .archive-grid, .skills-grid, .process, .facts, .form-row {
    grid-template-columns: 1fr;
  }
  .contact-box { padding: 28px 20px; }
  main > section { padding: 88px 0; }
  .photos-sticky { padding: 88px 0 72px; gap: 28px; }
  .photos-track { padding-inline: 16px; gap: 12px; }
  .photo { --h: 62vw; max-height: 420px; }
  .photo:not(.is-land) { --h: 96vw; }
  .photo-cap { opacity: 1; transform: none; }
  .case-float,
  .case-ghost { display: none; }
  .footer-links { flex-wrap: wrap; }
  .lightbox { padding: 56px 12px 88px; }
  .lightbox-btn { top: auto; bottom: 20px; margin-top: 0; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
  .studio-link { padding: 22px 20px; gap: 16px; }
}

/* 系統設為「減少動態」時：進場只保留淡入，不位移、不縮放；其餘動畫照常 */
:root.fade-only { scroll-behavior: auto; }
:root.fade-only.js .reveal,
:root.fade-only.js .case-info > * { transform: none; }
:root.fade-only.js .split .line > span { transform: none; opacity: 0; transition: opacity .8s ease; }
:root.fade-only.js .split.is-in .line > span,
:root.fade-only.js .is-in .split .line > span { opacity: 1; }

/* 工作室作品：開發中狀態、漂浮圖片 */
.case-status.is-dev i { background: #e9b949; box-shadow: 0 0 0 4px rgba(233, 185, 73, 0.14); }
.case-float > :nth-child(1) { left: 0; top: 14%; }
.case-float > :nth-child(2) { right: 0; top: 46%; }
.case-float > :nth-child(3) { left: 4%; bottom: 12%; }
.float-img { width: 86px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }
.float-img:nth-child(1) { rotate: -18deg; }
.float-img:nth-child(2) { width: 58px; rotate: 12deg; }
.float-icon { width: 64px; border-radius: 16px; box-shadow: 0 20px 40px -16px rgba(79, 70, 229, 0.7); }
