/* ==========================================================================
   HaHo Design System — Web Tokens (coralCamo brand)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400;1,9..40,500&display=swap');

/* --- Light Mode Tokens --- */
:root {
  /* Brand Primitives */
  --primary-80: #657671;
  --primary-100: #465A54;
  --primary-120: #252F2C;
  --secondary-10: #FFF3F2;
  --secondary-40: #FFC3BF;
  --secondary-100: #FF6A5F;
  --secondary-120: #EB5B52;

  /* Neutral Scale */
  --n0: #FFFFFF;
  --n0-5: #FAFAF9;
  --n1: #F5F5F3;
  --n1-5: #F0F0EC;
  --n2: #EBEBE6;
  --n3: #E2E1DA;
  --n4: #D8D7CD;
  --n5: #CECDC1;
  --n6: #A5A49A;
  --n7: #7C7B74;
  --n8: #52524D;
  --n8-5: #3E3E3A;
  --n9: #292927;
  --n9-5: #151513;
  --n10: #000000;

  /* Semantic Surface */
  --surface-bg: var(--n0-5);
  --surface-card: var(--n2);
  --surface-card-hover: var(--n3);
  --surface-primary: var(--primary-100);
  --surface-primary-dark: var(--primary-120);
  --surface-secondary: var(--secondary-100);

  /* Semantic Text */
  --text-primary: var(--n9);
  --text-secondary: var(--n8);
  --text-tertiary: var(--n7);
  --text-on-dark: var(--n0-5);
  --text-on-coral: var(--n9);
  --text-accent: var(--primary-100);
  --text-coral: var(--secondary-100);

  /* Semantic Border */
  --border-default: var(--n2);
  --border-subtle: var(--n3);
  --border-strong: var(--n8);

  /* Status */
  --error: #FF6565;
  --warning: #FFD143;
  --validated: #76F057;
  --info: #53D5FF;

  /* Typography */
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-none: 0px;
  --space-xxxs: 2px;
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 40px;
  --space-xxxl: 48px;
  --space-xxxxl: 64px;

  /* Radius */
  --radius-none: 0px;
  --radius-xxs: 4px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-xxl: 40px;
  --radius-full: 360px;

  /* Border Width */
  --border-sm: 1px;
  --border-md: 2px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(41, 41, 39, 0.06);
  --shadow-md: 0 4px 12px rgba(41, 41, 39, 0.08);
  --shadow-lg: 0 8px 24px rgba(41, 41, 39, 0.12);

  /* Transition */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Dark Mode Tokens --- */
[data-theme="dark"] {
  --n0: #000000;
  --n0-5: #292927;
  --n1: #3E3E3A;
  --n1-5: #3E3E3A;
  --n2: #3E3E3A;
  --n3: #52524D;
  --n4: #7C7B74;
  --n5: #CECDC1;
  --n6: #A5A49A;
  --n7: #7C7B74;
  --n8: #EBEBE6;
  --n8-5: #F0F0EC;
  --n9: #E2E1DA;
  --n9-5: #F5F5F3;
  --n10: #FFFFFF;

  --surface-bg: #292927;
  --surface-card: #3E3E3A;
  --surface-card-hover: #52524D;
  --surface-primary: #FF6A5F;
  --surface-primary-dark: #CECDC1;
  --surface-secondary: #465A54;

  --text-primary: #E2E1DA;
  --text-secondary: #EBEBE6;
  --text-tertiary: #A5A49A;
  --text-on-dark: #292927;
  --text-on-coral: #292927;
  --text-accent: #FF6A5F;
  --text-coral: #FF6A5F;

  --border-default: #3E3E3A;
  --border-subtle: #52524D;
  --border-strong: #EBEBE6;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Base Reset & Globals
   ========================================================================== */

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

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

body {
  font-family: var(--font-family);
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--surface-bg);
  line-height: 1.5;
  letter-spacing: -0.025em;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   Typography Classes
   ========================================================================== */

.display1 { font-size: 56px; font-weight: 500; line-height: 1.2; letter-spacing: -0.05em; }
.display2 { font-size: 48px; font-weight: 500; line-height: 1.2; letter-spacing: -0.05em; }
.h1       { font-size: 40px; font-weight: 500; line-height: 1.2; letter-spacing: -0.045em; }
.h2       { font-size: 36px; font-weight: 500; line-height: 1.2; letter-spacing: -0.045em; }
.h3       { font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -0.045em; }
.h4       { font-size: 24px; font-weight: 500; line-height: 1.4; letter-spacing: -0.04em; }
.h5       { font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -0.04em; }
.h6       { font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -0.035em; }
.body-semibold { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -0.025em; }
.body          { font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: -0.025em; }
.body-regular  { font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: -0.025em; }
.label    { font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: -0.025em; }
.caption  { font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: -0.025em; }
.small    { font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: -0.02em; }

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface-bg);
  border-bottom: var(--border-sm) solid var(--border-default);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

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

.nav-logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.nav-logo span {
  color: var(--text-coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  letter-spacing: -0.025em;
}

.nav-links a:hover {
  color: var(--text-coral);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: var(--border-sm) solid var(--border-default);
  background: transparent;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--surface-card);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Mobile menu */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface-bg);
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: var(--border-sm) solid var(--border-default);
  }

  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding-top: 100px;
  padding-bottom: var(--space-xxxxl);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxxxl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xxs) var(--space-sm);
  background: var(--secondary-10);
  color: var(--secondary-120);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

