:root {
    --bg: #f5f7fb;
    --bg-soft: #eef3f9;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-solid: #ffffff;
    --text: #0f1722;
    --muted: #5c6978;
    --line: rgba(15, 23, 34, 0.1);
    --accent: #0099e5;
    --accent-deep: #0a6d9d;
    --accent-soft: rgba(0, 153, 229, 0.12);
    --shadow: 0 30px 90px rgba(17, 38, 68, 0.11);
    --radius: 34px;
    --content: 1220px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(0, 153, 229, 0.18), transparent 24%),
        radial-gradient(circle at right 18%, rgba(28, 48, 84, 0.13), transparent 30%),
        linear-gradient(180deg, #fbfdff 0%, #f3f6fb 48%, #eef2f8 100%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.04em;
}

.site-shell {
    width: min(calc(100% - 2rem), calc(var(--content) + 2rem));
    margin: 0 auto;
    padding: 1rem 0 2.5rem;
}

.site-header,
.hero,
.stats-band,
.apple-showcase,
.signature-band,
.section-grid,
.story-band,
.logo-section,
.cta-banner,
.page-hero,
.contact-layout,
.site-footer {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
}

.site-header {
    position: sticky;
    top: 1rem;
    z-index: 40;
    border-radius: 999px;
}

.site-footer {
    border-radius: 30px;
    margin-top: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand-mark {
    width: 7rem;
    min-height: 3.3rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.brand-mark img {
    width: 100%;
    max-height: 2.9rem;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: none;
}

.brand-copy {
    display: grid;
    gap: 0.1rem;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy span,
.footer-title + p,
.site-nav a,
.eyebrow,
.panel-label,
.contact-label {
    font-size: 0.92rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    transition: all 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-current {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
}

.nav-toggle,
.sr-only {
    display: none;
}

main {
    display: grid;
    gap: 1.35rem;
    margin-top: 1.35rem;
}

.hero,
.stats-band,
.apple-showcase,
.signature-band,
.section-grid,
.story-band,
.logo-section,
.cta-banner,
.page-hero,
.contact-layout {
    border-radius: var(--radius);
    overflow: hidden;
}

.hero,
.apple-showcase,
.signature-band,
.section-grid,
.story-band,
.logo-section,
.cta-banner,
.page-hero,
.contact-layout {
    padding: clamp(1.4rem, 2.3vw, 2.4rem);
}

.eyebrow,
.panel-label,
.contact-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-deep);
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 1.2rem;
    min-height: 82svh;
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.9)),
        radial-gradient(circle at top left, rgba(0, 153, 229, 0.12), transparent 34%);
    border-radius: 28px;
    padding: clamp(1.6rem, 3vw, 3rem);
}

.hero h1,
.page-hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.92;
}

.hero-lead,
.page-hero .hero-summary {
    font-size: clamp(1.2rem, 2.1vw, 1.7rem);
    color: var(--text);
}

.hero-summary,
.page-intro {
    max-width: 44rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.3rem;
}

.hero-mini-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.15rem;
    margin-top: 0.95rem;
    max-width: 42rem;
}

.hero-mini-list span {
    position: relative;
    padding: 0 0 0 0.95rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.hero-mini-list span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: var(--accent);
}

.button {
    min-height: 3rem;
    padding: 0.78rem 1.2rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(17, 38, 68, 0.12);
}

