:root {
    --bg: #eaf3ff;
    --bg-deep: #d4e4fb;
    --surface: rgba(248, 252, 255, 0.84);
    --surface-strong: #fcfeff;
    --line: rgba(28, 72, 128, 0.16);
    --text: #102038;
    --muted: #4f6784;
    --accent: #1f63b5;
    --accent-deep: #174a88;
    --accent-soft: rgba(31, 99, 181, 0.12);
    --shadow: 0 24px 60px rgba(25, 65, 122, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 36%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body,
a {
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    width: 38rem;
    height: 38rem;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.45;
}

.glow-left {
    top: -10rem;
    left: -8rem;
    background: rgba(31, 99, 181, 0.22);
}

.glow-right {
    right: -10rem;
    bottom: -8rem;
    background: rgba(77, 152, 223, 0.2);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(28, 72, 128, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 72, 128, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%);
}

.page-shell {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.hero-card,
.info-card,
.project-card {
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 44px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(252, 254, 255, 0.96), rgba(224, 238, 255, 0.86)),
        var(--surface);
}

.eyebrow,
.card-label,
.project-tag,
.project-type {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
}

.eyebrow,
.card-label,
.project-type {
    color: var(--muted);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 0.98;
}

h1 {
    margin-bottom: 18px;
    max-width: 8ch;
    font-size: clamp(3.4rem, 10vw, 6.8rem);
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
    margin-bottom: 12px;
    font-size: 1.7rem;
}

.hero-copy,
.info-card p,
.project-card p {
    max-width: 62ch;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.03rem;
    line-height: 1.7;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button,
.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
}

.button:hover,
.project-link:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent);
    color: #fff8f2;
}

.button-primary:hover {
    background: var(--accent-deep);
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.56);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.info-card {
    padding: 28px;
    border-radius: 28px;
    background: var(--surface);
}

.accent-card {
    background:
        linear-gradient(180deg, rgba(31, 99, 181, 0.12), rgba(248, 252, 255, 0.9)),
        var(--surface);
}

.projects-section {
    margin-top: 42px;
}

.section-heading {
    margin-bottom: 18px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-radius: 28px;
    background: var(--surface-strong);
}

.featured-project {
    background:
        linear-gradient(180deg, rgba(31, 99, 181, 0.1), rgba(252, 254, 255, 0.96)),
        var(--surface-strong);
}

.project-topline {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.project-tag {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    letter-spacing: 0.12em;
}

.muted-tag {
    background: rgba(28, 72, 128, 0.08);
    color: var(--muted);
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 24px;
}

.project-link {
    align-self: flex-start;
    border: 1px solid rgba(31, 99, 181, 0.2);
    background: rgba(255, 255, 255, 0.78);
    color: var(--accent-deep);
}

.subdued-link {
    border-color: var(--line);
    color: var(--muted);
}

@media (max-width: 900px) {
    .intro-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 20px 14px 48px;
    }

    h1 {
        max-width: none;
    }

    .hero-actions,
    .project-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .button,
    .project-link {
        width: 100%;
    }
}
