:root {
  --ink: #101014;
  --ink-soft: #1b1b21;
  --ink-muted: #3e3e46;
  --paper: #f7f7f3;
  --paper-strong: #ffffff;
  --paper-muted: #ecebe4;
  --line: #d8d5cc;
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #6d6a63;
  --gold: #c8a35d;
  --gold-deep: #9c7737;
  --teal: #2fb7a7;
  --violet: #6f64ff;
  --coral: #d86d62;
  --shadow: 0 24px 70px rgba(16, 16, 20, 0.12);
  --shadow-soft: 0 14px 40px rgba(16, 16, 20, 0.08);
  --radius: 8px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

canvas {
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(200, 163, 93, 0.32);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--violet));
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 20, 0.82);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 2rem), var(--container));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 760;
  line-height: 1;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-size: 0.78rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-link,
.nav-resume {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.nav-link.active {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-resume {
  padding-inline: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: #ffffff;
}

.nav-resume:hover {
  border-color: rgba(200, 163, 93, 0.8);
  background: rgba(200, 163, 93, 0.12);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero-section {
  position: relative;
  min-height: 92svh;
  padding: 7.3rem 0 3.4rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: #ffffff;
  isolation: isolate;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 44%;
  background: linear-gradient(180deg, rgba(16, 16, 20, 0), rgba(16, 16, 20, 0.96));
}

.hero-canvas,
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-canvas {
  width: 100%;
  height: 100%;
}

.hero-grid {
  z-index: -2;
  opacity: 0.24;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 74%, transparent 100%);
}

.hero-content {
  width: min(calc(100% - 2rem), 1060px);
  margin-inline: auto;
  text-align: center;
}

.kicker,
.section-kicker,
.card-eyebrow,
.project-label {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 780;
  text-transform: uppercase;
}

.hero-name {
  max-width: 920px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  line-height: 0.95;
  font-weight: 500;
}

.hero-headline {
  max-width: 860px;
  margin: 1.3rem auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.55rem;
  line-height: 1.35;
  font-weight: 720;
  text-wrap: balance;
}

.hero-copy {
  max-width: 740px;
  margin: 1.1rem auto 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 780;
  line-height: 1.1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #f0d38b);
  color: #15120c;
  box-shadow: 0 18px 45px rgba(200, 163, 93, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 22px 54px rgba(200, 163, 93, 0.34);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-secondary:hover {
  border-color: rgba(47, 183, 167, 0.82);
  background: rgba(47, 183, 167, 0.12);
}

.hero-proof {
  margin: 2.4rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.hero-proof div {
  min-height: 92px;
  padding: 1rem;
  display: grid;
  place-items: center;
  gap: 0.18rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-proof div:first-child {
  border-left: 0;
}

.hero-proof strong {
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-proof div > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.hero-proof strong .counter {
  display: inline;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.section {
  padding: 6.5rem 0;
  scroll-margin-top: 5.5rem;
}

.section-light {
  background: var(--paper);
}

.section-muted {
  background: var(--paper-muted);
}

.section-ink {
  background: var(--ink);
  color: #ffffff;
}

.section-head {
  max-width: 780px;
  margin-bottom: 3rem;
}

.section-head h2,
.section-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  line-height: 1.08;
  font-weight: 520;
  text-wrap: balance;
}

.section-head p,
.section-copy p {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.section-ink .section-head p,
.section-ink .section-copy p,
.impact-section .section-copy p,
.contact-section .section-copy p {
  color: rgba(255, 255, 255, 0.68);
}

.section-split,
.contact-layout,
.impact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3.5rem;
  align-items: start;
}

.section-copy p + p {
  margin-top: 0.9rem;
}

.signal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.signal-panel-header {
  padding: 1.3rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff, #f1f0eb);
}

.signal-panel-header span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.signal-panel-header strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.stack-grid {
  padding: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stack-grid span,
.badge-row span,
.tech-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(16, 16, 20, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 720;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.availability-card {
  margin: 0 1.4rem 1.4rem;
  padding: 1rem;
  display: flex;
  gap: 0.9rem;
  border: 1px solid rgba(47, 183, 167, 0.28);
  border-radius: var(--radius);
  background: rgba(47, 183, 167, 0.08);
}

.availability-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(47, 183, 167, 0.14);
  flex: 0 0 auto;
}

.availability-card strong {
  display: block;
  line-height: 1.35;
}

.availability-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.skill-card {
  min-height: 330px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 163, 93, 0.58);
  background: rgba(255, 255, 255, 0.09);
}

.card-index {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.82rem;
}

.skill-card h3,
.timeline-card h3,
.project-card h3,
.education-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.22;
}

.skill-card p {
  margin: 0.85rem 0 1.2rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.96rem;
}

.badge-row,
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-card .badge-row {
  margin-top: auto;
}

.badge-row span {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  justify-content: flex-start;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--teal), transparent);
}

.timeline-card {
  position: relative;
  margin-left: 3rem;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
}

.timeline-marker {
  position: absolute;
  top: 1.5rem;
  left: -3rem;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(200, 163, 93, 0.6);
  border-radius: var(--radius);
  background: var(--paper);
}

.timeline-marker::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 3px;
  background: var(--gold);
}

.timeline-meta {
  margin-bottom: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.company {
  margin: 0.2rem 0 0;
  color: var(--gold-deep);
  font-weight: 800;
}

.timeline-card ul {
  margin: 1rem 0 1.1rem;
  padding-left: 1.1rem;
  color: var(--ink-muted);
}

.timeline-card li + li {
  margin-top: 0.55rem;
}

.impact-section,
.contact-section {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #ffffff;
}

.impact-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(200, 163, 93, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(47, 183, 167, 0.08), transparent 42%);
}

.impact-section .container,
.contact-section .container {
  position: relative;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.impact-tile {
  min-height: 170px;
  padding: 1.2rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.impact-tile:last-child {
  grid-column: 1 / -1;
}

.impact-tile strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--gold);
  font-size: 2.4rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.impact-tile strong .counter {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.impact-tile > span {
  display: block;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.68);
}

.filter-bar {
  margin: -0.8rem 0 1.5rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.filter-btn {
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink-muted);
  font-weight: 760;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.filter-btn:hover {
  transform: translateY(-1px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.project-card[hidden] {
  display: none;
}

.project-visual {
  height: 180px;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 0.65rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #15151a, #262018);
  background-size: 34px 34px, 34px 34px, auto;
}

.project-visual span {
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--gold), rgba(200, 163, 93, 0.36));
}

.project-visual span:nth-child(1) { height: 64px; }
.project-visual span:nth-child(2) { height: 112px; }
.project-visual span:nth-child(3) { height: 86px; }
.project-visual span:nth-child(4) { height: 136px; }

.project-visual-alt {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #101014, #102522);
  background-size: 34px 34px, 34px 34px, auto;
}

.project-visual-alt span {
  background: linear-gradient(180deg, var(--teal), rgba(47, 183, 167, 0.28));
}

.project-visual-third {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #101014, #211c35);
  background-size: 34px 34px, 34px 34px, auto;
}

.project-visual-third span {
  background: linear-gradient(180deg, var(--violet), rgba(111, 100, 255, 0.28));
}

.project-visual-fourth {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #101014, #2b1f20);
  background-size: 34px 34px, 34px 34px, auto;
}

.project-visual-fourth span {
  background: linear-gradient(180deg, var(--coral), rgba(216, 109, 98, 0.3));
}

.project-visual-fifth {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #101014, #18232c);
  background-size: 34px 34px, 34px 34px, auto;
}

.project-visual-fifth span {
  background: linear-gradient(180deg, #6fb3d2, rgba(111, 179, 210, 0.3));
}

.project-body {
  padding: 1.35rem;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-card p {
  color: var(--muted);
}

.project-card .project-label {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 820;
}

.project-card dl {
  margin: 1.1rem 0;
  display: grid;
  gap: 0.8rem;
}

.project-card dl div {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.project-card dt {
  margin-bottom: 0.18rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.project-card dd {
  margin: 0;
  color: var(--ink-muted);
}

.project-card a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin-top: auto;
  color: var(--gold-deep);
  font-weight: 820;
}

.education-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.education-card,
.testimonial-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.education-card:first-child,
.education-card:nth-child(3) {
  grid-column: span 2;
}

.education-card p {
  color: var(--muted);
}

.education-card .company {
  color: var(--gold-deep);
}

.cert-list {
  margin: 0.85rem 0 0;
  padding-left: 1.05rem;
  color: var(--ink-muted);
}

.cert-list li + li {
  margin-top: 0.45rem;
}

.language-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.language-list span {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.testimonial-card div {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-links {
  margin-top: 2rem;
  display: grid;
  gap: 0.7rem;
}

.contact-links a {
  padding: 1rem;
  display: grid;
  gap: 0.18rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 163, 93, 0.62);
  background: rgba(255, 255, 255, 0.1);
}

.contact-links span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
}

.contact-links strong {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: 1.35rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.contact-form div + div,
.contact-form button {
  margin-top: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 780;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.85rem 0.9rem;
  resize: vertical;
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.11);
  outline: none;
}

.contact-form .btn {
  width: 100%;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.form-status.success {
  color: #8fe5d8;
}

.form-status.error {
  color: #ffb3aa;
}

.site-footer {
  padding: 1.3rem 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner div {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner a:hover {
  color: #ffffff;
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 16, 20, 0.12);
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }
.reveal-delay-4 { transition-delay: 360ms; }
.reveal-delay-5 { transition-delay: 450ms; }

.counter {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 960px) {
  .hero-name {
    font-size: 7rem;
  }

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

@media (max-width: 1120px) {
  .skills-grid,
  .education-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1fr);
  }

  .project-visual {
    height: 100%;
    min-height: 260px;
  }
}

@media (max-width: 1060px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 74px;
    left: 1rem;
    right: 1rem;
    max-height: calc(100svh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(16, 16, 20, 0.96);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: visibility 0ms linear 180ms, opacity 180ms ease, transform 180ms ease;
  }

  .nav-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0ms;
  }

  .nav-link,
  .nav-resume {
    min-height: 46px;
    justify-content: center;
  }

  .section-split,
  .contact-layout,
  .impact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  .hero-section {
    min-height: 92svh;
    padding: 5.6rem 0 2rem;
  }

  .hero-name {
    font-size: 3.35rem;
  }

  .hero-headline {
    font-size: 1.2rem;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-actions {
    margin-top: 1.4rem;
  }

  .btn {
    width: min(100%, 340px);
  }

  .hero-proof {
    margin-top: 1.45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-proof div {
    min-height: 76px;
  }

  .hero-proof div:nth-child(odd) {
    border-left: 0;
  }

  .hero-proof div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .section {
    padding: 4.4rem 0;
  }

  .filter-bar {
    margin: -0.4rem 0 1.35rem;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 0.55rem);
    justify-content: center;
    white-space: nowrap;
  }

  .section-head h2,
  .section-copy h2 {
    font-size: 2.15rem;
  }

  .stack-grid,
  .skills-grid,
  .education-grid,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .education-card:first-child,
  .education-card:nth-child(3),
  .impact-tile:last-child {
    grid-column: auto;
  }

  .project-card {
    display: block;
  }

  .project-visual {
    height: 170px;
    min-height: 170px;
  }

  .timeline-card {
    margin-left: 2.25rem;
  }

  .timeline-marker {
    left: -2.25rem;
  }

  .footer-inner {
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 460px) {
  .container,
  .hero-content,
  .nav-shell {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .hero-name {
    font-size: 2.85rem;
  }

  .hero-proof strong {
    font-size: 1.45rem;
  }

  .hero-proof div > span {
    font-size: 0.78rem;
  }

  .section-head h2,
  .section-copy h2 {
    font-size: 1.85rem;
  }

  .signal-panel-header {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .scroll-progress,
  .hero-canvas,
  .hero-grid,
  .back-to-top,
  .contact-form {
    display: none !important;
  }

  body,
  .section,
  .section-ink,
  .impact-section,
  .contact-section,
  .site-footer {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .section {
    padding: 1.5rem 0 !important;
  }
}