.button-primary {
    background: linear-gradient(135deg, #1f9ae2, #33b3f0);
    color: #fff;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    border-color: rgba(15, 23, 34, 0.1);
}

.hero-visual {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 1rem;
}

.hero-home {
    min-height: auto;
    align-items: center;
}

.hero-home .hero-copy {
    min-height: 100%;
}

.hero-home .hero-visual {
    display: block;
}

.hero-home .hero-portrait {
    min-height: 640px;
}

.hero-about {
    min-height: auto;
    align-items: start;
}

.hero-about .hero-copy {
    min-height: 100%;
}

.hero-about .hero-visual {
    align-content: start;
}

.hero-contact {
    min-height: auto;
    align-items: start;
}

.hero-copy-top {
    justify-content: flex-start;
    gap: 0.85rem;
}

.hero-copy-top .hero-summary {
    max-width: 38rem;
}

.hero-contact .hero-visual {
    align-content: start;
}

.hero-portrait,
.hero-panel,
.showcase-copy,
.showcase-media,
.signature-card,
.signature-copy,
.story-copy,
.story-body,
.contact-panel {
    border-radius: 28px;
}

.hero-portrait {
    min-height: 430px;
    overflow: hidden;
    background: linear-gradient(180deg, #182535, #111b27);
}

.hero-portrait img,
.showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-panel,
.contact-panel {
    padding: 1.45rem;
    background:
        radial-gradient(circle at top right, rgba(0, 153, 229, 0.24), transparent 30%),
        linear-gradient(180deg, #101923, #162334);
    color: #eff6ff;
    position: relative;
    overflow: hidden;
}

.hero-panel::after,
.contact-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 153, 229, 0.26), transparent 70%);
    pointer-events: none;
}

.role-stack {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.role-stack li {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(239, 246, 255, 0.12);
}

.app-callout {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(239, 246, 255, 0.12);
    display: grid;
    gap: 0.3rem;
}

.app-callout span,
.contact-panel p,
.contact-panel li {
    color: rgba(239, 246, 255, 0.78);
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0.8rem 1rem;
}

.stats-band article {
    padding: 1.2rem 1rem;
    border-left: 1px solid var(--line);
}

.stats-band article:first-child {
    border-left: 0;
}

.stats-band strong {
    display: block;
    font-size: 2rem;
    color: var(--text);
}

.stats-band span {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
}

.resume-band article strong {
    font-size: 1.18rem;
    line-height: 1.3;
}

.apple-showcase,
.signature-band,
.story-band {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(320px, 1.04fr);
    gap: 1.25rem;
    align-items: stretch;
}

.apple-showcase.reverse {
    grid-template-columns: minmax(320px, 1.04fr) minmax(0, 0.96fr);
}

.showcase-copy,
.signature-copy,
.story-copy {
    padding: clamp(1.5rem, 2.7vw, 3rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 251, 255, 0.72)),
        radial-gradient(circle at top left, rgba(0, 153, 229, 0.08), transparent 35%);
}

.showcase-copy h2,
.signature-copy h2,
.story-copy h2 {
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.02;
    margin-bottom: 1rem;
}

.app-links {
    margin-top: 1.15rem;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.app-store-badge img {
    display: block;
    width: 168px;
    height: auto;
}

.app-list {
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1.2rem;
}

.app-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.app-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: var(--accent);
}

.showcase-media,
.signature-card {
    min-height: 430px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.showcase-media {
    background: linear-gradient(180deg, #182535, #101923);
}

.signature-on-light,
.signature-card {
    background:
        radial-gradient(circle at top, rgba(0, 153, 229, 0.16), transparent 38%),
        linear-gradient(180deg, #fbfdff, #edf4fb);
}

.signature-on-light img,
.signature-card img {
    width: min(76%, 360px);
    height: auto;
    object-fit: contain;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.88fr) minmax(0, 1.12fr);
    gap: 1.25rem;
}

.section-heading {
    max-width: 32rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 3.6vw, 3.4rem);
    line-height: 1.04;
    margin-bottom: 0.8rem;
}

.section-heading.compact {
    max-width: 40rem;
}

.feature-list,
.service-grid,
.check-list,
.stack-list,
.logo-grid,
.contact-cards,
.timeline {
    display: grid;
    gap: 1rem;
}

.feature-list {
    grid-template-columns: repeat(3, 1fr);
}

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

.check-list {
    grid-template-columns: repeat(2, 1fr);
}

.feature-item,
.service-card,
.stack-card,
.contact-card,
.timeline-card,
.check-list article {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 23, 34, 0.06);
    border-radius: 24px;
    padding: 1.25rem;
}

