/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO STYLES
   ───────────────
   Custom properties live at the top — swap colours, spacing,
   and typography here to re-theme the entire site.

   Accessibility notes are marked with  ♿  throughout.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1  Custom Properties ──────────────────────────────────── */
:root {
  /* Dark mode palette — aligns with light mode:
     - Dark blue background (darker version of #0d2f4f)
     - Cream/light text (#fffcec)
     - Pink accent (#e70068) — same as light mode
     - Light blue/cyan for subtle accents (#cfe5e9)
  */
  --bg:               #0a1520;
  --bg-surface:       #0d1f2f;
  --bg-surface-hover: #152a3f;
  --border:           rgba(255, 252, 236, 0.2);
  --border-hover:     rgba(255, 252, 236, 0.3);

  /* Text colors — cream (#fffcec) for primary, softer for secondary */
  --text-primary:     #fffcec;
  --text-secondary:   #b8c4d0;
  --text-tertiary:    #8b9aab;

  /* Accent — pink (#e70068) — same as light mode for consistency */
  --accent:           #e70068;
  --accent-hover:     #ff1a7a;
  --accent-subtle:    rgba(207, 229, 233, 0.15);
  --accent-glow:      rgba(231, 0, 104, 0.25);

  /* Typography – fluid scale via clamp() */
  --font-family:      'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                       system-ui, sans-serif;
  --font-size-xs:     clamp(0.75rem,  0.70rem + 0.25vw, 0.875rem);
  --font-size-sm:     clamp(0.875rem, 0.82rem + 0.27vw, 1rem);
  --font-size-base:   clamp(1rem,     0.93rem + 0.36vw, 1.125rem);
  --font-size-lg:     clamp(1.125rem, 1.00rem + 0.50vw, 1.375rem);
  --font-size-xl:     clamp(1.375rem, 1.10rem + 1.00vw, 2rem);
  --font-size-2xl:    clamp(1.75rem,  1.30rem + 1.80vw, 3rem);
  --font-size-3xl:    clamp(2.25rem,  1.50rem + 3.00vw, 4.5rem);
  --font-size-hero:   clamp(2.5rem, 5vw, 5.5rem);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 10rem;

  /* Layout */
  --container-max:    1200px;
  --container-pad:    clamp(1.25rem, 3vw, 3rem);
  --header-height:    4.5rem;
  --border-radius:    0.75rem;
  --border-radius-lg: 1.25rem;

  /* Motion */
  --duration-fast:    150ms;
  --duration-base:    300ms;
  --duration-slow:    600ms;
  --duration-slower:  1000ms;
  --ease-out:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out:      cubic-bezier(0.65, 0, 0.35, 1);
}


/* ── 2  Light theme ────────────────────────────────────────── */
/*  Applied when <html data-theme="light"> is set by JS.
    All foreground / background pairs verified against WCAG 2.2 AA (4.5:1):
      --text-primary   on --bg          → ~18 : 1  ✓✓
      --text-secondary on --bg          →  6.7 : 1  ✓
      --text-secondary on --bg-surface  →  7.3 : 1  ✓
      --text-tertiary  on --bg          →  4.8 : 1  ✓
      --accent         on --bg          →  5.3 : 1  ✓
      --accent         on --bg-surface  →  5.7 : 1  ✓
*/
[data-theme="light"] {
  /* Light mode palette:
     - White background for the page (#ffffff)
     - Light blue cards and surfaces (#e2edf8)
     - Dark blue for headings and primary text (#0d2f4f)
     - Pink accent (#e70068)
     - Light blue/cyan for subtle accents (#cfe5e9) and hero bg
  */
  --bg:               #ffffff;  /* page background */
  --bg-surface:       #e2edf8;  /* cards, sections */
  --bg-surface-hover: #d7e9ee;
  --border:           rgba(13, 47, 79, 0.12);
  --border-hover:     rgba(13, 47, 79, 0.2);

  /* Text colors */
  --text-primary:     #0d2f4f;  /* headings + body */
  --text-secondary:   #4a5a6f;
  --text-tertiary:    #6b7a8f;

  /* Accent — pink (#e70068) */
  --accent:           #e70068;
  --accent-hover:     #d1005a;

  /* Subtle accent — light blue/cyan wash for chips and glows */
  --accent-subtle:    rgba(207, 229, 233, 0.4);
  --accent-glow:      rgba(231, 0, 104, 0.15);
}

