/* ═══════════════════════════════════════════════════
   PORTO v1 GEOSPATIAL — Design System
   Orendo Rusfian Raharjo | Signal Atlas Portfolio
   Bright teal theme · Cartographic intelligence
   ═══════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────── */
:root {
  /* Primary palette */
  --navy-950: #0a1628;
  --navy-900: #0f1d33;
  --navy-800: #152238;
  --navy-700: #1a2d4a;

  /* Teal accent */
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --teal-200: #99f6e4;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;

  /* Supporting */
  --green-400: #4ade80;
  --green-500: #22c55e;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-50: #fffbeb;

  /* Neutrals */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Semantic */
  --text-primary: var(--slate-800);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-500);
  --bg-page: var(--slate-50);
  --bg-card: #ffffff;
  --bg-card-alt: var(--slate-100);
  --accent: var(--teal-600);
  --accent-hover: var(--teal-500);
  --accent-light: var(--teal-100);
  --accent-ghost: var(--teal-50);
  --border: var(--slate-200);
  --border-light: var(--slate-100);
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.12);
  --shadow-xl: 0 24px 64px rgba(10, 22, 40, 0.16);

  /* Typography */
  --font-display: "Quicksand", "Segoe UI", system-ui, sans-serif;
  --font-body: "Quicksand", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Quicksand", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: min(1200px, calc(100% - 3rem));
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 180ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
}

/* ── Reset ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Material Symbols global reset */
.material-symbols-outlined {
  vertical-align: middle;
  line-height: 1;
}

/* Subtle grid background on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(var(--slate-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--slate-200) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, black 40%, transparent 80%);
  opacity: 0.5;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(13, 148, 136, 0.2);
  color: var(--navy-950);
}

:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Refined focus for interactive components */
.filter-chip:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 2px;
  border-radius: 999px;
}

.project-card:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

/* Footer contact icon sizing */
.footer-link .material-symbols-outlined {
  vertical-align: middle;
  font-size: 1rem;
}

/* ── Utility ───────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--navy-950);
  color: #fff;
  font-size: 0.875rem;
  transform: translateY(-150%);
  transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ── Header / Navigation ───────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--duration-base), box-shadow var(--duration-base), border-color var(--duration-base);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--teal-600), var(--navy-800));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.brand-copy {
  display: none;
}

@media (min-width: 640px) {
  .brand-copy {
    display: grid;
    gap: 0.1rem;
  }
  .brand-copy strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-950);
  }
  .brand-copy span {
    font-size: 0.72rem;
    color: var(--slate-500);
    letter-spacing: 0.02em;
  }
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 920px) {
  .site-nav {
    display: flex;
  }
}

.site-nav a {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate-600);
  border-radius: 999px;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--teal-600);
  background: var(--accent-ghost);
}

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    background: var(--navy-950);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background var(--duration-fast), transform var(--duration-fast);
    white-space: nowrap;
  }
  .header-cta:hover {
    background: var(--navy-800);
    transform: translateY(-1px);
  }
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0;
}

@media (min-width: 920px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--navy-950);
  border-radius: 2px;
  transition: transform var(--duration-fast), opacity var(--duration-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav overlay */
@media (max-width: 919px) {
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    gap: 0.5rem;
    z-index: 999;
  }

  .site-nav.is-open a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-700);
    border-radius: var(--radius-md);
    text-align: center;
  }

  .site-nav.is-open a:hover {
    background: var(--accent-ghost);
    color: var(--teal-600);
  }
}

body.nav-open {
  overflow: hidden;
}

/* ── Hero Section ──────────────────────────────── */
.hero {
  padding: 7rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #F5F2ED;
}

/* ── Planetary Hero — 3D Background ─────────────── */
#planetary-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#planetary-hero canvas {
  display: block;
}

/* Decorative grid lines */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 65% 35%, black 35%, transparent 75%);
}

/* Coordinate-style decorative markers */
.hero::after {
  content: "6°S · 107°E";
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--slate-400);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--teal-400);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy-950);
  max-width: 15ch;
}

h1 em {
  font-style: italic;
  color: var(--teal-600);
  display: inline;
}

.hero-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--slate-600);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy-950);
  color: #fff;
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.2);
}

.btn--primary:hover {
  background: var(--teal-600);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--navy-950);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--teal-600);
  color: var(--teal-600);
  transform: translateY(-1px);
}

/* Hero trust list */
.hero-trust {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-trust-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.trust-list li {
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  letter-spacing: 0.03em;
}

/* ── Section Common ────────────────────────────── */
.section {
  padding: 6rem 0;
  scroll-margin-top: 5rem;
}

.section-heading {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 5.25rem;
  display: grid;
  gap: 0.75rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-600);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-950);
}

.section-heading p {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.75;
}

/* ── Project Cards Grid ────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
  transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), border-color var(--duration-base);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-600), var(--green-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--teal-200);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.card-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-600);
  font-weight: 500;
}

.card-tag--amber {
  background: var(--amber-50);
  color: var(--amber-500);
}

.card-tag--green {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green-500);
}

.card-tag--slate {
  background: var(--slate-100);
  color: var(--slate-600);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--navy-950);
}

.card-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--slate-600);
}

/* Skill cluster description uses muted tone */
.skill-cluster .card-desc {
  color: var(--slate-500);
}

.card-outcome {
  font-size: 0.78rem;
  font-weight: 500;
  font-style: italic;
  color: var(--teal-600);
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-light);
  line-height: 1.5;
}

/* Card visual — map image container */
.card-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #1a2d4a;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.25rem;
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

