:root {
    --bg: #f3f7fd;
    --bg-alt: #f8fbff;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-border: rgba(20, 33, 61, 0.09);
    --surface-border-strong: rgba(20, 33, 61, 0.16);
    --text: #14213d;
    --muted: #5f6f87;
    --accent: #14213d;
    --accent-strong: #26457d;
    --accent-soft: rgba(38, 69, 125, 0.1);
    --accent-light: #7ab8f5;
    --accent-teal: #1d8f80;
    --shadow: 0 24px 60px rgba(20, 33, 61, 0.1);
    --shadow-soft: 0 14px 34px rgba(20, 33, 61, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(122, 184, 245, 0.2), transparent 24%),
        radial-gradient(circle at 85% 15%, rgba(29, 143, 128, 0.16), transparent 18%),
        radial-gradient(circle at bottom right, rgba(38, 69, 125, 0.12), transparent 24%),
        linear-gradient(180deg, #fcfeff 0%, var(--bg) 52%, #eef4fd 100%);
    background-attachment: fixed;
}

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

.container {
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1.5rem 0 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.05rem 1.35rem;
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.82)),
        var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    font-size: 0.95rem;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 12px 26px rgba(20, 33, 61, 0.18);
}

.brand-text {
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle span {
    position: absolute;
    width: 1.1rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) {
    transform: translateY(-0.32rem);
}

.nav-toggle span:nth-child(3) {
    transform: translateY(0.32rem);
}

.navbar.is-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg);
}

.navbar.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.navbar.is-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: rgba(38, 69, 125, 0.22);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(20, 33, 61, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.nav-links a {
    position: relative;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text);
    background: rgba(38, 69, 125, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.nav-links a.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 14px 30px rgba(20, 33, 61, 0.2);
}

.page-content {
    padding: 2.75rem 0 5.5rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2.5rem;
}

.hero-copy,
.hero-panel,
.info-card,
.stack-card,
.cta-banner,
.project-card,
.project-detail,
.formation-card,
.about-card,
.about-side-card,
.contact-card,
.demo-copy,
.demo-preview-panel,
.demo-section-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.86)),
        var(--surface-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hero-copy > *,
.hero-panel > *,
.info-card > *,
.stack-card > *,
.cta-banner > *,
.project-card > *,
.project-detail > *,
.formation-card > *,
.about-card > *,
.about-side-card > *,
.contact-card > *,
.demo-copy > *,
.demo-preview-panel > *,
.demo-section-card > * {
    position: relative;
    z-index: 1;
}

.hero-copy::before,
.hero-panel::before,
.info-card::before,
.stack-card::before,
.cta-banner::before,
.project-card::before,
.project-detail::before,
.formation-card::before,
.about-card::before,
.about-side-card::before,
.contact-card::before,
.demo-copy::before,
.demo-preview-panel::before,
.demo-section-card::before {
    content: "";
    position: absolute;
    inset: -18% auto auto 45%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    /* background: radial-gradient(circle, rgba(122, 184, 245, 0.18), transparent 68%); */
    pointer-events: none;
}

.info-card:hover,
.stack-card:hover,
.project-card:hover,
.formation-card:hover,
.about-card:hover,
.about-side-card:hover,
.contact-card:hover,
.demo-section-card:hover {
    transform: translateY(-4px);
    border-color: rgba(38, 69, 125, 0.16);
    box-shadow: 0 28px 58px rgba(20, 33, 61, 0.12);
}

.hero-copy h1 {
    margin: 1.1rem 0 1rem;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.06em;
    max-width: 10ch;
    text-wrap: balance;
}

.hero-heading {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    min-width: 0;
    width: 100%;
    max-width: 760px;
    margin-top: 0.95rem;
    margin-bottom: 1.35rem;
}

.hero-copy > .section-label {
    margin-bottom: 0.2rem;
}

.hero-heading h1 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    max-width: 8ch;
}

.hero-portrait-frame {
    flex: 0 0 clamp(144px, 18vw, 190px);
    width: clamp(144px, 18vw, 190px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92));
    box-shadow:
        0 22px 42px rgba(20, 33, 61, 0.14),
        0 0 0 1px rgba(20, 33, 61, 0.06);
}

.hero-portrait {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    transform: scale(1.42);
    transform-origin: center 22%;
}