/* Header: transparent by default in light mode, solid when scrolled */
[data-theme="light"] .site-header {
  background: transparent;
}
[data-theme="light"] .site-header.scrolled {
  background: rgba(226, 237, 248, 0.95); /* light blue when scrolling */
  box-shadow: 0 1px 20px rgba(13, 47, 79, 0.08);
}

/* Hero name gradient — softer, more harmonious colors for light mode
   Uses text-secondary as base (softer than pure dark), accent color,
   and light blue/cyan. Still decorative, no contrast requirement. */
/* Light mode: solid pink hero name (no gradient) */
[data-theme="light"] .hero__name {
  background-image: none;
  color: var(--accent);
}

/* Grain overlay is white noise — invert it to dark noise on light bg */
[data-theme="light"] .grain-overlay {
  filter: invert(1);
  opacity: 0.03;
}

/* Project card image separators — light mode only.
   Stacked cards: horizontal line below the image.
   Featured split card: vertical line between image and content. */
[data-theme="light"] .project-card__visual {
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .project-card--featured .project-card__visual {
  border-bottom: none;
  border-right: 1px solid var(--border);
}


/* ── 3  Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* ♿ 2.4.11 Focus Not Obscured — scroll-padding prevents the
     fixed header from covering focused elements */
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul, ol { list-style: none; }


/* ── 3  Focus Styles  ♿ 2.4.7 Focus Visible ───────────────── */
/*  :focus-visible keeps outlines for keyboard only;
    2 px solid accent with 3 px offset for high visibility. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }


/* ── 4  Skip Link  ♿ 2.4.1 Bypass Blocks ──────────────────── */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent);
  color: #ffffff; /* White text for good contrast on pink in both modes */
  font-weight: 700;
  font-size: var(--font-size-sm);
  transform: translateY(-100%);
  clip-path: inset(100% 0 0 0);
  transition: transform var(--duration-base) var(--ease-out),
              clip-path var(--duration-base) var(--ease-out);
}
.skip-link:focus {
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}
/* Enhanced focus ring for skip link - white outline for visibility on pink background */
.skip-link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
  border-radius: 4px;
}


/* ── 5  Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }
html { scrollbar-width: thin; scrollbar-color: var(--text-tertiary) var(--bg); }


/* ── 6  Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-4xl);
  position: relative;
}

/* ♿ 2.4.11 Focus Not Obscured (Minimum) */
section[id] {
  scroll-margin-top: var(--header-height);
}


/* ── 7  Grain Overlay (decorative) ─────────────────────────── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}


/* ── 8  Header & Navigation ────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}
.site-header.scrolled {
  background: rgba(10, 12, 16, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo — ♿ 2.5.8 Target Size ≥ 44 px */
.nav__logo {
  font-size: var(--font-size-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity var(--duration-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav__logo:hover { opacity: 0.8; }
.nav__logo .accent { color: var(--accent); }

/* Desktop menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
/* ♿ 2.5.8 Target Size ≥ 44 px */
.nav__menu a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  padding: var(--space-xs) var(--space-sm);
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: var(--space-sm);
  right: var(--space-sm);
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-base) var(--ease-out);
}
.nav__menu a:hover,
.nav__menu a.active { color: var(--text-primary); }
.nav__menu a:hover::after,
.nav__menu a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger  — ♿ 2.5.8 Target Size ≥ 44 px */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  z-index: 1001;
}
.nav__toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition:
    transform var(--duration-base) var(--ease-out),
    opacity var(--duration-fast);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ── 9  Theme toggle + nav end cluster ─────────────────────── */
