/* Design system: Blue Professional (warm cream + cobalt blue), elevated for contrast, mobile navigation, typography rhythm, and purposeful motion. */
:root {
  --bg: #fdfae7;
  --bg-alt: #f3f1e4;
  --surface: #fffdf4;
  --primary: #1e2bfa;
  --primary-hover: #141fd4;
  --text: #121524;
  --text-muted: #454a5e;
  --text-subtle: #555b70;
  --accent-light: rgba(30, 43, 250, 0.075);
  --accent-tint: rgba(30, 43, 250, 0.12);
  --border: rgba(30, 43, 250, 0.18);
  --border-strong: rgba(30, 43, 250, 0.34);
  --card-bg: rgba(30, 43, 250, 0.035);
  --shadow-soft: 0 12px 28px -10px rgba(18, 21, 36, 0.12), 0 4px 12px -4px rgba(30, 43, 250, 0.08);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 56px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-color: rgba(30, 43, 250, 0.28) var(--bg);
  scrollbar-width: thin;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(30, 43, 250, 0.16);
  color: var(--text);
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--primary);
  color: var(--bg);
  padding: 0.65rem 1.1rem;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 300;
  text-decoration: none;
}
.skip:focus { left: 12px; }

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.65rem, 6.8vw, 5.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.55rem);
  line-height: 1.12;
  max-width: 22ch;
}
h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.42rem);
  font-weight: 600;
  line-height: 1.25;
}
h4 {
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.32;
}
p, li {
  font-size: clamp(0.95rem, 1.05vw, 1.02rem);
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}
strong { color: var(--text); font-weight: 600; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.lede a, .split-left a, .detail-block a, .evidence a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(30, 43, 250, 0.35);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1.5px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.lede a:hover, .split-left a:hover, .detail-block a:hover, .evidence a:hover {
  color: var(--primary-hover);
  text-decoration-color: var(--primary);
}

/* Decorative */
.accent-line {
  width: 56px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 1.15rem;
}
.accent-dot {
  width: 9px;
  height: 9px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Navigation */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 150;
  background: rgba(253, 250, 231, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  max-width: 1240px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem var(--gutter);
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  color: var(--text);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.8vw, 1.55rem);
}

.nav-desktop a:not(.nav-cta) {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.35rem 0.15rem;
  transition: color 0.16s ease;
}
.nav-desktop a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease-out);
}
.nav-desktop a:not(.nav-cta):hover,
.nav-desktop a:not(.nav-cta).is-active {
  color: var(--primary);
}
.nav-desktop a:not(.nav-cta).is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  background: var(--accent-light);
  border: 1px solid var(--border);
  padding: 0.48rem 1.05rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}
.nav-cta:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
.nav-cta:active { transform: scale(0.97); }

.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 0.55rem;
}

.menu-toggle {
  appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}
.menu-toggle:hover { border-color: var(--primary); background: var(--accent-light); }
.menu-toggle:active { transform: scale(0.95); }

