/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.8rem, 0.8rem + 5.5vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Core brand */
  --royal: #1a3a8f;
  --royal-deep: #0f2464;
  --royal-light: #2e52c2;
  --royal-glow: #4a72e8;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --max-w: 1200px;
  --content-narrow: 900px;
}

/* ============================================
   LIGHT MODE (default)
   ============================================ */
:root, [data-theme="light"] {
  --color-bg: #fafbfe;
  --color-surface: #ffffff;
  --color-surface-alt: #f0f3fa;
  --color-border: #dde2ef;
  --color-text: #0d1b3e;
  --color-text-mid: #3d4f7a;
  --color-text-light: #7484a8;
  --shadow-sm: 0 1px 3px rgba(15,36,100,0.04);
  --shadow-md: 0 4px 16px rgba(15,36,100,0.08);
  --shadow-lg: 0 12px 40px rgba(15,36,100,0.12);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --color-bg: #0a0f1e;
  --color-surface: #111827;
  --color-surface-alt: #151c2e;
  --color-border: #1e293b;
  --color-text: #d1d5e4;
  --color-text-mid: #8892b0;
  --color-text-light: #5a6585;
  --royal: #4a72e8;
  --royal-deep: #1a3a8f;
  --royal-light: #6b8ff5;
  --royal-glow: #7da0ff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0a0f1e;
    --color-surface: #111827;
    --color-surface-alt: #151c2e;
    --color-border: #1e293b;
    --color-text: #d1d5e4;
    --color-text-mid: #8892b0;
    --color-text-light: #5a6585;
    --royal: #4a72e8;
    --royal-deep: #1a3a8f;
    --royal-light: #6b8ff5;
    --royal-glow: #7da0ff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
  }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.5);
  transition: box-shadow 0.3s ease;
}
.header--scrolled { box-shadow: var(--shadow-md); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: var(--space-3) var(--space-6);
}
.header__logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--royal); display: flex; align-items: center; gap: var(--space-2);
  letter-spacing: -0.02em;
}
.header__logo span { color: var(--color-text); }
[data-theme="dark"] .header__logo span { color: var(--color-text); }
.header__logo-svg { flex-shrink: 0; }
[data-theme="dark"] .header__logo-svg rect { fill: var(--royal); }

.header__nav { display: flex; align-items: center; gap: var(--space-6); }
.header__nav a {
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text-mid);
  position: relative; padding: var(--space-1) 0;
}
.header__nav a:hover, .header__nav a.active { color: var(--royal); }
.header__nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--royal); border-radius: 1px;
  transition: width 0.3s var(--ease);
}
.header__nav a:hover::after, .header__nav a.active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: var(--space-2); }

.theme-toggle {
  width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; border-radius: var(--radius-full);
  color: var(--color-text-mid);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover { color: var(--royal); background: var(--color-surface-alt); }
[data-theme="dark"] .theme-icon-moon,
:root:not([data-theme="dark"]) .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-sun,
:root:not([data-theme="dark"]) .theme-icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-icon-sun { display: block; }
  :root:not([data-theme]) .theme-icon-moon { display: none; }
}

.mobile-toggle {
  display: none; width: 44px; height: 44px; align-items: center;
  justify-content: center; color: var(--color-text-mid);
}
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--royal-deep); flex-direction: column;
  align-items: center; justify-content: center; gap: var(--space-8);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: white;
}
.mobile-close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; color: white;
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-menu { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--royal-deep) 0%, var(--royal) 40%, var(--royal-light) 100%);
}
.hero__bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(74,114,232,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(15,36,100,0.4) 0%, transparent 50%);
}
.hero__bg::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(to top, var(--color-bg), transparent);
}
.hero__content {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 1.1fr 0.9fr; gap: var(--space-16); align-items: center;
  max-width: var(--max-w); margin: 0 auto; padding: var(--space-16) var(--space-6);
}
.hero__text { display: flex; flex-direction: column; gap: var(--space-5); }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.35rem 1rem; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; color: rgba(255,255,255,0.9);
  text-transform: uppercase; letter-spacing: 0.08em; width: fit-content;
  backdrop-filter: blur(8px);
}
.hero__badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero__title {
  font-family: var(--font-display); font-size: var(--text-hero);
  font-weight: 800; color: #ffffff; letter-spacing: -0.03em; line-height: 1.05;
}
.hero__dot { color: var(--royal-glow); }
.hero__subtitle {
  font-size: var(--text-base); color: rgba(255,255,255,0.72);
  max-width: 48ch; line-height: 1.7;
}
.hero__ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); }

