/* ============================================
   档暗代设计工作室 | Down and Dye Studio
   Styles v2.0 — 杂志式深色主题
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f0f;
  --bg-tertiary: #141414;
  --bg-card: #1a1a1a;
  --bg-elevated: #1e1e1e;
  --text-primary: #f0f0f0;
  --text-secondary: #8a8a8a;
  --text-muted: #555555;
  --text-dim: #3a3a3a;
  --accent: #c9a96e;
  --accent-soft: rgba(201, 169, 110, 0.12);
  --accent-hover: #d4b87a;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --font-cn: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1400px;
  --content-width: 1200px;
  --narrow-width: 800px;
  --nav-height: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
  --duration-reveal: 1.2s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-cn);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--bg-primary); }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.container--narrow {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 10, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.logo:hover { opacity: 0.8; }

.logo-cn {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.logo-en {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
}

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

.nav-links > li > a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
  letter-spacing: 0.06em;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--text-primary);
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  width: 100%;
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown .arrow {
  font-size: 8px;
  margin-left: 3px;
  transition: transform var(--duration-normal) var(--ease-out);
  display: inline-block;
}

.dropdown:hover .arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03) inset;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 24px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
  border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Hero Section — 全屏沉浸式
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero-bg.png') center center / cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s var(--ease-out);
  will-change: transform;
}

.hero.in-view .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201, 169, 110, 0.06) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 40px;
  padding: 10px 28px;
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 100px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero-title {
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s var(--ease-out) 0.5s forwards;
}

.title-line {
  display: block;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.title-line.accent {
  color: var(--accent);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 6vw, 72px);
}

.hero-sub {
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-weight: 300;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s var(--ease-out) 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s var(--ease-out) 0.9s forwards;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  font-family: var(--font-en);
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 1.2s forwards;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50% { opacity: 0.8; transform: scaleY(1); }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-family: var(--font-cn);
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  letter-spacing: 0.06em;
  border: none;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 169, 110, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 52px;
  font-size: 14px;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 8px 0;
  border: none;
}

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

/* ============================================
   Sections — 大量留白
   ============================================ */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 96px);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-desc {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
   Services Grid
   ============================================ */
.services {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.service-card {
  background: var(--bg-secondary);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
  transition: all var(--duration-slow) var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.service-card:hover {
  background: var(--bg-tertiary);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 32px;
  opacity: 0.8;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.service-card:hover .service-icon { opacity: 1; }

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.service-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: auto;
}

.service-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 400;
  margin-top: 24px;
  transition: all var(--duration-normal) var(--ease-out);
  letter-spacing: 0.05em;
}

.service-card:hover .service-link {
  letter-spacing: 0.1em;
}

/* ============================================
   Featured Works — 杂志式展示
   ============================================ */
.featured-works {
  background: var(--bg-primary);
}

.featured-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

/* 大图通栏 */
.featured-row--full {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
}

/* 双栏并排 */
.featured-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}

/* 三栏网格 */
.featured-row--third {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}

/* 作品卡片 */
.featured-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
}

.featured-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.featured-card:hover .featured-card-image img {
  transform: scale(1.04);
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 40px);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

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

.featured-card-overlay h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  margin-bottom: 8px;
  transform: translateY(10px);
  transition: transform var(--duration-normal) var(--ease-out);
}

.featured-card:hover .featured-card-overlay h3 {
  transform: translateY(0);
}

.featured-card-overlay p {
  font-size: 13px;
  color: var(--text-secondary);
  transform: translateY(10px);
  transition: transform var(--duration-normal) var(--ease-out) 0.05s;
}

.featured-card:hover .featured-card-overlay p {
  transform: translateY(0);
}

/* ============================================
   About Preview
   ============================================ */