.menu-icon line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.24s var(--ease-out), opacity 0.16s ease;
}
.menu-toggle[aria-expanded="true"] .bar-top { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar-mid { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar-bot { transform: translateY(-5px) rotate(-45deg); }

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: rgba(253, 250, 231, 0.98);
  padding: 12px 20px 20px;
  transform-origin: top center;
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer.is-open {
  animation: drawer-in 0.24s var(--ease-out) both;
}
.mobile-drawer.is-closing {
  animation: drawer-out 0.16s ease-in both;
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drawer-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}

.mobile-drawer-inner {
  display: grid;
  gap: 0.25rem;
}
.mobile-drawer-inner a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mobile-drawer-inner a:hover,
.mobile-drawer-inner a.is-active {
  background: var(--accent-light);
  color: var(--primary);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(6.75rem, 11vh, 8.75rem) clamp(20px, 5vw, 56px) clamp(2.75rem, 5vh, 4rem);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; margin-bottom: 1.15rem; }
.subtitle {
  font-size: clamp(1.03rem, 1.5vw, 1.22rem);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 2rem;
}
.meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  margin-top: 1.85rem;
}

.cover-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 34vw;
  height: 100%;
  background: var(--accent-light);
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 2% 100%);
  pointer-events: none;
}
.cover-dots {
  position: absolute;
  bottom: clamp(2rem, 7vh, 4.5rem);
  right: clamp(2rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  opacity: 0.28;
  pointer-events: none;
}
.cover-dots .dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* Authored hero arrival (never hides content if animations disabled) */
.hero-rule {
  transform-origin: left center;
  animation: rule-draw 0.55s var(--ease-out) both;
}
.hero-title {
  animation: hero-rise 0.6s var(--ease-out) 0.05s both;
}
.hero-sub {
  animation: hero-rise 0.6s var(--ease-out) 0.12s both;
}
.hero-actions {
  animation: hero-rise 0.6s var(--ease-out) 0.18s both;
}
.hero-meta {
  animation: hero-rise 0.6s var(--ease-out) 0.24s both;
}

@keyframes rule-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes hero-rise {
  from { opacity: 0.01; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.cta-btn, .cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 100px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.2s var(--ease-out), transform 0.12s ease;
}
.cta-btn {
  background: var(--primary);
  color: var(--bg);
  border: 1.5px solid var(--primary);
}
.cta-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 8px 20px -6px rgba(30, 43, 250, 0.35);
}
.cta-ghost {
  color: var(--primary);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
}
.cta-ghost:hover {
  background: var(--accent-light);
  border-color: var(--primary);
}
.cta-btn:active, .cta-ghost:active { transform: scale(0.98); }

.ext-icon {
  flex-shrink: 0;
  transition: transform 0.18s var(--ease-out);
}
a:hover .ext-icon {
  transform: translate(2px, -2px);
}

/* Sections */
.section {
  padding: 64px 32px;
  padding-block: clamp(56px, 7.5vw, 92px);
  padding-inline: clamp(20px, 5vw, 56px);
}
.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-divider {
  border-top: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.35rem;
}
.section h2 + .split,
.section h2 + .skills-grid,
.section h2 + .edu-list {
  margin-top: 1.6rem;
}

.tag-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--accent-light);
  border: 1px solid var(--border);
  padding: 0.38rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
}
.section.alt .tag-pill { background: var(--surface); }

.lede {
  max-width: 66ch;
  margin: -0.25rem 0 2rem;
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
}

/* Metrics */
.metrics {
  padding: 0.5rem var(--gutter) clamp(3rem, 6vw, 4.75rem);
}
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.metric-card { display: flex; }
.metric-surface {
  width: 100%;
  padding: 1.5rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.24s var(--ease-out), border-color 0.2s ease, box-shadow 0.24s var(--ease-out);
}
.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0.65rem 0 0.4rem;
  color: var(--text);
}
.metric-desc { font-size: 0.91rem; line-height: 1.55; }

/* About split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4.5vw, 3.75rem);
  align-items: start;
}
.split-left p { max-width: 64ch; }
.split-left p + p { margin-top: 1rem; }

.split-right {
  padding: 1.5rem 1.6rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.insight-list { list-style: none; display: grid; gap: 1.15rem; }
.insight-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.insight-list li + li {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}
.insight-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.insight-list li + li::before {
  top: calc(1.15rem + 0.62em);
}

/* Cards (Selected Work + Projects) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.card { display: flex; }
.card-surface {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.24s var(--ease-out), border-color 0.2s ease, box-shadow 0.24s var(--ease-out);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.card-domain {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}
.card h3 { color: var(--text); }
.card p { font-size: 0.94rem; line-height: 1.6; }

/* Full-border tinted callout (replaces one-sided side-tab borders) */
.card .result {
  margin-top: auto;
  padding: 0.95rem 1.05rem;
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.91rem;
  line-height: 1.58;
  color: var(--text-muted);
}
.card .result p { font-size: 0.91rem; line-height: 1.58; }

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 0.42rem 0.85rem;
  border-radius: 100px;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}
.link-chip:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
.link-chip:active { transform: scale(0.97); }

.card code {
  font-size: 0.86em;
  background: var(--accent-light);
  border: 1px solid var(--border);
  padding: 0.1rem 0.38rem;
  border-radius: 5px;
  color: var(--text);
}

/* Hover lift only on hover-capable pointers, and only on inner surfaces */
@media (hover: hover) {
  .metric-card:hover .metric-surface,
  .card:hover .card-surface {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
  }
}