.hero-lead {
    max-width: 60ch;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(20, 33, 61, 0.2);
}

.button-secondary {
    border-color: rgba(122, 184, 245, 0.18);
    background: linear-gradient(135deg, rgba(122, 184, 245, 0.16), rgba(255, 255, 255, 0.92));
    color: var(--text);
}

.button-primary:hover,
.button-primary:focus-visible {
    box-shadow: 0 22px 42px rgba(20, 33, 61, 0.24);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: rgba(122, 184, 245, 0.28);
    background: linear-gradient(135deg, rgba(122, 184, 245, 0.24), rgba(255, 255, 255, 0.98));
    box-shadow: 0 18px 34px rgba(122, 184, 245, 0.16);
}

.hero-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.95)),
        #ffffff;
}

.hero-panel-title {
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
}

.quick-facts {
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.quick-facts li {
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    line-height: 1.7;
}

.quick-facts li:first-child {
    padding-top: 0;
    border-top: 0;
}

.quick-facts a,
.text-link {
    color: var(--accent-strong);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(122, 184, 245, 0.36);
    text-underline-offset: 0.18em;
}

.content-section {
    margin-top: 2.5rem;
}

.about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid rgba(38, 69, 125, 0.12);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(242, 248, 255, 0.92));
    box-shadow: var(--shadow-soft);
}

.about-cta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-heading h2,
.cta-banner h2 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-heading-inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

.info-grid,
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.formation-list {
    display: grid;
    gap: 1.25rem;
}

.formation-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.75rem;
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    box-shadow: var(--shadow);
}

.formation-period {
    align-self: start;
    width: fit-content;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.formation-body {
    display: grid;
    gap: 1rem;
}

.formation-header h3 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

.formation-option {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0.7rem 0 0;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(38, 69, 125, 0.08);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.formation-school {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.6;
}

.formation-detail {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.formation-points {
    display: grid;
    gap: 0.75rem;
    padding-left: 1.1rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.info-card h3,
.stack-card h3,
.projects-grid h3 {
    margin: 0 0 0.9rem;
    font-size: 1.18rem;
    letter-spacing: -0.03em;
}

.info-card p,
.stack-card p,
.cta-banner p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.stack-list {
    padding-left: 1.1rem;
    margin: 0;
    color: var(--muted);
    line-height: 2;
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2.5rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.82rem;
    border: 1px solid rgba(38, 69, 125, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-strong);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.06);
}

.section-heading {
    max-width: 680px;
    margin-bottom: 2.25rem;
}

.section-heading h1,
.project-detail h1 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.section-heading p,
.project-detail p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--muted);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-detail-page {
    display: grid;
    gap: 1rem;
}

.project-card,
.project-detail {
    padding: 1.65rem;
    border: 1px solid rgba(38, 69, 125, 0.12);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.project-type,
.project-index {
    font-size: 0.82rem;
    color: var(--muted);
}

.project-index {
    font-family: Consolas, "Courier New", monospace;
}

.project-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
}

.project-card h3 {
    font-size: 1.4rem;
    line-height: 1.2;
}

.project-card p {
    margin: 0 0 1.4rem;
    color: var(--muted);
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.55rem;
}

.project-tags span {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(38, 69, 125, 0.12), rgba(255, 255, 255, 0.95));
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.project-tags .project-tag-status {
    background: rgba(29, 143, 128, 0.14);
    color: var(--accent-teal);
}

.project-info-panel {
    margin: 0 0 2rem;
    padding: 1.35rem;
    border: 1px solid rgba(38, 69, 125, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92));
    box-shadow: var(--shadow-soft);
}

.project-info-panel h2 {
    margin: 0 0 1rem;
}

.project-info-list {
    display: grid;
    gap: 0.9rem;
}

.project-info-item {
    display: grid;
    gap: 0.25rem;
}

.project-info-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.project-info-item p,
.project-info-item a {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.project-info-item a {
    color: var(--accent-teal);
    font-weight: 600;
    text-decoration: none;
}

.project-info-item a:hover,
.project-info-item a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 2.5rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(38, 69, 125, 0.12);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 255, 0.94));
    box-shadow: var(--shadow-soft);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--accent-strong);
    backdrop-filter: blur(10px);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 2.5rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(38, 69, 125, 0.12);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(246, 249, 255, 0.94));
    box-shadow: var(--shadow-soft);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--accent-strong);
    backdrop-filter: blur(10px);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 32px rgba(20, 33, 61, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.project-link:hover,
.project-link:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 32px rgba(20, 33, 61, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.contact-page {
    display: grid;
    gap: 2rem;
}

.about-page {
    display: grid;
    gap: 2rem;
}

.about-intro {
    max-width: 820px;
}

.about-layout,
.about-columns {
    display: grid;
    gap: 1.5rem;
}

.about-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    align-items: stretch;
}

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

.about-card,
.about-side-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    border: 1px solid rgba(38, 69, 125, 0.12);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.86));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.about-card h2 {
    margin: 1rem 0 0.75rem;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.about-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.about-card p + p {
    margin-top: 1rem;
}

.about-card > .section-label {
    align-self: flex-start;
}

.contact-intro {
    max-width: 760px;
}

.contact-intro h1 {
    margin: 1rem 0 0.85rem;
    font-size: clamp(2.3rem, 4.5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.contact-intro p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--muted);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.contact-card {
    padding: 2rem;
    border: 1px solid rgba(38, 69, 125, 0.12);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.86));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.contact-form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(38, 69, 125, 0.12);
}

