/* ======================================
   xcao.me — Design System
   ====================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- CSS Variables --- */
:root {
  /* Colors - Navy base neutrals */
  --zinc-50: #f5f5f5;
  --zinc-100: #ebebed;
  --zinc-200: #d5d5da;
  --zinc-300: #b0b0b8;
  --zinc-400: #8a8a95;
  --zinc-500: #5c5c68;
  --zinc-600: #3a3a48;
  --zinc-700: #252535;
  --zinc-800: #1a1a2a;
  --zinc-900: #0F1626;

  /* Colors - Accent (Leather / Coral) */
  --indigo-50: #f7f3f0;
  --indigo-100: #e8ddd4;
  --indigo-200: #d4c4b5;
  --indigo-300: #c2ab96;
  --indigo-400: #AB987A;
  --indigo-500: #96845e;
  --indigo-600: #AB987A;
  --indigo-700: #8a7a60;

  /* Colors - Coral */
  --emerald-400: #FF533D;
  --emerald-700: #e0432d;

  /* Warm Colors for Background */
  --warm-50: #f5f5f5;
  --warm-100: #f0ece8;
  --warm-200: #e8e0d8;
  --warm-300: #ddd4ca;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);

  /* Card */
  --card-radius: 1.75rem;
  --card-padding: 3rem;
}

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

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

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF533D, #e0432d);
  z-index: 100;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f5f5f5 0%, #ededeb 100%);
  color: var(--zinc-800);
  font-family: var(--font-sans);
  line-height: 1.6;
}

::selection {
  background: rgba(255, 83, 61, 0.15);
  color: #0F1626;
}

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

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

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

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-highlight {
  color: var(--indigo-600);
  font-weight: 500;
}

.text-highlight-italic {
  color: var(--indigo-600);
  font-weight: 500;
  font-style: italic;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(253, 252, 251, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(224, 213, 201, 0.3);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--zinc-900);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
}

.nav-brand-title {
  font-size: 0.6875rem;
  color: var(--zinc-400);
  font-weight: 500;
  line-height: 1;
  margin-top: 2px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--zinc-600);
  padding: 0.5rem 0.875rem;
  border-radius: 0.625rem;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  color: var(--zinc-900);
  background: rgba(0, 0, 0, 0.04);
}

.nav-cta {
  background: #FF533D;
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: #e0432d;
  box-shadow: 0 10px 15px -3px rgba(255, 83, 61, 0.25);
}

.nav-cta:active {
  transform: scale(0.95);
}

.nav-mobile-btn {
  display: block;
  padding: 0.5rem;
  color: var(--zinc-900);
  cursor: pointer;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-menu.open {
  display: flex;
  justify-content: flex-end;
}

.mobile-menu-panel {
  width: 280px;
  background: white;
  height: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-2xl);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.mobile-menu-close {
  margin-bottom: 2rem;
  color: var(--zinc-500);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-link {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--zinc-100);
}

/* ======================================
   SCROLL CARD SYSTEM
   ====================================== */

.scroll-main {
  padding: 0 1.5rem;
}

.scroll-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

.scroll-section:first-child {
  padding-top: 7rem;
}

.card-panel {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(171, 152, 122, 0.35) 0%, transparent 25%),
    /* Leather tint (Top Right) */
    radial-gradient(circle at 0% 100%, rgba(15, 22, 38, 0.12) 0%, transparent 25%),
    /* Navy tint (Bottom Left) */
    linear-gradient(135deg, #f7f5f2 0%, #fafafa 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 24px 64px -12px rgba(0, 0, 0, 0.15),
    0 8px 24px -4px rgba(0, 0, 0, 0.08),
    0 0 2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
  will-change: opacity, transform;
  overflow: hidden;
}

.card-panel-inner {
  padding: var(--card-padding);
}

/* ======================================
   CARD 1: ABOUT ME
   ====================================== */

.card-about-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-about-layout .card-panel-inner {
  padding-bottom: 0;
}

.card-about-left {
  flex: 1;
}

.card-about-right {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 480px;
  overflow: visible;
}

.card-about-portrait {
  width: 480px;
  height: 600px;
  flex-shrink: 0;
  border-radius: 50% / 40%;
  background: linear-gradient(135deg, var(--warm-100), var(--warm-200));
  border: 2px solid var(--warm-300);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: -120px;
}

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

.card-about-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-tag {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: white;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--zinc-100);
  font-size: 0.75rem;
  max-width: 150px;
  animation: floatTag 3s ease-in-out infinite;
}

