:root {
    --bg-main: #f4efe7;
    --bg-alt: #f9f4ec;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;
    --line: #d7d0c6;
    --ink: #161a22;
    --ink-soft: #495063;
    --accent: #0b8a8f;
    --accent-strong: #096f73;
    --accent-warm: #db5f26;
    --shadow: 0 20px 40px rgba(17, 22, 33, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(11, 138, 143, 0.12), transparent 30%),
        radial-gradient(circle at 88% 20%, rgba(219, 95, 38, 0.15), transparent 34%),
        linear-gradient(180deg, var(--bg-main) 0%, var(--bg-alt) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(9, 111, 115, 0.08) 0.9px, transparent 0.9px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: -3;
}

.bg-shape {
    position: fixed;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(58px);
    pointer-events: none;
    z-index: -2;
}

.bg-shape-one {
    top: -190px;
    right: -120px;
    background: rgba(11, 138, 143, 0.24);
}

.bg-shape-two {
    bottom: -230px;
    left: -120px;
    background: rgba(219, 95, 38, 0.2);
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.topbar {
    margin-top: 22px;
    padding: 14px 18px;
    border: 1px solid rgba(215, 208, 198, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 14px;
    z-index: 8;
    box-shadow: var(--shadow);
}

.brand {
    text-decoration: none;
    color: var(--ink);
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.topbar nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.topbar nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
    color: var(--ink);
    background: rgba(11, 138, 143, 0.14);
}

.hero {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 26px;
    align-items: start;
}

.hero-copy {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52));
    border: 1px solid rgba(215, 208, 198, 0.95);
    border-radius: 26px;
    padding: clamp(20px, 3vw, 34px);
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent-strong);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Sora", sans-serif;
    line-height: 1.15;
    color: #111621;
}

h1 {
    margin-top: 12px;
    font-size: clamp(1.95rem, 4.2vw, 3.3rem);
    max-width: 18ch;
}

h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.15rem);
}

h3 {
    font-size: clamp(1.16rem, 1.8vw, 1.4rem);
}

.lead {
    margin: 18px 0 0;
    max-width: 62ch;
    color: var(--ink-soft);
    font-size: 1.03rem;
}