/* Timeline (Experience) */
.timeline {
  list-style: none;
  display: grid;
  gap: 2.5rem;
  margin-top: 0.5rem;
  position: relative;
}
.role {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1.35rem;
  position: relative;
}
.role:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: -2.35rem;
  width: 2px;
  background: var(--border);
}
.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.role:nth-child(2) .step-circle { background: #3b46f5; }
.role:nth-child(3) .step-circle { background: #5a63e8; }

.role-dates {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}
.role-body h3 { color: var(--text); margin: 0.28rem 0 0.2rem; }
.role-org {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}
.role-body > p:not(.role-dates):not(.role-org):not(.evidence) { max-width: 68ch; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.detail-block {
  padding: 1.3rem 1.35rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.detail-block h3 {
  font-size: 1.32rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.detail-block h4 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.detail-block ul { list-style: none; display: grid; gap: 0.45rem; }
.detail-block li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
}
.detail-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.endorsement {
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--accent-light);
}
.endorsement p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.62;
  max-width: 72ch;
}
.endorsement footer {
  margin-top: 0.65rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
}

.evidence {
  margin-top: 0.9rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.92rem;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.tools-title {
  margin: 2.5rem 0 1rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chips li {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
}
.languages-line { margin-top: 1.5rem; font-size: 0.95rem; }

/* Education */
.edu-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.edu-item {
  padding: 1.45rem 1.55rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.edu-item h3 { color: var(--text); margin-bottom: 0.35rem; }
.edu-meta {
  font-size: 0.93rem;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}

/* Closing / Contact */
.closing {
  position: relative;
  overflow: hidden;
  padding: 72px 32px;
  padding-block: clamp(68px, 9vw, 112px);
  padding-inline: clamp(20px, 5vw, 56px);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.closing-inner { position: relative; z-index: 1; }
.closing-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.closing-sub {
  max-width: 58ch;
  margin-bottom: 1.85rem;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
}
.closing-decoration, .closing-decoration-2 {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}
.closing-decoration {
  width: 38vw;
  height: 38vw;
  max-width: 520px;
  max-height: 520px;
  right: -8vw;
  top: -10vw;
}
.closing-decoration-2 {
  width: 22vw;
  height: 22vw;
  max-width: 320px;
  max-height: 320px;
  right: 6vw;
  bottom: -8vw;
}

/* Footer */
.site-footer {
  padding: 26px 32px;
  padding-inline: clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  color: var(--text-subtle);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1080px) {
  .metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .nav-desktop { display: none; }
  .nav-mobile-actions { display: flex; }
  .split { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .edu-list { grid-template-columns: 1fr; }
  .cover-decoration {
    width: 48vw;
    height: 240px;
    clip-path: polygon(45% 0, 100% 0, 100% 100%, 15% 100%);
    opacity: 0.65;
  }
  .cover-dots { display: none; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 74px; }
  .hero { padding-top: 5.75rem; padding-bottom: 2.5rem; }
  .cover-decoration { display: none; }
  .metrics-row { grid-template-columns: 1fr; gap: 0.9rem; }
  .cards { grid-template-columns: 1fr; gap: 1rem; }
  .skills-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .metric-surface { padding: 1.25rem 1.2rem; }
  .card-surface { padding: 1.35rem 1.25rem; }
  .split-right { padding: 1.25rem 1.2rem; }

  /* Reclaim full reading width for Experience on narrow phones */
  .role {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .role + .role {
    padding-top: 28px;
    border-top: 1px solid var(--border);
  }
  .role:not(:last-child)::after { display: none; }
  .step-circle { display: none; }
  .detail-block { padding: 1.15rem 1.15rem; }
  .endorsement { padding: 1.1rem 1.15rem; }

  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-btn, .cta-ghost { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-rule, .hero-title, .hero-sub, .hero-actions, .hero-meta { animation: none; }
  .mobile-drawer.is-open, .mobile-drawer.is-closing { animation: none; }
  .metric-surface, .card-surface, .ext-icon, .menu-icon line, .nav-desktop a::after { transition: none; }
  .metric-card:hover .metric-surface, .card:hover .card-surface { transform: none; }
  a:hover .ext-icon { transform: none; }
}

@media print {
  .site-nav, .cover-decoration, .cover-dots, .closing-decoration, .closing-decoration-2 { display: none; }
  .hero { padding-top: 1.5rem; }
  .section { padding-block: 2rem; }
}
