@font-face {
    font-family: "Comfortaa";
    src: url("assets/fonts/Comfortaa.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 300 700;
}

:root {
    --night: #061728;
    --night-2: #0a2239;
    --navy: #0d3151;
    --navy-soft: #17486e;
    --blue: #2e91df;
    --cyan: #52c5df;
    --mint: #6be0ba;
    --ink: #0b2943;
    --muted: #425d72;
    --page: #d5e3ec;
    --page-deep: #d5e3ec;
    --page-soft: #d5e3ec;
    --card: #eaf1f6;
    --card-deep: #dfeaf1;
    --line: #aebfcd;
    --line-soft: rgba(13, 49, 81, .14);
    --shadow: 0 24px 60px rgba(6, 23, 40, .13);
    --shadow-soft: 0 14px 36px rgba(6, 23, 40, .09);
    --radius: 25px;
    --grid-gap: 26px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--page);
    color: var(--ink);
    font-family: "Comfortaa", "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.dialog-open {
    overflow: hidden;
}

button,
a {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

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

section,
header {
    scroll-margin-top: 82px;
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 3000;
    padding: 11px 17px;
    border-radius: 0 0 10px 10px;
    background: var(--cyan);
    color: var(--night);
    font-weight: 800;
    text-decoration: none;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    border-bottom: 1px solid rgba(8, 57, 103, .12);
    background: rgba(123, 180, 244, .9);
    backdrop-filter: blur(18px);
}

.nav-container {
    width: min(1200px, 92%);
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #083764;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .01em;
    text-decoration: none;
}

.logo-mark {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(8, 57, 103, .18);
    border-radius: 12px;
    background: rgba(232, 248, 255, .52);
    color: #083764;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;
    box-shadow: 0 10px 28px rgba(8, 57, 103, .1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: #123f6d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #041f3d;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.menu-button {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.menu-button > span:not(.sr-only) {
    width: 20px;
    height: 2px;
    border-radius: 3px;
    background: white;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-button[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
}

.menu-button[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 800px;
    padding: 132px 0 80px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 38%, rgba(38, 118, 171, .26), transparent 34%),
        radial-gradient(circle at 18% 88%, rgba(32, 109, 165, .17), transparent 31%),
        linear-gradient(125deg, #051421 0%, #071b2e 52%, #0d2d49 100%);
    color: #eff7fb;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image:
        linear-gradient(rgba(126, 182, 214, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 182, 214, .18) 1px, transparent 1px);
    background-size: 82px 82px;
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 135px;
    background: linear-gradient(to bottom, transparent, rgba(5, 20, 33, .42));
    pointer-events: none;
}

.hero-current {
    position: absolute;
    width: 760px;
    height: 330px;
    border-radius: 50%;
    filter: blur(52px);
    opacity: .19;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
}

.current-one {
    top: 12%;
    right: -19%;
    background: linear-gradient(90deg, transparent, #2b97d3 42%, #5dc6de 78%, transparent);
    transform: translate3d(0, 0, 0) rotate(-18deg);
    animation: currentDriftOne 16s ease-in-out infinite alternate;
}

.current-two {
    bottom: -13%;
    left: -22%;
    background: linear-gradient(90deg, transparent, #1a6ca7 46%, #338ec6 76%, transparent);
    transform: translate3d(0, 0, 0) rotate(12deg);
    animation: currentDriftTwo 19s ease-in-out infinite alternate;
}

@keyframes currentDriftOne {
    to { transform: translate3d(-100px, 55px, 0) rotate(-8deg) scale(1.06); }
}

@keyframes currentDriftTwo {
    to { transform: translate3d(110px, -46px, 0) rotate(2deg) scale(.95); }
}

.hero-grid {
    position: relative;
    z-index: 2;
    width: min(1200px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    align-items: center;
    gap: 76px;
}

.eyebrow {
    margin-bottom: 14px;
    color: #0b567c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #55c7df;
}

.hero h1 {
    color: #f5f9fc;
    font-size: clamp(60px, 7.5vw, 100px);
    font-weight: 820;
    letter-spacing: -.057em;
    line-height: .9;
}

.hero-role {
    margin-top: 25px;
    color: #8dd8ea;
    font-size: clamp(23px, 3vw, 35px);
    font-weight: 700;
    letter-spacing: -.02em;
}

.hero-text {
    max-width: 640px;
    margin-top: 21px;
    color: #c1d1dc;
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 52px;
    padding: 13px 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

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

.button svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button-primary {
    background: #52c7e3;
    color: #041a2b;
    box-shadow: 0 14px 34px rgba(52, 157, 201, .22);
}

.button-primary:hover {
    background: #6bd2e9;
    box-shadow: 0 18px 42px rgba(52, 157, 201, .3);
}

.button-ghost {
    border-color: rgba(203, 224, 237, .25);
    background: rgba(255, 255, 255, .04);
    color: #e7f0f6;
}

.button-ghost:hover {
    border-color: rgba(112, 200, 225, .55);
    background: rgba(82, 199, 227, .08);
}

.availability {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #b8cbd8;
    font-size: 15px;
    font-weight: 650;
}

.availability span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 5px rgba(107, 224, 186, .08);
}

.analytics-panel {
    position: relative;
    padding: 25px;
    border: 1px solid rgba(179, 214, 233, .18);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(18, 52, 78, .82), rgba(8, 27, 45, .88));
    box-shadow: 0 34px 80px rgba(0, 7, 15, .32);
    overflow: hidden;
    isolation: isolate;
}

.analytics-panel::before {
    content: "";
    position: absolute;
    top: -130px;
    right: -110px;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(49, 139, 192, .2), transparent 70%);
    z-index: -1;
}

.panel-topline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.panel-topline div span,
.panel-topline div strong {
    display: block;
}

.panel-topline div span {
    color: #8ca9ba;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.panel-topline div strong {
    margin-top: 4px;
    color: #eef6fa;
    font-size: 18px;
}

.panel-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(107, 224, 186, .18);
    border-radius: 999px;
    background: rgba(107, 224, 186, .06);
    color: #aee7d3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.panel-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
}

.panel-metrics {
    position: relative;
    margin: 23px 0 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.panel-preview {
    position: relative;
    margin-top: 23px;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(167, 205, 228, .18);
    border-radius: 18px;
    background: #dce8ef;
    text-decoration: none;
}

.panel-preview img {
    width: 100%;
    aspect-ratio: 16 / 8.7;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.panel-preview::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 54%;
    background: linear-gradient(to bottom, transparent, rgba(4, 18, 31, .88));
    pointer-events: none;
}

.panel-preview:hover img {
    transform: scale(1.025);
}

.panel-preview-caption {
    position: absolute;
    right: 17px;
    bottom: 14px;
    left: 17px;
    z-index: 1;
}

.panel-preview-caption strong,
.panel-preview-caption small {
    display: block;
}

.panel-preview-caption strong {
    color: #f1f7fa;
    font-size: 14px;
}

.panel-preview-caption small {
    margin-top: 2px;
    color: #b8cdd9;
    font-size: 11px;
}

.panel-metrics a {
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(167, 205, 228, .13);
    border-radius: 17px;
    background: rgba(220, 237, 247, .055);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.panel-metrics a:hover {
    transform: translateY(-3px);
    border-color: rgba(82, 199, 227, .4);
    background: rgba(82, 199, 227, .08);
}

.panel-metrics span,
.panel-metrics strong {
    display: block;
}

.panel-metrics span {
    color: #9db4c3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.panel-metrics strong {
    margin-top: 7px;
    color: #f1f7fa;
    font-size: 29px;
    line-height: 1;
}

.panel-evidence-copy {
    color: #b7cbd7;
    font-size: 13px;
    line-height: 1.65;
}

.panel-tools {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-tools span {
    padding: 6px 10px;
    border: 1px solid rgba(169, 205, 226, .15);
    border-radius: 999px;
    background: rgba(214, 232, 243, .05);
    color: #bfd1dc;
    font-size: 10px;
    font-weight: 800;
}

/* Interactive project-sphere hero prototype */
.hero {
    min-height: 100svh;
    padding: 94px 0 24px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(166, 236, 232, .62), transparent 34%),
        linear-gradient(118deg, #7ed2de 0%, #76bce9 48%, #78a8f5 100%);
    color: #0a3969;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .17;
    background-image:
        linear-gradient(rgba(7, 57, 105, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 57, 105, .14) 1px, transparent 1px);
    background-size: 92px 92px;
    mask-image: linear-gradient(to bottom, transparent, black 19%, black 77%, transparent);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 95px;
    background: linear-gradient(to bottom, transparent, var(--page));
    pointer-events: none;
}

.hero-wave {
    position: absolute;
    z-index: 1;
    width: 50%;
    height: 120px;
    border-top: 1px dashed rgba(8, 58, 107, .34);
    border-radius: 50%;
    pointer-events: none;
}

.wave-one {
    top: 15%;
    right: -6%;
    transform: rotate(8deg);
}

.wave-two {
    bottom: 4%;
    left: -17%;
    transform: rotate(-8deg);
    opacity: .62;
}

.hero-grid {
    position: relative;
    z-index: 2;
    width: min(1420px, 94%);
    min-height: calc(100svh - 118px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(470px, 1.04fr) minmax(450px, .96fr);
    align-items: center;
    gap: clamp(34px, 5vw, 86px);
}

.globe-column {
    min-width: 0;
    display: grid;
    justify-items: center;
}

.sphere-wrap {
    position: relative;
    width: clamp(430px, 43vw, 620px);
    aspect-ratio: 1;
    isolation: isolate;
    touch-action: none;
    cursor: grab;
}

.sphere-wrap:active {
    cursor: grabbing;
}

.sphere-canvas,
.sphere-nodes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sphere-canvas {
    z-index: 1;
    display: block;
    filter: drop-shadow(0 26px 46px rgba(9, 55, 99, .14));
}

.sphere-nodes {
    z-index: 3;
    pointer-events: none;
}

.sphere-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 2px solid rgba(3, 38, 75, .92);
    border-radius: 50%;
    background: #174d8b;
    box-shadow: 0 0 0 4px rgba(237, 252, 255, .2), 0 6px 14px rgba(4, 41, 79, .22);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: opacity .12s linear, box-shadow .2s ease, background .2s ease;
    will-change: transform, opacity;
}

.sphere-node.is-front {
    opacity: 1;
    pointer-events: auto;
}

.sphere-node:hover,
.sphere-node:focus-visible,
.sphere-node.is-active {
    background: #062d5b;
    box-shadow: 0 0 0 6px rgba(243, 254, 255, .76), 0 8px 20px rgba(4, 41, 79, .3);
    outline: none;
}

.sphere-tooltip {
    position: absolute;
    z-index: 6;
    width: min(310px, 46%);
    padding: 19px 20px 18px;
    border: 1px solid rgba(9, 58, 105, .16);
    border-radius: 20px;
    background: rgba(247, 253, 255, .96);
    color: #0a3969;
    box-shadow: 0 22px 48px rgba(7, 46, 87, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(.98);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.sphere-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sphere-tooltip-kind {
    display: block;
    color: #2a6ca5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sphere-tooltip-title {
    margin-top: 8px;
    display: block;
    color: #062e5b;
    font-size: 18px;
    line-height: 1.35;
}

.sphere-tooltip-copy {
    margin-top: 8px;
    color: #2d577c;
    font-size: 13px;
    line-height: 1.55;
}

.sphere-tooltip-link {
    margin-top: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0b4c84;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.sphere-hint {
    margin-top: -2px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(8, 56, 103, .76);
    font-size: 13px;
    font-weight: 700;
}

.sphere-hint span {
    font-size: 20px;
}

.hero-copy {
    max-width: 650px;
}

.hero .eyebrow-light {
    color: #0a4e84;
}

.hero h1 {
    max-width: 650px;
    color: #08386b;
    font-size: clamp(54px, 5.3vw, 76px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.hero-role {
    margin-top: 19px;
    color: #155388;
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 700;
    letter-spacing: -.025em;
}

.hero-text {
    max-width: 620px;
    margin-top: 20px;
    color: #123f6d;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.72;
}

.hero-actions {
    margin-top: 27px;
    gap: 10px;
}

.hero .button {
    min-height: 49px;
    padding: 12px 19px;
    border-color: rgba(7, 52, 96, .23);
    color: #083765;
    font-size: 13px;
}

.hero .button-primary {
    border-color: #083b6d;
    background: #083b6d;
    color: #f2fbff;
    box-shadow: 0 14px 30px rgba(8, 59, 109, .18);
}

.hero .button-primary:hover {
    background: #062f59;
    box-shadow: 0 18px 36px rgba(8, 59, 109, .24);
}

.hero .button-ghost {
    background: rgba(239, 251, 255, .24);
}

.hero .button-ghost:hover {
    border-color: rgba(7, 52, 96, .45);
    background: rgba(239, 251, 255, .42);
}

.hero .availability {
    margin-top: 25px;
    color: #174a77;
    font-size: 14px;
}

.hero .availability span {
    background: #08705e;
    box-shadow: 0 0 0 5px rgba(8, 112, 94, .1);
}

.project-card,
.certificate-card {
    scroll-margin-top: 105px;
}

.project-card.sphere-target-focus,
.certificate-card.sphere-target-focus {
    animation: projectFocus 1.35s ease;
}

@keyframes projectFocus {
    0%, 100% { box-shadow: var(--shadow-soft); }
    34% { box-shadow: 0 0 0 5px rgba(46, 145, 223, .22), 0 28px 64px rgba(6, 23, 40, .18); }
}

.section {
    width: min(1160px, 90%);
    margin: 0 auto;
    padding: 96px 0;
}

.section-band {
    width: 100%;
}

.inner-section {
    padding-top: 92px;
    padding-bottom: 96px;
}

.section-intro {
    margin-bottom: 46px;
}

.split-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    align-items: end;
    gap: 70px;
}

.section-intro h2 {
    color: var(--ink);
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 820;
    letter-spacing: -.045em;
    line-height: 1.03;
}

.split-intro > p {
    max-width: 560px;
    padding-bottom: 4px;
    color: #365369;
    font-size: 17px;
    line-height: 1.75;
}

.about-section {
    background: var(--page-soft);
    box-shadow: 0 0 0 100vmax var(--page-soft);
    clip-path: inset(0 -100vmax);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: 55px;
    align-items: start;
}

.about-copy {
    padding: 25px 28px;
    border-left: 0;
}

.about-copy p {
    color: #29485f;
    font-size: 17px;
    line-height: 1.8;
}

.about-copy p + p {
    margin-top: 17px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.value-grid article {
    min-height: 176px;
    padding: 23px;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    background: rgba(235, 242, 247, .68);
    box-shadow: var(--shadow-soft);
}

.value-grid article > span {
    display: block;
    color: #0b567c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.value-grid strong {
    margin-top: 14px;
    display: block;
    color: var(--ink);
    font-size: 18px;
}

.value-grid p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.skills-section {
    background: var(--page-deep);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.skill-card {
    min-height: 280px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(13, 49, 81, .13);
    border-radius: 21px;
    background: rgba(225, 235, 242, .84);
    box-shadow: var(--shadow-soft);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    background: #e5eef4;
    box-shadow: var(--shadow);
}

.skill-code {
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--navy);
    color: #89d9e9;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
}

.skill-card h3 {
    color: var(--ink);
    font-size: 23px;
}

.skill-card p {
    margin-top: 10px;
    color: #36546b;
    font-size: 14px;
    line-height: 1.7;
}

.skill-card small {
    margin-top: auto;
    padding-top: 20px;
    color: #166f9e;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.projects-section {
    width: min(1180px, 92%);
    padding-top: 98px;
    padding-bottom: 106px;
    background: var(--page);
}

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

.project-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(13, 49, 81, .15);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.project-media {
    position: relative;
    aspect-ratio: 16 / 8.9;
    overflow: hidden;
    background: #102d47;
}

.project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3, 14, 25, .02) 48%, rgba(3, 16, 29, .55));
    pointer-events: none;
}

.project-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .55s ease;
}

.project-card:hover .project-media > img {
    transform: scale(1.025);
}

.project-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
}

.project-mosaic > img {
    min-width: 0;
    min-height: 0;
}

.project-index,
.project-kind,
.media-metric {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(5, 25, 42, .86);
    color: #f2f8fb;
    backdrop-filter: blur(9px);
}

.project-index {
    top: 18px;
    left: 18px;
    min-width: 43px;
    padding: 7px 11px;
    color: #7cd2e6;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
}

.project-kind {
    top: 18px;
    right: 18px;
    padding: 7px 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.media-metric {
    right: 18px;
    bottom: 17px;
    padding: 8px 12px;
    color: #d8e9f2;
    font-size: 11px;
    font-weight: 700;
}

.media-metric strong {
    margin-right: 4px;
    color: #82d6e7;
    font-size: 15px;
}

.project-body {
    min-height: 316px;
    padding: 28px 29px 26px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.project-overline {
    color: #0b567c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.project-body h3 {
    margin-top: 11px;
    color: var(--ink);
    font-size: clamp(24px, 2.5vw, 31px);
    line-height: 1.17;
    letter-spacing: -.025em;
}

.project-body > p:not(.project-overline) {
    margin-top: 13px;
    color: #355168;
    font-size: 15px;
    line-height: 1.7;
}

.project-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.project-tags span {
    padding: 7px 10px;
    border: 1px solid rgba(13, 49, 81, .08);
    border-radius: 9px;
    background: #d8e4ec;
    color: #183b58;
    font-size: 10px;
    font-weight: 800;
}

.project-button {
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 12px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 12px;
    background: var(--navy);
    color: #f1f7fa;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.project-button:hover {
    background: #17496f;
    transform: translateY(-2px);
}

.project-button span {
    color: #82d6e7;
    font-size: 18px;
}

.project-grid > .last-grid-card,
.certification-grid > .last-grid-card {
    width: calc((100% - var(--grid-gap)) / 2);
    grid-column: 1 / -1;
    justify-self: center;
}

.certifications-section {
    background: var(--page-deep);
}

.certificate-card {
    min-width: 0;
    min-height: 294px;
    padding: 27px 28px 25px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(13, 49, 81, .16);
    border-radius: 22px;
    background: var(--card-deep);
    box-shadow: var(--shadow-soft);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    background: #e5eef4;
    box-shadow: var(--shadow);
}

.certificate-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.certificate-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--navy);
    color: #82d6e7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
}

.certificate-top strong,
.certificate-top small {
    display: block;
}

.certificate-top strong {
    color: var(--ink);
    font-size: 15px;
}

.certificate-top small {
    margin-top: 2px;
    color: #536b7d;
    font-size: 11px;
    font-weight: 650;
}

.certificate-card h3 {
    margin-top: 24px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.28;
    letter-spacing: -.018em;
}

.certificate-card > p {
    margin-top: 10px;
    color: #405a6e;
    font-size: 14px;
    line-height: 1.65;
}

.certificate-actions {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.certificate-actions a {
    min-height: 40px;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(13, 49, 81, .21);
    border-radius: 999px;
    color: #123a5b;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.certificate-actions a:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: #f3f8fb;
}

.certificate-actions span {
    color: #1683b8;
    font-size: 15px;
}

.certificate-actions a:hover span {
    color: #82d6e7;
}

.contact-section {
    position: relative;
    min-height: calc(100svh - 72px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(to bottom, var(--page) 0, rgba(213, 227, 236, 0) 92px),
        radial-gradient(circle at 18% 18%, rgba(166, 236, 232, .62), transparent 34%),
        linear-gradient(118deg, #7ed2de 0%, #76bce9 48%, #78a8f5 100%);
    color: #0a3969;
    isolation: isolate;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .17;
    background-image:
        linear-gradient(rgba(7, 57, 105, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 57, 105, .14) 1px, transparent 1px);
    background-size: 92px 92px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 78%, transparent);
}

.contact-section::after {
    content: "";
    position: absolute;
    top: 24%;
    right: -7%;
    z-index: -1;
    width: 52%;
    height: 120px;
    border-top: 1px dashed rgba(8, 58, 107, .32);
    border-radius: 50%;
    transform: rotate(8deg);
}

.contact-inner {
    position: relative;
    z-index: 1;
    padding-top: 132px;
    padding-bottom: 105px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 80px;
}

.contact-section .eyebrow-light {
    color: #0a4e84;
}

.contact-inner h2 {
    max-width: 760px;
    color: #08386b;
    font-size: clamp(31px, 4vw, 49px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.contact-inner > div:first-child > p:last-child {
    margin-top: 14px;
    color: #174a77;
    font-size: 13px;
}

.contact-actions {
    min-width: 190px;
    display: grid;
    gap: 10px;
}

.contact-actions a {
    min-height: 48px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(7, 52, 96, .23);
    border-radius: 999px;
    background: rgba(239, 251, 255, .24);
    color: #083765;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.contact-actions a:hover {
    border-color: rgba(7, 52, 96, .45);
    background: rgba(239, 251, 255, .42);
}

.contact-actions span {
    color: #0b4c84;
}

footer {
    min-height: 72px;
    padding: 18px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(8, 57, 103, .14);
    background: linear-gradient(118deg, #7ed2de 0%, #76bce9 48%, #78a8f5 100%);
    color: #174a77;
    font-size: 12px;
}

footer p {
    color: #083765;
    font-weight: 700;
}

.project-dialog {
    width: min(1060px, 94vw);
    max-height: 91vh;
    margin: auto;
    border: 0;
    border-radius: 26px;
    background: transparent;
    color: var(--ink);
    overflow: visible;
}

.project-dialog::backdrop {
    background: rgba(2, 10, 18, .78);
    backdrop-filter: blur(8px);
}

.dialog-shell {
    position: relative;
    max-height: 91vh;
    padding: 39px;
    border: 1px solid rgba(180, 203, 218, .55);
    border-radius: 26px;
    background: #e7eff4;
    box-shadow: 0 38px 100px rgba(0, 8, 18, .34);
    overflow-y: auto;
}

.dialog-close {
    position: sticky;
    top: 0;
    z-index: 5;
    width: 42px;
    height: 42px;
    margin: -20px -20px -22px auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(13, 49, 81, .18);
    border-radius: 50%;
    background: #d5e3ec;
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.dialog-label {
    color: #0b567c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.dialog-shell > h2 {
    margin-top: 9px;
    color: var(--ink);
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.dialog-lead {
    max-width: 780px;
    margin-top: 13px;
    color: #405b70;
    font-size: 16px;
}

.dialog-hero-image {
    width: 100%;
    max-height: 610px;
    margin-top: 28px;
    border: 1px solid rgba(13, 49, 81, .15);
    border-radius: 18px;
    background: #d4e2eb;
    object-fit: contain;
}

.dialog-metrics {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.dialog-metrics div {
    min-height: 91px;
    padding: 15px;
    border: 1px solid rgba(13, 49, 81, .12);
    border-radius: 15px;
    background: #d9e6ee;
}

.dialog-metrics span,
.dialog-metrics strong {
    display: block;
}

.dialog-metrics span {
    color: #506a7d;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.dialog-metrics strong {
    margin-top: 8px;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.15;
}

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

.dialog-content-grid.four-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dialog-content-grid article {
    padding: 19px;
    border: 1px solid rgba(13, 49, 81, .12);
    border-radius: 16px;
    background: #dbe7ef;
}

.dialog-content-grid article > span {
    color: #0b567c;
    font-size: 10px;
    font-weight: 900;
}

.dialog-content-grid h3 {
    margin-top: 10px;
    color: var(--ink);
    font-size: 17px;
}

.dialog-content-grid p {
    margin-top: 7px;
    color: #435e72;
    font-size: 12px;
    line-height: 1.65;
}

.dialog-gallery {
    margin-top: 28px;
    display: grid;
    gap: 11px;
}

.dialog-gallery.three-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dialog-gallery.four-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dialog-gallery img {
    width: 100%;
    height: 195px;
    border: 1px solid rgba(13, 49, 81, .15);
    border-radius: 14px;
    background: #cadbe6;
    object-fit: cover;
}

.dialog-gallery figure {
    min-width: 0;
}

.dialog-gallery figure img {
    height: 245px;
}

.dialog-gallery figcaption {
    margin-top: 7px;
    color: #4b6578;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

.dialog-downloads.four-downloads {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dialog-downloads a {
    min-height: 46px;
    padding: 11px 13px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(13, 49, 81, .18);
    border-radius: 11px;
    background: #d7e4ec;
    color: #173d59;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.dialog-downloads a:hover {
    border-color: var(--navy);
    background: #cddfe9;
}

.dialog-actions {
    margin-top: 23px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button-modal {
    background: var(--navy);
    color: #f1f7fa;
}

.button-modal:hover {
    background: #17496f;
}

.button-modal-secondary {
    border-color: rgba(13, 49, 81, .25);
    background: transparent;
    color: var(--navy);
}

.button-modal-secondary:hover {
    background: #d8e6ee;
}

@media (max-width: 1050px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
        gap: 42px;
    }

    .hero h1 {
        font-size: clamp(58px, 7.8vw, 84px);
    }

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

    .dialog-content-grid.four-columns,
    .dialog-downloads.four-downloads {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .menu-button {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 76px;
        left: 4%;
        right: 4%;
        padding: 17px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        border: 1px solid rgba(255, 255, 255, .13);
        border-radius: 17px;
        background: rgba(5, 20, 35, .98);
        box-shadow: 0 26px 60px rgba(0, 0, 0, .3);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 9px;
        display: block;
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 126px 0 74px;
    }

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

    .hero-copy {
        max-width: 680px;
    }

    .analytics-panel {
        max-width: 680px;
    }

    .split-intro,
    .about-grid,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .split-intro > p {
        max-width: 680px;
    }

    .about-grid {
        gap: 27px;
    }

    .contact-actions {
        max-width: 440px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dialog-metrics,
    .dialog-content-grid,
    .dialog-gallery.three-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dialog-gallery.three-images img:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    :root {
        --grid-gap: 18px;
    }

    .section,
    .projects-section {
        width: min(92%, 650px);
        padding-top: 78px;
        padding-bottom: 82px;
    }

    .inner-section {
        padding-top: 78px;
        padding-bottom: 82px;
    }

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

    .project-grid > .last-grid-card,
    .certification-grid > .last-grid-card {
        width: 100%;
        grid-column: auto;
    }

    .project-body {
        min-height: 300px;
    }

    .dialog-shell {
        padding: 29px 22px 25px;
    }

    .dialog-close {
        margin: -12px -7px -20px auto;
    }

    .dialog-gallery.four-images {
        grid-template-columns: 1fr;
    }

    .dialog-gallery figure img {
        height: 220px;
    }

    .dialog-downloads {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nav-container {
        width: 91%;
    }

    .logo > span:last-child {
        display: none;
    }

    .hero-grid {
        width: 90%;
    }

    .hero h1 {
        font-size: clamp(55px, 18vw, 76px);
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .availability {
        align-items: flex-start;
    }

    .availability span {
        margin-top: 6px;
        flex: 0 0 auto;
    }

    .analytics-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .panel-metrics {
        grid-template-columns: 1fr;
    }

    .panel-tools span {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }

    .section-intro h2 {
        font-size: clamp(35px, 11vw, 48px);
    }

    .split-intro > p,
    .about-copy p {
        font-size: 16px;
    }

    .about-copy {
        padding: 18px 0 18px 20px;
    }

    .value-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        min-height: 240px;
    }

    .project-media {
        aspect-ratio: 16 / 10.5;
    }

    .project-kind {
        top: auto;
        right: 14px;
        bottom: 14px;
    }

    .project-index {
        top: 14px;
        left: 14px;
    }

    .media-metric {
        right: 14px;
        bottom: 53px;
    }

    .project-body {
        min-height: 0;
        padding: 24px 21px 22px;
    }

    .project-button {
        margin-top: 24px;
    }

    .certificate-card {
        min-height: 286px;
        padding: 24px 22px;
    }

    .contact-actions {
        width: 100%;
        max-width: none;
        grid-template-columns: 1fr;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .dialog-metrics,
    .dialog-content-grid,
    .dialog-content-grid.four-columns,
    .dialog-downloads.four-downloads,
    .dialog-gallery.three-images {
        grid-template-columns: 1fr;
    }

    .dialog-gallery.three-images img:last-child {
        grid-column: auto;
    }

    .dialog-gallery img,
    .dialog-gallery figure img {
        height: 190px;
    }

    .dialog-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

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

@media (max-width: 1180px) and (min-width: 851px) {
    .hero-grid {
        width: min(1180px, 93%);
        grid-template-columns: minmax(410px, .95fr) minmax(420px, 1.05fr);
        gap: 34px;
    }

    .sphere-wrap {
        width: clamp(410px, 42vw, 520px);
    }

    .hero h1 {
        font-size: clamp(50px, 5.5vw, 68px);
    }
}

@media (max-width: 850px) {
    .nav-links {
        border-color: rgba(8, 57, 103, .18);
        background: rgba(119, 177, 241, .98);
        box-shadow: 0 24px 54px rgba(8, 47, 85, .18);
    }

    .menu-button {
        border-color: rgba(8, 57, 103, .2);
        background: rgba(238, 251, 255, .2);
    }

    .menu-button > span:not(.sr-only) {
        background: #083764;
    }

    .hero {
        min-height: auto;
        padding: 110px 0 62px;
    }

    .hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-copy {
        max-width: 680px;
        grid-row: 1;
        text-align: center;
    }

    .hero-actions,
    .hero .availability {
        justify-content: center;
    }

    .globe-column {
        grid-row: 2;
    }

    .sphere-wrap {
        width: min(76vw, 510px);
    }

    .sphere-tooltip {
        width: min(280px, 58%);
    }
}

@media (max-width: 560px) {
    .hero-grid {
        width: 91%;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 58px);
        line-height: 1.08;
    }

    .hero-role {
        font-size: 21px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .hero .button {
        min-width: 0;
        padding: 11px 9px;
        font-size: 12px;
    }

    .hero .availability {
        align-items: center;
    }

    .hero .availability span {
        margin-top: 0;
    }

    .sphere-wrap {
        width: min(92vw, 430px);
    }

    .sphere-tooltip {
        width: min(250px, 70%);
        padding: 15px 16px;
    }

    .sphere-tooltip-title {
        font-size: 15px;
    }

    .sphere-tooltip-copy {
        font-size: 12px;
    }

    .sphere-hint {
        font-size: 12px;
    }
}