.about-preview {
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about-text .section-tag {
  text-align: left;
}

.about-text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.about-text p {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 20px;
}

.about-text .btn {
  margin-top: 20px;
}

.about-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  pointer-events: none;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: var(--bg-secondary);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ============================================
   Works Page — 杂志式排版
   ============================================ */
.works-hero {
  padding: clamp(140px, 18vw, 200px) 0 clamp(60px, 8vw, 100px);
  background: var(--bg-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.works-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.works-hero p {
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  letter-spacing: 0.08em;
  font-weight: 300;
}

/* ============================================
   Project Cards — 杂志式大图
   ============================================ */
.project-showcase {
  padding: clamp(60px, 8vw, 100px) 0;
}

/* 通栏大图卡片 */
.project-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: clamp(40px, 6vw, 80px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--duration-slow) var(--ease-out);
}

.project-feature:hover {
  border-color: var(--border-hover);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}

.project-feature:nth-child(even) {
  direction: rtl;
}

.project-feature:nth-child(even) > * {
  direction: ltr;
}

.project-feature-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.project-feature:hover .project-feature-image img {
  transform: scale(1.03);
}

.project-feature-content {
  padding: clamp(32px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-feature-number {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.project-feature-content h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.project-feature-content .subtitle-en {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.project-feature-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.project-feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-feature-tags span {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 300;
  transition: all var(--duration-fast) var(--ease-out);
}

.project-feature:hover .project-feature-tags span {
  border-color: var(--border-hover);
}

/* 网格卡片 (3列 / 4列) */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(40px, 6vw, 80px) 0;
}

.project-card {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card-image {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.project-card:hover .project-card-image {
  border-color: var(--border-hover);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-image .image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
}

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

.project-card-number {
  font-family: var(--font-en);
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.project-card-info .title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.project-card-info .title-row h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.02em;
}

.project-card-info .title-row .title-en {
  font-family: var(--font-en);
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.project-card-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.project-tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 300;
}

@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature:nth-child(even) { direction: ltr; }
  .project-feature-image { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .project-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   About Page
   ============================================ */
.about-hero {
  padding: clamp(140px, 18vw, 200px) 0 clamp(60px, 8vw, 100px);
  background: var(--bg-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.about-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.about-content {
  max-width: var(--narrow-width);
  margin: clamp(60px, 8vw, 120px) auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.about-content h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  margin-bottom: 24px;
  margin-top: 56px;
  letter-spacing: -0.01em;
}

.about-content h2:first-child { margin-top: 0; }

.about-content p {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 24px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.value-item {
  text-align: center;
  padding: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 32px);
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all var(--duration-normal) var(--ease-out);
}

.value-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.value-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent);
}

.value-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-hero {
  padding: clamp(140px, 18vw, 200px) 0 clamp(60px, 8vw, 100px);
  background: var(--bg-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.contact-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(60px, 8vw, 120px) 0;
}

.contact-info h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.contact-method {
  margin-bottom: 32px;
}

.contact-method h3 {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-method p {
  font-size: 16px;
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(32px, 4vw, 56px);
}

.contact-form h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 32px;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 14px;
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
}

/* ============================================
   Project Detail Page
   ============================================ */
.project-hero {
  padding: clamp(140px, 18vw, 200px) 0 clamp(60px, 8vw, 100px);
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.project-hero .section-tag { margin-bottom: 24px; }

.project-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.project-hero p {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

.project-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.project-tags span {
  padding: 5px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 300;
}

.project-description {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 48px);
}

.project-description h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.project-description p {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 20px;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  padding: 0 clamp(20px, 4vw, 48px) clamp(40px, 6vw, 80px);
  max-width: var(--content-width);
  margin: 0 auto;
}

.project-gallery--full {
  grid-template-columns: 1fr;
}

.gallery-image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

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

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 40px clamp(20px, 4vw, 48px) clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--border);
  max-width: var(--content-width);
  margin: 0 auto;
}

.project-nav a {
  color: var(--text-secondary);
  font-size: 13px;
  transition: color var(--duration-fast) var(--ease-out);
  letter-spacing: 0.03em;
}

.project-nav a:hover { color: var(--accent); }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-primary);
  padding: clamp(60px, 8vw, 100px) 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(32px, 4vw, 64px);
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links ul li { margin-bottom: 12px; }

.footer-links ul li a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links ul li a:hover { color: var(--accent); }

.footer-contact p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
}

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

.reveal-fade {
  opacity: 0;
  transition: opacity var(--duration-reveal) var(--ease-out);
}

.reveal-fade.revealed {
  opacity: 1;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for grid items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ============================================
   Page Transition
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  transform: translateY(-100%);
  pointer-events: none;
}

.page-transition.entering {
  animation: pageEnter 0.6s var(--ease-out) forwards;
}

.page-transition.leaving {
  animation: pageLeave 0.6s var(--ease-out) forwards;
}

@keyframes pageEnter {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes pageLeave {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}

/* ============================================
   Image Lazy Load
   ============================================ */
img[data-src] {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

img[data-src].loaded {
  opacity: 1;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-row--third { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links > li { width: 100%; }

  .nav-links > li > a {
    display: block;
    padding: 14px 0;
  }

  .dropdown-menu {
    position: static;
    background: transparent;
    border: none;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
  }

  .dropdown.open .dropdown-menu { display: block; }

  .menu-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .featured-row--half { grid-template-columns: 1fr; }
  .featured-row--third { grid-template-columns: 1fr; }

  .about-values { grid-template-columns: 1fr; }

  .contact-form { padding: 28px 20px; }

  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }

  .project-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .works-hero, .about-hero, .contact-hero, .project-hero {
    padding: 120px 0 48px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .navbar, .scroll-indicator, .hero-bg { display: none; }
  body { background: white; color: black; }
  .section { padding: 40px 0; }
}