.floating-tag-title {
  font-weight: 700;
  color: var(--zinc-800);
  font-size: 0.75rem;
  line-height: 1.2;
}

.floating-tag-desc {
  font-size: 0.625rem;
  color: var(--zinc-400);
  line-height: 1.2;
}

.tag-top {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.tag-bottom {
  bottom: 28%;
  right: -12%;
  animation-delay: 1.5s;
}

@keyframes floatTag {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* --- Hero Elements (inside About card) --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 1rem;
  background: var(--indigo-50);
  border-radius: 9999px;
  border: 1px solid var(--indigo-100);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
}

.hero-badge-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--emerald-400);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--emerald-400);
}

.hero-badge-text {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--indigo-600);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--zinc-900);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title-accent {
  color: #FF533D;
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--zinc-500);
  font-weight: 300;
  line-height: 1.7;
  max-width: 30rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--zinc-500);
}

.hero-meta-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--zinc-200);
}

.hero-meta-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-meta-links a {
  font-weight: 500;
  transition: color 0.2s;
}

/* --- Hero Tags & Buttons --- */
.hero-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0F1626;
  background: rgba(171, 152, 122, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(171, 152, 122, 0.25);
}

.btn-subtle {
  background: #0F1626;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #0F1626;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-subtle:hover {
  background: #1a2440;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.hero-meta-links a:hover {
  color: var(--indigo-600);
}


/* --- Animations --- */
@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Badge --- */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Badge Color Variants — Navy & Leather palette */
.badge-warm {
  background: rgba(171, 152, 122, 0.3);
  color: #45392e;
  border: none;
}

.badge-sage {
  background: rgba(15, 22, 38, 0.12);
  color: #0F1626;
  border: none;
}

/* --- Section Header --- */
.section-header {
  margin-bottom: 2rem;
}

.section-header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.section-header-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--zinc-900);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.section-header-line {
  height: 1px;
  flex: 1;
  background: var(--zinc-200);
}

.section-header-subtitle {
  color: var(--zinc-400);
  font-size: 0.875rem;
  font-weight: 400;
}

/* --- Data Bars --- */
.data-bar {
  margin-bottom: 1rem;
}

.data-bar:last-child {
  margin-bottom: 0;
}

.data-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.data-bar-header .label {
  font-size: 10px;
  font-weight: 700;
  color: var(--zinc-400);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.data-bar-header .value {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.data-bar-track {
  height: 0.375rem;
  background: var(--zinc-100);
  border-radius: 9999px;
  overflow: hidden;
}

.data-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.data-bar-fill.emerald {
  background: var(--emerald-400);
}

.data-bar-fill.indigo {
  background: var(--indigo-500);
}

/* ======================================
   CARD 2: Selected Work — Duo Grid
   ====================================== */

.work-duo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* --- Work Cards --- */
.work-card {
  background: white;
  border-radius: 1.5rem;
  border: 1px solid var(--zinc-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s ease;
}

.work-card:hover {
  border-color: var(--indigo-200);
  box-shadow: 0 20px 40px -12px rgba(15, 22, 38, 0.15);
  transform: translateY(-6px);
}

.work-card-dark {
  background: var(--zinc-900);
  color: white;
  border-color: var(--zinc-700);
}

.work-card-dark:hover {
  border-color: var(--indigo-400);
}

.work-card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--zinc-900);
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.work-card-dark h3 {
  color: white;
}

.work-card p {
  color: var(--zinc-500);
  font-size: 0.875rem;
  line-height: 1.6;
}

.work-card-dark p {
  color: var(--zinc-400);
}

.work-card-dark .badge {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Card: Identity */
.card-identity {
  display: flex;
  flex-direction: column;
}

.card-identity-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card-identity-visual {
  background: var(--zinc-50);
  border-top: 1px solid var(--zinc-100);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.card-visual-device {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  background: white;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.card-visual-dots {
  display: flex;
  gap: 0.375rem;
  position: absolute;
  top: 1rem;
  left: 1.25rem;
}

.card-visual-dots span {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--zinc-200);
}

.card-visual-dots span:first-child {
  background: #ef4444;
}

.card-visual-dots span:nth-child(2) {
  background: #f59e0b;
}

.card-visual-dots span:last-child {
  background: #22c55e;
}

.card-visual-icon {
  color: var(--indigo-300);
}

.card-visual-play {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
}

.card-visual-play-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--indigo-600);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.card-visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12rem;
  height: 12rem;
  background: rgba(199, 210, 254, 0.4);
  filter: blur(48px);
  border-radius: 9999px;
}

/* Card: EZConnect (compact for duo grid) */
.card-ezconnect-compact {
  display: flex;
  flex-direction: column;
}

.card-ezconnect-visual {
  background: var(--zinc-50);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
}

.ezconnect-gif {
  width: 100%;
  height: auto;
  display: block;
}

.card-ezconnect-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

.icon-box {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid var(--zinc-200);
  background: white;
  color: var(--zinc-600);
  box-shadow: var(--shadow-sm);
}

.zap-icon {
  color: var(--indigo-500);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.card-ezconnect-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10rem;
  height: 10rem;
  background: rgba(199, 210, 254, 0.3);
  filter: blur(40px);
  border-radius: 9999px;
}

.card-ezconnect-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.card-ezconnect-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-ezconnect-body p {
  font-size: 0.875rem;
  color: var(--zinc-500);
}

.card-stats {
  display: flex;
  gap: 0.75rem;
}

.card-stat {
  flex: 1;
  background: var(--zinc-50);
  border-radius: 1rem;
  padding: 0.875rem;
  border: 1px solid var(--zinc-100);
  text-align: center;
}

.card-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--zinc-400);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.card-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
}

