/* ksg91.com - main styles */

:root {
    --paper: #f8f4eb;
    --paper-deep: #f0e6d4;
    --ink: #1b2f45;
    --ink-soft: #455d75;
    --ocean: #0f8a84;
    --ocean-dark: #0c6863;
    --sun: #ff6d3b;
    --sun-dark: #df4e1f;
    --gold: #cc9a1a;
    --card: rgba(255, 255, 255, 0.78);
    --card-border: rgba(27, 47, 69, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow-soft: 0 16px 50px rgba(27, 47, 69, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 109, 59, 0.22), transparent 34%),
        radial-gradient(circle at 90% 0%, rgba(15, 138, 132, 0.16), transparent 30%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(6px);
}

body::before {
    width: 320px;
    height: 320px;
    right: -90px;
    bottom: 10%;
    background: rgba(204, 154, 26, 0.12);
    animation: orb-drift-a 24s ease-in-out infinite;
}

body::after {
    width: 240px;
    height: 240px;
    left: -70px;
    top: 32%;
    background: rgba(15, 138, 132, 0.14);
    animation: orb-drift-b 28s ease-in-out infinite;
}

.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.22;
    will-change: transform;
}

.orb-1 {
    width: 180px;
    height: 180px;
    left: -60px;
    top: 12%;
    background: rgba(15, 138, 132, 0.2);
    animation: orb-drift-c 30s ease-in-out infinite;
}

.orb-2 {
    width: 210px;
    height: 210px;
    right: -70px;
    top: 18%;
    background: rgba(204, 154, 26, 0.18);
    animation: orb-drift-b 34s ease-in-out infinite;
}

.orb-3 {
    width: 150px;
    height: 150px;
    left: -40px;
    top: 56%;
    background: rgba(15, 138, 132, 0.17);
    animation: orb-drift-a 26s ease-in-out infinite;
}

.orb-4 {
    width: 220px;
    height: 220px;
    right: -90px;
    top: 46%;
    background: rgba(204, 154, 26, 0.14);
    animation: orb-drift-c 36s ease-in-out infinite;
}

.orb-5 {
    width: 190px;
    height: 190px;
    right: -80px;
    bottom: 7%;
    background: rgba(204, 154, 26, 0.16);
    animation: orb-drift-b 32s ease-in-out infinite;
}

@keyframes orb-drift-a {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(12px, -14px, 0) scale(1.03); }
    100% { transform: translate3d(-10px, 10px, 0) scale(0.98); }
}

@keyframes orb-drift-b {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-14px, 10px, 0) scale(1.02); }
    100% { transform: translate3d(10px, -12px, 0) scale(0.99); }
}

@keyframes orb-drift-c {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    40% { transform: translate3d(8px, 12px, 0) scale(1.01); }
    100% { transform: translate3d(-12px, -8px, 0) scale(1.03); }
}

.shell {
    width: min(1120px, 100% - 2.5rem);
    margin: 0 auto;
    padding: 1.25rem 0 3.5rem;
}

.topbar {
    position: sticky;
    top: 1rem;
    z-index: 40;
    margin-bottom: 2rem;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 28px rgba(27, 47, 69, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
}

.brand strong {
    color: var(--sun);
}

.nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    transition: all 0.22s ease;
}

.nav a:hover {
    color: #fff;
    background: var(--ink);
}

.hero {
    border: 1px solid var(--card-border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68));
    border-radius: calc(var(--radius-lg) + 8px);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.25rem, 2.5vw, 2.2rem);
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
    margin-bottom: 1.8rem;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    right: -260px;
    top: -250px;
    background: radial-gradient(circle, rgba(15, 138, 132, 0.15), transparent 65%);
    pointer-events: none;
}

.portrait-card {
    background: linear-gradient(160deg, rgba(15, 138, 132, 0.11), rgba(255, 109, 59, 0.09));
    border: 1px solid rgba(27, 47, 69, 0.14);
    border-radius: var(--radius-lg);
    padding: 0.85rem;
    position: relative;
}

.portrait {
    width: 100%;
    display: block;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 14px 40px rgba(27, 47, 69, 0.24);
}

.stamp {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(27, 47, 69, 0.62);
    border-radius: 999px;
    padding: 0.3rem 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ocean-dark);
    font-size: 0.76rem;
    margin-bottom: 0.5rem;
}

h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    letter-spacing: -0.02em;
    line-height: 0.97;
    margin-bottom: 0.55rem;
    text-wrap: balance;
}

.name {
    display: block;
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    color: var(--sun);
    margin-top: 0.48rem;
    letter-spacing: 0;
}

.lede {
    color: var(--ink-soft);
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 62ch;
    margin-bottom: 1.05rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
}