[data-theme="dark"] .hero-badge {
  background: rgba(255, 106, 95, 0.15);
  color: var(--secondary-100);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--secondary-100);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-lg);
}

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

.hero-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  letter-spacing: -0.035em;
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone {
  position: relative;
  width: 280px;
  height: 560px;
  background: var(--surface-card);
  border-radius: var(--radius-xxl);
  border: var(--border-md) solid var(--border-default);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--surface-bg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.hero-phone-screen {
  padding: var(--space-xxl) var(--space-lg);
  padding-top: 48px;
}

.hero-phone-screen .app-header {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.hero-phone-screen .app-card {
  background: var(--surface-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--text-on-dark);
}

.hero-phone-screen .app-card-sm {
  background: var(--secondary-10);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
}

[data-theme="dark"] .hero-phone-screen .app-card-sm {
  background: rgba(255, 106, 95, 0.1);
}

.hero-phone-screen .app-card-row {
  display: flex;
  gap: var(--space-sm);
}

.hero-phone-screen .app-card-row > div {
  flex: 1;
  background: var(--surface-card);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  text-align: center;
}

.hero-phone-screen .stat-number {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero-phone-screen .stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: var(--space-xxs);
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding-top: 100px; }
  .hero-content { grid-template-columns: 1fr; gap: var(--space-xxl); }
  .hero-visual { order: -1; }
  .hero-phone { width: 220px; height: 440px; }
  .hero-phone-screen { padding: var(--space-lg) var(--space-md); padding-top: 40px; }
}

/* ==========================================================================
   Buttons (DS-style)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}

.btn-md {
  height: 48px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-xl);
}

.btn-sm {
  height: 40px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-lg);
}

/* filledA — secondary-100 bg */
.btn-coral {
  background: var(--secondary-100);
  color: var(--n9);
}
.btn-coral:hover { background: var(--secondary-120); }

/* filledB — primary-100 bg */
.btn-primary {
  background: var(--surface-primary);
  color: var(--text-on-dark);
}
.btn-primary:hover { background: var(--surface-primary-dark); }

/* neutral */
.btn-neutral {
  background: var(--surface-card);
  color: var(--text-primary);
}
.btn-neutral:hover { background: var(--surface-card-hover); }

/* outlined */
.btn-outlined {
  background: transparent;
  color: var(--text-primary);
  border: var(--border-sm) solid var(--border-default);
}
.btn-outlined:hover { background: var(--surface-card); }

/* text */
.btn-text {
  background: transparent;
  color: var(--text-primary);
  padding: 0 var(--space-sm);
}
.btn-text:hover { color: var(--text-coral); }

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Cards (DSCard)
   ========================================================================== */

.ds-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-normal);
}

.ds-card-dark {
  background: var(--surface-primary);
  color: var(--text-on-dark);
}

.ds-card-coral {
  background: var(--secondary-100);
  color: var(--n9);
}

.ds-card:hover {
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
  background: var(--surface-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.about-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: var(--surface-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  font-size: 48px;
  font-weight: 500;
}

.about-text h2 {
  margin-bottom: var(--space-md);
}

.about-text p {
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about-stat {
  text-align: center;
  padding: var(--space-lg);
  background: var(--surface-card);
  border-radius: var(--radius-lg);
}

.about-stat .number {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--text-coral);
}

.about-stat .stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: var(--space-xxs);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Skills Section
   ========================================================================== */

.skills {
  background: var(--surface-bg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-tertiary);
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.skill-card {
  padding: var(--space-xl);
}

.skill-card .skill-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.skill-icon-primary {
  background: var(--surface-primary);
  color: var(--text-on-dark);
}

.skill-icon-coral {
  background: var(--secondary-100);
  color: var(--n9);
}

.skill-icon-neutral {
  background: var(--surface-card-hover);
  color: var(--text-primary);
}

[data-theme="dark"] .skill-icon-neutral {
  background: var(--border-subtle);
}

.skill-card svg {
  width: 24px;
  height: 24px;
}

.skill-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.skill-card p {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 400;
  line-height: 1.6;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.skill-tag {
  display: inline-flex;
  padding: var(--space-xxs) var(--space-sm);
  background: var(--surface-bg);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border: var(--border-sm) solid var(--border-default);
}

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

/* ==========================================================================
   Projects Section
   ========================================================================== */

.projects {
  background: var(--surface-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.project-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-preview {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface-card);
  background: var(--surface-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-preview-dark { background: var(--surface-primary); }
.project-preview-coral { background: var(--secondary-100); }
.project-preview-neutral { background: var(--surface-card); }

.project-preview .phone-mock {
  width: 120px;
  height: 240px;
  background: var(--surface-bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-default);
  position: relative;
  transform: perspective(800px) rotateY(-5deg);
  box-shadow: var(--shadow-md);
}

.project-preview .phone-mock-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  background: var(--surface-card);
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
}

.project-info {
  padding: var(--space-lg);
}

.project-info h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: var(--space-xxs);
}

.project-info .project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.project-tag {
  padding: var(--space-xxxs) var(--space-xs);
  background: var(--surface-bg);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: -0.02em;
}

.project-preview-agent {
  background: linear-gradient(135deg, #1a1040 0%, #2d1b69 50%, #0d0d2b 100%);
}

.agent-mascot {
  width: auto;
  height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(100, 100, 255, 0.3));
}

.phone-frame {
  position: relative;
  width: 140px;
  height: 280px;
  background: var(--n0);
  border-radius: 28px;
  border: 4px solid #000000;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.phone-frame-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: #000000;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 2;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.web-frame {
  position: relative;
  width: 85%;
  max-width: 420px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-default);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--n0);
}

.web-frame-bar {
  height: 20px;
  background: var(--surface-card);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}

.web-frame-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-default);
}

.web-frame img {
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .phone-frame { width: 100px; height: 200px; }
}

/* ==========================================================================
   Experience Section
   ========================================================================== */

.experience {
  background: var(--surface-bg);
}

.timeline {
  max-width: 640px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: var(--space-lg);
  padding-bottom: var(--space-xxl);
  position: relative;
}

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

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--secondary-100);
  flex-shrink: 0;
  margin-top: 6px;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--border-default);
  margin-top: var(--space-xs);
}