.card-stat-value.indigo {
  color: var(--indigo-600);
}

.card-stat-value.dark {
  color: var(--zinc-900);
}

/* ======================================
   CARD 3: Strategic Memos
   ====================================== */

/* --- Memo Card --- */
.memo-card {
  position: relative;
  background: var(--zinc-50);
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid var(--zinc-200);
  transition: all 0.5s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.memo-card:hover {
  border-color: var(--indigo-300);
  box-shadow: 0 18px 36px -10px rgba(15, 22, 38, 0.12);
  background: white;
  transform: translateY(-4px);
}

.memo-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.memo-card-date {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--zinc-400);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.memo-card h4 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--zinc-900);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
  line-height: 1.4;
}

.memo-card:hover h4 {
  color: #FF533D;
}

.memo-card p {
  color: var(--zinc-500);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.memo-card-cta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #FF533D;
  opacity: 0;
  transform: translateX(-0.5rem);
  transition: all 0.3s ease;
}

.memo-card:hover .memo-card-cta {
  opacity: 1;
  transform: translateX(0);
}

/* --- Memo Grid --- */
.memo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* ======================================
   CARD 4: Creative Lab — Duo Grid
   ====================================== */

.creative-duo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Card: Safety */
.card-safety {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-safety-status {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--emerald-400);
  background: rgba(52, 211, 153, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.card-safety-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card-safety-metric {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.card-safety-metric .label {
  font-size: 10px;
  color: var(--zinc-500);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-safety-metric .value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.card-safety-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(99, 102, 241, 0.1);
  filter: blur(100px);
  border-radius: 9999px;
}

/* Card: Creator POV */
.card-creator {
  padding: 2rem;
}

.card-creator-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.card-creator-header h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--zinc-900);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.card-creator-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid var(--zinc-200);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zinc-50);
  transition: all 0.3s;
}

.work-card:hover .card-creator-icon {
  background: var(--indigo-600);
  color: white;
}

.card-creator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card-creator-text {
  color: var(--zinc-500);
  font-size: 0.875rem;
  line-height: 1.6;
}

.card-creator-text p+p {
  margin-top: 1rem;
}

.card-creator-chart {
  background: var(--zinc-50);
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--zinc-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-creator-chart-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--zinc-400);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-platform-icons {
  display: flex;
  gap: 0.5rem;
  color: var(--zinc-300);
  font-size: 0.875rem;
}

.growth-chart-container {
  position: relative;
  height: 10rem;
  width: 100%;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 5rem;
  margin-bottom: 0.75rem;
}

.chart-bar {
  flex: 1;
  background: var(--indigo-200);
  border-radius: 3px 3px 0 0;
  transition: background 0.7s ease;
}

.work-card:hover .chart-bar {
  background: var(--indigo-600);
}

.chart-dates {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: var(--zinc-500);
  text-transform: uppercase;
}

