:root {
  color-scheme: light;
  --paper: #f7f6f4;
  --card: #fff;
  --ink: #252426;
  --muted: #716e6e;
  --line: #e8e5e2;
  --accent: #b93639;
  --accent-soft: #fbefed;
  --shadow: 0 12px 32px rgba(35, 29, 28, .045);
  --radius: 20px;
  --sans: "DM Sans", sans-serif;
  --display: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.045em; line-height: 1.12; }
h1 { font-size: clamp(42px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
section[id] { scroll-margin-top: 96px; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: var(--paper);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-color: rgba(232, 229, 226, .8);
  background: rgba(247, 246, 244, .88);
  box-shadow: 0 4px 20px rgba(35, 29, 28, .035);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font: 700 10px var(--display);
}
.brand-name { font: 600 19px var(--display); letter-spacing: -.04em; }
.brand-name span, .project-info h3 span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf9;
  box-shadow: 0 3px 12px rgba(35, 29, 28, .035);
}
.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.nav-link::after {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .18s ease;
}
.nav-link:hover { background: #f3f1ef; color: var(--ink); }
.nav-link.active, .nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
.nav-link.active::after, .nav-link[aria-current="page"]::after { opacity: 1; }
.nav-link:focus-visible { outline-offset: 2px; }
.menu-toggle { display: none; }

main { display: block; }
main.page-content > section { animation: page-enter .22s ease-out both; }
@keyframes page-enter { from { opacity: 0; } to { opacity: 1; } }
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding-top: 48px;
  padding-bottom: 24px;
}
.hero-copy,
.profile-visual,
.home-highlight-card,
.about-intro,
.about-story,
.info-card,
.approach-heading,
.approach-card,
.projects-intro,
.skills-intro,
.skill-card,
.journey-intro,
.education-college-card,
.education-fact-card,
.growth-milestone,
.achievement-empty,
.technical-growth-card,
.contact-heading,
.contact-details-card,
.contact-form-card,
.contact-resume-card,
.journey-heading,
.journey-step {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.hero-copy {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 50px);
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font: 600 10px/1.4 var(--display);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.hero-copy h1 { margin-bottom: 20px; }
.gradient-text { color: var(--accent); }
.hero-title { max-width: 620px; margin-bottom: 15px; font-size: clamp(27px, 3.4vw, 43px); }
.hero-intro { max-width: 570px; margin-bottom: 10px; color: #565253; font-size: 15px; }
.hero-support { color: var(--muted); font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 15px 0 0; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: var(--accent); }
.button-ghost { border-color: var(--line); background: white; color: var(--ink); }
.button-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-socials { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; color: var(--muted); }
.social-links a { font-size: 11px; font-weight: 600; transition: color .18s ease; }
.social-links a:hover { color: var(--accent); }
.hero-socials span { color: var(--accent); }
.profile-visual {
  grid-column: span 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 11px;
  padding: clamp(18px, 2.5vw, 30px);
  background: #f1eeeb;
}
.profile-frame {
  grid-column: 1 / -1;
  width: min(100%, 300px);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  margin-bottom: 4px;
  border: 1px solid #e6ddda;
  border-radius: 18px;
  background: #e9e3df;
}
.profile-frame img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.profile-card {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #e6dfdc;
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  font-size: 10px;
  text-align: center;
}
.profile-card b { margin-inline: 4px; color: var(--accent); }
.profile-card--backend { grid-column: 1 / -1; }
.home-highlights {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.home-highlight-card {
  display: flex;
  min-height: 106px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  transition: border-color .18s ease, transform .18s ease;
}
.home-highlight-card:hover,
.contact-resume-card:hover { border-color: #d7b7b4; transform: translateY(-3px); }
.home-highlight-card > span,
.info-card-icon,
.approach-icon,
.technical-growth-icon,
.education-fact-icon,
.contact-item-icon,
.contact-resume-icon {
  display: grid;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 12px var(--display);
}
.home-highlight-card .info-card-label { margin-bottom: 4px; color: var(--muted); font-size: 8px; }
.home-highlight-card h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.home-projects { padding-block: 34px 70px; }
.home-projects-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.home-projects-heading h2 { margin: 0; font-size: clamp(26px, 3.5vw, 38px); }
.text-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 600; }
.text-link span { color: var(--accent); }
.home-project-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.home-project-card { grid-column: span 5; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); transition: border-color .18s ease, transform .18s ease; }
.home-project-card:first-child { grid-column: span 7; }
.home-project-card:hover { border-color: #d7b7b4; transform: translateY(-3px); }
.home-project-preview .project-preview { min-height: 170px; }
.home-project-info { padding: 21px; }
.home-project-info h3 { margin: 6px 0 9px; font-size: 20px; }
.home-project-info h3 a:hover, .text-link:hover { color: var(--accent); }
.home-project-info > p:not(.project-type) { margin-bottom: 13px; color: var(--muted); font-size: 12px; }
.home-project-info .tags { margin-bottom: 14px; }
.home-project-info .text-link { font-size: 11px; }

.section { padding-block: 62px; }
.about-section, .skills-section, .journey-section { background: transparent; }
.section > .container { display: grid; gap: 16px; }
.about-intro, .projects-intro, .skills-intro, .journey-intro, .contact-heading { padding: clamp(24px, 3.5vw, 38px); }
.about-intro .eyebrow,
.projects-intro .eyebrow,
.skills-intro .eyebrow,
.journey-intro .eyebrow,
.contact-heading .eyebrow { margin-bottom: 10px; }
.about-intro h1, .about-intro h2,
.projects-intro h1, .projects-intro h2,
.skills-intro h1, .skills-intro h2,
.journey-intro h1, .journey-intro h2,
.contact-heading h1, .contact-heading h2 { max-width: 850px; margin-bottom: 10px; font-size: clamp(30px, 4vw, 48px); }
.about-subtitle,
.projects-intro > p:last-child,
.skills-intro > p:last-child,
.journey-intro > p:last-child,
.contact-heading > p:last-child { margin-bottom: 0; color: var(--muted); }
.about-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.about-story { grid-column: span 7; padding: clamp(24px, 3vw, 38px); }
.about-story-lead { color: var(--ink); font: 500 20px/1.5 var(--display); }
.about-story p:not(.about-story-lead) { color: #625e5e; }
.about-story p:last-child { margin-bottom: 0; }
.highlight { border-bottom: 1px solid #d5aaa7; color: var(--ink); }
.about-info-grid { grid-column: span 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-card { padding: 19px; transition: border-color .18s ease, transform .18s ease; }
.info-card:hover, .approach-card:hover, .skill-card:hover, .education-fact-card:hover, .technical-growth-card:hover { border-color: #d7b7b4; transform: translateY(-3px); }
.info-card-icon, .approach-icon, .technical-growth-icon, .education-fact-icon { margin-bottom: 15px; }
.info-card-label, .skill-card-label, .journey-kicker, .project-type, .card-kicker { color: var(--muted); font: 600 9px/1.45 var(--display); letter-spacing: .11em; }
.info-card h3 { margin: 0; font-size: 15px; line-height: 1.35; }
.approach-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.approach-heading { grid-column: span 4; padding: 27px; }
.approach-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
.muted-text { color: #827d7b; }
.approach-grid { grid-column: span 8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.approach-card { padding: 20px; transition: border-color .18s ease, transform .18s ease; }
.approach-number { color: var(--accent); font: 600 10px var(--display); }
.approach-icon { width: 35px; height: 35px; margin: 12px 0; }
.approach-card h3 { font-size: 16px; }
.approach-card p { margin-bottom: 0; color: var(--muted); font-size: 12px; }

.project-filters, .skill-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.project-filter, .filter-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.project-filter:hover, .filter-button:hover { border-color: #d7b7b4; color: var(--ink); }
.project-filter.active, .filter-button.active { border-color: var(--ink); background: var(--ink); color: white; }
.project-showcase { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.showcase-card {
  grid-column: span 6;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: border-color .18s ease, transform .18s ease;
}
.showcase-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.showcase-card:not(.showcase-card--featured):nth-child(2) { grid-column: span 5; }
.showcase-card:not(.showcase-card--featured):nth-child(3) { grid-column: span 7; }
.showcase-card:hover { border-color: #d7b7b4; transform: translateY(-3px); }
.project-feature-list { margin: 0 0 17px; padding-left: 18px; color: #625e5e; font-size: 11px; line-height: 1.6; }
.project-feature-list li + li { margin-top: 5px; }
.project-link-note { align-self: center; color: var(--muted); font-size: 10px; }
.project-preview { position: relative; min-height: 190px; overflow: hidden; background: #f0eeec; }
.showcase-card--featured .project-preview { min-height: 300px; height: 100%; }
.project-preview--emergency { background: #f0eeec; }
.map-grid { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(#ded9d6 1px, transparent 1px), linear-gradient(90deg, #ded9d6 1px, transparent 1px); background-size: 28px 28px; transform: rotate(-9deg) scale(1.2); }
.map-route { position: absolute; top: 23%; left: 20%; width: 60%; height: 50%; border: 2px dashed #bb7774; border-radius: 45% 50% 45% 55%; transform: rotate(12deg); }
.map-marker { position: absolute; display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--accent); color: white; font: 700 12px var(--display); }
.marker-ambulance { top: 35%; left: 29%; }
.marker-hospital { top: 52%; right: 23%; background: #504b49; }
.marker-hospital-two { top: 24%; right: 38%; }
.emergency-panel { position: absolute; bottom: 17px; left: 18px; width: 160px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.95); }
.emergency-panel small { display: block; color: var(--accent); font: 600 8px var(--display); letter-spacing: .12em; }
.emergency-panel strong { display: block; margin: 5px 0 8px; font: 600 12px var(--display); }
.emergency-panel i { display: inline-block; width: 23px; height: 3px; margin-right: 3px; border-radius: 4px; background: #b93639; }
.emergency-panel i:nth-of-type(2) { width: 34px; background: #77716f; }
.emergency-panel i:nth-of-type(3) { width: 15px; background: #c9c1bd; }
.project-preview--retail { padding: 21px; background: #f2efed; }
.store-header { display: flex; align-items: center; gap: 13px; color: var(--ink); font: 600 16px var(--display); }
.store-header span { margin-right: auto; color: var(--accent); }
.store-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 27px; }
.store-products i { height: 76px; border: 1px solid #ded9d6; border-radius: 9px; background: linear-gradient(140deg, #fff, #e8e4e1); }
.store-products i:nth-child(2) { background: linear-gradient(140deg, #f8f2f0, #e5dcda); }
.store-product-lines { display: flex; gap: 20px; margin-top: 9px; }
.store-product-lines b { width: 45px; height: 4px; border-radius: 3px; background: #d8d1cd; }
.store-product-lines b:nth-child(2) { background: #c18b87; }
.project-preview--printing { display: flex; padding: 20px; background: #efedeb; }
.print-sidebar { width: 38px; display: flex; flex-direction: column; gap: 13px; padding: 13px 9px; border-radius: 9px; background: #dedad7; }
.print-sidebar i { height: 10px; border-radius: 3px; background: #bdb7b3; }
.print-sidebar i:first-child { background: var(--accent); }
.print-content { flex: 1; min-width: 0; padding: 12px 17px; }
.print-content small { color: var(--accent); font: 600 8px var(--display); letter-spacing: .13em; }
.print-content strong { display: block; margin: 7px 0 16px; font: 600 13px var(--display); }
.print-jobs { display: grid; gap: 7px; }
.print-jobs i { display: block; height: 31px; border: 1px solid #ded9d6; border-radius: 7px; background: #fff; }
.print-jobs i::before { display: block; width: 21px; height: 21px; margin: 4px; border-radius: 4px; background: #eee7e4; content: ""; }
.project-preview--screenshot { background: #101116; }
.project-preview--screenshot img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; object-position: top center; }
.showcase-info { min-width: 0; padding: clamp(20px, 2.6vw, 30px); }
.showcase-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.project-type { margin: 0; font-size: 8px; }
.showcase-info h3 { margin: 12px 0; font-size: clamp(19px, 2.2vw, 26px); }
.showcase-info > p { margin-bottom: 16px; color: #625e5e; font-size: 12px; line-height: 1.7; }
.status-badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border: 1px solid #eadbd9; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 600; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span, .modal-tags span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: #faf9f8; color: #625e5e; font-size: 9px; }
.showcase-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.project-details-button { min-height: 38px; padding: 8px 12px; border: 0; }
.project-link { display: inline-flex; min-height: 38px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 10px; font-weight: 600; }
.project-link:hover { border-color: var(--accent); color: var(--accent); }
.project-showcase--single { grid-template-columns: minmax(0, 1fr); }

.skill-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.skill-card { padding: 21px; transition: border-color .18s ease, transform .18s ease; }
.skill-card:nth-child(2), .skill-card:nth-child(3) { grid-column: span 2; }
.skill-card-icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 15px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font: 600 13px var(--display); }
.skill-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.skill-card-label { margin-bottom: 7px; }
.skill-card h3 { margin-bottom: 9px; font-size: 17px; }
.skill-card > p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.status-familiar, .status-learning, .status-planned, .status-using { border-color: var(--line); background: #f7f6f4; color: #6b6664; }
.skill-card.is-hidden { display: none; }
.learning-journey { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.journey-heading { grid-column: span 4; padding: 26px; }
.journey-heading .eyebrow { margin-bottom: 10px; }
.journey-heading h2 { margin-bottom: 0; font-size: clamp(27px, 3vw, 36px); }
.journey-timeline { grid-column: span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.journey-step { display: flex; align-items: flex-start; gap: 14px; padding: 18px; }
.journey-marker { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font: 600 10px var(--display); }
.journey-step > div { min-width: 0; }
.journey-step .journey-kicker { margin-bottom: 5px; }
.journey-step h3 { margin-bottom: 0; font-size: 14px; }

.education-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.education-college-card {
  position: relative;
  grid-column: span 6;
  min-height: 220px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  background: #f1eeeb;
}
.education-college-card .journey-kicker { color: var(--accent); }
.education-college-card h3 { position: relative; z-index: 1; max-width: 420px; font-size: clamp(23px, 3vw, 34px); }
.education-college-card > p:not(.journey-kicker) { position: relative; z-index: 1; max-width: 380px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.education-card-mark { position: absolute; right: 17px; bottom: -16px; color: rgba(37,36,38,.06); font: 700 82px/.9 var(--display); letter-spacing: -.09em; }
.education-fact-card { grid-column: span 3; min-height: 102px; padding: 17px; transition: border-color .18s ease, transform .18s ease; }
.education-fact-icon { width: 34px; height: 34px; margin-bottom: 11px; font-size: 10px; }
.education-fact-card .journey-kicker { margin-bottom: 5px; font-size: 8px; }
.education-fact-card h3 { margin-bottom: 0; font-size: 14px; line-height: 1.3; }
.growth-timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.growth-milestone { display: flex; align-items: flex-start; gap: 15px; padding: 20px; }
.growth-marker { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font: 600 10px var(--display); }
.growth-content { min-width: 0; }
.growth-content h3 { margin-bottom: 8px; font-size: 17px; }
.growth-content > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.achievements-block, .growth-cards-heading { margin-top: 8px; }
.achievements-heading { margin-bottom: 12px; }
.achievements-heading h2, .growth-cards-heading h2 { margin-bottom: 0; font-size: clamp(26px, 3.2vw, 38px); }
.achievement-empty { padding: 20px; border-style: dashed; box-shadow: none; }
.achievement-empty-icon, .achievement-card-icon { display: block; margin-bottom: 10px; color: var(--accent); }
.achievement-empty h3, .achievement-card h3 { font-size: 16px; }
.achievement-empty p, .achievement-card > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.achievement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.achievement-card { padding: 20px; }
.growth-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.technical-growth-card { padding: 21px; transition: border-color .18s ease, transform .18s ease; }
.technical-growth-card h3 { font-size: 17px; }
.technical-growth-card > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 11px; }

.contact-section { padding: 62px 0; }
.contact-section > .container { display: grid; gap: 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.contact-details-card { grid-column: span 5; padding: clamp(22px, 3vw, 34px); }
.contact-card-kicker, .form-note { color: var(--muted); font: 600 9px var(--display); letter-spacing: .11em; }
.contact-details-card h3 { margin-bottom: 13px; font-size: clamp(27px, 3vw, 37px); }
.contact-details-card h3 span { color: var(--accent); }
.contact-card-copy { color: var(--muted); font-size: 12px; }
.contact-list { display: grid; gap: 8px; }
.contact-item { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; transition: border-color .18s ease, background-color .18s ease; }
.contact-item:hover { border-color: #d7b7b4; background: #fdfaf9; }
.contact-item-icon { width: 33px; height: 33px; border-radius: 10px; font-size: 11px; }
.contact-item > span:nth-child(2) { display: grid; min-width: 0; gap: 1px; margin-right: auto; }
.contact-item small { color: var(--muted); font: 600 8px var(--display); letter-spacing: .1em; }
.contact-item strong { overflow-wrap: anywhere; font-size: 10px; }
.contact-item > b { color: var(--accent); }
.contact-form-card { grid-column: span 7; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 34px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.form-field label { color: var(--ink); font-size: 11px; font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; min-width: 0; padding: 11px 12px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fcfbfa; color: var(--ink); font: 12px var(--sans); }
.form-field input:focus, .form-field textarea:focus { border-color: #c57d79; box-shadow: 0 0 0 3px rgba(185,54,57,.08); }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--accent); }
.form-error { min-height: 13px; color: var(--accent); font-size: 10px; }
.form-submit { align-self: flex-start; border: 0; }
.form-status { min-height: 0; color: #4a6650; font-size: 11px; }
.form-status.is-error { color: var(--accent); }
.email-app-button { align-self: flex-start; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--accent); cursor: pointer; font-size: 10px; }
.email-app-button[hidden] { display: none; }
.form-note { margin: 0; font-size: 9px; letter-spacing: 0; text-transform: none; }
.contact-resume-card { display: flex; align-items: center; gap: 14px; padding: 18px 22px; transition: border-color .18s ease, transform .18s ease; }
.contact-resume-icon { width: 42px; height: 42px; }
.contact-resume-card > span:nth-child(2) { display: grid; gap: 2px; margin-right: auto; }
.contact-resume-card small { color: var(--muted); font: 600 8px var(--display); letter-spacing: .12em; }
.contact-resume-card strong { font: 600 15px var(--display); }
.contact-resume-card > span > span { color: var(--muted); font-size: 10px; }
.contact-resume-card > b { color: var(--accent); }

.site-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
}
.footer-copy { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.footer-copy strong { font: 600 10px var(--display); }
.footer-copy span, .footer-copy small { color: var(--muted); font-size: 9px; }
.footer-copy small { margin-top: 4px; }
.footer-socials { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 15px; }
.footer-socials a { font-size: 10px; }
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 8;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.project-modal[hidden] { display: none; }
.project-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; }
.project-modal-backdrop { position: absolute; inset: 0; background: rgba(25, 23, 22, .52); }
.project-modal-content { position: relative; z-index: 1; width: min(720px, 100%); max-height: min(780px, calc(100vh - 40px)); overflow: auto; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 24px 70px rgba(35,29,28,.16); }
.project-modal-screenshots { display: grid; gap: 12px; margin: 18px 0; }
.project-modal-screenshots[hidden] { display: none; }
.project-modal-screenshots figure { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #10191d; }
.project-modal-screenshots img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; }
.modal-close { position: absolute; top: 15px; right: 15px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 24px; }
.modal-close:hover { color: var(--accent); }
.project-modal-content h2 { padding-right: 30px; font-size: clamp(27px, 4vw, 42px); }
.modal-project-description, .modal-project-context p, .modal-project-context li, .modal-columns li { color: #625e5e; font-size: 12px; line-height: 1.7; }
.modal-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; margin-top: 24px; }
.modal-label { color: var(--accent); font: 600 9px var(--display); letter-spacing: .12em; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-project-context { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-project-context ul, .modal-columns ul { padding-left: 18px; }
.modal-project-context [hidden] { display: none; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal-links { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
  .nav { gap: 18px; }
  .nav-links { gap: 2px; padding: 4px; }
  .nav-link { padding-inline: 10px; font-size: 11px; }
  .home-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-project-card, .home-project-card:first-child { grid-column: span 6; }
  .about-story { grid-column: span 6; }
  .about-info-grid { grid-column: span 6; }
  .approach-heading { grid-column: 1 / -1; }
  .approach-grid { grid-column: 1 / -1; }
  .skill-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-card:nth-child(2), .skill-card:nth-child(3) { grid-column: span 1; }
  .journey-heading { grid-column: span 4; }
  .journey-timeline { grid-column: span 8; grid-template-columns: 1fr; }
  .education-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .education-college-card { grid-column: span 2; }
  .education-fact-card { grid-column: span 1; }
  .contact-details-card { grid-column: span 5; }
  .contact-form-card { grid-column: span 7; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 76px; }
  section[id] { scroll-margin-top: 76px; }
  .container { width: min(100% - 32px, 580px); }
  .nav { position: relative; min-height: 66px; }
  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    align-content: center;
    justify-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
  }
  .menu-toggle:hover { border-color: #d8d3cf; background: #fbfaf9; }
  .menu-toggle span {
    display: block;
    width: 17px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--ink);
    transition: opacity .18s ease, transform .18s ease;
  }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    display: none;
    align-items: stretch;
    gap: 3px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfaf9;
    box-shadow: 0 12px 28px rgba(35, 29, 28, .08);
    width: min(340px, calc(100vw - 32px));
  }
  .nav-links.open { display: grid; }
  .nav-link { min-height: 42px; justify-content: flex-start; padding: 10px 14px 12px; border-radius: 12px; font-size: 12px; }
  .nav-link::after { bottom: 10px; left: auto; right: 14px; transform: none; }
  .hero { gap: 12px; padding-top: 24px; }
  .hero-copy, .profile-visual { grid-column: 1 / -1; }
  .hero-copy { padding: 25px; }
  .hero-copy h1 { font-size: clamp(40px, 11vw, 58px); }
  .hero-title { font-size: clamp(27px, 7.5vw, 36px); }
  .profile-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-frame { width: min(100%, 255px); }
  .home-highlights { gap: 12px; }
  .home-projects { padding-block: 22px 44px; }
  .home-projects-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .home-project-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-project-card, .home-project-card:first-child { grid-column: 1; }
  .home-highlight-card { min-height: 92px; gap: 10px; padding: 14px; }
  .home-highlight-card > span { width: 34px; height: 34px; }
  .home-highlight-card h3 { font-size: 13px; }
  .section, .contact-section { padding-block: 38px; }
  .section > .container, .contact-section > .container { gap: 12px; }
  .about-layout, .approach-block, .approach-grid, .learning-journey, .journey-timeline, .education-bento, .growth-timeline, .growth-cards, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .about-story, .about-info-grid, .approach-heading, .approach-grid, .journey-heading, .journey-timeline, .education-college-card, .education-fact-card, .contact-details-card, .contact-form-card { grid-column: 1; }
  .about-story { padding: 23px; }
  .about-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach-card:last-child { grid-column: 1 / -1; }
  .project-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .showcase-card, .showcase-card--featured, .showcase-card:not(.showcase-card--featured):nth-child(2), .showcase-card:not(.showcase-card--featured):nth-child(3) { grid-column: 1 / -1; }
  .showcase-card--featured { grid-template-columns: minmax(0, 1fr); }
  .showcase-card--featured .project-preview { min-height: 205px; }
  .journey-heading, .journey-timeline { grid-column: 1; }
  .journey-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .education-fact-card { min-height: 0; }
  .growth-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .achievement-grid, .growth-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-details-card, .contact-form-card { padding: 22px; }
  .site-footer { flex-wrap: wrap; gap: 16px; }
  .footer-copy { width: calc(100% - 55px); }
  .footer-socials { width: 100%; justify-content: flex-start; }
}

@media (max-width: 460px) {
  .container { width: min(100% - 28px, 420px); }
  .home-highlights, .about-info-grid, .approach-grid, .skill-card-grid, .journey-timeline, .growth-timeline, .achievement-grid, .growth-cards { grid-template-columns: minmax(0, 1fr); }
  .approach-card:last-child { grid-column: 1; }
  .skill-card:nth-child(2), .skill-card:nth-child(3) { grid-column: 1; }
  .project-showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase-card, .showcase-card--featured, .showcase-card:not(.showcase-card--featured):nth-child(2), .showcase-card:not(.showcase-card--featured):nth-child(3) { grid-column: 1; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .modal-columns { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .modal-footer { align-items: flex-start; flex-direction: column; }
  .contact-resume-card { padding: 16px; }
}

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

.resume-page { min-height: 100vh; padding: 36px 20px 56px; background: #f1f2f3; }
.resume-toolbar { display: flex; width: min(816px, 100%); align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto 16px; }
.resume-toolbar a { color: var(--muted); font-size: 13px; font-weight: 600; }
.resume-toolbar button { min-height: 42px; padding: 9px 16px; border: 1px solid #253e53; border-radius: 4px; background: #253e53; color: #fff; cursor: pointer; font-weight: 700; }
.resume-document { display: grid; grid-template-columns: 242px minmax(0, 1fr); width: min(816px, 100%); min-height: 1056px; margin: 0 auto; background: #fff; box-shadow: 0 8px 28px rgba(24, 34, 43, .08); }
.resume-sidebar { padding: 34px 22px; background: #252426; color: #f7f6f4; }
.resume-portrait { width: 86px; height: 86px; margin: 0 auto 16px; border: 2px solid rgba(255, 255, 255, .76); border-radius: 50%; object-fit: cover; }
.resume-sidebar h1 { margin: 0; color: #fff; font-size: 22px; text-align: center; letter-spacing: 0; }
.resume-sidebar-role { margin: 7px 0 25px; color: #e4c4c0; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.resume-sidebar-section { margin-top: 22px; }
.resume-sidebar-section > h2 { margin: 0 0 11px; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .32); color: #fff; font: 700 14px var(--display); }
.resume-sidebar-section > a { display: block; margin-top: 10px; overflow-wrap: anywhere; color: #f5f7f4; font-size: 9px; line-height: 1.45; }
.resume-sidebar-section > a small { display: block; margin-bottom: 2px; color: #e2a5a1; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.resume-skill-group { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.resume-skill-group h3 { margin: 0 0 3px; color: #fff; font: 600 9px var(--display); }
.resume-skill-group p { margin: 0; color: #e2dedd; font-size: 9px; line-height: 1.5; }
.resume-main { min-width: 0; padding: 42px 38px 38px; }
.resume-section + .resume-section { margin-top: 23px; }
.resume-section > h2 { margin: 0 0 9px; padding-bottom: 5px; border-bottom: 1px solid #cbd4d8; color: #172f3f; font: 700 15px var(--display); letter-spacing: 0; }
.resume-section > p { margin-bottom: 0; color: #302d2d; font-size: 10px; line-height: 1.55; }
.resume-education { display: grid; gap: 3px; }
.resume-education h3 { margin: 0; font-size: 11px; }
.resume-education p { margin: 0; color: #514e4d; font-size: 9px; }
.resume-project-list { display: grid; gap: 13px; }
.resume-project { break-inside: avoid; }
.resume-project-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.resume-project-heading h3 { margin: 0; font-size: 10px; }
.resume-project-heading a { flex: 0 0 auto; color: #9f3034; font-size: 8px; text-decoration: underline; text-underline-offset: 2px; }
.resume-project ul { margin: 4px 0 0; padding-left: 15px; }
.resume-project li { margin-top: 2px; color: #302d2d; font-size: 8.5px; line-height: 1.4; }
.resume-project-stack { margin: 4px 0 0; color: #66605f; font-size: 8px !important; line-height: 1.4 !important; }
.resume-project-stack strong { color: var(--ink); }

@media (max-width: 600px) {
  .resume-page { padding: 16px 10px 32px; }
  .resume-document { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .resume-sidebar { padding: 28px 24px; }
  .resume-sidebar-section { max-width: 440px; margin-inline: auto; }
  .resume-main { padding: 28px 24px; }
}

@page { size: letter; margin: .55in; }
@media print {
  body.resume-page { min-height: 0; padding: 0; background: #fff; color: #171717; font-family: Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .resume-toolbar { display: none; }
  .resume-document { grid-template-columns: 2.15in minmax(0, 1fr); width: 100%; min-height: 0; margin: 0; box-shadow: none; }
  .resume-sidebar { padding: .35in .22in; }
  .resume-main { padding: .42in .36in; }
  .resume-section + .resume-section { margin-top: 17px; }
  .resume-section > h2 { font-size: 12pt; }
  .resume-section > p { font-size: 9pt; }
  .resume-education h3, .resume-project-heading h3 { font-size: 9pt; }
  .resume-education p, .resume-project-heading a { font-size: 7.5pt; }
  .resume-project-list { gap: 10px; }
  .resume-project li { font-size: 7.5pt; line-height: 1.3; }
  .resume-project-stack { font-size: 7pt !important; }
  a { color: inherit; }
}