.nav__end {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ♿ 2.5.8 Target Size ≥ 44 px */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
  flex-shrink: 0;
  transition:
    color       var(--duration-fast),
    border-color var(--duration-fast),
    background  var(--duration-fast);
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-surface);
}
/* Show sun ☀️ in dark mode (switch to light), moon 🌙 in light mode (switch to dark) */
.theme-toggle[aria-checked="true"]  .theme-toggle__sun  { display: none; }
.theme-toggle[aria-checked="false"] .theme-toggle__moon { display: none; }


/* ── 10  Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

/* Light mode: give hero a soft light-blue background only in this section */
[data-theme="light"] .hero {
  background: #e2edf8;
}

/* Hero background container (orbs removed for cleaner look) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-40px, 60px) scale(1.1); }
  66%      { transform: translate(30px, -30px) scale(0.95); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(50px, -40px) scale(1.05); }
  66%      { transform: translate(-30px, 50px) scale(0.9); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-60px, -30px) scale(1.15); }
  66%      { transform: translate(40px, 40px) scale(0.85); }
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.hero__greeting {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  letter-spacing: 0.04em;
}
.hero__name {
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  color: var(--accent); /* dark mode: pink as well */
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

/* Light mode: hero title uses blue heading colour */
[data-theme="light"] .hero__title {
  color: #0d2f4f;
}
.hero__tagline {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}
/* Markdown content in hero tagline */
.hero__tagline p {
  margin-bottom: var(--space-sm);
}
.hero__tagline p:last-child {
  margin-bottom: 0;
}
.hero__tagline ul,
.hero__tagline ol {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
}
.hero__tagline li {
  margin-bottom: var(--space-xs);
}
.hero__tagline strong {
  font-weight: 600;
  color: var(--text-primary);
}
.hero__tagline em {
  font-style: italic;
}
.hero__ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Light mode: slightly larger primary/secondary hero buttons for better contrast presence */
[data-theme="light"] .hero__ctas .btn--primary,
[data-theme="light"] .hero__ctas .btn--secondary {
  font-size: calc(var(--font-size-base) * 1.05);
}

/* Buttons  — ♿ 2.5.8 Target Size ≥ 48 px */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 2rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: 100px;
  min-height: 48px;
  min-width: 48px;
  transition:
    background var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-out-back),
    box-shadow var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--accent);
  color: #ffffff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn--secondary:active { transform: translateY(0); }

/* Gradient fade at the bottom of the hero — prevents a hard cut
   between the orb background and the next section.
   Uses var(--bg) so it adapts automatically to dark and light mode. */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 0; /* place fade under hero content and scroll label */
  pointer-events: none;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  z-index: 2; /* above the hero::after fade */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-tertiary);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  /* Animation removed for accessibility - moving elements should be avoided */
}

/* Cursor glow effect (decorative, pointer-fine only) */
.hero__cursor-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  /* Background color is set dynamically in JS based on theme */
}


/* ── 10  Section Common ────────────────────────────────────── */
.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.section__heading {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.section__heading .accent-dot { color: var(--accent); }

/* Light mode: headings use blue for stronger hierarchy */
[data-theme="light"] .section__heading {
  color: #0d2f4f;
}
.section__intro {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
}
/* Markdown content in section intros */
.section__intro p {
  margin-bottom: var(--space-sm);
}
.section__intro p:last-child {
  margin-bottom: 0;
}
.section__intro ul,
.section__intro ol {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
}
.section__intro li {
  margin-bottom: var(--space-xs);
}
.section__intro strong {
  font-weight: 600;
  color: var(--text-primary);
}
.section__intro em {
  font-style: italic;
}
.section__intro a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  transition: color var(--duration-fast);
}
.section__intro a:hover {
  color: var(--accent);
}
.section__intro a svg {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.2em;
}
.section__divider {
  display: none;;
}


