/* alquadri.com — personal portfolio */

:root {
    --bg: #fbfbfa;
    --surface: #ffffff;
    --surface-2: #f2f2ef;
    --text: #16181d;
    --muted: #5a606b;
    --line: #e4e4df;
    --accent: #2f54d6;
    --accent-soft: #e8edfc;
    --accent-text: #ffffff;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
    --radius: 14px;
    --max: 1120px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Manrope", var(--font);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1115;
        --surface: #161920;
        --surface-2: #1c2029;
        --text: #eceef2;
        --muted: #9aa1ad;
        --line: #272c36;
        --accent: #7d9bff;
        --accent-soft: #1d2540;
        --accent-text: #0f1115;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--accent-text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 4px; font-size: 1rem; }
    .nav .btn { margin-top: 8px; text-align: center; }
}

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
    text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s;
    font-family: var(--font);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px color-mix(in srgb, #22a06b 20%, transparent); }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; justify-self: end; width: min(400px, 100%); }
.hero-photo::before {
    content: ""; position: absolute; inset: 12% 0 0 0; border-radius: 28px;
    background: linear-gradient(160deg, var(--accent-soft), var(--surface-2));
}
.hero-photo img { position: relative; border-radius: 0 0 28px 28px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.roles li { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text); }

@media (max-width: 820px) {
    .hero { padding: 40px 0 32px; }
    .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
    .hero-photo { justify-self: start; width: min(200px, 60%); order: -1; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stats strong { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* sections */
.section { padding: 88px 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .kicker { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 16px 0 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 10px 0 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li { font-size: .78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* case studies */
.case { display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.case:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.case .org { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.case .result { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--text); font-size: .95rem; }
.case .result b { font-weight: 700; }
.case .more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.case .more:hover { text-decoration: underline; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline .when { font-size: .85rem; font-weight: 700; color: var(--accent); }
.timeline h3 { margin: 2px 0 6px; }
.timeline p { color: var(--muted); margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.companies { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.companies li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: .95rem; }
.companies a { color: var(--text); text-decoration: none; }
.companies a:hover { color: var(--accent); }
.subhead { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.facts { list-style: none; padding: 0; margin: 0 0 32px; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.facts li span:first-child { color: var(--muted); min-width: 110px; }

/* contact */
.contact { text-align: center; }
.contact .section-head { margin-left: auto; margin-right: auto; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }

/* cookie banner */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 520px; margin: 0 auto;
    padding: 16px 18px; background: var(--surface); color: var(--text); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); font-size: .92rem;
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.cookie-banner p { margin: 0; flex: 1 1 240px; }
.cookie-banner[hidden] { display: none; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound p { color: var(--muted); margin: 16px 0 28px; }