.feature-item h3,
.service-card h3,
.stack-card h3,
.timeline-card h3,
.check-list article h3 {
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
}

.story-body {
    padding: clamp(1.5rem, 2.7vw, 3rem);
    background:
        linear-gradient(180deg, rgba(18, 28, 42, 0.96), rgba(12, 19, 28, 0.98)),
        radial-gradient(circle at top right, rgba(0, 153, 229, 0.22), transparent 30%);
}

.story-body p {
    color: rgba(239, 246, 255, 0.84);
}

.story-body p + p {
    margin-top: 1rem;
}

.logo-section .section-heading {
    max-width: 56rem;
    margin-bottom: 1.25rem;
}

.logo-grid {
    grid-template-columns: repeat(4, 1fr);
}

.logo-tile {
    margin: 0;
    min-height: 170px;
    border-radius: 24px;
    padding: 1.1rem;
    display: grid;
    gap: 0.85rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 34, 0.06);
}

.logo-tile img {
    width: 100%;
    height: 72px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.logo-tile figcaption {
    color: var(--muted);
    font-size: 0.9rem;
}

.cta-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(0, 153, 229, 0.12), rgba(255, 255, 255, 0.82)),
        rgba(255, 255, 255, 0.8);
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.04;
}

.page-hero {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 250, 255, 0.76)),
        radial-gradient(circle at top left, rgba(0, 153, 229, 0.08), transparent 30%);
}

.page-hero.narrow {
    padding-block: clamp(2rem, 6vw, 4.8rem);
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.timeline-period,
.stack-period {
    color: var(--accent-deep);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.timeline-company,
.stack-company {
    margin-bottom: 0.45rem;
    color: var(--accent-deep);
    font-weight: 600;
}

.timeline-card > p:last-of-type {
    margin-bottom: 0;
}

.timeline-details {
    margin: 0.85rem 0 0;
    padding-left: 1.15rem;
    color: var(--muted);
}

.timeline-details li + li {
    margin-top: 0.65rem;
}

.dual-timeline {
    align-items: start;
}

.specialties-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.4rem;
    align-content: start;
}

.specialties-list li {
    position: relative;
    padding: 0 0 0 1rem;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.specialties-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: var(--accent);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
    gap: 1rem;
    align-items: stretch;
}

.contact-cards {
    grid-template-columns: repeat(3, 1fr);
}

.contact-card a,
.contact-card strong {
    font-size: 1.05rem;
    color: var(--text);
}

.contact-panel ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
}

.contact-note {
    margin-top: 1rem;
}

.footer-brand {
    width: 132px;
    min-height: 52px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.footer-brand img {
    width: 100%;
    max-height: 40px;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: none;
}

.footer-title {
    font-weight: 600;
    color: var(--text);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--accent-deep);
}

@media (max-width: 980px) {
    .site-header,
    .site-footer,
    .hero,
    .stats-band,
    .apple-showcase,
    .signature-band,
    .section-grid,
    .story-band,
    .logo-section,
    .cta-banner,
    .page-hero,
    .contact-layout {
        border-radius: 26px;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.82);
    }

    .nav-toggle span {
        width: 18px;
        height: 2px;
        margin: 0 auto;
        border-radius: 999px;
        background: var(--text);
    }

    .site-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.5rem;
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .hero,
    .hero-visual,
    .stats-band,
    .apple-showcase,
    .signature-band,
    .section-grid,
    .story-band,
    .feature-list,
    .service-grid,
    .check-list,
    .logo-grid,
    .contact-cards,
    .contact-layout,
    .cta-banner {
        grid-template-columns: 1fr;
    }

    .hero-home .hero-portrait {
        min-height: 420px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .app-list {
        grid-template-columns: 1fr;
    }

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

    .specialties-list {
        grid-template-columns: 1fr;
    }

    .stats-band article {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .stats-band article:first-child {
        border-top: 0;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
