/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Colours */
  --bg-primary: #FAF9F7;
  --bg-secondary: #F3F1EE;
  --bg-card: #FFFFFF;
  --text-primary: #2A2A2A;
  --text-secondary: #5A5A5A;
  --text-tertiary: #8A8A8A;
  --accent: #2A7B7B;
  --accent-dark: #1E5F5F;
  --accent-light: #E8F4F4;
  --accent-warm: #B0705F;
  --accent-warm-light: #F5EBE8;
  --border: #E5E2DD;
  --border-light: #EDEAE6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Lora', 'Georgia', serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --header-height: 72px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}


/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-dark);
}

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

ul, ol {
  list-style: none;
}

::selection {
  background-color: var(--accent);
  color: #fff;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

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

.text-warm {
  color: var(--accent-warm);
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}


/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

.section {
  padding: var(--space-5xl) 0;
}

.section--alt {
  background-color: var(--bg-secondary);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

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

@media (max-width: 968px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-3xl) 0; }
}


/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  transition: box-shadow var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.header__brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.header__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header__descriptor {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

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

.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--text-primary);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__contact {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.header__contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--transition-fast);
}

.header__contact-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.header__contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Mobile menu */
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.header__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.header__menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 860px) {
  .header__menu-btn {
    display: flex;
  }

  .header__nav,
  .header__contact {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .mobile-nav.active {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-nav a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .mobile-nav a:hover,
  .mobile-nav a.active {
    color: var(--accent);
  }

  .mobile-nav__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
  }
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary {
  background-color: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 0;
}

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

.btn--ghost svg,
.btn svg {
  width: 18px;
  height: 18px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}


/* ============================================
   HERO
   ============================================ */
.hero {
  padding: var(--space-5xl) 0 var(--space-4xl);
  position: relative;
}

.hero__content {
  max-width: 720px;
}

.hero__label {
  margin-bottom: var(--space-lg);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero h1 .serif {
  color: var(--accent);
}

.hero__intro {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 580px;
}

.hero__accent-line {
  width: 48px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
  margin-bottom: var(--space-xl);
}

/* Decorative dot grid */
.hero__decoration {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 160px;
  height: 160px;
  opacity: 0.06;
  background-image: radial-gradient(circle, var(--text-primary) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }
  .hero__decoration {
    display: none;
  }
}


/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  margin-bottom: var(--space-3xl);
}

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

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

.section-header p {
  font-size: 1.05rem;
}


/* ============================================
   CAPABILITY CARDS
   ============================================ */
.capability-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.capability-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.capability-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.capability-card__icon svg {
  width: 22px;
  height: 22px;
}

.capability-card h4 {
  margin-bottom: var(--space-sm);
}

.capability-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}


/* ============================================
   DIFFERENTIATORS
   ============================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.diff-item {
  display: flex;
  gap: var(--space-lg);
}

.diff-item__number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.diff-item h4 {
  margin-bottom: var(--space-xs);
}

.diff-item p {
  font-size: 0.9rem;
  line-height: 1.65;
}

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


/* ============================================
   PORTFOLIO CARDS
   ============================================ */
.portfolio-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.portfolio-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.portfolio-card__preview {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-card__preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-tertiary);
}

.portfolio-card__preview-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

.portfolio-card__preview-placeholder span {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.6;
}

.portfolio-card__body {
  padding: var(--space-xl);
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background-color: var(--accent-light);
  color: var(--accent);
}

.tag--warm {
  background-color: var(--accent-warm-light);
  color: var(--accent-warm);
}

.portfolio-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.portfolio-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.portfolio-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.portfolio-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.portfolio-card:hover .portfolio-card__link svg {
  transform: translateX(3px);
}


/* ============================================
   CREDIBILITY / WORKING STYLE
   ============================================ */
.credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.credibility-item {
  text-align: center;
  padding: var(--space-xl);
}

.credibility-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.credibility-item__icon svg {
  width: 24px;
  height: 24px;
}

.credibility-item h4 {
  margin-bottom: var(--space-sm);
}

.credibility-item p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 auto;
}

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


/* ============================================
   PERSONAL NOTE
   ============================================ */
.personal-note {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-xl);
  max-width: 620px;
}

.personal-note p {
  font-size: 1.05rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--text-secondary);
}


/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background-color: var(--bg-secondary);
  text-align: center;
  padding: var(--space-5xl) 0;
}

.cta-section h2 {
  margin-bottom: var(--space-md);
}

.cta-section p {
  margin: 0 auto var(--space-2xl);
  font-size: 1.05rem;
}

.cta-section .btn-group {
  justify-content: center;
}


/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.portfolio-intro {
  max-width: 620px;
  margin-bottom: var(--space-3xl);
}

.portfolio-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-xl);
}

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

/* Web app container for future case study embedding */
.webapp-container {
  width: 100%;
  border: none;
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.webapp-container iframe {
  width: 100%;
  border: none;
  min-height: 600px;
}


/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  padding: var(--space-4xl) 0;
}

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

.about-hero__text h1 {
  margin-bottom: var(--space-xl);
}

.about-hero__text p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: var(--space-lg);
}

.about-photo-placeholder {
  aspect-ratio: 4/5;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .about-hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .about-photo-placeholder {
    max-width: 300px;
    order: -1;
  }
}

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

.approach-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.approach-card h4 {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.approach-card h4 span {
  color: var(--accent);
}

.approach-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

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


/* ============================================
   CV PAGE
   ============================================ */
.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.cv-header__text h1 {
  margin-bottom: var(--space-sm);
}

.cv-section {
  margin-bottom: var(--space-3xl);
}

.cv-section h2 {
  font-size: 1.35rem;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.cv-entry {
  margin-bottom: var(--space-2xl);
  padding-left: var(--space-xl);
  border-left: 2px solid var(--border-light);
}

.cv-entry:last-child {
  margin-bottom: 0;
}

.cv-entry__header {
  margin-bottom: var(--space-sm);
}

.cv-entry__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cv-entry__org {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
}

.cv-entry__date {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.cv-entry p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.cv-entry ul {
  list-style: none;
  padding: 0;
}

.cv-entry ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: var(--space-lg);
  position: relative;
  margin-bottom: var(--space-xs);
}

.cv-entry ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0.4;
}

.cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.cv-skill {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background-color: var(--accent-light);
  color: var(--accent);
}

.cv-contact-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.cv-contact-block h3 {
  margin-bottom: var(--space-md);
}

.cv-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cv-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.cv-contact-item a {
  color: var(--text-secondary);
}

.cv-contact-item a:hover {
  color: var(--accent);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: var(--space-2xl) 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

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


/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 80ms; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 160ms; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 240ms; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 320ms; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 400ms; }
.stagger-children .fade-in:nth-child(7) { transition-delay: 480ms; }


/* ============================================
   PAGE HERO (internal pages)
   ============================================ */
.page-hero {
  padding: var(--space-3xl) 0 var(--space-xl);
}

.page-hero h1 {
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 620px;
}


/* ============================================
   SKIP LINK (accessibility)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 200;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
  color: #fff;
}


/* ============================================
   PRINT STYLES (for CV)
   ============================================ */
@media print {
  .header, .footer, .btn, .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }

  .cv-entry {
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
