:root {
  color-scheme: light;
  --ink: #151e30;
  --text: #344052;
  --muted: #64748b;
  --blue: #0867c5;
  --blue-dark: #064d99;
  --light-blue: #edf5ff;
  --outline: #dce6f1;
  --surface: #ffffff;
  --bg: #fbfcff;
  --shadow: 0 16px 48px rgba(17, 42, 79, .075);
  --radius: 18px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #77b8ff; outline-offset: 4px; }
img, svg { max-width: 100%; }
img { display: block; }
svg { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1200px, calc(100% - 72px)); margin: 0 auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 12px 18px; border-radius: 9px; background: var(--blue); color: white; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .965); border-bottom: 1px solid #e7edf6; backdrop-filter: blur(15px); }
.header-inner { min-height: 75px; display: flex; align-items: center; gap: 24px; }
.brand { font-size: 22px; line-height: 1.1; font-weight: 850; letter-spacing: -.9px; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--blue); }
.desktop-nav { display: flex; align-items: center; gap: 27px; margin-left: auto; }
.desktop-nav a { font-size: 13px; font-weight: 650; text-decoration: none; transition: color .18s ease; white-space: nowrap; }
.desktop-nav a:hover, .site-footer a:hover { color: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 19px; min-height: 46px; border: 1px solid transparent; border-radius: 9px; text-align: center; text-decoration: none; font-size: 14px; font-weight: 750; line-height: 1.15; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 13px rgba(5, 87, 183, .16); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 18px rgba(5, 87, 183, .22); }
.button-outline { background: #fff; border-color: #a8bad0; color: var(--ink); }
.button-outline:hover { background: #eef6ff; }
.header-contact { margin-left: 10px; font-size: 12px; min-height: 41px; padding: 10px 13px; }
.header-contact svg { width: 15px; height: 15px; }
.menu-toggle, .mobile-nav { display: none; }

.hero { padding: 42px 0 46px; background: linear-gradient(115deg, #fff 0%, #f6faff 55%, #eaf3fc 100%); border-bottom: 1px solid #edf2fa; }
.hero-grid { display: grid; grid-template-columns: 1fr .99fr; gap: 45px; align-items: center; }
.hero-content { padding: 10px 0; }
.eyebrow { margin: 0 0 13px; color: var(--blue-dark); font-size: 13px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(43px, 4.25vw, 60px); line-height: 1.07; font-weight: 850; letter-spacing: -.053em; }
h1 span { display: block; }
.hero-lead { max-width: 580px; color: var(--text); font-size: 16px; line-height: 1.68; margin: 21px 0 20px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.tech-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 33px; padding: 5px 11px; background: rgba(245, 249, 255, .95); border: 1px solid #dce6f3; border-radius: 7px; white-space: nowrap; font-size: 12px; color: #172137; font-weight: 650; }
.chip-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 22px; border-radius: 5px; font-size: 10px; font-weight: 900; color: white; }
.dot-purple { background: #7253cb; }
.dot-blue { background: #126bb9; }
.chip-mark { color: #1599d5; font-size: 23px; line-height: 1; }
.hero-actions { display: flex; gap: 12px; margin-top: 20px; }
.hero-meta { display: flex; align-items: center; gap: 6px; margin: 21px 0 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.hero-meta svg { width: 15px; height: 15px; }
.hero-visual { position: relative; overflow: hidden; border-radius: 18px; background: #e9eff6; box-shadow: var(--shadow); border: 1px solid rgba(190, 208, 227, .45); }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 672 / 267; object-fit: cover; }
.visual-caption { position: absolute; bottom: 13px; right: 14px; background: rgba(255,255,255,.94); color: #223047; border: 1px solid #e1e7ef; padding: 6px 11px; border-radius: 7px; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 650; box-shadow: 0 6px 14px rgba(0,0,0,.09); }
.status-dot { width: 7px; height: 7px; border-radius: 99px; background: #22aa75; }

.section { padding: 39px 0 0; }
.section-heading { display: flex; align-items: baseline; gap: 25px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; font-size: 27px; font-weight: 850; letter-spacing: -.9px; line-height: 1.2; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.skill-card { display: flex; gap: 13px; padding: 19px 16px 17px; min-width: 0; min-height: 190px; background: linear-gradient(160deg,#fff,#f4f8fe); border: 1px solid var(--outline); border-radius: 11px; }
.skill-icon { display: grid; place-items: center; height: 37px; width: 37px; flex: 0 0 37px; background: #eaf3ff; color: var(--blue); border-radius: 9px; }
.skill-icon svg { height: 22px; width: 22px; }
.skill-body { min-width: 0; display: flex; flex-direction: column; }
.skill-card h3 { margin: 0 0 4px; line-height: 1.3; font-size: 15px; letter-spacing: -.25px; }
.skill-card p { margin: 0 0 12px; font-size: 12px; line-height: 1.45; color: var(--text); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-card .tag-list { margin-top: auto; }
.tag-list span { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid #dce5ef; border-radius: 6px; background: #f7f9fc; font-size: 10px; line-height: 1.1; color: #2a3444; font-weight: 650; white-space: nowrap; }

.feature-section { padding-top: 32px; }
.featured-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 34px; overflow: hidden; border-radius: 15px; background: radial-gradient(circle at 100% 0%, #e0edff, transparent 38%), linear-gradient(135deg, #eaf4ff, #f4f8ff); border: 1px solid #dbe9fa; }
.feature-kicker { display: inline-flex; padding: 5px 11px; border-radius: 99px; background: #d6e9ff; color: var(--blue-dark); text-transform: uppercase; letter-spacing: .05em; font-weight: 850; font-size: 11px; }
.featured-copy { min-width: 0; }
.featured-copy h2 { display: flex; align-items: center; gap: 10px; margin: 15px 0 11px; font-size: clamp(33px, 3.15vw, 43px); line-height: 1.1; letter-spacing: -1.5px; font-weight: 850; }
.featured-copy h2 svg { color: var(--blue); width: 35px; height: 35px; stroke-width: 1.7; }
.featured-copy p { margin: 0 0 12px; color: var(--text); font-size: 15px; line-height: 1.58; }
.featured-copy .feature-note { font-size: 13px; color: #556987; }
.feature-tags { margin: 19px 0 24px; }
.feature-tags span { font-size: 11px; padding: 7px 9px; background: rgba(255,255,255,.72); }
.feature-preview { min-width: 0; overflow: hidden; border-radius: 12px; background: #f4f7fa; border: 1px solid #dce5f1; box-shadow: 0 20px 40px rgba(32, 63, 105, .18); transform: rotate(.3deg); }
.browser-bar { display: flex; gap: 10px; align-items: center; height: 35px; border-bottom: 1px solid #e1e8f2; background: #fff; color: #718198; font-size: 11px; padding: 0 13px; }
.browser-dots { display: flex; gap: 5px; }
.browser-dots i { display: block; border-radius: 50%; width: 7px; height: 7px; background: #ccd7e4; }
.browser-dots i:first-child { background: #efadad; }
.browser-dots i:nth-child(2) { background: #e7d6a2; }
.feature-preview img { width: 100%; height: auto; aspect-ratio: 1267 / 695; object-fit: cover; }

.projects-section { padding-top: 38px; }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { display: flex; flex-direction: column; background: linear-gradient(150deg,#fff,#f8fbff); border: 1px solid var(--outline); border-radius: 12px; padding: 24px; min-width: 0; }
.project-top { display: flex; justify-content: space-between; align-items: center; }
.project-icon { display: grid; place-items: center; background: var(--light-blue); color: var(--blue); width: 43px; height: 43px; border-radius: 10px; }
.project-icon svg { width: 25px; height: 25px; }
.project-type { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #7290af; }
.project-card h3 { margin: 13px 0 5px; font-size: 20px; letter-spacing: -.45px; }
.project-card p { margin: 0 0 15px; font-size: 14px; color: var(--text); max-width: 42ch; }
.project-card .tag-list { margin-bottom: 23px; }
.project-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: auto; color: var(--blue-dark); text-decoration: none; font-size: 13px; font-weight: 750; }
.project-link:hover { text-decoration: underline; }
.project-link svg { width: 15px; height: 15px; }

.contact-section { padding: 28px 0 25px; }
.contact-panel { display: flex; justify-content: space-between; align-items: center; gap: 26px; padding: 26px 27px; border: 1px solid #dae6f3; border-radius: 13px; background: #f1f6fd; }
.contact-intro { display: flex; align-items: center; gap: 17px; max-width: 570px; }
.contact-icon { display: grid; place-items: center; width: 55px; height: 55px; flex: 0 0 55px; background: #e0edff; color: var(--blue); border-radius: 12px; }
.contact-icon svg { width: 27px; height: 27px; }
.contact-intro h2 { margin: 0 0 4px; font-size: 26px; line-height: 1.15; letter-spacing: -.8px; }
.contact-intro p { margin: 0; color: var(--text); font-size: 13px; }
.contact-links { display: flex; gap: 10px; }
.contact-links a { display: flex; align-items: center; gap: 10px; min-height: 60px; text-decoration: none; background: rgba(255,255,255,.73); padding: 10px 14px; border: 1px solid #dae5f2; border-radius: 10px; }
.contact-links a:hover { background: #fff; border-color: #9abddd; }
.contact-links a > svg { color: var(--blue); width: 22px; height: 22px; }
.contact-links a span { display: flex; flex-direction: column; }
.contact-links a strong { font-size: 12px; line-height: 1.3; }
.contact-links a small { color: var(--muted); font-size: 11px; }
.contact-links .external-small { width: 12px; height: 12px; color: #7a92a9; }

.site-footer { border-top: 1px solid #e6edf5; background: #fff; }
.footer-inner { min-height: 68px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; align-items: center; gap: 23px; }
.site-footer a { font-size: 12px; font-weight: 650; text-decoration: none; }
.site-footer a svg { width: 18px; height: 18px; }

@media (max-width: 1170px) {
  .container { width: min(1120px, calc(100% - 48px)); }
  .desktop-nav { gap: 18px; }
  .hero-grid { gap: 28px; }
  h1 { font-size: clamp(40px, 4.2vw, 56px); }
  .skill-card { flex-direction: column; gap: 10px; }
  .contact-panel { flex-wrap: wrap; }
  .contact-links { margin-left: 72px; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 77px; }
  .header-inner { min-height: 65px; }
  .desktop-nav, .header-contact { display: none; }
  .menu-toggle { display: grid; place-items: center; margin-left: auto; padding: 9px; width: 42px; height: 42px; border: 1px solid #dae5f1; border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; padding: 10px 24px 18px; border-top: 1px solid #e8eef5; background: #fff; }
  .mobile-nav a { padding: 11px 4px; font-size: 14px; font-weight: 700; text-decoration: none; }
  .mobile-nav a + a { border-top: 1px solid #f0f3f8; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 29px; }
  .hero-content { padding: 0; }
  .hero-lead { max-width: 750px; }
  .hero-visual { max-width: 780px; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-card { min-height: 175px; }
  .featured-card { grid-template-columns: 1fr; }
  .feature-preview { width: min(100%, 710px); margin: 0 auto; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .site-header .brand { font-size: 20px; }
  .hero { padding: 24px 0 28px; }
  .eyebrow { font-size: 10px; margin-bottom: 8px; }
  h1 { font-size: clamp(34px, 9vw, 48px); line-height: 1.08; letter-spacing: -.05em; }
  .hero-lead { font-size: 14px; line-height: 1.65; margin: 14px 0 17px; }
  .hero-chips { gap: 7px; }
  .tech-chip { font-size: 11px; min-height: 29px; padding: 4px 8px; }
  .hero-actions { gap: 9px; margin-top: 17px; }
  .button { padding: 11px 13px; min-height: 44px; font-size: 12px; }
  .button svg { width: 17px; height: 17px; }
  .hero-meta { margin-top: 15px; font-size: 11px; }
  .hero-grid { gap: 17px; }
  .visual-caption { bottom: 8px; right: 8px; font-size: 9px; padding: 5px 7px; }
  .section { padding-top: 29px; }
  .section-heading { display: block; margin-bottom: 14px; }
  .section-heading h2 { font-size: 24px; }
  .section-heading p { margin-top: 4px; font-size: 12px; }
  .skills-grid { grid-template-columns: 1fr; gap: 9px; }
  .skill-card { flex-direction: row; min-height: initial; padding: 14px; }
  .skill-body { flex: 1; }
  .skill-card h3 { font-size: 14px; }
  .skill-card p { font-size: 11px; margin-bottom: 9px; }
  .tag-list span { font-size: 10px; padding: 4px 7px; }
  .feature-section { padding-top: 24px; }
  .featured-card { padding: 20px 16px; border-radius: 14px; gap: 18px; }
  .featured-copy { min-width: 0; }
.featured-copy h2 { font-size: 31px; }
  .featured-copy h2 svg { width: 30px; height: 30px; }
  .featured-copy p { font-size: 13px; }
  .feature-tags { margin: 15px 0 18px; }
  .featured-copy .button { width: 100%; }
  .browser-bar { height: 29px; font-size: 9px; }
  .projects-section { padding-top: 29px; }
  .projects-grid { grid-template-columns: 1fr; gap: 11px; }
  .project-card { padding: 18px; }
  .project-card h3 { font-size: 19px; }
  .project-card p { font-size: 13px; }
  .contact-section { padding: 26px 0 21px; }
  .contact-panel { padding: 19px 16px; gap: 16px; }
  .contact-intro { align-items: flex-start; gap: 11px; }
  .contact-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .contact-icon svg { width: 22px; height: 22px; }
  .contact-intro h2 { font-size: 24px; }
  .contact-intro p { font-size: 12px; }
  .contact-links { margin-left: 0; flex-direction: column; width: 100%; }
  .contact-links a { width: 100%; min-height: 54px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 0; }
  .site-footer nav { gap: 19px; }
}

@media (max-width: 370px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-chips .tech-chip { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