/* ======================================
   CARD 5: Philosophy + Off Screen
   ====================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--zinc-400);
  margin-bottom: 1.5rem;
}

.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--zinc-900);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about-quote .accent {
  color: var(--indigo-600);
}

.about-text {
  color: var(--zinc-500);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.about-text p+p {
  margin-top: 1.25rem;
}

.interest-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.interest-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid transparent;
  transition: all 0.3s;
  position: relative;
}

.interest-item:hover {
  background: var(--zinc-50);
  border-color: var(--zinc-100);
}

.interest-hover-img {
  position: absolute;
  top: -100px;
  right: -60px;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 3px solid white;
  opacity: 0;
  transform: scale(0.8) rotate(-3deg);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.interest-item-swim:hover .interest-hover-img,
.interest-item-hover:hover .interest-hover-img {
  opacity: 1;
  transform: scale(1) rotate(2deg);
}

.interest-icon {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  background: var(--zinc-100);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zinc-500);
  transition: all 0.3s;
}

.interest-item:hover .interest-icon {
  background: var(--indigo-600);
  color: white;
}

.interest-title {
  font-weight: 700;
  color: var(--zinc-900);
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.interest-desc {
  font-size: 0.8125rem;
  color: var(--zinc-500);
  font-weight: 300;
}

/* ======================================
   FOOTER
   ====================================== */

.footer {
  background: var(--zinc-900);
  color: white;
  padding: 5rem 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 3rem;
  height: 3rem;
  background: white;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zinc-900);
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 1.25rem;
}

.footer-brand h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.footer-desc {
  color: var(--zinc-500);
  max-width: 24rem;
  font-weight: 300;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--zinc-600);
}

.footer-nav-link {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.2s;
}

.footer-nav-link:hover {
  color: var(--indigo-400);
}

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--zinc-600);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ======================================
   CONTACT MODAL
   ====================================== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  animation: fadeInZoom 0.3s ease;
}

.modal-inner {
  padding: 2rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--zinc-900);
}

.modal-header p {
  color: var(--zinc-500);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.modal-close {
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 9999px;
  transition: background 0.2s;
  color: var(--zinc-400);
}

.modal-close:hover {
  background: var(--zinc-100);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zinc-400);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--zinc-50);
  border: 1px solid var(--zinc-200);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.form-textarea {
  height: 8rem;
  resize: vertical;
}

.form-submit {
  width: 100%;
  background: var(--zinc-900);
  color: white;
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1);
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--indigo-600);
}

/* ======================================
   Article Page Styles
   ====================================== */

.article-page {
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zinc-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.article-back:hover {
  color: var(--indigo-600);
}

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--zinc-100);
}

.article-header .badge {
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--zinc-900);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.8125rem;
  color: var(--zinc-400);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Markdown Article Content */
.article-content {
  max-width: 700px;
  color: var(--zinc-700);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-content h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--zinc-900);
  margin: 3rem 0 1rem;
  line-height: 1.3;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--zinc-900);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--zinc-900);
  margin: 2rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content a {
  color: var(--indigo-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--indigo-700);
}

.article-content blockquote {
  border-left: 3px solid var(--indigo-300);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--zinc-500);
  font-style: italic;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--zinc-100);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: var(--indigo-600);
}

.article-content pre {
  background: var(--zinc-900);
  color: var(--zinc-100);
  padding: 1.5rem;
  border-radius: 1rem;
  margin: 2rem 0;
  overflow-x: auto;
}

.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.article-content img {
  border-radius: 1rem;
  margin: 2rem 0;
}

.article-content hr {
  border: none;
  height: 1px;
  background: var(--zinc-200);
  margin: 3rem 0;
}

.article-content strong {
  color: var(--zinc-900);
  font-weight: 600;
}

.article-placeholder {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--zinc-400);
}

.article-placeholder i {
  margin-bottom: 1.5rem;
  color: var(--zinc-300);
}

.article-placeholder h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--zinc-500);
  margin-bottom: 0.75rem;
}

.article-placeholder p {
  font-size: 0.875rem;
  max-width: 24rem;
  margin: 0 auto;
}

/* ======================================
   RESPONSIVE
   ====================================== */

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-mobile-btn {
    display: none;
  }

  .scroll-section {
    padding: 4rem 0;
  }

  .card-panel-inner {
    padding: 3.5rem;
  }

  .card-about-layout {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
  }

  .card-about-left {
    flex: 1.1;
  }

  .card-about-right {
    flex: 0.9;
    min-height: 480px;
  }

  .card-about-portrait {
    width: 440px;
    height: 560px;
  }

  .work-duo-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .card-identity {
    flex-direction: row;
  }

  .card-identity-content {
    width: 55%;
  }

  .card-identity-visual {
    width: 45%;
    border-top: none;
    border-left: 1px solid var(--zinc-100);
  }

  .memo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .creative-duo-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .card-creator-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .scroll-main {
    padding: 0 2rem;
  }

  .card-panel-inner {
    padding: 4rem;
  }
}

/* Utility: sr-only (screen reader only) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}