.tag {
    border: 1px solid rgba(27, 47, 69, 0.16);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.btn {
    text-decoration: none;
    border-radius: 999px;
    padding: 0.62rem 1rem;
    font-weight: 700;
    font-size: 0.86rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, var(--sun), var(--sun-dark));
    box-shadow: 0 10px 22px rgba(223, 78, 31, 0.28);
}

.btn-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(27, 47, 69, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
}

.section {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    padding: clamp(1rem, 2.3vw, 1.9rem);
    margin-bottom: 1.1rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.25rem, 2.8vw, 2rem);
    letter-spacing: -0.01em;
}

.section-kicker {
    font-family: 'JetBrains Mono', monospace;
    color: #1b6f6a;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.kpi-card {
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.95), rgba(244, 238, 225, 0.86));
    border: 1px solid rgba(27, 47, 69, 0.12);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-value {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 3.8vw, 2.65rem);
    line-height: 0.95;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.kpi-label {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 0.35rem;
}

.kpi-note {
    font-family: 'JetBrains Mono', monospace;
    color: var(--sun-dark);
    font-size: 0.71rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.8rem;
}

.program-card {
    border: 1px solid rgba(27, 47, 69, 0.15);
    border-radius: var(--radius-md);
    padding: 0.95rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 239, 227, 0.72));
    min-height: 220px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(27, 47, 69, 0.11);
}

.program-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.program-points {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
}

.program-points li {
    position: relative;
    padding-left: 1rem;
}

.program-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--sun), var(--ocean));
}

.program-points a {
    color: var(--ocean-dark);
    font-weight: 700;
}

.program-points a:hover {
    color: var(--sun-dark);
}

.lead-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0.9rem;
}

.timeline {
    border: 1px solid rgba(27, 47, 69, 0.14);
    border-radius: var(--radius-md);
    padding: 0.95rem;
    background: rgba(255, 255, 255, 0.86);
}

.step {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(27, 47, 69, 0.08);
}

.step:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.step-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    color: var(--ocean-dark);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-top: 0.12rem;
}

.step h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.step p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
}

.specialty-panel {
    border: 1px solid rgba(27, 47, 69, 0.15);
    border-radius: var(--radius-md);
    padding: 0.95rem;
    background: linear-gradient(140deg, rgba(15, 138, 132, 0.12), rgba(255, 109, 59, 0.1));
}

.specialty-panel h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.chip {
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(27, 47, 69, 0.15);
    font-size: 0.8rem;
    color: var(--ink);
    font-weight: 600;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.ai-card {
    border: 1px solid rgba(27, 47, 69, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.89);
    padding: 0.95rem;
}

.ai-card h3 {
    font-size: 1.02rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.ai-card p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
}

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

.project-card {
    border: 1px solid rgba(27, 47, 69, 0.15);
    border-radius: var(--radius-md);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(243, 235, 220, 0.74));
    padding: 0.95rem;
}

.project-label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ocean-dark);
    margin-bottom: 0.45rem;
}

.project-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.22rem;
    margin-bottom: 0.4rem;
}

.project-card p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 0.8rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--ocean), var(--ocean-dark));
    padding: 0.45rem 0.78rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(12, 104, 99, 0.24);
}

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

.personal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.personal-card {
    border: 1px solid rgba(27, 47, 69, 0.14);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(242, 233, 215, 0.7));
    padding: 0.95rem;
}

.personal-card h3 {
    font-size: 1.03rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.personal-card p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
}

.contact {
    text-align: center;
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
    background: linear-gradient(140deg, rgba(15, 138, 132, 0.12), rgba(255, 109, 59, 0.08));
}

.contact p {
    color: var(--ink-soft);
    margin: 0 auto 0.85rem;
    max-width: 66ch;
}

.socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.socials a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.52rem 0.84rem;
    border: 1px solid rgba(27, 47, 69, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    transition: all 0.2s ease;
}

.socials a:hover {
    color: #fff;
    background: var(--ink);
}

footer {
    text-align: center;
    margin-top: 1.2rem;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .portrait-card {
        max-width: 360px;
        width: 100%;
    }

    .kpi-grid,
    .program-grid,
    .lead-grid,
    .ai-grid,
    .project-grid,
    .personal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(1120px, 100% - 1.2rem);
    }

    .topbar {
        border-radius: 22px;
        position: relative;
        top: 0;
    }

    .brand {
        font-size: 0.72rem;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
    }

    .kpi-grid,
    .program-grid,
    .lead-grid,
    .ai-grid,
    .project-grid,
    .personal {
        grid-template-columns: 1fr;
    }

    .step {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .step-time {
        padding-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
