/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  /* Color — Background */
  --color-bg:             #09090b;
  --color-bg-subtle:      #0f0f12;
  --color-surface:        #151518;
  --color-surface-hover:  #1a1a1e;
  --color-surface-raised: #1e1e23;

  /* Color — Border */
  --color-border:         rgba(255, 255, 255, 0.06);
  --color-border-hover:   rgba(255, 255, 255, 0.1);
  --color-border-focus:   rgba(184, 153, 100, 0.4);

  /* Color — Text */
  --color-text:           #ede9e0;
  --color-text-secondary: #8a8680;
  --color-text-tertiary:  #55524e;
  --color-text-inverse:   #09090b;

  /* Color — Accent (Muted Gold) */
  --color-accent:         #b4935a;
  --color-accent-light:   #c9a76e;
  --color-accent-muted:   rgba(180, 147, 90, 0.12);
  --color-accent-hover:   rgba(180, 147, 90, 0.18);

  /* Color — Semantic */
  --color-focus-ring:     rgba(180, 147, 90, 0.35);

  /* Typography — Font Families */
  --font-display:  'Cormorant Garamond', 'Georgia', serif;
  --font-heading:  'Syne', 'Helvetica Neue', sans-serif;
  --font-body:     'Inter', 'Helvetica Neue', sans-serif;
  --font-mono:     'DM Mono', 'SF Mono', monospace;

  /* Typography — Font Sizes */
  --text-xs:    0.75rem;
  --text-sm:    0.8125rem;
  --text-base:  0.9375rem;
  --text-md:    1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   2rem;
  --text-4xl:   2.75rem;
  --text-5xl:   3.5rem;
  --text-6xl:   clamp(3.5rem, 7vw, 6rem);
  --text-hero:  clamp(4rem, 9vw, 8.5rem);

  /* Typography — Line Heights */
  --leading-none:    1;
  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  /* Typography — Letter Spacing */
  --tracking-tighter: -0.03em;
  --tracking-tight:   -0.015em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.08em;
  --tracking-widest:  0.14em;
  --tracking-extreme: 0.22em;

  /* Typography — Font Weights */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;

  /* Spacing Scale (8px base) */
  --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;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;

  /* Layout */
  --max-width:    1140px;
  --max-width-lg: 1280px;
  --gutter:       clamp(1.5rem, 5vw, 4rem);
  --section-gap:  clamp(5rem, 12vh, 9rem);

  /* Border Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --radius-full:9999px;

  /* Elevation */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl:  0 24px 64px rgba(0, 0, 0, 0.5);

  /* Motion */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft:  cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:    cubic-bezier(0.34, 1.4, 0.64, 1);
  --duration-fast:  180ms;
  --duration-base:  320ms;
  --duration-slow:  500ms;
  --duration-slower:700ms;

  /* Z-Index Scale */
  --z-base:     1;
  --z-above:    10;
  --z-nav:      100;
  --z-overlay:  200;
  --z-modal:    300;
  --z-toast:    400;
}


/* ============================================================
   RESET
   ============================================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--color-accent-muted);
  color: var(--color-text);
}


/* ============================================================
   SKIP LINK (Accessibility)
   ============================================================ */

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}


/* ============================================================
   FOCUS STYLES
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

.display {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tighter);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-extreme);
  text-transform: uppercase;
  color: var(--color-accent);
}

.label--large {
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
}


/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--wide {
  max-width: var(--max-width-lg);
}

section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  position: relative;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-5) 0;
  transition: all var(--duration-slow) var(--ease-out);
}

.nav.is-scrolled {
  padding: var(--space-3) 0;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
}

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

.nav__logo {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  transition: color var(--duration-fast) var(--ease-out);
}

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

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

.nav__link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link.is-active {
  color: var(--color-accent);
}

/* Mobile Menu Button */
.nav__menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: var(--z-overlay);
  align-items: center;
  justify-content: center;
}

.nav__menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all var(--duration-base) var(--ease-out);
}

.nav__menu-btn span:nth-child(1) { top: calc(50% - 6px); }
.nav__menu-btn span:nth-child(2) { top: 50%; transform: translate(-50%, -50%); }
.nav__menu-btn span:nth-child(3) { bottom: calc(50% - 6px); }

.nav__menu-btn.is-open span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav__menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__menu-btn.is-open span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile Overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(9, 9, 11, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-out);
}

.nav__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav__overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-10);
}

.nav__overlay-link {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-secondary);
  letter-spacing: var(--tracking-tight);
  transition: color var(--duration-fast) var(--ease-out);
  transform: translateY(20px);
  opacity: 0;
  transition: color var(--duration-fast) var(--ease-out),
              transform var(--duration-slow) var(--ease-out),
              opacity var(--duration-slow) var(--ease-out);
}

.nav__overlay.is-open .nav__overlay-link {
  transform: translateY(0);
  opacity: 1;
}

