/* =========================================================
   Can Erdem Tükenmez · CV site styles
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
    --font-heading: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --accent: #3b82f6;
    --accent-2: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    --success: #22c55e;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;

    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-h: 72px;
    --container: 1140px;

    /* light theme */
    --bg: #f6f7fb;
    --bg-alt: #eef1f8;
    --surface: #ffffff;
    --surface-2: #f1f4fa;
    --text: #0f172a;
    --text-2: #475569;
    --muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.16);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
    --chip-bg: rgba(59, 130, 246, 0.10);
    --chip-text: #1d4ed8;
    --glow-1: rgba(59, 130, 246, 0.16);
    --glow-2: rgba(139, 92, 246, 0.14);
    --header-bg: rgba(246, 247, 251, 0.82);
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0b0f19;
    --bg-alt: #0e1424;
    --surface: #111827;
    --surface-2: #172033;
    --text: #f8fafc;
    --text-2: #cbd5e1;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    --chip-bg: rgba(59, 130, 246, 0.16);
    --chip-text: #93c5fd;
    --glow-1: rgba(59, 130, 246, 0.18);
    --glow-2: rgba(139, 92, 246, 0.16);
    --header-bg: rgba(11, 15, 25, 0.75);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color .3s var(--ease), color .3s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: rgba(59, 130, 246, 0.3); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skip-link {
    position: absolute; left: 1rem; top: -100px;
    background: var(--accent); color: #fff; padding: .5rem 1rem; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* ---------- Background ---------- */
.bg-glow {
    position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(20px);
}
.bg-glow-1 {
    top: -20vh; left: -10vw; width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--glow-1) 0%, transparent 70%);
}
.bg-glow-2 {
    bottom: -30vh; right: -15vw; width: 55vw; height: 55vw;
    background: radial-gradient(circle, var(--glow-2) 0%, transparent 70%);
}
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--accent-gradient); z-index: 60; transition: width .1s linear;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .7rem 1.25rem; border-radius: var(--radius-pill);
    font-weight: 600; font-size: .95rem; line-height: 1;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: .5rem .95rem; font-size: .85rem; }

.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
    transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: var(--header-bg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); font-family: var(--font-heading); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    background: var(--accent-gradient); color: #fff; font-size: .85rem; letter-spacing: .05em;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}
.brand-name { font-size: 1.05rem; }

.site-nav { display: flex; gap: .25rem; }
.site-nav a {
    color: var(--text-2); font-weight: 500; font-size: .92rem; padding: .45rem .75rem; border-radius: var(--radius-pill);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.site-nav a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; }
.theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-light { display: inline; }
[data-theme="dark"] .theme-icon-dark { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 2rem; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .85fr; gap: 3rem; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .9rem; border-radius: var(--radius-pill);
    background: var(--chip-bg); color: var(--chip-text); font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.hero-title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; margin-top: 1.25rem; letter-spacing: -0.03em; }