.hero__image { display: flex; justify-content: center; position: relative; }
.hero__image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.hero__image-frame::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255,255,255,0.15);
  pointer-events: none;
}
.hero__image-frame img {
  width: 100%; max-width: 400px; aspect-ratio: 3/4; object-fit: cover;
  object-position: top center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding-bottom: var(--space-16); }
  .hero__content { grid-template-columns: 1fr; text-align: center; padding-top: var(--space-12); gap: var(--space-10); }
  .hero__image { order: -1; }
  .hero__image-frame img { max-width: 260px; }
  .hero__badge { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__subtitle { margin-inline: auto; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.75rem 1.75rem; font-size: var(--text-sm); font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-full);
  transition: all 180ms var(--ease);
  cursor: pointer; border: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--white { background: #fff; color: var(--royal-deep); }
.btn--white:hover { background: #f0f3fa; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn--white:active { transform: translateY(0); }
.btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.btn--ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }
.btn--ghost:active { transform: translateY(0); }
.btn--primary { background: var(--royal); color: #fff; }
.btn--primary:hover { background: var(--royal-deep); transform: translateY(-1px); box-shadow: 0 6px 20px oklch(from var(--royal) l c h / 0.3); }
.btn--primary:active { transform: translateY(0); }
[data-theme="dark"] .btn--primary { background: var(--royal-glow); color: #0a0f1e; }
[data-theme="dark"] .btn--primary:hover { background: var(--royal-light); }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: clamp(var(--space-16), 8vw, var(--space-24)) 0; }
.section--alt { background: var(--color-surface-alt); }
.section--dark {
  background: var(--royal-deep);
  color: #fff;
}
[data-theme="dark"] .section--dark { background: #080c18; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow { max-width: var(--content-narrow); }

.section__header { text-align: center; margin-bottom: var(--space-12); }
.section__label {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--royal-glow); margin-bottom: var(--space-3);
}
.section--dark .section__label { color: rgba(255,255,255,0.45); }
.section__title {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 800; color: var(--color-text); letter-spacing: -0.02em;
}
.section--dark .section__title { color: #fff; }
.section__subtitle {
  font-size: var(--text-base); color: var(--color-text-light);
  max-width: 56ch; margin: var(--space-3) auto 0; line-height: 1.7;
}
.section--dark .section__subtitle { color: rgba(255,255,255,0.55); }

/* ============================================
   MY STORY
   ============================================ */
.story { max-width: 800px; margin: 0 auto; }
.story__intro {
  font-size: var(--text-base); color: var(--color-text-mid); line-height: 1.8;
  margin-bottom: var(--space-10); text-align: center; max-width: 65ch; margin-inline: auto;
}
.story__chapter {
  margin-bottom: var(--space-8); padding-left: var(--space-6);
  border-left: 3px solid var(--color-border);
  transition: border-color 0.3s;
}
.story__chapter:hover { border-color: var(--royal-glow); }
.story__chapter-title {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700;
  color: var(--royal); margin-bottom: var(--space-2);
}
[data-theme="dark"] .story__chapter-title { color: var(--royal-glow); }
.story__chapter p {
  font-size: var(--text-base); color: var(--color-text-mid); line-height: 1.8;
  margin-bottom: var(--space-3);
}
.story__chapter ul { list-style: none; padding: 0; margin: var(--space-3) 0; }
.story__chapter ul li {
  padding: var(--space-2) 0 var(--space-2) var(--space-6); position: relative;
  font-size: var(--text-base); color: var(--color-text-mid); line-height: 1.6;
}
.story__chapter ul li::before {
  content: ''; position: absolute; left: 0; top: 0.85rem;
  width: 8px; height: 8px; background: var(--royal-glow); border-radius: 50%;
}
.story__chapter ul li strong { color: var(--color-text); font-weight: 600; }

.story__figure {
  margin: var(--space-6) 0 var(--space-2);
  border-radius: var(--radius-lg); overflow: hidden;
}
.story__figure img {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.story__figure figcaption {
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600;
  color: var(--royal); font-style: italic; text-align: center;
  margin-top: var(--space-3);
}
[data-theme="dark"] .story__figure figcaption { color: var(--royal-glow); }

/* ============================================
   JOURNEY TIMELINE
   ============================================ */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 19px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--royal-glow), var(--royal));
}
.timeline__item {
  display: flex; gap: var(--space-6); margin-bottom: var(--space-8);
  position: relative;
}
.timeline__marker {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.timeline__marker::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  background: var(--royal-glow); border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--royal-glow);
}
[data-theme="dark"] .timeline__marker::before { border-color: var(--color-surface-alt); }
.timeline__content { flex: 1; padding-top: var(--space-2); }
.timeline__year {
  font-size: var(--text-xs); font-weight: 700; color: var(--royal-glow);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-1);
}
.timeline__title {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700;
  color: var(--color-text); margin-bottom: var(--space-1);
}
.timeline__desc { font-size: var(--text-base); color: var(--color-text-mid); line-height: 1.7; }

@media (max-width: 768px) {
  .timeline::before { left: 15px; }
  .timeline__item { gap: var(--space-4); }
  .timeline__marker { width: 32px; height: 32px; }
}

/* ============================================
   ABOUT
   ============================================ */
