:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-rgb: 248, 250, 252;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-soft: #f8fafc;
  --surface-strong: #e2e8f0;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --green: #2563eb;
  --green-rgb: 37, 99, 235;
  --green-strong: #1d4ed8;
  --green-soft: rgba(37, 99, 235, 0.09);
  --brown: #0f766e;
  --brown-rgb: 15, 118, 110;
  --brown-strong: #0d5f59;
  --brown-soft: rgba(15, 118, 110, 0.09);
  --cream: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.11);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.07);
  --hero-card-start: #1e3a5f;
  --hero-card-end: #0f2742;
  --hero-card-text: #ffffff;
  --hero-card-muted: rgba(255, 255, 255, 0.76);
  --hero-card-line: rgba(255, 255, 255, 0.16);
  --featured-start: #1e3a5f;
  --featured-end: #102a46;
  --featured-text: #ffffff;
  --featured-muted: rgba(255, 255, 255, 0.78);
  --contact-start: #172554;
  --contact-end: #0f172a;
  --contact-text: #ffffff;
  --contact-muted: rgba(255, 255, 255, 0.76);
  --radius-lg: 22px;
  --radius-md: 15px;
  --max-width: 1180px;
  --display: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: Inter, Aptos, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-rgb: 15, 23, 42;
  --bg-soft: #111827;
  --surface: #172033;
  --surface-rgb: 23, 32, 51;
  --surface-soft: #1e293b;
  --surface-strong: #334155;
  --text: #f8fafc;
  --text-soft: #dbe4ef;
  --muted: #94a3b8;
  --line: rgba(226, 232, 240, 0.14);
  --green: #60a5fa;
  --green-rgb: 96, 165, 250;
  --green-strong: #93c5fd;
  --green-soft: rgba(96, 165, 250, 0.12);
  --brown: #2dd4bf;
  --brown-rgb: 45, 212, 191;
  --brown-strong: #5eead4;
  --brown-soft: rgba(45, 212, 191, 0.11);
  --cream: #ffffff;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.24);
  --hero-card-start: #1e3a5f;
  --hero-card-end: #111c30;
  --hero-card-text: #ffffff;
  --hero-card-muted: rgba(255, 255, 255, 0.76);
  --hero-card-line: rgba(255, 255, 255, 0.15);
  --featured-start: #1d4f73;
  --featured-end: #142238;
  --featured-text: #ffffff;
  --featured-muted: rgba(255, 255, 255, 0.78);
  --contact-start: #1e3a5f;
  --contact-end: #111827;
  --contact-text: #ffffff;
  --contact-muted: rgba(255, 255, 255, 0.76);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(var(--green-rgb), 0.07), transparent 25rem),
    radial-gradient(circle at 96% 18%, rgba(var(--brown-rgb), 0.055), transparent 28rem), var(--bg);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  transition:
    color 240ms ease,
    background-color 240ms ease;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(50% - 1px),
      rgba(var(--green-rgb), 0.025) 50%,
      transparent calc(50%+1px)
    ),
    linear-gradient(rgba(var(--surface-rgb), 0.34), transparent);
  opacity: 0.85;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(var(--bg-rgb), 0.84);
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(var(--bg-rgb), 0.96);
  box-shadow: 0 8px 24px rgba(30, 43, 33, 0.07);
}
.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--brown-rgb), 0.32);
  border-radius: 50%;
  color: var(--brown);
  background: var(--brown-soft);
  font-size: 0.78rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}
.nav-links a {
  position: relative;
  padding-block: 8px;
  transition: color 160ms ease;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--surface-rgb), 0.72);
}
.lang-switch button {
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}
.theme-toggle {
  position: relative;
  overflow: hidden;
}
.menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(var(--surface-rgb), 0.72);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}
.btn-primary {
  color: var(--cream);
  background: var(--green);
  box-shadow: 0 10px 22px rgba(var(--green-rgb), 0.18);
}
.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(var(--surface-rgb), 0.7);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.section-heading {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 52px;
  align-items: end;
  margin-bottom: 42px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--brown);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}
/*@media (max-width:1040px){.nav-links{position:absolute; top:72px; left:18px; right:18px; display:none; flex-direction:column; align-items:stretch; gap:4px; padding:16px; border:1px solid var(--line); border-radius:16px; background:rgba(var(--surface-rgb),0.98); box-shadow:var(--shadow);}
/* ==============================
   Resume PDF placeholder page
   ============================== */

.resume-build-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  color: var(--hero-card-text);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.1), transparent 13rem),
    linear-gradient(145deg, var(--hero-card-start), var(--hero-card-end));
  box-shadow: var(--shadow);
}

.resume-build-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -82px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.025),
    0 0 0 68px rgba(255, 255, 255, 0.016);
}

.resume-build-header,
.resume-progress,
.resume-terminal,
.resume-http {
  position: relative;
  z-index: 1;
}

.resume-build-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.resume-build-card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.resume-build-version {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
  font-weight: 800;
}

.resume-progress {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.resume-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
}

.resume-progress-track {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.resume-progress-track::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 78%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--brown));
  animation: resumeProgressPulse 2.8s ease-in-out infinite;
}

.resume-terminal {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.44);
}

.resume-terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.resume-terminal-dot:nth-child(1) {
  background: #f87171;
}
.resume-terminal-dot:nth-child(2) {
  background: #fbbf24;
}
.resume-terminal-dot:nth-child(3) {
  background: #34d399;
}

.resume-terminal-body {
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  line-height: 1.75;
}

.resume-terminal-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.resume-terminal-line strong {
  color: #fff;
  font-weight: 700;
}

.resume-terminal-ok {
  color: #4ade80;
  font-weight: 700;
}

.resume-terminal-run {
  display: inline-block;
  color: #60a5fa;
  font-weight: 700;
  animation: resumeBlink 1.1s ease-in-out infinite;
}

.resume-terminal-output {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-http {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 18px;
  background: rgba(45, 212, 191, 0.07);
}

.resume-http strong {
  display: block;
  margin-bottom: 5px;
  color: #5eead4;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.resume-http p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

@keyframes resumeProgressPulse {
  0%,
  100% {
    width: 72%;
  }
  50% {
    width: 88%;
  }
}

@keyframes resumeBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.38;
  }
}

@media (max-width: 680px) {
  .resume-build-header {
    flex-direction: column;
    gap: 12px;
  }

  .resume-build-version {
    align-self: flex-start;
  }
}
