/* ============================================
   Design System — Minimalist Portfolio
   ============================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'Instrument Sans';
  src: url('../_shared/fonts/InstrumentSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../_shared/fonts/InstrumentSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../_shared/fonts/InstrumentSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../_shared/fonts/Outfit-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../_shared/fonts/Outfit-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables (Light Mode, Default) --- */
:root {
  --bg: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --ink: #1a1a1a;
  --ink-secondary: #666666;
  --ink-tertiary: #999999;
  --rule: #e5e5e5;
  --rule-light: #eeeeee;
  --accent: #2d5bff;
  --accent-hover: #1a47e6;
  --accent-soft: rgba(45, 91, 255, 0.08);
  
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Source Han Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Outfit', 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  
  --max-width: 1280px;
  --max-width-narrow: 960px;
  --gutter: 48px;
  --section-space: 120px;
  --section-space-small: 80px;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg-secondary: #121212;
  --bg-tertiary: #1a1a1a;
  --ink: #f0f0f0;
  --ink-secondary: #999999;
  --ink-tertiary: #777777;
  --rule: #2a2a2a;
  --rule-light: #222222;
  --accent: #5c8cff;
  --accent-hover: #7aa2ff;
  --accent-soft: rgba(92, 140, 255, 0.12);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  transition: background-color var(--duration-base) var(--ease),
              color var(--duration-base) var(--ease);
  position: relative;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Selection */
::selection {
  background: var(--accent);
  color: white;
}

::-moz-selection {
  background: var(--accent);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-tertiary);
}

/* --- Dynamic Flowing Gradient Background --- */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: #0a0a0a;
}

.gradient-bg::before,
.gradient-bg::after {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.7;
  will-change: transform;
}

.gradient-bg::before {
  background: radial-gradient(circle, rgba(30, 120, 255, 0.65) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: orbFlow1 40s ease-in-out infinite;
}

.gradient-bg::after {
  background: radial-gradient(circle, rgba(40, 200, 120, 0.55) 0%, transparent 70%);
  bottom: -10%;
  right: -10%;
  animation: orbFlow2 45s ease-in-out infinite;
}

@keyframes orbFlow1 {
  0%   { transform: translate(0vw, 0vh) scale(1); }
  10%  { transform: translate(15vw, 10vh) scale(1.15); }
  20%  { transform: translate(30vw, 25vh) scale(0.9); }
  30%  { transform: translate(50vw, 15vh) scale(1.1); }
  40%  { transform: translate(65vw, 35vh) scale(1.05); }
  50%  { transform: translate(80vw, 50vh) scale(0.95); }
  60%  { transform: translate(60vw, 65vh) scale(1.2); }
  70%  { transform: translate(40vw, 55vh) scale(0.9); }
  80%  { transform: translate(20vw, 40vh) scale(1.1); }
  90%  { transform: translate(5vw, 20vh) scale(1); }
  100% { transform: translate(0vw, 0vh) scale(1); }
}

@keyframes orbFlow2 {
  0%   { transform: translate(0vw, 0vh) scale(1); }
  10%  { transform: translate(-15vw, -10vh) scale(1.1); }
  20%  { transform: translate(-30vw, -25vh) scale(0.95); }
  30%  { transform: translate(-50vw, -15vh) scale(1.15); }
  40%  { transform: translate(-65vw, -35vh) scale(0.9); }
  50%  { transform: translate(-80vw, -50vh) scale(1.05); }
  60%  { transform: translate(-60vw, -65vh) scale(1.2); }
  70%  { transform: translate(-40vw, -55vh) scale(0.9); }
  80%  { transform: translate(-20vw, -40vh) scale(1.1); }
  90%  { transform: translate(-5vw, -20vh) scale(1); }
  100% { transform: translate(0vw, 0vh) scale(1); }
}

/* Noise overlay for texture */
.gradient-bg .noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Light mode gradient (subtle) */
[data-theme="light"] .gradient-bg {
  background: #f8f9fc;
}

[data-theme="light"] .gradient-bg::before {
  background: radial-gradient(circle, rgba(30, 120, 255, 0.18) 0%, transparent 70%);
  opacity: 1;
}

[data-theme="light"] .gradient-bg::after {
  background: radial-gradient(circle, rgba(40, 200, 120, 0.15) 0%, transparent 70%);
  opacity: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.caption {
  font-size: 0.8125rem;
  color: var(--ink-tertiary);
  line-height: 1.5;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--section-space) 0;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.center {
  text-align: center;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: saturate(180%) blur(0px);
  -webkit-backdrop-filter: saturate(180%) blur(0px);
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  transition: padding 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              background-color 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              backdrop-filter 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              -webkit-backdrop-filter 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              border-color 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: backdrop-filter, background-color, transform;
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.06) 20%, 
    rgba(0, 0, 0, 0.1) 50%, 
    rgba(0, 0, 0, 0.06) 80%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
}

[data-theme="dark"] .nav::after {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.06) 20%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.06) 80%, 
    transparent 100%);
}