.timeline-content h3 {
  font-size: 18px;
  font-weight: 500;
}

.timeline-content .company {
  font-size: 14px;
  color: var(--text-coral);
  font-weight: 500;
  margin-bottom: var(--space-xxs);
}

.timeline-content .period {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
  background: var(--surface-bg);
  padding-bottom: var(--space-xxxxl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: start;
}

.contact-card {
  background: var(--surface-primary);
  color: var(--text-on-dark);
  padding: var(--space-xxl);
}

.contact-card h2 {
  margin-bottom: var(--space-md);
}

.contact-card p {
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-on-dark);
  transition: opacity var(--transition-fast);
}

.contact-link:hover { opacity: 0.7; }

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  padding: var(--space-sm) var(--space-md);
  border: var(--border-sm) solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
  letter-spacing: -0.025em;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--secondary-100);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: var(--space-xl) 0;
  border-top: var(--border-sm) solid var(--border-default);
}

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

.footer-text {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.footer-text span {
  color: var(--secondary-100);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-coral);
  background: var(--surface-card);
}

.footer-links svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: var(--space-md); text-align: center; }
}

/* ==========================================================================
   Scroll to Top
   ========================================================================== */

.scroll-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--secondary-100);
  color: var(--n9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
  z-index: 50;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--secondary-120);
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  transform: rotate(90deg);
}

/* ==========================================================================
   Utility
   ========================================================================== */

.text-coral { color: var(--text-coral); }
.text-primary-accent { color: var(--text-accent); }
.text-muted { color: var(--text-tertiary); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ==========================================================================
   Project Detail Pages
   ========================================================================== */

.project-detail {
  padding-top: 100px;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
  transition: color var(--transition-fast);
}

.project-back:hover { color: var(--text-coral); }

.project-back svg {
  width: 18px;
  height: 18px;
}

.project-hero {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-xxl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-hero-dark { background: var(--surface-primary); }
.project-hero-coral { background: var(--secondary-100); }
.project-hero-neutral { background: var(--surface-card); }
.project-hero-agent { background: linear-gradient(135deg, #1a1040 0%, #2d1b69 50%, #0d0d2b 100%); }

.project-hero .hero-phone-detail {
  width: 180px;
  height: 360px;
  background: var(--surface-bg);
  border-radius: var(--radius-xxl);
  border: 2px solid var(--border-default);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.project-hero .agent-mascot-detail {
  width: auto;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(100, 100, 255, 0.3));
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xxl);
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  color: var(--text-secondary);
}

.project-meta-item .meta-label {
  font-weight: 600;
  color: var(--text-primary);
}

.project-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xxl);
}

.project-detail-tag {
  padding: var(--space-xxs) var(--space-md);
  background: var(--surface-card);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.project-content h2 {
  margin-top: var(--space-xxl);
  margin-bottom: var(--space-md);
}

.project-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: 20px;
}

.project-content p {
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-size: 16px;
}

.project-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.project-content li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.7;
}

.project-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--secondary-100);
}

.project-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
  background: var(--surface-card);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 500;
}

.project-cta {
  margin-top: var(--space-xxl);
  padding-top: var(--space-xxl);
  border-top: var(--border-sm) solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-cta-text {
  font-size: 14px;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .project-hero { aspect-ratio: 16/9; }
  .project-cta { flex-direction: column; gap: var(--space-md); text-align: center; }
}
