:root {
    --bg: #f2eee7;
    --surface: #e9e4db;
    --line: #d8d2c8;
    --ink: #4d4a44;
    --text: #69665f;
    --violet: #8b83b5;
    --accent: #5e5787;
    --tint: #e4e1ec;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.8 'JetBrains Mono', ui-monospace, monospace; -webkit-font-smoothing: antialiased; }
::selection { background: var(--tint); color: var(--accent); }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
svg { display: block; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4, strong { color: var(--ink); }
.container { width: min(1080px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 24px; padding: 12px 20px; background: var(--bg); border: 1px solid var(--accent); z-index: 10; }
.skip-link:focus { top: 12px; }
.nav-container { position: sticky; top: 0; background: var(--bg); z-index: 5; }
.navbar { display: flex; align-items: center; gap: 30px; min-height: 88px; border-bottom: 1px solid var(--line); }
.nav-brand, .footer-logo { color: var(--ink); font-size: 28px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.nav-brand span { color: var(--violet); }
.nav-menu { display: flex; align-items: center; justify-content: flex-end; flex: 1; gap: 22px; }
.nav-link { color: var(--text); font-size: 11px; }
.nav-link:hover { color: var(--accent); }
.nav-actions, .language-selector { display: flex; align-items: center; gap: 8px; }
.lang-btn { border: 0; background: transparent; color: var(--text); font-size: 10px; padding: 10px 3px; min-height: 44px; }
.lang-btn.active { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.lang-separator { color: var(--line); }
.mobile-menu-btn { display: none; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 4px; width: 44px; height: 44px; align-items: center; justify-content: center; }
header { padding-top: 90px; }
.header-content { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 70px; align-items: center; }
.hero-product { display: flex; flex-direction: column; align-items: center; justify-self: center; color: var(--accent); }
.phone-frame { width: 218px; padding: 6px; border: 2px solid var(--ink); border-radius: 36px; background: var(--ink); overflow: hidden; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.phone-screen { overflow: hidden; border-radius: 28px; background: #f2eee7; }
.phone-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 31px; padding: 0 18px; background: #f2eee7; color: #4d4a44; font: 600 9px/1 system-ui, sans-serif; }
.phone-island { position: absolute; width: 58px; height: 17px; left: 50%; top: 7px; transform: translateX(-50%); border-radius: 20px; background: #242220; }
.phone-battery { width: 15px; height: 7px; border: 1px solid #4d4a44; border-radius: 2px; padding: 1px; }
.phone-battery::after { content: ''; display: block; background: #4d4a44; width: 9px; height: 3px; }
.phone-frame img { background: #f2eee7; }
.phone-bottom { display: flex; align-items: center; justify-content: center; height: 16px; background: #f2eee7; }
.phone-bottom span { display: block; width: 64px; height: 3px; border-radius: 4px; background: #4d4a44; }
.hero-product-caption { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 18px; font-size: 10px; }
.hero-product-caption > span { color: var(--text); }
.hero-product-caption strong { color: var(--accent); font-size: 12px; font-weight: 500; }
.hero-product:hover .phone-frame { transform: translateY(-3px); border-color: var(--accent); }
.hero-product:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.hero-tagline { color: var(--accent); font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.hero-name { font-size: clamp(40px, 5vw, 66px); font-weight: 600; line-height: 1.12; letter-spacing: -.06em; }
.hero-name span { color: var(--violet); }
.hero-positioning { max-width: 49ch; margin-top: 26px; font-size: 16px; line-height: 1.8; }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; min-height: 46px; font-size: 11px; font-weight: 500; border-radius: 4px; border: 1px solid var(--line); color: var(--ink); }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: #4e4775; color: var(--bg); }
.hero-cta a:last-child { padding-inline: 4px; border: 0; color: var(--accent); }
.hero-cta a:last-child::after { content: '↓'; margin-left: 10px; }
.hero-social { display: flex; gap: 20px; margin-top: 24px; }
.hero-social a { color: var(--text); padding: 8px 0; }
.hero-social a:hover { color: var(--accent); }




.hero-metrics { display: grid; grid-template-columns: repeat(4, 1fr); padding: 32px 0; border-block: 1px solid var(--line); margin-top: 68px; gap: 24px; }
.hero-metrics div { display: flex; flex-direction: column; }
.hero-metrics strong { font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -.05em; }
.hero-metrics span { font-size: 10px; margin-top: 9px; }
section { padding: 78px 0; }
section + section > .container { border-top: 1px solid var(--line); padding-top: 64px; }
section + section { padding-top: 0; }
.section-header { margin-bottom: 32px; }
.section-number { display: block; font-size: 11px; color: var(--accent); margin-bottom: 9px; }
.section-title { font-size: 25px; font-weight: 500; letter-spacing: -.05em; line-height: 1.4; }
.section-subtitle { margin-top: 12px; max-width: 65ch; font-size: 12px; }
.projects-grid { border-top: 1px solid var(--line); }
.project-card { min-width: 0; padding: 30px 0; border-bottom: 1px solid var(--line); }
.project-content { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 50px; }
.project-content > :not(.project-title) { grid-column: 2; }
.project-title { grid-column: 1; grid-row: 1 / 7; }
.project-title { font-size: 20px; font-weight: 500; letter-spacing: -.04em; }
.project-desc { font-size: 12px; max-width: 65ch; }
.project-highlight { margin-top: 16px; padding-left: 12px; border-left: 2px solid var(--violet); color: var(--accent); font-size: 12px; font-weight: 500; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; color: var(--accent); font-size: 10px; }
.project-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 12px; }
.project-footer .project-tech { margin-top: 0; }
.project-links { margin-top: 0; }
.project-links .btn { padding: 8px 0; border: 0; color: var(--accent); }
.project-links .btn::after { content: '↗'; margin-left: 12px; }
.project-case { margin-top: 18px; font-size: 11px; }
.project-case summary { width: fit-content; cursor: pointer; color: var(--accent); padding: 8px 0; text-decoration: underline; text-decoration-color: #bfb9d5; text-underline-offset: 4px; }
.project-case p { padding: 8px 0; }
.project-case p > span:first-child { font-weight: 600; color: var(--ink); }
.experience-container { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 50px; }
.experience-tabs { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.experience-tab { background: transparent; border: 0; border-left: 2px solid var(--line); padding: 14px 18px; color: var(--text); text-align: left; font-size: 12px; }
.experience-tab.active { color: var(--accent); border-color: var(--accent); background: var(--tint); }
.experience-tab:hover { color: var(--accent); }
.experience-role { font-size: 20px; font-weight: 500; letter-spacing: -.035em; }
.experience-company-line { color: var(--accent); margin-top: 6px; font-size: 12px; }
.experience-date { font-size: 11px; margin-top: 6px; }
.experience-description { margin-top: 22px; font-size: 12px; }
.experience-description p + p { margin-top: 16px; }
html.js .experience-item:not(.active) { display: none; }
html:not(.js) .experience-item + .experience-item { margin-top: 32px; }
html:not(.js) .experience-tabs { display: none; }
.skill-row { display: grid; grid-template-columns: 220px 1fr; gap: 50px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.skill-row:first-child { border-top: 1px solid var(--line); }
.skill-label { color: var(--ink); font-weight: 500; }
.section-about > .container { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 50px; }
.about-content h3 { display: none; }
.about-text { font-size: 13px; }
.about-text + .about-text { margin-top: 20px; }
.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.education-date { font-size: 10px; color: var(--accent); margin-bottom: 12px; }
.education-title { font-size: 17px; font-weight: 500; letter-spacing: -.04em; }
.education-school { margin: 8px 0 16px; font-size: 11px; }
.education-card p { font-size: 12px; }
.section-contact { background: var(--surface); }
.section-contact > .container { border: 0; padding-top: 56px; }
.contact-info-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact-item-large { display: flex; gap: 16px; align-items: center; }
.contact-icon { color: var(--accent); }
.contact-text h4 { font-size: 10px; font-weight: 400; margin-bottom: 3px; }
.contact-text a { font-size: 12px; overflow-wrap: anywhere; }
footer { padding: 42px 0; }
.footer-content { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; grid-column: 1 / -1; font-size: 10px; }
.copyright { grid-column: 1 / -1; font-size: 10px; }
@media (min-width: 1600px) { .container { width: min(1180px, calc(100% - 120px)); } header { padding-top: 110px; } }
@media (max-width: 1050px) {
    .container { width: calc(100% - 64px); }
    .nav-menu { gap: 13px; }
    .nav-link { font-size: 10px; }
    .navbar { gap: 20px; }
    .header-content { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
    .hero-cta { gap: 8px; }
    .hero-cta .btn { font-size: 10px; padding-inline: 12px; }
}
@media (max-width: 800px) {
    .navbar { min-height: 76px; justify-content: space-between; }
    .nav-actions { margin-left: auto; gap: 16px; }
    .mobile-menu-btn { display: flex; }
    .nav-menu { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); padding: 16px 32px; border-bottom: 1px solid var(--line); }
    .nav-menu.active { display: flex; }
    .nav-link { font-size: 13px; padding: 12px 0; }
    html:not(.js) .nav-menu { display: flex; position: static; flex-wrap: wrap; flex-direction: row; gap: 12px; padding: 0; border: 0; }
    html:not(.js) .navbar { flex-wrap: wrap; padding: 20px 0; }
    html:not(.js) .mobile-menu-btn { display: none; }
    header { padding-top: 56px; }
    .header-content { grid-template-columns: minmax(0, 1fr) 200px; gap: 28px; }
    .phone-frame { width: 190px; }
    .hero-name { font-size: 43px; }
    .hero-positioning { font-size: 13px; }
    .hero-cta { margin-top: 24px; }
    .project-content, .experience-container, .skill-row, .section-about > .container { grid-template-columns: 160px minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 600px) {
    .container { width: calc(100% - 40px); }
    .header-content { grid-template-columns: 1fr; gap: 36px; }
    .phone-frame { width: 218px; }
    .hero-name { font-size: clamp(40px, 10vw, 56px); }
    .hero-positioning { font-size: 14px; max-width: 42ch; }




    .hero-social { margin-top: 18px; }
    .hero-metrics { grid-template-columns: repeat(2, 1fr); margin-top: 36px; gap: 30px 12px; padding-block: 28px; }
    .hero-metrics strong { font-size: 27px; }
    .hero-metrics span { font-size: 10px; }
    section { padding-block: 52px; }
    section + section { padding-top: 0; }
    section + section > .container { padding-top: 48px; }
    .section-title { font-size: 23px; }
    .section-subtitle { font-size: 11px; }
    .project-content { display: block; }
    .project-card { padding: 26px 0; }
    .project-desc { margin-top: 12px; }
    .experience-container { display: block; }
    .experience-tabs { flex-direction: row; gap: 0; margin-bottom: 28px; overflow-x: auto; }
    .experience-tab { font-size: 10px; padding: 12px 10px; white-space: nowrap; border-left: 0; border-bottom: 2px solid var(--line); }
    .experience-role { font-size: 18px; }
    .skill-row { display: block; font-size: 11px; }
    .skill-label { display: block; margin-bottom: 6px; }
    .section-about > .container { display: block; }
    .about-text { font-size: 12px; }
    .education-grid, .contact-info-container { grid-template-columns: 1fr; gap: 28px; }
    .contact-text a { font-size: 11px; }
    .footer-links { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
