/* ==========================================================================
   Patrick Nicos So — System Architect Portfolio Stylesheet
   - Minimalist Black, White, & Red Architectural Theme
   - Pure black canvas, crisp white typography, restrained crimson red accents
   - Smooth scroll-triggered reveal animations for sections & experience paragraphs
   - Mobile-first responsive hierarchy
   ========================================================================== */

:root {
  /* Minimalist Black, White, & Red Palette */
  --bg-page: #000000;                /* Pure black background */
  --bg-surface: #0a0a0a;             /* Subtle dark surface */
  --bg-surface-elevated: #111111;    /* Card background */
  --text-main: #ffffff;              /* Stark crisp white */
  --text-muted: #a1a1aa;             /* Clean neutral zinc */
  --text-subtle: #52525b;            /* Hairline label gray */
  --color-accent: #ef4444;           /* Vivid architectural red */
  --color-accent-hover: #dc2626;     /* Deep crimson hover */
  --color-accent-soft: rgba(239, 68, 68, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.12); /* Crisp hairline border */
  --border-focus: #ef4444;
  --shadow-lift: 0 16px 32px -8px rgba(239, 68, 68, 0.14), 0 8px 16px -4px rgba(0, 0, 0, 0.8);
  
  /* Typography & Layout Spacing */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-max: 1100px;
  --transition-smooth: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-reveal: 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Native Smooth Scrolling */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible Focus Ring */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==========================================================================
   Smooth Scroll Reveal Animations (Fade In & Slide Up into View)
   ========================================================================== */
/* Scroll-reveal base state: faded out and smoothly translated down */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), 
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1), 
              border-color var(--transition-smooth),
              box-shadow var(--transition-smooth);
  will-change: opacity, transform;
}

/* Subtle staggered delay for cascading items */
.reveal-on-scroll[style*="--stagger"] {
  transition-delay: calc(var(--stagger, 0) * 85ms);
}

/* Active revealed state when scrolled into view */
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: Disable scroll motion if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.site-header.is-scrolled {
  background-color: rgba(0, 0, 0, 0.96);
  border-bottom-color: rgba(239, 68, 68, 0.35);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-initials {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-elevated);
  color: var(--color-accent);
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-weight: 700;
  font-size: 0.8125rem;
  display: grid;
  place-content: center;
  font-family: var(--font-mono);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.brand-link:hover .brand-initials {
  transform: scale(1.05);
  border-color: var(--color-accent);
}

.brand-name {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--transition-smooth);
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-smooth);
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-block: 5rem 5.5rem;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.hero-container {
  max-width: 840px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-accent-soft);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ffffff;
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: pulse-red 2.5s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.hero-subheadline {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.01em;
  margin-bottom: 2.25rem;
  font-family: var(--font-mono);
}

.hero-summary {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Buttons (Minimalist Red / Wireframe White)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(239, 68, 68, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 1rem;
  transition: transform var(--transition-smooth);
}

.btn-primary:hover .btn-arrow {
  transform: translateY(3px);
}

/* ==========================================================================
   Section Headers (Minimalist)
   ========================================================================== */
.section-header {
  margin-bottom: 3rem;
}

.section-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

/* Remove focus outline on section headings and targets when navigated via links */
.section-title:focus,
.section-title:focus-visible,
.section-title:target,
.section-header:focus,
.section-header:focus-visible,
.section-header:target,
h1:focus,
h1:focus-visible,
h1:target,
h2:focus,
h2:focus-visible,
h2:target,
h3:focus,
h3:focus-visible,
h3:target,
section:focus,
section:focus-visible,
section:target,
footer:focus,
footer:focus-visible,
footer:target {
  outline: none;
  box-shadow: none;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  max-width: 65ch;
}

/* ==========================================================================
   About Me Section (Side-by-Side: Photo on Left, Text on Right)
   ========================================================================== */
.about-section {
  padding-block: 5.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

/* Left Column: Photo Card */
.about-photo-col {
  width: 100%;
}

.about-photo-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
}

.about-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lift);
}

.about-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform var(--transition-smooth);
}

.about-photo-card:hover .about-photo {
  transform: scale(1.02);
}

/* Fallback styling if image is loading or missing in current directory */
.about-photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #1c1917 0%, #0a0a0a 100%);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.about-photo-frame.has-fallback .about-photo {
  display: none;
}

.about-photo-frame.has-fallback .about-photo-fallback {
  display: flex;
}

.fallback-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.fallback-initials {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid var(--color-accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  display: grid;
  place-content: center;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}

.fallback-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.fallback-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-subtle);
}

.about-photo-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.status-indicator-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent);
}

.photo-caption-name {
  color: var(--text-main);
}

.about-photo-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* Right Column: Text & Competencies Card */
.about-text-col {
  width: 100%;
}

.about-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-card .lead-text {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.125rem;
  line-height: 1.6;
}

.about-card p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
}

.competencies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.competency-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.competency-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
}

.competency-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.competency-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Experience Section (Core Grid & Interactive Hover Lift)
   ========================================================================== */
