:root {
    color-scheme: dark;
    --bg: #030615;
    --bg-soft: #071027;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --muted: #a7b4c8;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #8ab4ff;
    --accent-strong: #d8e6ff;
    --radius: 28px;
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0a1b42 0, var(--bg) 46%, #02030a 100%);
    color: var(--text);
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 64px);
    backdrop-filter: blur(18px);
    background: rgba(3, 6, 21, 0.72);
    border-bottom: 1px solid var(--line);
}
.site-brand { font-weight: 800; letter-spacing: -0.04em; }
.site-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
}
.site-nav a:hover, .lang-switcher a:hover { color: var(--text); }
.lang-switcher {
    display: flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.lang-switcher a {
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 999px;
}
.lang-switcher a[aria-current="true"] { background: var(--surface-strong); color: var(--text); }

.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 78px);
    display: grid;
    place-items: center;
    padding: 80px 24px;
}
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.95; }
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 6, 21, 0.12), var(--bg));
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}
.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 800;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.06em; line-height: 0.95; }
h1 { font-size: clamp(54px, 12vw, 138px); }
h2 { font-size: clamp(38px, 7vw, 74px); }
h3 { font-size: clamp(24px, 4vw, 36px); }
.hero-lead {
    max-width: 720px;
    margin: 28px auto 0;
    color: var(--muted);
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.55;
}
.hero-actions, .link-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid var(--line);
}
.button.primary { background: var(--text); color: #061025; }
.button.ghost { color: var(--text); background: var(--surface); }
.button:hover { transform: translateY(-1px); }

.section {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    padding: 96px 0;
}
.alt-section {
    width: 100%;
    max-width: none;
    padding-inline: max(18px, calc((100vw - var(--max)) / 2));
    background: rgba(255,255,255,0.025);
    border-block: 1px solid var(--line);
}
.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 42px;
}
.timeline-list { display: grid; gap: 22px; }
.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: start;
}
.timeline-date {
    color: var(--accent-strong);
    font-weight: 800;
    padding-top: 24px;
}
.timeline-card, .project-card, .contact-card, .empty-state {
    background: linear-gradient(145deg, var(--surface), rgba(255,255,255,0.035));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}
.timeline-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 22px;
    padding: 22px;
}
.timeline-logo {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}
.timeline-logo img { width: 100%; height: 100%; object-fit: cover; }
p { color: var(--muted); line-height: 1.7; }
.muted { color: var(--accent-strong); font-weight: 700; margin: 10px 0 0; }
.small-text { font-size: 14px; margin: 4px 0 0; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.project-card { overflow: hidden; }
.project-media {
    aspect-ratio: 16 / 10;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 24px; }
.project-body h3 { font-size: 28px; }
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.yp-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(138, 180, 255, 0.12);
    color: var(--accent-strong);
    border: 1px solid rgba(138, 180, 255, 0.24);
    font-size: 12px;
    font-weight: 800;
}
.link-row { justify-content: flex-start; margin-top: 20px; }
.link-row a {
    color: var(--text);
    font-weight: 800;
    border-bottom: 1px solid var(--accent);
}
.contact-section { padding-top: 40px; }
.contact-card { padding: clamp(28px, 6vw, 64px); text-align: center; }
.contact-card .button { margin-top: 28px; }
.site-footer {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    padding: 30px 0 48px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}
.empty-state { padding: 28px; }

@media (max-width: 900px) {
    .site-header { grid-template-columns: 1fr auto; }
    .site-nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
    .timeline-item { grid-template-columns: 1fr; gap: 10px; }
    .timeline-date { padding-top: 0; }
    .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .timeline-card { grid-template-columns: 1fr; }
    .timeline-logo { width: 72px; height: 72px; }
    .section { padding: 68px 0; }
}