.about__grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16); align-items: center;
}
.about__image img {
  width: 100%; max-width: 480px; aspect-ratio: 4/5; object-fit: cover;
  object-position: top center; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.about__content { display: flex; flex-direction: column; gap: var(--space-4); }
.about__text { font-size: var(--text-base); color: var(--color-text-mid); line-height: 1.8; }
.about__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4); margin-top: var(--space-4);
}
.stat {
  text-align: center; padding: var(--space-5);
  background: var(--color-surface-alt); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.stat__number {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800;
  color: var(--royal);
}
.stat__label { font-size: var(--text-xs); color: var(--color-text-light); margin-top: var(--space-1); }

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; text-align: center; gap: var(--space-10); }
  .about__image { display: flex; justify-content: center; }
  .about__image img { max-width: 300px; }
}

/* ============================================
   EXPERTISE / SKILLS
   ============================================ */
.skills__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-5);
}
.skill-card {
  padding: var(--space-6); background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.skill-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.15); border-color: rgba(255,255,255,0.15); }
.skill-card__icon { width: 40px; height: 40px; color: rgba(255,255,255,0.65); margin-bottom: var(--space-4); }
.skill-card__title {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700;
  color: #fff; margin-bottom: var(--space-2);
}
.skill-card__desc { font-size: var(--text-sm); color: rgba(255,255,255,0.55); line-height: 1.65; }
.skill-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.tag {
  padding: 0.2rem 0.65rem; font-size: 0.7rem; font-weight: 600;
  color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
}

/* Certs */
.certs { margin-top: var(--space-16); }
.certs__row { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }
.cert-badge {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: var(--space-6) var(--space-8); background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg);
  text-align: center; min-width: 200px;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}
.cert-badge:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); }
.cert-badge__icon { width: 48px; height: 48px; color: rgba(255,255,255,0.6); }
.cert-badge__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: #fff; }
.cert-badge__org { font-size: var(--text-xs); color: rgba(255,255,255,0.45); }

/* ============================================
   YOUTUBE
   ============================================ */
.youtube__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}
.video-card {
  display: block; background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.video-card__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.video-card:hover .video-card__thumb img { transform: scale(1.04); }
.video-card__play {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,0.25);
  opacity: 0; transition: opacity 0.3s;
}
.video-card:hover .video-card__play { opacity: 1; }
.video-card__play svg { width: 48px; height: 48px; color: #fff; }
.video-card__body { padding: var(--space-4); }
.video-card__title {
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700;
  color: var(--color-text); margin-bottom: var(--space-2); line-height: 1.4;
}
.video-card__channel { font-size: var(--text-xs); color: var(--color-text-light); }
.youtube__cta { text-align: center; margin-top: var(--space-8); }

/* ============================================
   GALLERY
   ============================================ */
.gallery__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto; gap: var(--space-3);
}
.gallery__item {
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; position: relative;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--large { grid-column: span 2; grid-row: span 2; }

@media (max-width: 768px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--large { grid-column: span 2; grid-row: span 1; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,15,30,0.95); display: flex; align-items: center;
  justify-content: center; opacity: 0; pointer-events: none;
  transition: opacity 0.3s; cursor: pointer;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-md); }
.lightbox__close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; color: #fff; background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
}

/* ============================================
   CONTACT
   ============================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: var(--space-6); }
.contact__item { display: flex; align-items: center; gap: var(--space-3); }
.contact__icon {
  width: 48px; height: 48px; display: flex; align-items: center;
  justify-content: center; background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full); color: var(--royal); flex-shrink: 0;
}
.contact__icon svg { width: 20px; height: 20px; }
.contact__label { font-size: var(--text-xs); color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.06em; }
.contact__value { font-size: var(--text-base); color: var(--color-text); font-weight: 500; }
.contact__value a:hover { color: var(--royal); }

.contact__form { display: flex; flex-direction: column; gap: var(--space-4); }
.contact__form input,
.contact__form textarea {
  width: 100%; padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  font-size: var(--text-sm); color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none; border-color: var(--royal);
  box-shadow: 0 0 0 3px oklch(from var(--royal) l c h / 0.12);
}
.contact__form textarea { resize: vertical; min-height: 120px; }
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--color-text-light); }

@media (max-width: 768px) { .contact__grid { grid-template-columns: 1fr; gap: var(--space-10); } }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-12) 0 var(--space-6);
  border-top: 1px solid var(--color-border);
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-4);
}
.footer__copy { font-size: var(--text-xs); color: var(--color-text-light); }
.footer__links { display: flex; gap: var(--space-3); }
.footer__links a {
  width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; color: var(--color-text-light); border-radius: var(--radius-full);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.footer__links a:hover { color: var(--royal); background: var(--color-surface-alt); }
.footer__links a svg { width: 18px; height: 18px; }
.footer__attribution {
  width: 100%; text-align: center; font-size: var(--text-xs); color: var(--color-text-light);
  margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border);
}
.footer__attribution a:hover { color: var(--royal); }

/* ============================================
   SCROLL ANIMATIONS (CSS-native, no CLS)
   ============================================ */
.fade-in { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    transition: opacity 0.7s var(--ease);
  }
  .fade-in.visible { opacity: 1; }
}