/* ── 11  About ─────────────────────────────────────────────── */
.about__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}
.about__photo {
  display: flex;
  justify-content: center;
  margin: 0;
}
.about__photo-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  /* Strong ring using accent color; no shadow for a cleaner look */
  border: 4px solid var(--accent);
  background: var(--bg-surface);
  margin: var(--space-md) 0;
}
.about__text p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}
.about__text p:last-child { margin-bottom: 0; }
/* Markdown content in about text */
.about__text ul,
.about__text ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-lg);
}
.about__text li {
  margin-bottom: var(--space-xs);
  line-height: 1.8;
}
.about__text strong {
  font-weight: 600;
  color: var(--text-primary);
}
.about__text em {
  font-style: italic;
}
.about__text a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  transition: color var(--duration-fast);
}
.about__text a:hover {
  color: var(--accent);
}
.about__text a svg {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.2em;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.stat {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  /* No hover — purely informational, not interactive */
}
.stat__value {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stat__label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}


/* ── 11b  Design Thinking ──────────────────────────────────── */
.dt {
  margin-top: var(--space-3xl);
}
.dt__header {
  margin-bottom: var(--space-xl);
}
.dt__heading {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
/* Iterative-nature note with repeat icon */
.dt__note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
}
.dt__note svg { flex-shrink: 0; color: var(--accent); }

/* Phase list */
.dt__phases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  list-style: none;
  counter-reset: phase;
}

/* Individual phase card */
.dt__phase {
  position: relative;
  padding: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  /* No hover — purely informational, not interactive */
}

/* Top row: number badge + icon */
.dt__phase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.dt__phase-num {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.dt__phase-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.dt__phase-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.dt__phase-desc {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.65;
}
/* Markdown content in design thinking phase descriptions */
.dt__phase-desc p {
  margin-bottom: var(--space-xs);
}
.dt__phase-desc p:last-child {
  margin-bottom: 0;
}
.dt__phase-desc ul,
.dt__phase-desc ol {
  margin: var(--space-xs) 0;
  padding-left: var(--space-md);
  font-size: 0.9em;
}
.dt__phase-desc li {
  margin-bottom: 0.2rem;
}
.dt__phase-desc strong {
  font-weight: 600;
  color: var(--text-primary);
}
.dt__phase-desc em {
  font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
  .dt__phases { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .dt__phases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .dt__phases { grid-template-columns: 1fr; }
}



/* ── 12  Skills ────────────────────────────────────────────── */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-lg);
}
.skill-card {
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
  /* No hover — purely informational, not interactive */
}

.skill-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  display: block;
}
/* Custom image icon — same visual weight as the 2 rem emoji */
.skill-card__icon-img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  margin-bottom: var(--space-md);
  display: block;
}
.skill-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.skill-card__desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}
/* Markdown content in skill card descriptions */
.skill-card__desc p {
  margin-bottom: var(--space-xs);
}
.skill-card__desc p:last-child {
  margin-bottom: 0;
}
.skill-card__desc ul,
.skill-card__desc ol {
  margin: var(--space-xs) 0;
  padding-left: var(--space-md);
  font-size: 0.95em;
}
.skill-card__desc li {
  margin-bottom: 0.2rem;
}
.skill-card__desc strong {
  font-weight: 600;
  color: var(--text-primary);
}
.skill-card__desc em {
  font-style: italic;
}


/* Tools & Technologies chip cloud */
.skills__tools {
  margin-top: var(--space-2xl);
  text-align: center;
}
.skills__tools-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}
.skills__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  list-style: none;
}
.skill-chip {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  /* No hover — purely informational, not interactive */
}

/* Light mode: white background + blue text for chips and tags */
[data-theme="light"] .skill-chip,
[data-theme="light"] .tag {
  background: #ffffff;
  color: #0d2f4f;
}

/* Languages subsection */
.skills__languages {
  margin-top: var(--space-2xl);
  text-align: center;
}
.skills__lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  list-style: none;
  margin-top: var(--space-md);
  max-width: 700px;
  margin-inline: auto;
}
.lang-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem 0.4rem 1.1rem;
  font-size: var(--font-size-sm);
  white-space: nowrap;
}
.lang-item__name {
  font-weight: 600;
  color: var(--text-primary);
}
.lang-item__level {
  font-size: var(--font-size-xs);
  font-weight: 500;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  background: transparent;
  color: #ffffff; /* white text for all levels in dark mode */
}
/* Light mode: white background + blue text for language chips */
[data-theme="light"] .lang-item {
  background: #ffffff;
}
[data-theme="light"] .lang-item__name {
  color: #0d2f4f; /* heading blue in light mode */
}
[data-theme="light"] .lang-item__level {
  background: #ffffff;
  color: #0d2f4f;
}
/* Optional subtle hierarchy via opacity */
.lang-item__level--native         { opacity: 1;    }
.lang-item__level--fluent         { opacity: 0.95; }
.lang-item__level--professional   { opacity: 0.9;  }
.lang-item__level--conversational { opacity: 0.85; }
.lang-item__level--basic          { opacity: 0.8;  }


