:root {
  color-scheme: light;
  --background: #fafaf8;
  --surface: #ffffff;
  --text: #20222a;
  --muted: #626571;
  --accent: #315bdf;
  --accent-hover: #2547b5;
  --accent-soft: #edf1fe;
  --line: #e2e3e7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
::selection { color: white; background: var(--accent); }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.page-shell { max-width: 1192px; padding: 0 24px; margin: 0 auto; }
.site-header { display: flex; flex-direction: column; gap: 23px; align-items: flex-start; padding: 25px 0 22px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 650; letter-spacing: -.25px; }
.wordmark-initials { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 12px; letter-spacing: -.5px; }
nav { display: flex; width: 100%; justify-content: space-between; gap: 10px; }
nav a { font-size: 12px; font-weight: 500; color: var(--muted); transition: color 160ms ease; padding: 4px 0; }
nav a:hover { color: var(--accent); }
.hero { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 35px; padding: 49px 0 64px; }
.hero-copy { max-width: 645px; animation: appear 550ms ease both; }
h1 { font-size: clamp(55px, 12.5vw, 94px); font-weight: 650; letter-spacing: -.065em; line-height: 1.02; }
h1 span { color: var(--accent); }
.tagline { max-width: 515px; margin-top: 24px; font-size: 20px; font-weight: 400; line-height: 1.6; letter-spacing: -.35px; color: var(--muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 14px 19px; min-height: 49px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 550; line-height: 1.4; white-space: nowrap; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.button-primary { color: white; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); }
.button-secondary { border-color: #d4d5db; background: transparent; }
.button-secondary:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }
.button > span { font-size: 19px; line-height: 1; }
.button svg { width: 17px; height: 17px; }
.hero-mark { width: 144px; height: 144px; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.hero-mark::before { content: ""; position: absolute; inset: -8px; border: 1px solid #dfe6fb; border-radius: 50%; }
.profile-photo { display: block; width: 100%; height: 100%; border: 1px solid var(--accent); border-radius: 50%; object-fit: cover; background: #000; }
.initials-circle { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--accent-soft); border: 1px solid #dce4fc; border-radius: 50%; color: var(--accent); font-size: 54px; font-weight: 550; letter-spacing: -4px; }
.content-section { display: flex; flex-direction: column; gap: 26px; border-top: 1px solid var(--line); padding: 39px 0 43px; }
.section-heading { display: flex; align-items: center; gap: 13px; }
.section-dash { display: block; width: 18px; height: 2px; background: var(--accent); }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.65px; }
.section-content { min-width: 0; width: 100%; }
.about-text { font-size: 17px; line-height: 1.85; letter-spacing: -.1px; color: #4f525d; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 11px; list-style: none; margin: 0; padding: 0; }
.skill-tags li { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 11px 17px; font-size: 14px; font-weight: 500; }
.project-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.project-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 30px; }
.project-card h3 { font-size: 18px; font-weight: 550; letter-spacing: -.4px; line-height: 1.5; }
.project-card p { margin-top: 12px; color: var(--muted); line-height: 1.7; font-size: 15px; }
.project-symbol { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: var(--accent); background: var(--accent-soft); border-radius: 8px; margin-bottom: 21px; }
.project-symbol svg { width: 22px; height: 22px; }
.placeholder-line { width: 40px; height: 2px; background: #dce4fc; margin-top: 25px; }
.project-technologies { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 22px 0; gap: 8px; }
.project-technologies li { border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 12px; padding: 6px 9px; }
.project-link { display: inline-flex; padding: 10px 0; color: var(--accent); font-size: 14px; font-weight: 600; }
.project-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.education-timeline { list-style: none; margin: 0; padding: 0 0 0 25px; }
.education-entry { position: relative; padding: 0 0 35px 8px; }
.education-entry::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #b7bac4; background: var(--background); top: 9px; left: -24px; }
.education-entry:not(:last-child)::after { content: ""; position: absolute; width: 1px; top: 21px; bottom: 3px; left: -20px; background: var(--line); }
.education-entry.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.education-entry:last-child { padding-bottom: 0; }
.education-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.education-entry h3 { font-size: 17px; font-weight: 600; letter-spacing: -.25px; line-height: 1.5; }
.status { background: var(--accent-soft); border-radius: 4px; padding: 5px 9px; color: var(--accent); font-size: 11px; font-weight: 550; }
.institution { font-size: 14px; line-height: 1.65; margin-top: 7px; color: var(--muted); }
.education-placeholder { font-size: 12px; line-height: 1.8; margin-top: 8px; color: var(--muted); }
.education-placeholder > span { padding: 0 4px; }
.contact-section { padding-bottom: 53px; }
.contact-content { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; }
.email-link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; color: var(--text); font-size: clamp(13px, 3.6vw, 22px); font-weight: 500; letter-spacing: -.4px; padding: 4px 0 9px; border-bottom: 1px solid #c9ccd5; transition: color 160ms ease, border-color 160ms ease; }
.email-link span { color: var(--accent); font-size: 22px; }
.email-link:hover { color: var(--accent); border-color: var(--accent); }
.whatsapp-button { padding-left: 17px; }
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 30px; }
.site-footer p { font-size: 12px; color: var(--muted); }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 600px) {
  .page-shell { padding: 0 36px; }
  .site-header { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; }
  nav { width: auto; gap: 20px; }
  nav a { font-size: 13px; }
  .hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; padding: 88px 0 94px; }
  .hero-mark { width: 165px; height: 165px; }
  h1 { font-size: 64px; }
  .tagline { font-size: 20px; }
  .button { font-size: 14px; }
  .email-link { font-size: 22px; }
}
@media (min-width: 900px) {
  .page-shell { padding: 0 52px; }
  .site-header { padding: 31px 0; }
  nav { gap: 30px; }
  nav a { font-size: 14px; }
  .hero { padding: 105px 0 116px; gap: 40px; }
  h1 { font-size: 89px; }
  .tagline { font-size: 24px; line-height: 1.55; margin-top: 28px; max-width: 515px; }
  .hero-actions { margin-top: 35px; }
  .hero-mark { width: 246px; height: 246px; margin-right: 20px; }
  .hero-mark::before { inset: -17px; }
  .initials-circle { font-size: 92px; letter-spacing: -6px; }
  .content-section { flex-direction: row; align-items: flex-start; padding: 49px 0 53px; gap: 30px; }
  .section-heading { width: 25%; flex-shrink: 0; padding-top: 3px; }
  .section-content { flex: 1; }
  h2 { font-size: 24px; }
  .about-text { font-size: 18px; line-height: 1.9; }
  .skills-section { padding-top: 42px; padding-bottom: 43px; }
  .project-card { max-width: 510px; padding: 32px; }
  .project-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .education-entry { padding-bottom: 38px; }
  .contact-section { padding-bottom: 67px; }
  .contact-content { gap: 28px; }
  .site-footer { padding-top: 30px; padding-bottom: 33px; }
}
@media (max-width: 359px) {
  .page-shell { padding: 0 19px; }
  nav { gap: 7px; }
  nav a { font-size: 11px; }
  h1 { font-size: 51px; }
  .button { padding: 13px 15px; }
  .email-link { font-size: 12px; letter-spacing: -.2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