[data-theme="dark"] .nav {
  background: rgba(13, 13, 13, 0);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 -1px 0 rgba(0, 0, 0, 0.04) inset,
    0 10px 30px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav.scrolled::after {
  opacity: 1;
}

[data-theme="dark"].nav.scrolled,
[data-theme="dark"] .nav.scrolled {
  background: rgba(13, 13, 13, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--ink-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-secondary);
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0);
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.06);
  transform: scale(1.05);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.lang-toggle {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 12px;
  border-radius: 980px;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  background: rgba(0, 0, 0, 0);
  border: 1px solid rgba(0, 0, 0, 0);
}

.lang-toggle:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-color: rgba(0, 0, 0, 0.06);
  transform: scale(1.05);
}

[data-theme="dark"] .lang-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 1000;
}

.lang-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-option:hover {
  color: var(--ink);
  background: var(--bg-secondary);
}

.lang-option.active {
  color: var(--accent);
  background: var(--accent-bg);
}

/* Mobile Nav */
.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 101;
}

.nav-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all var(--duration-base) var(--ease);
  border-radius: 2px;
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.active span:nth-child(2) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease),
              visibility var(--duration-base) var(--ease);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.nav-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg);
  z-index: 100;
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease);
  display: flex;
  flex-direction: column;
  padding: 80px 24px 32px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

[dir="rtl"] .nav-mobile-menu {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

.nav-mobile-menu.active {
  transform: translateX(0);
}

.nav-mobile-menu .nav-link {
  display: block;
  font-size: 1.125rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-light);
  color: var(--ink);
}

.nav-mobile-menu .nav-link.active {
  color: var(--accent);
}

.nav-mobile-menu .nav-link.active::after {
  display: none;
}

.nav-mobile-menu-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-light);
}

.nav-mobile-menu-actions .theme-toggle {
  width: 44px;
  height: 44px;
}

.nav-mobile-menu-actions .lang-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Mobile Language Selector */
.mobile-lang-selector {
  position: relative;
}

.mobile-lang-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--bg-secondary);
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-lang-label:hover {
  color: var(--ink);
  background: var(--bg-tertiary);
}

.mobile-lang-options {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 120px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 1000;
}

.mobile-lang-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-lang-option:hover {
  color: var(--ink);
  background: var(--bg-secondary);
}

.mobile-lang-option.active {
  color: var(--accent);
  background: var(--accent-bg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 12px 0;
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn-ghost svg {
  transition: transform var(--duration-fast) var(--ease);
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 32px;
  font-weight: 700;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--ink-secondary);
  margin-bottom: 48px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-tertiary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ink-tertiary);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* --- Featured Works --- */
.works-section {
  background: var(--bg-secondary);
}

.work-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.work-item:last-child {
  margin-bottom: 0;
}

.work-item.reverse {
  direction: rtl;
}

.work-item.reverse > * {
  direction: ltr;
}

.work-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background: var(--bg-tertiary);
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.work-item:hover .work-image img {
  transform: scale(1.03);
}

.work-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--rule-light) 100%);
  color: var(--ink-tertiary);
  font-size: 0.875rem;
}

.work-meta {
  font-size: 0.8125rem;
  color: var(--ink-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.work-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.work-description {
  color: var(--ink-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.work-tag {
  padding: 4px 12px;
  font-size: 0.75rem;
  background: var(--bg-tertiary);
  color: var(--ink-secondary);
  border-radius: 100px;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  transition: gap var(--duration-fast) var(--ease);
}

.work-link:hover {
  gap: 12px;
  color: var(--accent);
}

.works-more {
  text-align: center;
  margin-top: 80px;
}

/* --- Featured Works Grid (Dynamic Render) --- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.featured-item {
  display: block;
}

.featured-link {
  display: block;
  color: inherit;
}

.featured-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tertiary);
  margin-bottom: 20px;
}

/* 竖版封面样式 */
.featured-image.portrait {
  aspect-ratio: 3/4;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.featured-link:hover .featured-image img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease);
}

.featured-link:hover .featured-overlay {
  opacity: 1;
}

.featured-view {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.featured-info {
  padding: 0 4px;
}

.featured-category {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.featured-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color var(--duration-fast) var(--ease);
}

.featured-link:hover .featured-title {
  color: var(--accent);
}

.featured-desc {
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.about-portrait {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tertiary);
}

.about-portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  color: var(--ink-tertiary);
}

[data-theme="dark"] .about-portrait-placeholder {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.about-content h2 {
  margin-bottom: 32px;
}

.about-content p {
  color: var(--ink-secondary);
  margin-bottom: 24px;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}

.about-stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

/* --- Services --- */
.services-section {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  padding: 40px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule-light);
  transition: all var(--duration-base) var(--ease);
}

.service-card:hover {
  border-color: var(--rule);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .service-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* --- Music Player --- */
.music-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
}

.music-player.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.music-player-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.music-player-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

.music-player-btn:active {
  transform: scale(0.95);
}

.music-player-btn svg {
  width: 20px;
  height: 20px;
}

.music-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.music-player-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.music-player-status {
  font-size: 11px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.music-player-bar {
  flex: 1;
  height: 3px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
  min-width: 60px;
}

.music-player-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

/* 播放动画 - 音波 */
.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.music-wave {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: musicWave 1s ease-in-out infinite;
}

.music-wave:nth-child(1) { animation-delay: 0s; height: 40%; }
.music-wave:nth-child(2) { animation-delay: 0.1s; height: 70%; }
.music-wave:nth-child(3) { animation-delay: 0.2s; height: 50%; }
.music-wave:nth-child(4) { animation-delay: 0.3s; height: 80%; }

@keyframes musicWave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.music-player:not(.playing) .music-wave {
  animation: none;
  transform: scaleY(0.3);
}

/* --- Footer --- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.footer-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo span {
  color: var(--ink-primary);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-column h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-tertiary);
  margin-bottom: 20px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  transition: color var(--duration-fast) var(--ease);
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--rule-light);
}

.footer-copyright {
}
.footer-icp {
  font-size: 0.8125rem;
  color: var(--ink-tertiary);
}
.footer-icp a {
  color: var(--ink-tertiary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}
.footer-icp a:hover {
  color: var(--accent);

  font-size: 0.8125rem;
  color: var(--ink-tertiary);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-tertiary);
  border-radius: 50%;
  transition: all var(--duration-fast) var(--ease);
}

.footer-social a:hover {
  color: var(--accent);
  background: var(--bg-tertiary);
}

/* --- Works List Page --- */
.page-header {
  padding-top: 160px;
  padding-bottom: 64px;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  max-width: 600px;
}

.works-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 0.875rem;
  color: var(--ink-secondary);
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: transparent;
  transition: all var(--duration-fast) var(--ease);
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--ink-secondary);
}

.filter-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
}

.work-card {
  display: block;
}

.work-card-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tertiary);
  margin-bottom: 20px;
  position: relative;
}