.availability {
    margin: 14px 0 0;
    display: inline-block;
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 0.92rem;
    background: rgba(11, 138, 143, 0.12);
    border: 1px solid rgba(11, 138, 143, 0.28);
    border-radius: 999px;
    padding: 6px 12px;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(12, 18, 26, 0.14);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.btn-secondary {
    color: var(--ink);
    border-color: rgba(17, 22, 33, 0.18);
    background: rgba(255, 255, 255, 0.58);
}

.stat-strip {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.stat-strip li {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(215, 208, 198, 0.95);
    border-radius: 14px;
    padding: 12px;
}

.stat-strip strong {
    display: block;
    color: var(--accent-warm);
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
}

.stat-strip span {
    display: block;
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.hero-panel {
    background: linear-gradient(160deg, #121b2f 0%, #101623 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: clamp(18px, 2vw, 28px);
    color: rgba(239, 244, 250, 0.92);
    box-shadow: 0 26px 44px rgba(13, 18, 28, 0.34);
}

.hero-panel h2 {
    margin-top: 8px;
    color: #f4f7ff;
}

.hero-panel p {
    margin: 12px 0 0;
    color: rgba(222, 233, 255, 0.86);
}

.panel-label {
    margin: 0;
    font-size: 0.79rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7fd9dc;
    font-weight: 700;
}

.checklist {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.checklist li {
    position: relative;
    padding-left: 24px;
    color: rgba(227, 237, 255, 0.92);
}

.checklist li::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    position: absolute;
    left: 3px;
    top: 9px;
    background: linear-gradient(150deg, #53d2d6 0%, #2abec3 100%);
    box-shadow: 0 0 0 3px rgba(83, 210, 214, 0.2);
}

.stack-pills {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-pills li {
    font-size: 0.81rem;
    letter-spacing: 0.02em;
    border: 1px solid rgba(130, 150, 195, 0.48);
    color: #d8e4ff;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(35, 49, 80, 0.58);
}

.section {
    margin-top: 72px;
}

.section-head p {
    margin-top: 12px;
    max-width: 62ch;
    color: var(--ink-soft);
}

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

.project-card {
    border: 1px solid rgba(215, 208, 198, 0.95);
    border-radius: 18px;
    background: var(--surface);
    backdrop-filter: blur(7px);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

/* Make cards use column layout so links can sit at the bottom */
.project-card {
    display: flex;
    flex-direction: column;
}

.project-card > .inline-links {
    margin-top: auto;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(9, 111, 115, 0.38);
}

.project-card.featured {
    grid-column: span 3;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(232, 247, 247, 0.8));
}

.project-meta {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.project-card h3 {
    margin-top: 8px;
}

.project-cover {
    width: 100%;
    display: block;
    margin-top: 14px;
    border-radius: 14px;
    border: 1px solid rgba(17, 22, 33, 0.12);
    box-shadow: 0 16px 28px rgba(16, 22, 34, 0.16);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.project-card p {
    margin: 12px 0 0;
    color: var(--ink-soft);
}

.project-card ul {
    margin: 13px 0 0;
    padding-left: 20px;
    color: #2f3747;
}

.project-card li + li {
    margin-top: 6px;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.inline-links a {
    text-decoration: none;
    color: var(--accent-strong);
    font-weight: 700;
    border-bottom: 1px solid rgba(9, 111, 115, 0.34);
    padding-bottom: 2px;
}

.inline-links a:hover,
.inline-links a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

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

.case-grid .project-card {
    height: 100%;
}

.principle-grid,
.skill-columns {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.principle-card,
.skill-card,
.timeline-entry,
.cta-block {
    border: 1px solid rgba(215, 208, 198, 0.95);
    border-radius: 16px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.principle-card,
.skill-card,
.timeline-entry {
    padding: 16px;
}

.principle-card p,
.skill-card li,
.timeline-entry p,
.cta-block p {
    color: var(--ink-soft);
}

.skill-card ul {
    margin: 11px 0 0;
    padding-left: 20px;
}

.skill-card li + li {
    margin-top: 6px;
}

.timeline {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.timeline-entry {
    border-left: 4px solid rgba(11, 138, 143, 0.46);
}

.timeline-entry p {
    margin-top: 10px;
}

.cta-block {
    padding: clamp(18px, 3vw, 32px);
    background:
        radial-gradient(circle at 90% 14%, rgba(11, 138, 143, 0.14), transparent 40%),
        radial-gradient(circle at 16% 85%, rgba(219, 95, 38, 0.14), transparent 42%),
        #ffffff;
}

.cta-block h2 {
    margin-top: 10px;
}

.cta-block p {
    margin-top: 14px;
    max-width: 62ch;
}

.footer {
    padding: 34px 0 38px;
}

.footer p {
    margin: 0;
    color: #60697d;
    font-size: 0.94rem;
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: rise-in 0.75s cubic-bezier(0.2, 0.7, 0.22, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.delay-1 {
    --delay: 0.02s;
}

.delay-2 {
    --delay: 0.1s;
}

.delay-3 {
    --delay: 0.16s;
}

.delay-4 {
    --delay: 0.22s;
}

.delay-5 {
    --delay: 0.28s;
}

.delay-6 {
    --delay: 0.34s;
}

.delay-7 {
    --delay: 0.4s;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .topbar {
        margin-top: 14px;
        padding: 12px 14px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card.featured {
        grid-column: span 2;
    }

    .project-grid .project-card:last-child {
        grid-column: span 2;
    }

    .principle-grid,
    .skill-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .container {
        width: min(1120px, 94vw);
    }

    .hero {
        margin-top: 28px;
    }

    .hero-copy,
    .hero-panel {
        border-radius: 20px;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured,
    .project-grid .project-card:last-child {
        grid-column: span 1;
    }

    .principle-grid,
    .skill-columns {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        margin-top: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