.hero-subtitle { font-family: var(--font-heading); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--text-2); margin-top: .75rem; }
.hero-tagline { font-size: 1.1rem; color: var(--muted); max-width: 42rem; margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.social-list { display: flex; gap: .5rem; }
.social-list a {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 1.05rem;
    transition: transform .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.social-list a:hover { transform: translateY(-3px); color: var(--accent); border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }
.hero-social { margin-top: 1.75rem; }

.hero-photo { position: relative; justify-self: center; }
.photo-ring {
    position: relative; width: clamp(240px, 26vw, 340px); aspect-ratio: 4 / 5; border-radius: 32px;
    padding: 6px; background: var(--accent-gradient); box-shadow: var(--shadow-lg);
    animation: float 7s ease-in-out infinite;
}
.photo-ring img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; background: var(--surface); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.photo-badge {
    position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
    padding: .55rem 1rem; border-radius: var(--radius-pill);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
    font-size: .85rem; font-weight: 600; color: var(--text-2);
}
.photo-badge i { color: var(--accent); }

/* ---------- Stats ---------- */
.stats { padding: 2.5rem 0 1rem; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 1.5rem;
}
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .5rem; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 500; margin-top: .4rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { margin-bottom: 2.5rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section-kicker {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: .6rem;
}
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; }
.section-lead { color: var(--muted); max-width: 44rem; margin-top: .75rem; font-size: 1.02rem; }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 1.75rem;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.chip-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
    display: inline-flex; align-items: center; padding: .35rem .75rem; border-radius: var(--radius-pill);
    background: var(--chip-bg); color: var(--chip-text); font-size: .82rem; font-weight: 600; line-height: 1.2;
}
.chip-soft { background: var(--surface-2); color: var(--text-2); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.about-bio { font-size: 1.12rem; line-height: 1.8; color: var(--text-2); }
.fact-list {
    margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: .5rem 1.5rem;
}
.fact { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.fact:last-child { border-bottom: 0; }
.fact dt { display: flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--text-2); font-size: .92rem; }
.fact dt i { color: var(--accent); width: 1rem; text-align: center; }
.fact dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.skill-title { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; font-weight: 700; margin-bottom: 1.1rem; }
.skill-icon {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: var(--accent-gradient); color: #fff; font-size: .95rem; box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}
.also-familiar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.5rem; color: var(--muted); font-size: .92rem; }
.also-familiar > span:first-child { margin-right: .25rem; font-weight: 500; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 1.5rem; padding-left: 2.25rem; }
.timeline::before {
    content: ''; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
    opacity: .5;
}
.timeline-item { position: relative; }
.timeline-marker {
    position: absolute; left: -2.25rem; top: 1.6rem; width: 24px; height: 24px; border-radius: 50%;
    background: var(--surface); border: 4px solid var(--accent); box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item.is-current .timeline-marker { background: var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px rgba(59, 130, 246, .2); }
.timeline-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.timeline-role { font-size: 1.2rem; font-weight: 700; }
.timeline-company { color: var(--muted); font-weight: 500; margin-top: .2rem; }
.timeline-period {
    padding: .35rem .8rem; border-radius: var(--radius-pill); background: var(--surface-2);
    color: var(--text-2); font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.timeline-period.is-current { background: rgba(34, 197, 94, .14); color: #15803d; }
[data-theme="dark"] .timeline-period.is-current { color: #86efac; }
.timeline-desc { color: var(--text-2); margin-bottom: 1rem; }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.edu-period { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; margin-bottom: .6rem; }
.edu-degree { font-size: 1.1rem; font-weight: 700; }
.edu-school { color: var(--muted); font-weight: 500; margin: .4rem 0 .9rem; display: flex; gap: .5rem; align-items: baseline; }
.edu-school i { color: var(--accent); }
.edu-details { display: grid; gap: .3rem; color: var(--text-2); font-size: .92rem; }
.edu-details li { padding-left: 1rem; position: relative; }
.edu-details li::before { content: ''; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }

/* ---------- Projects ---------- */
.company-pill {
    display: inline-flex; align-items: center; gap: .75rem; padding: .6rem 1rem .6rem .6rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow);
    color: var(--text); transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.company-pill:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.company-pill img { width: 40px; height: 40px; border-radius: 50%; }
.company-pill span { display: flex; flex-direction: column; line-height: 1.2; }
.company-pill strong { font-family: var(--font-heading); font-size: .95rem; }
.company-pill small { color: var(--muted); font-size: .75rem; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.project-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.project-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: var(--accent); opacity: .9;
}
.project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.1rem; }
.project-logo {
    width: 84px; height: 84px; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow);
    background: var(--surface-2);
}
.project-badges { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.project-tag {
    display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--tag, var(--accent)) 14%, transparent); color: var(--tag, var(--accent)); font-size: .78rem; font-weight: 700;
}
.project-new {
    padding: .3rem .65rem; border-radius: var(--radius-pill); background: var(--success); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.project-soon {
    padding: .3rem .65rem; border-radius: var(--radius-pill); color: var(--accent); border: 1px dashed var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.project-name { font-size: 1.35rem; font-weight: 700; }
.project-tagline { color: var(--accent); font-weight: 600; font-size: .95rem; margin: .3rem 0 .75rem; }
.project-desc { color: var(--text-2); font-size: .95rem; margin-bottom: 1rem; }
.project-features { display: grid; gap: .4rem; margin-bottom: 1rem; font-size: .92rem; }
.project-features li { display: flex; align-items: center; gap: .55rem; color: var(--text-2); }
.project-features i { color: var(--success); font-size: .8rem; }
.project-card .chip-list { margin-bottom: 1.25rem; }
.store-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }
/* Store badges: white in the light theme, black in the dark theme (like cordeliasoftware.net) */
.store-btn {
    display: inline-flex; align-items: center; gap: .5rem; flex: 1 1 140px;
    padding: .55rem .8rem; border-radius: 12px; background: #fff; color: #0f172a; line-height: 1.1;
    border: 1px solid rgba(15, 23, 42, .3);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 12px -2px rgba(15, 23, 42, .14);
    transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.store-btn:hover { text-decoration: none; transform: translateY(-2px); background: #fff; border-color: rgba(15, 23, 42, .5);
    box-shadow: 0 2px 4px rgba(15, 23, 42, .1), 0 10px 22px -6px rgba(15, 23, 42, .24); }
[data-theme="dark"] .store-btn { background: #000; color: #fff; border-color: rgba(255, 255, 255, .14); box-shadow: none; }
[data-theme="dark"] .store-btn:hover { background: #111; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.store-btn i { font-size: 1.4rem; }
.store-btn span { display: flex; flex-direction: column; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.store-btn small { font-size: .65rem; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.store-btn.is-soon { opacity: .5; cursor: default; border-style: dashed; }
.store-btn.is-soon:hover { transform: none; background: #fff; border-color: rgba(15, 23, 42, .3);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 12px -2px rgba(15, 23, 42, .14); }
[data-theme="dark"] .store-btn.is-soon:hover { background: #000; border-color: rgba(255, 255, 255, .14); box-shadow: none; }

/* ---------- Achievements ---------- */
.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.achievement-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.achievement-card.is-featured { grid-column: span 2; flex-direction: row; }
.achievement-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.achievement-card.is-featured .achievement-media { flex: 1 1 55%; aspect-ratio: auto; min-height: 320px; }
.achievement-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    filter: blur(22px) saturate(1.2) brightness(.55); transform: scale(1.2);
}
.achievement-img {
    position: relative; width: 100%; height: 100%; object-fit: contain; padding: .5rem;
    transition: transform .6s var(--ease);
}
.achievement-card:hover .achievement-img { transform: scale(1.03); }
.achievement-year {
    position: absolute; top: .9rem; left: .9rem; padding: .35rem .7rem; border-radius: var(--radius-pill);
    background: rgba(11, 15, 25, .7); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: .85rem;
    backdrop-filter: blur(6px);
}
.achievement-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.achievement-card.is-featured .achievement-body { flex: 1 1 45%; justify-content: center; padding: 2rem; }
.achievement-body h3 { font-size: 1.05rem; font-weight: 700; }
.achievement-card.is-featured h3 { font-size: 1.5rem; }
.achievement-sub { color: var(--text-2); font-size: .9rem; font-weight: 500; }
.achievement-place { color: var(--muted); font-size: .85rem; display: flex; gap: .4rem; align-items: center; margin-top: .3rem; }
.achievement-place i { color: var(--accent); }
.medal {
    display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start;
    padding: .35rem .8rem; border-radius: var(--radius-pill); margin-bottom: .5rem;
    background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #111827; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}

/* ---------- References ---------- */
.reference-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.reference-card { display: flex; align-items: center; gap: 1.1rem; }
.reference-avatar {
    flex: 0 0 auto; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent-gradient); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
}
.reference-card h3 { font-size: 1.05rem; font-weight: 700; }
.reference-card p { color: var(--text-2); font-size: .92rem; }
.reference-company { color: var(--muted) !important; font-size: .85rem !important; }
.reference-note { margin-top: 1.25rem; color: var(--muted); font-size: .9rem; }

/* ---------- CTA ---------- */
.cta-section { padding-top: 0; }
.cta {
    display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
    padding: 2.5rem; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, var(--accent-2) 12%, var(--surface)));
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.cta p { color: var(--text-2); margin-top: .5rem; max-width: 36rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.footer-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.footer-title { color: var(--muted); font-size: .9rem; }
.footer-meta { color: var(--muted); font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }

.back-to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--accent-gradient); color: #fff; box-shadow: 0 10px 24px rgba(59, 130, 246, .35);
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Error page ---------- */
.error-section { min-height: 60vh; display: grid; place-items: center; }
.error-card { text-align: center; max-width: 32rem; margin-inline: auto; padding: 3rem 2rem; }
.error-code { font-family: var(--font-heading); font-size: 5rem; font-weight: 800; line-height: 1; display: block; }
.error-card h1 { font-size: 1.8rem; margin: .75rem 0; }
.error-card p { color: var(--text-2); }
.error-card .hero-actions { justify-content: center; margin-top: 1.5rem; }
.error-request { margin-top: 1.5rem; font-size: .8rem; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .photo-ring, .pulse { animation: none; }
    .card, .btn, .social-list a { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .achievement-grid { grid-template-columns: repeat(2, 1fr); }
    .achievement-card.is-featured { grid-column: span 2; }
}

@media (max-width: 900px) {
    .site-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; gap: .25rem; padding: 1rem 1.25rem 1.25rem;
        background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: .7rem .9rem; font-size: 1rem; }
    .nav-toggle { display: inline-grid; }
    .brand-name { display: none; }

    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .hero-photo { order: -1; }
    .hero-tagline { margin-inline: auto; }
    .hero-actions, .hero-social { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 1.5rem, var(--container)); }
    .d-none-mobile { display: none !important; }
    .card { padding: 1.35rem; border-radius: var(--radius-md); }
    .timeline { padding-left: 1.75rem; }
    .timeline-marker { left: -1.75rem; width: 20px; height: 20px; }
    .timeline::before { left: 9px; }
    .achievement-grid { grid-template-columns: 1fr; }
    .achievement-card.is-featured { grid-column: auto; flex-direction: column; }
    .achievement-card.is-featured .achievement-media { aspect-ratio: 4 / 3; min-height: 0; }
    .achievement-card.is-featured .achievement-body { padding: 1.25rem 1.4rem 1.4rem; }
    .fact { grid-template-columns: 1fr; gap: .25rem; }
    .cta { padding: 1.75rem; }
    .stat-value { font-size: 2rem; }
}

/* ---------- Print ---------- */
@media print {
    :root { --bg: #fff; --bg-alt: #fff; --surface: #fff; --text: #000; --text-2: #222; --muted: #555; --shadow: none; --shadow-lg: none; }
    .site-header, .site-footer, .back-to-top, .bg-glow, .scroll-progress, .hero-actions, .hero-social, .store-buttons,
    .cta-section, .company-pill, .achievement-media, .skip-link { display: none !important; }
    .js .reveal { opacity: 1 !important; transform: none !important; }
    .photo-ring { animation: none; width: 140px; }
    .hero { padding: 0; }
    .section { padding: 1.25rem 0; break-inside: avoid; }
    .section-alt { border: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    .text-gradient { -webkit-text-fill-color: #1d4ed8; color: #1d4ed8; background: none; }
    a { color: #1d4ed8; }
    .achievement-grid { grid-template-columns: 1fr 1fr; }
    .achievement-card.is-featured { grid-column: auto; }
}