/* 竖版封面样式 */
.work-card-image.portrait {
  aspect-ratio: 3/4;
}

.work-card-image img,
.work-card-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.work-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--rule-light) 100%);
  color: var(--ink-tertiary);
  font-size: 0.875rem;
}

.work-card:hover .work-card-image img,
.work-card:hover .work-card-image-placeholder {
  transform: scale(1.03);
}

.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.work-card-category {
  font-size: 0.75rem;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-card-year {
  font-size: 0.75rem;
  color: var(--ink-tertiary);
}

.work-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
  transition: color var(--duration-fast) var(--ease);
}

.work-card:hover .work-card-title {
  color: var(--accent);
}

.work-card-desc {
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* Dynamic render work card styles */
.work-card-link {
  display: block;
  color: inherit;
}

.work-card-link:hover .work-card-title {
  color: var(--accent);
}

.work-card-info {
  padding: 0 4px;
}

.work-card-info .work-card-category {
  display: block;
  margin-bottom: 8px;
}

/* Zoom Scroll (Apple product style) */
.zoom-scroll-wrap {
  overflow: hidden;
  position: relative;
}

.zoom-scroll-element {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* --- Work Detail Page --- */
.work-detail-header {
  padding-top: 160px;
  padding-bottom: 80px;
}

.work-detail-header h1 {
  margin-bottom: 24px;
  max-width: 900px;
}

.work-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.875rem;
  color: var(--ink-secondary);
  margin-bottom: 64px;
}

.work-detail-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.work-detail-meta .meta-label {
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.work-detail-hero {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tertiary);
  margin-bottom: var(--section-space);
}

.work-detail-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--rule-light) 100%);
  color: var(--ink-tertiary);
}

.work-detail-content {
  max-width: 720px;
  margin: 0 auto;
}

.work-detail-section {
  margin-bottom: 80px;
}

.work-detail-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.work-detail-section p {
  color: var(--ink-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.work-detail-image {
  margin: 64px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.work-detail-image.wide {
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
}

.work-detail-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--rule-light) 100%);
  color: var(--ink-tertiary);
}

.work-detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 48px 0;
}

.work-detail-gallery .work-detail-image {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 3/4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.work-detail-gallery .work-detail-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.work-detail-gallery .work-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 40px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.work-info-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-tertiary);
  margin-bottom: 6px;
}

.work-info-item .value {
  font-size: 0.9375rem;
  color: var(--ink);
}

.work-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}

.work-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  transition: color var(--duration-fast) var(--ease);
}

.work-nav-link:hover {
  color: var(--accent);
}

.work-nav-link .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-tertiary);
  margin-bottom: 2px;
}

.work-nav-link .title {
  font-weight: 500;
  color: var(--ink);
}

/* --- Dynamic Work Detail Styles --- */
.detail-header {
  padding-top: 160px;
  padding-bottom: 64px;
  max-width: 900px;
}

.detail-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.detail-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.detail-subtitle {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  line-height: 1.7;
  max-width: 700px;
}

.detail-hero {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tertiary);
  margin-bottom: var(--section-space);
}

/* 竖版封面样式 */
.detail-hero.portrait {
  aspect-ratio: 3/4;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: var(--section-space);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.detail-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-tertiary);
}

.detail-info-value {
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 500;
}

.detail-description {
  min-width: 0;
}