.contact-form-kicker {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-form-header h2 {
    margin: 0 0 0.7rem;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.contact-form-header p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}

.contact-summary {
    display: grid;
    gap: 1.5rem;
}

.contact-summary p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.form-field {
    display: grid;
    gap: 0.65rem;
}

.form-field label {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    color: var(--text);
    font: inherit;
    line-height: 1.65;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 190px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #94a3b8;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow:
        0 0 0 4px rgba(15, 23, 42, 0.04),
        0 14px 28px rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
    outline: none;
}

.form-error {
    margin: 0;
    font-size: 0.9rem;
    color: #b91c1c;
}

.form-alert {
    margin-bottom: 1.25rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    font-weight: 600;
    line-height: 1.6;
}

.form-alert-success {
    border: 1px solid rgba(34, 197, 94, 0.18);
    background: rgba(240, 253, 244, 0.9);
    color: #166534;
}

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.25rem;
}

.form-help {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.contact-submit {
    min-width: 220px;
    box-shadow: 0 18px 34px rgba(20, 33, 61, 0.2);
}

.contact-submit:hover,
.contact-submit:focus-visible {
    box-shadow: 0 22px 42px rgba(20, 33, 61, 0.24);
}

.contact-aside {
    display: grid;
    gap: 1.5rem;
}

.contact-methods {
    display: grid;
    gap: 0.9rem;
}

.contact-method {
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(38, 69, 125, 0.12);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-method:hover,
.contact-method:focus-visible {
    border-color: rgba(122, 184, 245, 0.28);
    box-shadow: 0 18px 32px rgba(20, 33, 61, 0.1);
    transform: translateY(-3px);
    outline: none;
}

.contact-method-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-method strong {
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.contact-note {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.contact-note h2 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.contact-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.demo-page {
    display: grid;
    gap: 1rem;
}

.demo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 520px);
    gap: 1.75rem;
    align-items: start;
}

.demo-copy,
.demo-preview-panel,
.demo-section-card {
    border: 1px solid rgba(38, 69, 125, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.86));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.demo-copy,
.demo-preview-panel {
    padding: 1.75rem;
    border-radius: 28px;
}

.demo-copy h1 {
    margin: 1rem 0 0.9rem;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.demo-lead {
    margin: 0;
    max-width: 62ch;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--muted);
}

.demo-copy .project-tags {
    margin-top: 1.5rem;
}

.demo-section-card {
    margin-top: 1.25rem;
    padding: 1.35rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92));
}

.demo-section-card h2,
.demo-preview-header h2 {
    margin: 0 0 0.7rem;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.demo-section-card p,
.demo-preview-header p,
.phone-placeholder p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.demo-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
}

.demo-preview-panel {
    position: sticky;
    top: 7rem;
    display: grid;
    gap: 1.4rem;
    justify-items: center;
    background:
        radial-gradient(circle at top, rgba(122, 184, 245, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.94));
}

.demo-preview-header {
    display: grid;
    gap: 0.75rem;
    width: 100%;
}