.nav__overlay.is-open .nav__overlay-link:nth-child(1) { transition-delay: 80ms; }
.nav__overlay.is-open .nav__overlay-link:nth-child(2) { transition-delay: 140ms; }
.nav__overlay.is-open .nav__overlay-link:nth-child(3) { transition-delay: 200ms; }
.nav__overlay.is-open .nav__overlay-link:nth-child(4) { transition-delay: 260ms; }
.nav__overlay.is-open .nav__overlay-link:nth-child(5) { transition-delay: 320ms; }
.nav__overlay.is-open .nav__overlay-link:nth-child(6) { transition-delay: 380ms; }

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

.nav__overlay-link.is-active {
  color: var(--color-accent);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--space-32);
  padding-bottom: var(--space-16);
  position: relative;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.hero__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  position: relative;
}

.hero__status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  opacity: 0;
  animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.8); }
}

.hero__status-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero__name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-light);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.hero__name-accent {
  display: block;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero__description {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-tertiary);
  max-width: 480px;
  margin-bottom: var(--space-12);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollLine 2.5s ease-in-out infinite;
}

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

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-extreme);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-accent);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.btn--primary:hover {
  box-shadow: 0 0 0 1px var(--color-accent-light),
              0 8px 32px rgba(180, 147, 90, 0.25);
  transform: translateY(-1px);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 0 0 1px var(--color-accent),
              0 4px 16px rgba(180, 147, 90, 0.2);
}

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

.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-muted);
}

.btn--secondary:active {
  background: var(--color-accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
  padding: var(--space-2) var(--space-4);
}

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

.btn__arrow {
  transition: transform var(--duration-fast) var(--ease-out);
  font-size: 1.1em;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}


/* ============================================================
   SECTION HEADER
   ============================================================ */

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

.section-header__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-extreme);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.section-header__label::after {
  content: '';
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.3;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

.section-header__title .display-word {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-style: italic;
}

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

.section-header--center .section-header__label {
  justify-content: center;
}


/* ============================================================
   PROJECTS
   ============================================================ */

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

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.project-card--featured {
  grid-column: 1 / -1;
}

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

.project-card__visual {
  aspect-ratio: 16 / 7;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card--featured .project-card__visual {
  aspect-ratio: 21 / 8;
}

.project-card__visual-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: var(--weight-light);
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  right: var(--space-8);
  bottom: var(--space-4);
  line-height: 1;
  user-select: none;
}

.project-card__visual-icon {
  font-size: 2.5rem;
  opacity: 0.15;
  z-index: 1;
}

.project-card__body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-extreme);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.project-card--featured .project-card__title {
  font-size: var(--text-2xl);
}

.project-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.project-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-tertiary);
  letter-spacing: var(--tracking-wide);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  transition: gap var(--duration-fast) var(--ease-out);
}

.project-card__link:hover {
  gap: var(--space-3);
}

.project-card__link svg {
  width: 14px;
  height: 14px;
}

/* Project visual color variants */
.project-card__visual--blue {
  background: linear-gradient(160deg, #0c1222 0%, #111827 50%, #0f172a 100%);
}

.project-card__visual--emerald {
  background: linear-gradient(160deg, #071510 0%, #0f2318 50%, #0a1a12 100%);
}

.project-card__visual--amber {
  background: linear-gradient(160deg, #1a1208 0%, #1c1709 50%, #15100a 100%);
}

.project-card__visual--rose {
  background: linear-gradient(160deg, #1a0c14 0%, #1c0f18 50%, #150a12 100%);
}

.project-card__visual--indigo {
  background: linear-gradient(160deg, #100e1f 0%, #14112a 50%, #0e0c1a 100%);
}

.project-card__visual-accent {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.project-card:hover .project-card__visual-accent {
  opacity: 0.2;
}

.project-card__visual--blue .project-card__visual-accent { background: #4a8af5; top: 20%; right: 15%; }
.project-card__visual--emerald .project-card__visual-accent { background: #34d399; top: 30%; left: 20%; }
.project-card__visual--amber .project-card__visual-accent { background: #d4a04a; top: 25%; right: 20%; }
.project-card__visual--rose .project-card__visual-accent { background: #d45a7a; top: 20%; left: 25%; }
.project-card__visual--indigo .project-card__visual-accent { background: #7c6af5; top: 30%; right: 10%; }


/* ============================================================
   SKILLS
   ============================================================ */

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

.skill-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--duration-slow) var(--ease-out);
  position: relative;
}

.skill-card:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-hover);
}

.skill-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  letter-spacing: var(--tracking-wide);
  transition: all var(--duration-fast) var(--ease-out);
}

.skill-card:hover .skill-tag {
  border-color: var(--color-border-hover);
  color: var(--color-text);
}


/* ============================================================
   EXPERIENCE
   ============================================================ */

.experience-timeline {
  position: relative;
  padding-left: var(--space-12);
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  opacity: 0.3;
}

.experience-item {
  position: relative;
  padding-bottom: var(--space-12);
}

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

.experience-item__dot {
  position: absolute;
  left: calc(-1 * var(--space-12) + 1px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  transition: all var(--duration-base) var(--ease-out);
  z-index: 1;
}

.experience-item:hover .experience-item__dot {
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-muted);
}

.experience-item__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-extreme);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.experience-item__role {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-1);
}

.experience-item__company {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
}

.experience-item__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.experience-item__point {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  padding-left: var(--space-5);
  position: relative;
}

.experience-item__point::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}


/* ============================================================
   EDUCATION
   ============================================================ */

.education-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out);
}

.education-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.education-card__accent {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-accent-muted);
  filter: blur(60px);
  pointer-events: none;
}