/* Removed dark overlay — images should be visible as-is */
.card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    to top,
    rgba(10, 22, 40, 0.12) 0%,
    transparent 50%,
    transparent 100%
  );
}

.project-card:hover .card-visual img {
  transform: scale(1.04);
}

/* ── Skills Section ────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-cluster {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
  transition: box-shadow var(--duration-base);
}

.skill-cluster:hover {
  box-shadow: var(--shadow-md);
}

.skill-cluster-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--accent-ghost);
  color: var(--teal-600);
  font-size: 1.6rem;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.skill-cluster h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-950);
  letter-spacing: -0.01em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-600);
  background: var(--slate-50);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  transition: color var(--duration-fast), background var(--duration-fast), border-color var(--duration-fast);
}

.skill-tag:hover {
  color: var(--teal-600);
  background: var(--teal-50);
  border-color: var(--teal-200);
}

/* ── About Section ─────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text {
  display: grid;
  gap: 1rem;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--slate-600);
}

.about-text .lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy-950);
  font-family: var(--font-display);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ── Contact / Footer ──────────────────────────── */
.footer {
  background: var(--navy-950);
  color: #fff;
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .footer-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.footer h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.footer-cta-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 40ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--teal-400);
}

.footer-link--primary {
  background: var(--teal-600);
  border-color: var(--teal-600);
}

.footer-link--primary:hover {
  background: var(--teal-500);
  border-color: var(--teal-500);
}

.footer-meta {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  position: relative;
  z-index: 1;
}

.footer-coords {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
}

/* Footer current-focus card (skill-cluster variant on dark bg) */
.footer-focus-grid {
  display: grid;
  gap: 1rem;
}

.footer-focus-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.footer-focus-card .skill-cluster-icon {
  background: rgba(13, 148, 136, 0.2);
  color: var(--teal-400);
}

.footer-focus-card h3 {
  color: #fff;
}

.footer-focus-card .skill-cluster-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ── Reveal Animations ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Scroll Progress ───────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-600), var(--green-400));
  z-index: 10000;
  transition: width 100ms linear;
}

/* ── Map Coordinate decorative elements ────────── */
.coord-marker {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--slate-300);
  pointer-events: none;
  z-index: 0;
}

.coord-marker::before {
  content: "+";
  position: absolute;
  font-size: 0.5rem;
  opacity: 0.3;
}

.coord-marker--tl { top: 0.5rem; left: 0.5rem; }
.coord-marker--tr { top: 0.5rem; right: 0.5rem; }
.coord-marker--bl { bottom: 0.5rem; left: 0.5rem; }
.coord-marker--br { bottom: 0.5rem; right: 0.5rem; }

/* ── Responsive adjustments ────────────────────── */
@media (max-width: 639px) {
  .hero {
    padding: 5rem 0 2.5rem;
    min-height: auto;
  }

  .section {
    padding: 4rem 0;
  }


}

/* ── Industry Filter Chips ─────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--slate-600);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--teal-400);
  color: var(--teal-600);
}

.filter-chip.is-active {
  background: var(--teal-600);
  color: #fff;
  border-color: var(--teal-600);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.filter-chip .chip-icon {
  font-size: 1rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.filter-chip .chip-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  opacity: 0.7;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.filter-chip.is-active .chip-count {
  background: rgba(255, 255, 255, 0.2);
}

/* Project card filter visibility */
.project-card {
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base);
}

.project-card.is-hidden {
  display: none;
}

/* ── Awards Section ────────────────────────────── */
.awards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .awards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.award-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: grid;
  gap: 0.5rem;
  transition: box-shadow var(--duration-base), transform var(--duration-base);
  position: relative;
  overflow: hidden;
}

.award-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, transparent 50%, var(--teal-50) 50%);
  border-radius: 0 var(--radius-lg) 0 0;
  pointer-events: none;
}

.award-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.award-medal {
  font-size: 2rem;
  color: var(--teal-600);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 40;
  line-height: 1;
}

.award-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1.3;
}

.award-org {
  font-size: 0.8rem;
  color: var(--slate-500);
}

.award-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--teal-600);
  font-weight: 500;
}

/* ── About Stats Row ───────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 480px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--teal-600);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

/* ── Career Timeline ───────────────────────────── */
.career-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--teal-200);
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 0.25rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-600);
  border: 2px solid var(--bg-page);
  box-shadow: 0 0 0 2px var(--teal-200);
}

.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal-600);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.timeline-body {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: box-shadow var(--duration-fast);
}

.timeline-body:hover {
  box-shadow: var(--shadow-md);
}

.timeline-role {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1.3;
}

.timeline-org {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate-400);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.timeline-body p {
  font-size: 0.82rem;
  color: var(--slate-500);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Compact Certificates ──────────────────────── */
.certs-compact {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.certs-compact__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.75rem;
}

.certs-compact__list {
  display: grid;
  gap: 0.5rem;
}

.certs-compact__list li {
  font-size: 0.82rem;
  color: var(--slate-600);
  line-height: 1.5;
}

.certs-compact__list li span {
  font-weight: 400;
  color: var(--slate-400);
  font-size: 0.75rem;
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate-400);
  font-style: italic;
  display: none;
}

.empty-state.is-visible {
  display: block;
}

/* ── Additional Responsive ─────────────────────── */
@media (max-width: 767px) {
  .filter-bar {
    gap: 0.35rem;
  }

  .filter-chip {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }

  .career-timeline {
    padding-left: 1.5rem;
    border-left-width: 2px;
  }

  .timeline-item::before {
    left: -1.85rem;
    width: 8px;
    height: 8px;
  }

  .timeline-body {
    padding: 1rem;
  }

  .timeline-role {
    font-size: 0.88rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