/* ── 13  Projects / Work ───────────────────────────────────── */

/* Two-column grid; featured card spans both via grid-column */
.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

/* ── Base card — stacked (image on top, content below) ─────── */
.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  /* No hover — links inside the card are the interactive elements */
}

/* ── Featured card (first project) — full-width split ───────── */
.project-card--featured {
  grid-column: 1 / -1;             /* span both grid columns */
  grid-template-rows: auto;         /* override stacked rows */
  grid-template-columns: 55fr 45fr; /* image takes slightly more space */
  align-items: stretch;
}
/* Larger typography for the featured spotlight */
.project-card--featured .project-card__info  { padding: var(--space-2xl); }
.project-card--featured .project-card__title { font-size: var(--font-size-2xl); }
.project-card--featured .project-card__desc  { font-size: var(--font-size-base); }
/* Featured image fills the full height of the card */
.project-card--featured .project-card__visual {
  aspect-ratio: unset;
  min-height: 360px;
}

/* ── Image / gradient container ─────────────────────────────── */
/* ♿ No direction:rtl trick — DOM order always matches visual order */
.project-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
/* Picture element for responsive images */
.project-card__visual picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.project-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.project-card__gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
}
.project-card__category {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Light mode: make project categories pink for emphasis */
[data-theme="light"] .project-card__category {
  color: var(--accent);
}
.project-card__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--accent); /* dark mode: pink titles */
}

/* Light mode: use heading blue for project titles for better contrast harmony */
[data-theme="light"] .project-card__title {
  color: #0d2f4f;
}
.project-card__desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}
/* Markdown content within project descriptions */
.project-card__desc p {
  margin-bottom: var(--space-sm);
}
.project-card__desc p:last-child {
  margin-bottom: 0;
}
.project-card__desc ul,
.project-card__desc ol {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
  list-style-position: outside;
}
.project-card__desc ul {
  list-style-type: disc;
}
.project-card__desc ol {
  list-style-type: decimal;
}
.project-card__desc li {
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}
.project-card__desc li:last-child {
  margin-bottom: 0;
}
.project-card__desc strong {
  font-weight: 600;
  color: var(--text-primary);
}
.project-card__desc em {
  font-style: italic;
}
.project-card__desc a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  transition: color var(--duration-fast);
}
.project-card__desc a:hover {
  color: var(--accent);
}
.project-card__desc a svg {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.2em;
}
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.tag {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-surface);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.project-card__links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}
/* ♿ 2.5.8 Target Size ≥ 44 px */
.project-card__link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  padding: var(--space-xs);
  transition: color var(--duration-fast), gap var(--duration-fast);
}
.project-card__link:hover {
  color: var(--accent);
  gap: 0.5rem;
}
.project-card__link:hover svg {
  transform: translateX(2px);
  transition: transform var(--duration-fast);
}

/* See more projects link */
.work__see-more {
  margin-top: var(--space-2xl);
  text-align: center;
}
.work__see-more-text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}
.work__see-more-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  text-decoration-color: var(--accent);
  transition: color var(--duration-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}
.work__see-more-link:hover {
  color: var(--accent);
}
.work__see-more-link svg {
  display: inline-block;
  vertical-align: middle;
  transition: transform var(--duration-fast);
}
.work__see-more-link:hover svg {
  transform: translateX(2px);
}