.phone-frame {
    --phone-device-width: clamp(320px, 29vw, 408px);
    width: min(100%, var(--phone-device-width));
    margin: 0 auto;
    padding: 0.85rem;
    border-radius: 42px;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    flex-shrink: 0;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 28px 60px rgba(15, 23, 42, 0.24);
}

.phone-frame-top {
    display: flex;
    justify-content: center;
    padding-bottom: 0.8rem;
}

.phone-speaker {
    width: 5.6rem;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.25);
}

.phone-screen {
    position: relative;
    aspect-ratio: 393 / 852;
    overflow: hidden;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #ffffff;
}

.phone-placeholder {
    display: grid;
    place-content: center;
    min-height: 100%;
    padding: 1.5rem;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(15, 23, 42, 0.05), transparent 35%),
        repeating-linear-gradient(
            180deg,
            rgba(148, 163, 184, 0.06) 0,
            rgba(148, 163, 184, 0.06) 1px,
            transparent 1px,
            transparent 22px
        );
}

.phone-placeholder-label {
    display: inline-flex;
    justify-self: center;
    margin-bottom: 0.9rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.phone-placeholder strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    color: var(--text);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

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

@media (prefers-reduced-motion: no-preference) {
    .hero-copy,
    .hero-panel,
    .section-heading,
    .cta-banner,
    .about-card,
    .about-side-card,
    .contact-card,
    .project-detail,
    .demo-copy,
    .demo-preview-panel {
        animation: fade-up 0.7s ease both;
    }

    .info-grid > *,
    .stack-grid > *,
    .projects-grid > *,
    .formation-list > *,
    .about-columns > *,
    .contact-methods > *,
    .demo-section-card {
        animation: fade-up 0.75s ease both;
    }

    .info-grid > :nth-child(2),
    .stack-grid > :nth-child(2),
    .projects-grid > :nth-child(2),
    .formation-list > :nth-child(2),
    .about-columns > :nth-child(2),
    .contact-methods > :nth-child(2) {
        animation-delay: 0.08s;
    }

    .info-grid > :nth-child(3),
    .stack-grid > :nth-child(3),
    .projects-grid > :nth-child(3),
    .formation-list > :nth-child(3),
    .contact-methods > :nth-child(3) {
        animation-delay: 0.16s;
    }
}

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

@media (max-width: 720px) {
    .site-header {
        padding-top: 0.9rem;
    }

    .navbar {
        align-items: center;
        justify-content: space-between;
        border-radius: 18px;
        gap: 1rem;
        padding: 0.85rem 1rem;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-toggle {
        position: relative;
        display: inline-flex;
        flex: 0 0 auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0.45rem;
        padding: 0.45rem;
        border-radius: 18px;
        background: rgba(248, 250, 252, 0.9);
    }

    .navbar.is-open .nav-links {
        display: grid;
    }

    .nav-links a {
        width: 100%;
        flex: initial;
        text-align: center;
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 1120px) {
    .hero,
    .info-grid,
    .stack-grid,
    .contact-layout,
    .about-layout,
    .about-columns,
    .cta-banner,
    .projects-grid,
    .demo-hero {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        display: grid;
    }

    .section-heading-inline {
        align-items: start;
        flex-direction: column;
    }

    .container {
        width: min(1180px, calc(100% - 2rem));
    }

    .formation-card {
        grid-template-columns: 1fr;
    }

    .demo-preview-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .hero-copy,
    .hero-panel,
    .info-card,
    .stack-card,
    .formation-card,
    .about-card,
    .about-side-card,
    .contact-card,
    .project-card,
    .cta-banner,
    .project-detail,
    .demo-copy,
    .demo-preview-panel {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .page-content {
        padding: 2rem 0 4rem;
    }

    .hero,
    .content-section,
    .cta-banner {
        margin-top: 1.5rem;
        margin-bottom: 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-heading {
        gap: 0.9rem;
        margin-top: 0.8rem;
        margin-bottom: 1rem;
    }

    .hero-portrait-frame {
        flex-basis: 96px;
        width: 96px;
    }

    .button {
        width: 100%;
    }

    .contact-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .about-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .phone-frame {
        width: min(100%, 340px);
        border-radius: 32px;
    }
}