.detail-description h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.detail-description p {
  color: var(--ink-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.0625rem;
}

/* --- 作品详情画廊 --- */
/* 作品详情视频 */
.detail-video {
  max-width: 960px;
  margin: 0 auto 80px;
  padding: 0;
}

.detail-video-title {
  font-size: 1.5rem;
  margin-bottom: 32px;
  text-align: center;
  color: var(--ink-primary);
}

.detail-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 比例 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.detail-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 作品详情画廊 */
.detail-gallery {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: var(--section-space);
}

.detail-gallery-title {
  font-size: 1.5rem;
  margin-bottom: 40px;
  text-align: center;
}

.detail-gallery-item {
  margin-bottom: 40px;
}

.detail-gallery-horizontal {
  width: 100%;
}

.detail-gallery-horizontal img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

.detail-gallery-vertical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.detail-gallery-vertical-grid .detail-gallery-item {
  margin-bottom: 0;
}

.detail-gallery-vertical-grid img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.detail-gallery-caption {
  font-size: 0.8125rem;
  color: var(--ink-tertiary);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* About page dynamic render classes */
.about-name {
  font-family: var(--font-display);
  font-weight: 700;
}

.about-title {
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.about-bio {
  color: var(--ink-secondary);
  line-height: 1.7;
}

.about-contact-email,
.about-contact-location {
  color: var(--ink);
}
.about-hero {
  padding-top: 180px;
  padding-bottom: 120px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 96px;
  align-items: center;
}

.about-hero-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-tertiary);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  color: var(--ink-tertiary);
}

[data-theme="dark"] .about-hero-placeholder {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.about-hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.about-hero-content p {
  font-size: 1.25rem;
  color: var(--ink-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-section {
  padding: var(--section-space) 0;
}

.about-section.alternate {
  background: var(--bg-secondary);
}

/* --- About Page Hero --- */
.about-page-hero {
  padding: calc(var(--section-space) * 1.2) 0 var(--section-space);
  text-align: center;
}

.about-page-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-page-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 16px 0 24px;
}

.about-page-subtitle {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--ink-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Philosophy Grid --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.philosophy-card {
  padding: 32px 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule-light);
  transition: all 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-4px);
  border-color: var(--rule);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .philosophy-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.philosophy-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.philosophy-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.philosophy-card p {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.7;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.two-column h2 {
  font-size: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-item {
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--rule-light);
}

.skill-item h4 {
  margin-bottom: 8px;
}

.skill-item p {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--rule);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-year {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--rule-light);
}

.award-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 60px;
}

.award-info h4 {
  margin-bottom: 4px;
}

.award-info p {
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

/* --- Contact Page --- */
.contact-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
}

.contact-hero h1 {
  margin-bottom: 24px;
}

.contact-hero p {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  padding-bottom: var(--section-space);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-info-item h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-tertiary);
  margin-bottom: 12px;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
}

.contact-info-item a:hover {
  color: var(--accent);
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.contact-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink-secondary);
  transition: all var(--duration-fast) var(--ease);
}

.contact-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-form {
  background: var(--bg-secondary);
  padding: 48px;
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  margin-top: 32px;
}

