@font-face { font-family: "Roboto Local"; src: url("fonts/roboto.woff2") format("woff2"); font-display: swap; }

:root {
    --ink: #34495e;
    --text: #4b5d6f;
    --muted: #718096;
    --line: #e2e8f0;
    --surface: #f7f9fc;
    --white: #fff;
    --accent: #3d70b2;
    --container: min(1080px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; color: var(--text); background: var(--white); font-family: "Roboto Local", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.035em; line-height: 1.12; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 72px 0; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-180%); padding: 8px 12px; color: var(--white); background: var(--ink); border-radius: 6px; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; background: rgba(255,255,255,.92); border-bottom: 1px solid transparent; backdrop-filter: blur(14px); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(52,73,94,.05); }
.nav-row { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; }
.brand strong { font-size: 14px; letter-spacing: .13em; }
.brand span { color: var(--muted); font-size: 12px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: #5a6878; font-size: 13px; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px; background: var(--ink); }
.nav-toggle i { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.hero { padding: 112px 0 62px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 220px; align-items: center; gap: clamp(48px,8vw,96px); }
.eyebrow, .section-label, .project-index { margin-bottom: 14px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin-bottom: 18px; font-size: clamp(36px,4.5vw,52px); }
.hero-lead { max-width: 650px; margin-bottom: 24px; color: #536273; font-size: 17px; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; margin-bottom: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); }
.button.secondary { background: var(--white); }
.facts { display: flex; gap: 36px; margin: 0; padding: 20px 0 0; border-top: 1px solid #e0e6ed; list-style: none; }
.facts strong, .facts span { display: block; }
.facts strong { color: var(--ink); font-size: 14px; }
.facts span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.hero figure { margin: 0; justify-self: end; }
.hero figure img { width: 210px; height: 263px; object-fit: cover; object-position: center; border-radius: 9px; box-shadow: 0 14px 34px rgba(52,73,94,.12); }
.hero figcaption { margin-top: 8px; color: var(--muted); font-size: 10px; }
.hero figcaption span { margin-left: 3px; }

.intro-grid { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: clamp(50px,10vw,120px); }
.intro-grid h2, .section-heading h2, .skills h2 { margin-bottom: 0; font-size: 29px; }
.profile-text { max-width: 650px; }
.profile-text .lead { color: var(--ink); font-size: 18px; line-height: 1.48; }
.profile-text p:last-child { margin-bottom: 0; }
.evolution-list { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 54px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evolution-list article { padding: 22px 24px 24px 0; }
.evolution-list article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.evolution-list span { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.evolution-list h3 { margin: 9px 0 7px; font-size: 15px; }
.evolution-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.projects { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.section-heading > p { max-width: 340px; margin-bottom: 3px; color: var(--muted); font-size: 13px; }
.project-list { display: grid; gap: 22px; }
.project-divider { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 40px 0 4px; }
.project-divider .section-label { margin-bottom: 8px; }
.project-divider h2 { margin-bottom: 0; font-size: 25px; }
.project-divider > p { margin: 0 0 2px; color: var(--muted); font-size: 12px; }
.project-card { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(310px,.65fr); overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.project-shot { min-width: 0; display: block; align-self: stretch; overflow: hidden; background: #eef2f6; border-right: 1px solid var(--line); text-decoration: none; }
.browser-bar { height: 32px; display: flex; align-items: center; gap: 5px; padding: 0 11px; color: #94a1b1; background: #f9fafc; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 7px; height: 7px; background: #ced6e0; border-radius: 50%; }
.browser-bar b { margin-left: 7px; font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.project-shot img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.project-shot:hover img { transform: scale(1.012); }
.product-shot img { object-position: center; }
.project-copy { padding: 30px; align-self: center; }
.project-copy h3 { margin-bottom: 8px; font-size: 26px; }
.project-subtitle { color: var(--ink); font-weight: 600; line-height: 1.45; }
.project-copy > p:not(.project-index):not(.project-subtitle) { color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.tags span { padding: 4px 8px; color: #58687a; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; font-size: 10px; font-weight: 600; }
.project-links { display: flex; flex-wrap: wrap; gap: 16px; }
.project-links a { color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; }
.project-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.skills-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px,10vw,120px); }
.skills-intro { max-width: 430px; margin-top: 18px; color: var(--muted); }
.skill-groups article { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); }
.skill-groups article:last-child { border-bottom: 1px solid var(--line); }
.skill-groups h3 { margin: 0; font-size: 15px; }
.skill-groups p { margin: 0; color: var(--muted); font-size: 13px; }
.references { background: var(--surface); border-top: 1px solid var(--line); }
.quotes { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quotes blockquote { margin: 0; padding: 24px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quotes p { min-height: 92px; color: var(--ink); font-size: 14px; line-height: 1.55; }
.quotes footer { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.contact { padding: 48px 0; color: #d8e0e8; background: var(--ink); }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contact h2 { margin-bottom: 6px; color: var(--white); font-size: 26px; }
.contact p { max-width: 640px; margin: 0; font-size: 13px; }
.contact-row > div:last-child { display: flex; align-items: center; gap: 20px; }
.button.light { flex: 0 0 auto; color: var(--white); border-color: #6f8092; }
.button.light:hover { background: #40566e; border-color: #7890a8; }

.site-footer { padding: 22px 0; background: #26384a; }
.site-footer > div { display: flex; justify-content: space-between; gap: 20px; }
.site-footer p, .site-footer a { margin: 0; color: #b5c0cc; font-size: 10px; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.legal-main { min-height: calc(100vh - 123px); padding: 112px 0 76px; }
.legal-shell { max-width: 760px; }
.legal-heading { margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-heading h1 { margin-bottom: 14px; font-size: clamp(34px,5vw,48px); }
.legal-heading p { max-width: 630px; margin-bottom: 0; color: var(--muted); }
.legal-content { display: grid; gap: 30px; }
.legal-content section { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { padding-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin-bottom: 12px; font-size: 19px; }
.legal-content h3 { margin: 22px 0 8px; font-size: 15px; }
.legal-content p, .legal-content li { font-size: 14px; }
.legal-content p:last-child, .legal-content ul:last-child { margin-bottom: 0; }
.legal-content ul { padding-left: 20px; }
.legal-content address { font-style: normal; }
.legal-content a { color: var(--accent); text-underline-offset: 3px; }
.legal-note { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }

@media (max-width: 860px) {
    .project-card { grid-template-columns: 1fr; }
    .project-shot { border-right: 0; border-bottom: 1px solid var(--line); }
    .project-shot img { height: auto; max-height: none; aspect-ratio: 16/10; }
    .skills-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 700px) {
    :root { --container: min(calc(100% - 28px),620px); }
    .section { padding: 62px 0; }
    .nav-toggle { display: block; }
    .site-nav { position: fixed; inset: 64px 0 auto; display: none; flex-direction: column; gap: 0; padding: 16px 14px 28px; background: var(--white); border-bottom: 1px solid var(--line); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
    .hero { padding: 98px 0 54px; }
    .hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .hero-copy { order: 2; }
    .hero figure { order: 1; justify-self: start; }
    .hero figure img { width: 150px; height: 188px; }
    .hero h1 { font-size: clamp(34px,10vw,48px); }
    .hero-lead { font-size: 16px; }
    .facts { gap: 22px; }
    .intro-grid { grid-template-columns: 1fr; gap: 28px; }
    .evolution-list { grid-template-columns: 1fr; }
    .evolution-list article { padding: 18px 0; }
    .evolution-list article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
    .section-heading { align-items: start; flex-direction: column; gap: 10px; }
    .project-divider { align-items: start; flex-direction: column; gap: 8px; padding-top: 28px; }
    .quotes { grid-template-columns: 1fr; }
    .quotes p { min-height: 0; }
    .contact-row { align-items: flex-start; flex-direction: column; }
    .contact-row > div:last-child { align-items: flex-start; flex-direction: column; }
    .site-footer > div { align-items: flex-start; flex-direction: column; }
    .legal-main { padding: 96px 0 60px; }
    .legal-heading { margin-bottom: 34px; }
}

@media (max-width: 460px) {
    .brand span { display: none; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .facts { display: grid; grid-template-columns: 1fr 1fr; }
    .project-copy { padding: 22px 18px 26px; }
    .skill-groups article { grid-template-columns: 1fr; gap: 5px; }
}

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