/* ── 13b  CV / Resume ──────────────────────────────────────── */
.cv__groups {
  display: grid;
  gap: var(--space-3xl);
}
.cv__group-heading {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.cv__group-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.cv__timeline {
  position: relative;
  padding-left: var(--space-xl);
}
.cv__timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  border-radius: 1px;
}
.cv__entry {
  position: relative;
  padding-bottom: var(--space-xl);
}
.cv__entry:last-child {
  padding-bottom: 0;
}
/* Timeline dot */
.cv__entry::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-xl) + 2px);
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-glow);
  z-index: 1;
}
.cv__entry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-xs);
}
.cv__entry-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
}
.cv__entry-org {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: 500;
}

/* Light mode: company names in CV use pink accent */
[data-theme="light"] .cv__entry-org {
  color: var(--accent);
}
.cv__entry-date {
  font-size: var(--font-size-xs);
  color: var(--text-primary);
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
}
.cv__entry-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: var(--space-xs);
}
/* Markdown content in CV entry descriptions */
.cv__entry-desc p {
  margin-bottom: var(--space-sm);
}
.cv__entry-desc p:last-child {
  margin-bottom: 0;
}
.cv__entry-desc ul,
.cv__entry-desc ol {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
  list-style-position: outside;
}
.cv__entry-desc ul {
  list-style-type: disc;
}
.cv__entry-desc ol {
  list-style-type: decimal;
}
.cv__entry-desc li {
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}
.cv__entry-desc li:last-child {
  margin-bottom: 0;
}
.cv__entry-desc strong {
  font-weight: 600;
  color: var(--text-primary);
}
.cv__entry-desc em {
  font-style: italic;
}
.cv__entry-desc a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  transition: color var(--duration-fast);
}
.cv__entry-desc a:hover {
  color: var(--accent);
}
.cv__entry-desc a svg {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.2em;
}

/* Responsive — stack header on mobile */
@media (max-width: 640px) {
  .cv__entry-header {
    flex-direction: column;
    gap: var(--space-xs);
  }
}


/* ── 14  Contact ───────────────────────────────────────────── */
.contact { text-align: center; }
.contact .section__header { margin-bottom: var(--space-md2); }
.contact__body {
  max-width: 600px;
  margin-inline: auto;
}
.contact__text {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}
/* Markdown content in contact text */
.contact__text p {
  margin-bottom: var(--space-sm);
}
.contact__text p:last-child {
  margin-bottom: 0;
}
.contact__text ul,
.contact__text ol {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
}
.contact__text li {
  margin-bottom: var(--space-xs);
}
.contact__text strong {
  font-weight: 600;
  color: var(--text-primary);
}
.contact__text em {
  font-style: italic;
}
/* ♿ 2.5.8 Target Size ≥ 48 px */
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  min-height: 48px;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  transition:
    color var(--duration-fast),
    transform var(--duration-fast) var(--ease-out-back);
}
.contact__email:hover {
  color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Phone / WhatsApp direct-contact pills */
.contact__direct {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
/* ♿ 2.5.8 Target Size ≥ 44 px */
.contact__direct-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-primary);
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  transition:
    color var(--duration-fast),
    border-color var(--duration-fast),
    background var(--duration-fast),
    transform var(--duration-fast) var(--ease-out-back);
}
.contact__direct-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.contact__direct-link svg { flex-shrink: 0; }

.contact__socials {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}
/* ♿ 2.5.8 Target Size ≥ 48 px */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition:
    color var(--duration-fast),
    border-color var(--duration-fast),
    background var(--duration-fast),
    transform var(--duration-fast) var(--ease-out-back);
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}


/* ── 15  Footer ────────────────────────────────────────────── */
.site-footer {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--border);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}
.footer__text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}
.footer__copyright {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}


/* ── 16  Back to Top  — ♿ 2.5.8 Target Size ≥ 48 px ──────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    color var(--duration-fast),
    border-color var(--duration-fast),
    background var(--duration-fast);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}
/* ♿  hidden attribute — remove from accessibility tree */
.back-to-top[hidden] { display: none; }


/* ── 17  Scroll Reveal Animations ──────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
  /* Scroll reveal animations disabled for accessibility */
}

/* Stagger children - removed (scroll reveal disabled for accessibility) */