/* --- Page Transitions --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --gutter: 32px;
    --section-space: 80px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-preview {
    gap: 48px;
  }
  
  .work-item {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-space: 56px;
    --section-space-small: 40px;
  }
  
  body {
    font-size: 15px;
    line-height: 1.65;
  }
  
  p {
    margin-bottom: 16px;
  }
  
  .nav-links,
  .nav-actions .theme-toggle,
  .nav-actions .lang-toggle {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: flex;
  }
  
  .nav {
    padding: 16px 0;
  }
  
  .nav.scrolled {
    padding: 10px 0;
  }
  
  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 64px;
  }
  
  .hero-title {
    font-size: 2.25rem; /* 36px */
    margin-bottom: 20px;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.7;
  }
  
  .hero-eyebrow {
    margin-bottom: 20px;
  }
  
  .hero-actions {
    gap: 12px;
  }
  
  .hero-actions .btn {
    min-height: 48px;
    padding: 12px 20px;
  }
  
  .hero-scroll {
    display: none;
  }
  
  /* Hero Apple Style */
  .hero-apple {
    min-height: auto;
    padding: 100px 0 56px;
  }
  
  .hero-apple-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
  }
  
  .hero-apple-subtitle {
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.7;
    max-width: 100%;
    word-break: keep-all;
    text-wrap: balance;
  }
  
  .hero-apple-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .hero-apple-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  
  /* Hero scroll hint */
  .hero-scroll {
    bottom: 24px;
  }
  
  /* Section headers */
  .section-header {
    margin-bottom: 40px;
  }
  
  .eyebrow {
    margin-bottom: 12px;
  }
  
  /* Featured works grid - 1 column on mobile */
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .featured-image {
    margin-bottom: 16px;
  }
  
  .featured-title {
    font-size: 1.125rem;
  }
  
  .featured-desc {
    font-size: 0.875rem;
  }
  
  /* Work item (alternating layout) */
  .work-item,
  .work-item.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
    margin-bottom: 64px;
  }
  
  .work-title {
    font-size: 1.375rem;
    margin-bottom: 12px;
  }
  
  .work-description {
    font-size: 0.9375rem;
    margin-bottom: 16px;
  }
  
  .work-tags {
    margin-bottom: 20px;
  }
  
  /* About preview */
  .about-preview {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .about-portrait {
    max-width: 280px;
  }
  
  .about-content h2 {
    margin-bottom: 20px;
  }
  
  .about-content p {
    font-size: 1rem;
    margin-bottom: 16px;
  }
  
  /* Stats - 2 columns on tablet */
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
  }
  
  .about-stat-number {
    font-size: 2rem;
    margin-bottom: 6px;
  }
  
  .about-stat-label {
    font-size: 0.8125rem;
  }
  
  /* Large stat section - 2 columns on mobile */
  .stat-number-large {
    font-size: 2.5rem;
  }
  
  .stat-label-large {
    font-size: 0.875rem;
    margin-top: 8px;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 28px;
  }
  
  .service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
  }
  
  .service-card h3 {
    margin-bottom: 8px;
  }
  
  .service-card p {
    font-size: 0.875rem;
  }
  
  /* CTA section */
  .cta-section h2 {
    margin-bottom: 16px;
  }
  
  .cta-section p {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  
  .cta-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .cta-actions .btn {
    width: 100%;
  }
  
  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
  }
  
  .footer-links {
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .footer-column h4 {
    margin-bottom: 16px;
  }
  
  .footer-column ul {
    gap: 10px;
  }
  
  .footer-social a {
    width: 40px;
    height: 40px;
  }
  
  /* Works list page */
  .page-header {
    padding-top: 120px;
    padding-bottom: 48px;
  }
  
  .page-header h1 {
    margin-bottom: 12px;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  .works-filters {
    gap: 8px;
    margin-bottom: 32px;
  }
  
  .filter-btn {
    padding: 10px 18px;
    font-size: 0.8125rem;
    min-height: 40px;
  }
  
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
  
  .work-card-image {
    margin-bottom: 12px;
  }
  
  .work-card-title {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  
  .work-card-category {
    font-size: 0.6875rem;
  }
  
  .work-card-desc {
    font-size: 0.8125rem;
  }
  
  /* Work detail page */
  .work-detail-header {
    padding-top: 120px;
    padding-bottom: 48px;
  }
  
  .work-detail-header h1 {
    margin-bottom: 16px;
    font-size: 2rem;
  }
  
  .work-detail-meta {
    gap: 16px;
    margin-bottom: 40px;
    font-size: 0.8125rem;
  }
  
  .work-detail-hero {
    margin-bottom: var(--section-space);
  }
  
  .work-detail-content {
    max-width: 100%;
  }
  
  .work-detail-section {
    margin-bottom: 56px;
  }
  
  .work-detail-section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }
  
  .work-detail-section p {
    margin-bottom: 16px;
    font-size: 0.9375rem;
  }
  
  .work-detail-image {
    margin: 40px 0;
  }
  
  .work-detail-image.wide {
    margin-left: 0;
    margin-right: 0;
  }
  
  .work-detail-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 40px 0;
  }
  
  .work-detail-gallery .work-detail-image {
    margin: 0;
  }
  
  /* Dynamic detail page */
  .detail-header {
    padding-top: 120px;
    padding-bottom: 48px;
  }
  
  .detail-title {
    font-size: 2rem;
    margin-bottom: 16px;
  }
  
  .detail-subtitle {
    font-size: 1rem;
  }
  
  .detail-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: var(--section-space);
  }
  
  .detail-info {
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .detail-info-item {
    flex: 1 1 45%;
    gap: 4px;
  }
  
  .detail-description h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }
  
  .detail-description p {
    margin-bottom: 16px;
    font-size: 0.9375rem;
  }
  
  /* Gallery vertical - 1 column on mobile */
  .detail-gallery-vertical-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .detail-gallery {
    margin-top: 56px;
  }
  
  .detail-gallery-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
  }
  
  .detail-gallery-item {
    margin-bottom: 24px;
  }
  
  .detail-hero.portrait {
    max-width: 100%;
  }
  
  /* Work info grid */
  .work-info-grid {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 16px;
  }
  
  .work-navigation {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    margin-top: 56px;
    padding-top: 32px;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .detail-gallery {
    margin-top: 48px;
  }
  
  /* About page */
  .about-hero {
    padding-top: 120px;
    padding-bottom: 56px;
  }
  
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .about-hero-image {
    max-width: 280px;
  }
  
  .about-hero-content h1 {
    margin-bottom: 16px;
    font-size: 2rem;
  }
  
  .about-hero-content p {
    font-size: 1rem;
    margin-bottom: 16px;
    line-height: 1.7;
  }
  
  .about-section {
    padding: var(--section-space) 0;
  }
  
  /* About page hero mobile */
  .about-page-hero {
    padding: calc(var(--section-space) * 0.8) 0 var(--section-space);
  }
  
  .about-page-title {
    font-size: 2rem;
  }
  
  .about-page-subtitle {
    font-size: 1rem;
  }
  
  /* Philosophy grid mobile */
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }
  
  .philosophy-card {
    padding: 24px 20px;
  }
  
  .philosophy-number {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  
  .two-column {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .two-column h2 {
    font-size: 1.25rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .skill-item {
    padding: 20px;
  }
  
  .timeline {
    padding-left: 28px;
  }
  
  .timeline-item {
    margin-bottom: 28px;
  }
  
  .awards-list {
    gap: 16px;
  }
  
  .award-item {
    padding: 16px;
    gap: 16px;
  }
  
  .award-year {
    font-size: 1.25rem;
    min-width: 48px;
  }
  
  /* Team section */
  .team-section {
    padding: var(--section-space) 0;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
    margin-top: 32px;
  }
  
  .team-avatar {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
  }
  
  .team-name {
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .team-title {
    font-size: 13px;
    margin-bottom: 8px;
  }
  
  .team-bio {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  
  .team-skills {
    gap: 4px;
  }
  
  .team-skill {
    font-size: 11px;
    padding: 3px 8px;
  }
  
  /* Contact page */
  .contact-hero {
    padding-top: 120px;
    padding-bottom: 48px;
  }
  
  .contact-hero h1 {
    margin-bottom: 16px;
    font-size: 2rem;
  }
  
  .contact-hero p {
    font-size: 1rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: var(--section-space);
  }
  
  .contact-info {
    gap: 24px;
  }
  
  .contact-info-item h3 {
    margin-bottom: 8px;
  }
  
  .contact-info-item p,
  .contact-info-item a {
    font-size: 0.9375rem;
  }
  
  .contact-social a {
    width: 44px;
    height: 44px;
  }
  
  .contact-form {
    padding: 28px 20px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    font-size: 0.8125rem;
    margin-bottom: 6px;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px 14px;
    font-size: 0.9375rem;
    min-height: 44px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-submit {
    margin-top: 24px;
  }
  
  .form-submit .btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
    --section-space: 48px;
    --section-space-small: 32px;
  }
  
  body {
    font-size: 14px;
  }
  
  h1 { font-size: 1.875rem; } /* 30px */
  h2 { font-size: 1.5rem; } /* 24px */
  h3 { font-size: 1.125rem; } /* 18px */
  
  .container {
    padding: 0 var(--gutter);
  }
  
  /* Nav */
  .nav {
    padding: 12px 0;
  }
  
  .nav.scrolled {
    padding: 8px 0;
  }
  
  .nav-logo {
    font-size: 1.125rem;
  }
  
  .nav-mobile-toggle {
    width: 40px;
    height: 40px;
  }
  
  .nav-mobile-menu {
    width: 260px;
    padding: 70px 20px 24px;
  }
  
  .nav-mobile-menu .nav-link {
    font-size: 1rem;
    padding: 14px 0;
  }
  
  /* Hero - smaller title */
  .hero {
    padding: 100px 0 48px;
  }
  
  .hero-title {
    font-size: 2rem; /* 32px */
    margin-bottom: 16px;
  }
  
  .hero-description {
    font-size: 0.9375rem;
    margin-bottom: 28px;
  }
  
  .hero-eyebrow {
    font-size: 0.75rem;
    margin-bottom: 16px;
    padding: 4px 12px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  /* Hero Apple Style */
  .hero-apple {
    padding: 100px 0 48px;
  }
  
  .hero-apple-title {
    font-size: 2.125rem; /* 34px */
  }
  
  .hero-apple-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 28px;
    max-width: 100%;
    word-break: keep-all;
    text-wrap: balance;
  }
  
  /* Featured works - 1 column */
  .featured-grid {
    gap: 24px;
  }
  
  .featured-title {
    font-size: 1rem;
  }
  
  .featured-desc {
    font-size: 0.8125rem;
  }
  
  .featured-image {
    margin-bottom: 12px;
  }
  
  /* Work items */
  .work-item,
  .work-item.reverse {
    gap: 20px;
    margin-bottom: 48px;
  }
  
  .work-title {
    font-size: 1.25rem;
  }
  
  .work-meta {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
  
  .work-description {
    font-size: 0.875rem;
    margin-bottom: 12px;
  }
  
  .work-tags {
    margin-bottom: 16px;
    gap: 6px;
  }
  
  .work-tag {
    font-size: 0.6875rem;
    padding: 3px 10px;
  }
  
  /* Works grid - 1 column on very small screens */
  .works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .work-card-image {
    margin-bottom: 12px;
  }
  
  .work-card-title {
    font-size: 1.0625rem;
  }
  
  /* About preview */
  .about-preview {
    gap: 28px;
  }
  
  .about-portrait {
    max-width: 240px;
  }
  
  .about-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  
  .about-content p {
    font-size: 0.9375rem;
    margin-bottom: 14px;
  }
  
  /* Stats - 2 columns on small mobile */
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 28px;
    padding-top: 28px;
  }
  
  .about-stat-number {
    font-size: 1.75rem;
  }
  
  .about-stat-label {
    font-size: 0.75rem;
  }
  
  /* Large stat section - stack or 2 cols */
  .stat-number-large {
    font-size: 2rem;
  }
  
  .stat-label-large {
    font-size: 0.8125rem;
  }
  
  /* Services */
  .service-card {
    padding: 24px;
  }
  
  .service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    font-size: 1.25rem;
  }
  
  /* CTA */
  .cta-section h2 {
    font-size: 1.625rem;
  }
  
  .cta-section p {
    font-size: 0.9375rem;
    margin-bottom: 28px;
  }
  
  /* Footer */
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-inner {
    gap: 28px;
    margin-bottom: 28px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 28px;
  }
  
  .footer-column h4 {
    margin-bottom: 12px;
    font-size: 0.75rem;
  }
  
  .footer-column ul {
    gap: 8px;
  }
  
  .footer-column a {
    font-size: 0.875rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-top: 24px;
  }
  
  .footer-copyright {
    font-size: 0.75rem;
  }
  
  .footer-social {
    gap: 12px;
  }
  
  /* Page headers */
  .page-header {
    padding-top: 100px;
    padding-bottom: 36px;
  }
  
  .page-header h1 {
    font-size: 1.875rem;
  }
  
  .page-header p {
    font-size: 0.9375rem;
  }
  
  .section-header {
    margin-bottom: 32px;
  }
  
  .eyebrow {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }
  
  /* Works filters */
  .works-filters {
    gap: 6px;
    margin-bottom: 28px;
  }
  
  .filter-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
  
  /* Work detail */
  .work-detail-header {
    padding-top: 100px;
    padding-bottom: 36px;
  }
  
  .work-detail-header h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }
  
  .work-detail-meta {
    gap: 12px;
    margin-bottom: 32px;
    font-size: 0.75rem;
  }
  
  .work-detail-section {
    margin-bottom: 48px;
  }
  
  .work-detail-section h2 {
    font-size: 1.125rem;
    margin-bottom: 12px;
  }
  
  .work-detail-section p {
    margin-bottom: 14px;
    font-size: 0.875rem;
  }
  
  .work-detail-image {
    margin: 32px 0;
  }
  
  .work-detail-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 32px 0;
  }
  
  /* Dynamic detail */
  .detail-header {
    padding-top: 100px;
    padding-bottom: 36px;
  }
  
  .detail-title {
    font-size: 1.75rem;
  }
  
  .detail-subtitle {
    font-size: 0.9375rem;
  }
  
  .detail-content {
    gap: 32px;
  }
  
  .detail-info {
    gap: 16px;
  }
  
  .detail-info-item {
    flex: 1 1 100%;
  }
  
  .detail-description h2 {
    font-size: 1.125rem;
    margin-bottom: 12px;
  }
  
  .detail-description p {
    font-size: 0.9375rem;
    margin-bottom: 14px;
  }
  
  .detail-gallery-title {
    font-size: 1.125rem;
    margin-bottom: 20px;
  }
  
  .detail-gallery-item {
    margin-bottom: 20px;
  }
  
  .detail-gallery-vertical-grid {
    gap: 12px;
  }
  
  .work-info-grid {
    padding: 20px;
    gap: 12px;
  }
  
  .work-navigation {
    margin-top: 48px;
    padding-top: 24px;
    gap: 16px;
  }
  
  /* About page */
  .about-hero {
    padding-top: 100px;
    padding-bottom: 48px;
  }
  
  .about-hero-grid {
    gap: 28px;
  }
  
  .about-hero-image {
    max-width: 220px;
  }
  
  .about-hero-content h1 {
    font-size: 1.875rem;
    margin-bottom: 12px;
  }
  
  .about-hero-content p {
    font-size: 0.9375rem;
    margin-bottom: 14px;
  }
  
  .about-section {
    padding: var(--section-space) 0;
  }
  
  .two-column {
    gap: 20px;
  }
  
  .two-column h2 {
    font-size: 1.125rem;
  }
  
  .skills-grid {
    gap: 12px;
  }
  
  .skill-item {
    padding: 16px;
  }
  
  .skill-item h4 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  .skill-item p {
    font-size: 0.8125rem;
  }
  
  .timeline {
    padding-left: 24px;
  }
  
  .timeline-item {
    margin-bottom: 24px;
  }
  
  .timeline-year {
    font-size: 0.75rem;
  }
  
  .timeline-title {
    font-size: 0.9375rem;
  }
  
  .timeline-company {
    font-size: 0.8125rem;
  }
  
  .timeline-desc {
    font-size: 0.8125rem;
  }
  
  .awards-list {
    gap: 12px;
  }
  
  .award-item {
    padding: 14px;
    gap: 12px;
  }
  
  .award-year {
    font-size: 1.125rem;
    min-width: 40px;
  }
  
  .award-info h4 {
    font-size: 0.9375rem;
    margin-bottom: 2px;
  }
  
  .award-info p {
    font-size: 0.8125rem;
  }
  
  /* Team - 2 columns even on small */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
    margin-top: 28px;
  }
  
  .team-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 12px;
  }
  
  .team-name {
    font-size: 15px;
  }
  
  .team-title {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .team-bio {
    font-size: 12px;
    margin-bottom: 10px;
    display: none;
  }
  
  .team-skill {
    font-size: 10px;
    padding: 2px 6px;
  }
  
  /* Contact */
  .contact-hero {
    padding-top: 100px;
    padding-bottom: 36px;
  }
  
  .contact-hero h1 {
    font-size: 1.875rem;
    margin-bottom: 12px;
  }
  
  .contact-hero p {
    font-size: 0.9375rem;
  }
  
  .contact-grid {
    gap: 28px;
  }
  
  .contact-info {
    gap: 20px;
  }
  
  .contact-form {
    padding: 24px 16px;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-group label {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 10px 12px;
    font-size: 0.875rem;
  }
  
  .form-submit {
    margin-top: 20px;
  }
  
  /* Buttons */
  .btn {
    padding: 10px 18px;
    font-size: 0.875rem;
    min-height: 44px;
  }
  
  .btn-sm {
    padding: 8px 14px;
    font-size: 0.8125rem;
    min-height: 36px;
  }
  
  /* Cards */
  .card {
    padding: 20px;
  }
  
  /* Empty state */
  .empty-state {
    padding: 40px 16px;
  }
  
  .empty-state-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  
  .empty-state-text {
    font-size: 0.875rem;
    margin-bottom: 16px;
  }
}

/* ============================================
   Apple-Style Premium Animations
   ============================================ */

/* --- Parallax Elements --- */
.parallax-wrap {
  overflow: hidden;
  position: relative;
}

.parallax-element {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* --- Reveal Animations (Apple-style) --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(9) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(10) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* Text reveal - line by line */
.text-reveal-line {
  display: block;
  overflow: hidden;
}

.text-reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.text-reveal-line.active > span {
  transform: translateY(0);
}

.text-reveal-line:nth-child(1).active > span { transition-delay: 0.1s; }
.text-reveal-line:nth-child(2).active > span { transition-delay: 0.2s; }
.text-reveal-line:nth-child(3).active > span { transition-delay: 0.3s; }
.text-reveal-line:nth-child(4).active > span { transition-delay: 0.4s; }

/* --- Image Zoom on Scroll (Apple product style) --- */
.zoom-scroll {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* --- Hero Apple Style --- */
.hero-apple {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-apple-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-apple-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 48px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-hyphens: none;
  hyphens: none;
  text-wrap: balance;
}

.hero-apple-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

/* --- Large Stat Numbers --- */
.stat-number-large {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-label-large {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  margin-top: 12px;
}

/* --- Work Item Apple Large Style --- */
.work-showcase {
  padding: var(--section-space) 0;
}

.work-showcase-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16/10;
}

.work-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.work-showcase:hover .work-showcase-image img {
  transform: scale(1.04);
}

/* --- Magnetic Button Effect --- */
.magnetic-btn {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Smooth cursor highlight --- */
.glow-hover {
  position: relative;
  overflow: hidden;
}

.glow-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
}

.glow-hover:hover::before {
  left: 100%;
}

/* --- Marquee / Scrolling Text --- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Floating Animation --- */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-tertiary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Service Card Apple Hover --- */
.service-card-apple {
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.service-card-apple:hover {
  transform: translateY(-8px) scale(1.02);
}

/* --- Counter Style --- */
.counter {
  font-variant-numeric: tabular-nums;
}

/* --- Large Section Titles --- */
.section-title-xl {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* --- Sticky Nav Enhanced --- */
.nav.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

[data-theme="dark"] .nav.glass {
  background: rgba(13, 13, 13, 0.72);
}

/* --- Page transition --- */
.page-transition {
  animation: pageIn 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > *,
  .text-reveal-line > span,
  .float-animation,
  .marquee-content {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Portrait (Vertical) Works --- */
.featured-image.portrait {
  aspect-ratio: 3/4;
}

.work-card-image.portrait {
  aspect-ratio: 3/4;
}

.work-card-image.portrait img {
  height: 100%;
  width: auto;
}

/* --- Work Detail Gallery --- */
.detail-gallery {
  margin-top: 80px;
}

.detail-gallery-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.gallery-item {
  margin-bottom: 48px;
}

.gallery-item.horizontal {
  width: 100%;
}

.gallery-item.horizontal img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.gallery-item.vertical {
  width: 100%;
}

.gallery-item.vertical img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.gallery-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-secondary);
  text-align: center;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .detail-gallery {
    margin-top: 48px;
  }
}

/* --- Team Intro Section --- */
.team-intro-section {
  padding: var(--section-space) 0;
}

.team-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.team-intro-title {
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 16px;
}

.team-intro-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-intro-text {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--ink-secondary);
}

/* --- Team Section --- */
.team-section {
  padding: var(--section-space) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 48px 32px;
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.team-title {
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.team-bio {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.team-skill {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: 20px;
  color: var(--ink-secondary);
}

@media (max-width: 768px) {
  .team-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .team-intro-title {
    font-size: 1.75rem;
  }
  
  .team-intro-text {
    font-size: 1rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .team-avatar {
    width: 120px;
    height: 120px;
  }
  
  /* Music player mobile */
  .music-player {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px 10px 10px;
    gap: 10px;
  }
  
  .music-player-btn {
    width: 40px;
    height: 40px;
  }
  
  .music-player-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .music-player-name {
    max-width: 80px;
    font-size: 12px;
  }
  
  .music-player-bar {
    min-width: 40px;
  }
}