.experience-section {
  padding-block: 5.5rem 6.5rem;
  background-color: #050505;
  border-bottom: 1px solid var(--border-subtle);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

/* Subtle Lift Hover Effect with Red Hairline Focus */
.experience-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  cursor: default;
  position: relative;
}

.experience-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lift);
}

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

.role-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-weight: 700;
}

.role-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  transition: color var(--transition-smooth);
}

.experience-card:hover .role-badge {
  color: var(--text-muted);
}

.role-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin-bottom: 0.875rem;
}

.role-description {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ==========================================================================
   Contact & Footer Section (Minimalist Architectural Standard)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-page);
  font-size: 0.8125rem;
}

/* Contact Section Block */
.contact-section {
  padding-block: 5.5rem;
}

.contact-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.contact-kicker-row .section-kicker {
  margin-bottom: 0;
}

/* Availability Badge with live pulsating dot */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: #fca5a5;
  width: fit-content;
}

.status-indicator-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  flex-shrink: 0;
  animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.25);
  }
}

/* Contact Channels Grid */
.contact-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.65rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-smooth);
}

.channel-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #1a1a1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  flex-shrink: 0;
  transition: all var(--transition-smooth);
}

.contact-channel-item:hover .channel-icon-wrap {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(239, 68, 68, 0.12);
}

.channel-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
  min-width: 0;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  font-weight: 600;
}

.channel-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-arrow {
  color: var(--color-accent);
  font-size: 1.125rem;
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.contact-channel-item:hover {
  background-color: #161616;
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(239, 68, 68, 0.22);
}

.contact-channel-item:hover .channel-arrow {
  transform: translateX(4px);
}

/* Email Display (Non-clickable regular text with selectability) */
.email-channel-item {
  cursor: default;
  user-select: text;
}

.email-channel-item .channel-value {
  user-select: all;
  cursor: text;
}

/* Identical full-width hairline divider line placed in between every section/div */
.footer-divider-line {
  width: 100%;
  height: 1px;
  background-color: var(--border-subtle);
  border: 0;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  padding-block: 2.25rem;
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer-copy-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.copyright {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.8125rem;
}

.footer-tagline {
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.btn-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  transition: all var(--transition-smooth);
}

.btn-back-to-top:hover {
  color: var(--text-main);
  border-color: var(--color-accent);
  background-color: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.btn-back-to-top .top-arrow {
  color: var(--color-accent);
  transition: transform var(--transition-smooth);
}

.btn-back-to-top:hover .top-arrow {
  transform: translateY(-2px);
}

/* ==========================================================================
   Mobile-First Progressive Responsive Breakpoints
   ========================================================================== */

/* Tablet (min-width: 769px) */
@media (min-width: 769px) {
  .competencies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-bottom-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
  .hero-section {
    padding-block: 7rem 7.5rem;
  }

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

  .about-grid {
    grid-template-columns: 340px 1fr;
    gap: 2.5rem;
    align-items: stretch;
  }

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

/* Mobile Portrait & Small Screens (max-width: 768px) */
@media (max-width: 768px) {
  /* 1. Stacking: Force multi-column sections into a single vertical column */
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

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

  .contact-channels {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-kicker-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .footer-bottom-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  /* 2. Spacing: Reduced global section padding & comfortable breathing room */
  .container {
    padding-inline: 1.25rem;
  }

  .hero-section {
    padding-block: 3.5rem 4rem;
  }

  .about-section {
    padding-block: 3.5rem 4rem;
  }

  .experience-section {
    padding-block: 3.5rem 4.25rem;
  }

  .contact-section {
    padding-block: 3.5rem 4rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .experience-card {
    padding: 1.5rem 1.25rem;
  }

  .about-photo-card {
    padding: 1rem;
    max-width: 320px;
    margin-inline: auto;
  }

  .contact-channel-item {
    padding: 1.125rem 1.25rem;
  }

  /* 3. Typography: Scaled down Hero headline & section sub-headers */
  .hero-badge {
    margin-bottom: 1.25rem;
  }

  .hero-title {
    font-size: 2.125rem;
    line-height: 1.15;
    margin-bottom: 0.5rem;
  }

  .hero-subheadline {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .hero-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .section-title {
    font-size: 1.625rem;
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-top: 0.375rem;
  }

  .role-title {
    font-size: 1.2rem;
  }

  .role-description {
    font-size: 0.875rem;
  }

  .lead-text {
    font-size: 1.05rem;
  }

  /* 4. Navigation: Header links fit neatly with adjusted spacing */
  .header-container {
    height: 3.75rem;
  }

  .brand-link {
    gap: 0.5rem;
  }

  .brand-initials {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .brand-name {
    font-size: 0.875rem;
  }

  .site-nav .nav-links {
    gap: 0.85rem;
  }

  .nav-item {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    padding-block: 0.2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }

  .site-nav .nav-links {
    gap: 0.65rem;
  }

  .nav-item {
    font-size: 0.675rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subheadline {
    font-size: 1.1rem;
  }

  .contact-channel-item {
    padding: 0.95rem 1rem;
    gap: 0.75rem;
  }
}