.education-card__degree {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}

.education-card__school {
  font-size: var(--text-base);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  font-weight: var(--weight-medium);
}

.education-card__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-8);
}

.education-card__courses {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.education-card__course {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  letter-spacing: var(--tracking-wide);
  transition: all var(--duration-fast) var(--ease-out);
}

.education-card__course:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}


/* ============================================================
   CERTIFICATIONS
   ============================================================ */

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

.cert-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  transition: all var(--duration-slow) var(--ease-out);
}

.cert-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.cert-card__marker {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-accent-muted);
  border: 1px solid rgba(180, 147, 90, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-card__marker svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
}

.cert-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-1);
}

.cert-card__org {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: var(--tracking-wide);
}


/* ============================================================
   LEADERSHIP
   ============================================================ */

.leadership-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out);
}

.leadership-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.leadership-card__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-extreme);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.leadership-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}

.leadership-card__org {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.leadership-card__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.leadership-card__point {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  padding-left: var(--space-5);
  position: relative;
}

.leadership-card__point::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}


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

.contact {
  text-align: center;
}

.contact__text {
  max-width: 480px;
  margin: 0 auto var(--space-12);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.contact__links {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-out);
  min-width: 200px;
}

.contact-link:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-link svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-text-secondary);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  transition: stroke var(--duration-fast) var(--ease-out);
}

.contact-link:hover svg {
  stroke: var(--color-accent);
}

.contact-link__info {
  text-align: left;
}

.contact-link__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  display: block;
  margin-bottom: 2px;
}

.contact-link__value {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}


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

.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

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

.footer__copy {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: var(--tracking-wide);
}

.footer__made {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: var(--tracking-wide);
}

.footer__made span {
  color: var(--color-accent);
}


/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="delay-1"] { transition-delay: 60ms; }
[data-reveal="delay-2"] { transition-delay: 120ms; }
[data-reveal="delay-3"] { transition-delay: 180ms; }
[data-reveal="delay-4"] { transition-delay: 240ms; }
[data-reveal="delay-5"] { transition-delay: 300ms; }
[data-reveal="delay-6"] { transition-delay: 360ms; }

[data-reveal="left"] {
  transform: translateX(-24px);
}
[data-reveal="left"].is-visible {
  transform: translateX(0);
}

[data-reveal="scale"] {
  transform: scale(0.96);
}
[data-reveal="scale"].is-visible {
  transform: scale(1);
}


/* ============================================================
   HERO STAGGER (initial load)
   ============================================================ */

[data-hero-reveal] {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s var(--ease-out) forwards;
}

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

[data-hero-reveal="1"] { animation-delay: 0.1s; }
[data-hero-reveal="2"] { animation-delay: 0.2s; }
[data-hero-reveal="3"] { animation-delay: 0.35s; }
[data-hero-reveal="4"] { animation-delay: 0.5s; }
[data-hero-reveal="5"] { animation-delay: 0.65s; }
[data-hero-reveal="6"] { animation-delay: 0.8s; }


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  [data-hero-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero__scroll-line::after {
    animation: none;
  }

  .hero__status-dot::after {
    animation: none;
  }

  .project-card:hover,
  .skill-card:hover,
  .cert-card:hover,
  .contact-link:hover {
    transform: none;
  }
}


/* ============================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */

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

  .project-card--featured .project-card__visual {
    aspect-ratio: 16 / 7;
  }

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

  .certs-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --section-gap: clamp(3.5rem, 10vh, 6rem);
  }

  .nav__links {
    display: none;
  }

  .nav__menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav__overlay {
    display: block;
  }

  .hero {
    padding-top: var(--space-24);
    min-height: 100svh;
  }

  .hero__name {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__scroll {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-header__title {
    font-size: var(--text-3xl);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    padding: var(--space-5);
  }

  .education-card {
    padding: var(--space-6);
  }

  .leadership-card {
    padding: var(--space-6);
  }

  .experience-timeline {
    padding-left: var(--space-8);
  }

  .contact__links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-link {
    min-width: 0;
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .project-card__body {
    padding: var(--space-6);
  }
}


/* ============================================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {
  .hero__name {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }

  .section-header__title {
    font-size: var(--text-2xl);
  }

  .experience-item__role {
    font-size: var(--text-lg);
  }

  .leadership-card__title {
    font-size: var(--text-xl);
  }

  .education-card__degree {
    font-size: var(--text-xl);
  }
}


/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--color-border-hover);
  border-radius: 3px;
}

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


/* ============================================================
   UTILITIES
   ============================================================ */

.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;
}

.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-text-secondary); }
.text-center { text-align: center; }