/* Hero entrance - removed animations for accessibility */
.hero__greeting,
.hero__name,
.hero__title,
.hero__tagline,
.hero__ctas {
  opacity: 1;
  transform: none;
}


/* ── 18  Reduced Motion  ♿ 2.3.3 ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__greeting,
  .hero__name,
  .hero__title,
  .hero__tagline,
  .hero__ctas {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .hero__orb { animation: none; }
  .hero__scroll-line { animation: none; }
  .hero__name { animation: none; background-position: 0% 50%; }

  /* Keep hover feedback but remove motion */
  .btn:hover,
  .btn:active,
  .social-link:hover,
  .contact__email:hover,
  .contact__direct-link:hover,
  .back-to-top:hover {
    transform: none;
  }
}


/* ── 19  Responsive ────────────────────────────────────────── */
/* Tablet */
@media (max-width: 900px) {
  /* Single-column grid; featured card collapses to stacked */
  .work__grid { grid-template-columns: 1fr; }
  .project-card--featured {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .project-card--featured .project-card__visual {
    aspect-ratio: 16 / 7;
    min-height: unset;
  }
  /* Reset featured-only overrides so stacked layout is consistent */
  .project-card--featured .project-card__info  { padding: var(--space-xl); }
  .project-card--featured .project-card__title { font-size: var(--font-size-xl); }
  .project-card--featured .project-card__desc  { font-size: var(--font-size-sm); }
  .project-card__visual { aspect-ratio: 16 / 7; }

  /* Featured card collapses to stacked — swap border-right → border-bottom */
  [data-theme="light"] .project-card--featured .project-card__visual {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

}

/* Stats stack when they don't fit in a row */
@media (max-width: 700px) {
  .about__stats {
    grid-template-columns: 1fr;
  }
}

/* Mobile menu — activate earlier to prevent nav wrapping */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    /* Push content below the fixed header */
    padding-top: var(--header-height);
    /* Fully opaque — no bleed-through from content behind */
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--duration-base) var(--ease-out),
      visibility var(--duration-base);
    /* Must be higher than the grain overlay (9998) and well above the header (1000).
       backdrop-filter on .site-header creates a stacking context that traps z-index,
       so we also remove it from the header while the menu is open (see .menu-open). */
    z-index: 9999;
    overflow-y: auto;
  }
  .nav__menu.open {
    opacity: 1;
    visibility: visible;
  }
  /* Remove the stacking context created by backdrop-filter while the mobile
     menu is open — otherwise the menu is trapped behind page content. */
  .site-header.menu-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Keep a solid bg so the header bar itself stays readable */
    background: var(--bg);
  }
  /* Lift the button cluster (theme toggle + hamburger/close) above the menu
     overlay so the × close button stays visible and clickable. */
  .site-header.menu-open .nav__end {
    position: relative;
    z-index: 10000;
  }
  /* Spacer above the first item */
  .nav__menu li:first-child { border-top: 1px solid var(--border); margin-top: var(--space-lg); }
  .nav__menu li { border-bottom: 1px solid var(--border); }
  .nav__menu a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: var(--space-xs) var(--container-pad);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration-fast);
    /* Remove the underline pseudo-element active indicator (desktop only) */
  }
  .nav__menu a::after { display: none; }
  .nav__menu a:hover,
  .nav__menu a.active {
    color: var(--text-primary);
    /* No background hover — matches desktop subtle underline-only style */
  }
}

/* Mobile */
@media (max-width: 640px) {
  .section { padding-block: var(--space-3xl); }

  /* Languages: switch to flex-wrap on mobile */
  .skills__lang-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero__scroll { display: none; }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .contact__email { font-size: var(--font-size-lg); }
}

/* Small mobile */
@media (max-width: 380px) {
}

/* ♿  Windows High-Contrast / forced-colors support */
@media (forced-colors: active) {
  .btn--primary { border: 2px solid ButtonText; }
  .skill-card,
  .project-card,
  .stat { border: 1px solid ButtonText; }
  .nav__toggle-line { background: ButtonText; }
}
