:root {
    color-scheme: dark;
    --ink: #071019;
    --ink-raised: #0d1a27;
    --ink-soft: #122334;
    --paper: #edf4f8;
    --muted: #a4b4c4;
    --blue: #6c9fd3;
    --cyan: #70d7d2;
    --line: rgba(171, 201, 224, 0.18);
    --line-strong: rgba(112, 215, 210, 0.42);
    --surface: rgba(13, 27, 40, 0.78);
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --content: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    background: var(--ink);
}

body {
    position: relative;
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(31, 70, 100, 0.22), transparent 28rem),
        linear-gradient(180deg, #08111b, var(--ink) 30rem, #09141d);
    color: var(--paper);
    font: 400 16px/1.65 "Segoe UI Variable", "Aptos", "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(198, 220, 238, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198, 220, 238, 0.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.75) 75%, transparent 100%);
    content: "";
    pointer-events: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: -5rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    background: var(--cyan);
    color: var(--ink);
    font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(171, 201, 224, 0.12);
    background: rgba(7, 16, 25, 0.82);
    backdrop-filter: blur(18px);
}

.navbar {
    display: flex;
    width: min(var(--content), calc(100% - 2.5rem));
    min-height: 74px;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--paper);
    text-decoration: none;
}
.brand-logo { object-fit: contain; }
.small-logo { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 0.98rem; }
.brand-text small { margin-top: 0.22rem; color: var(--muted); font-size: 0.69rem; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-menu a {
    display: inline-flex;
    min-height: 42px;
    padding: 0 0.78rem;
    align-items: center;
    border-radius: 3px;
    color: var(--muted);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 180ms ease, background 180ms ease;
}
.nav-menu a:hover,
.nav-menu a:focus-visible { background: rgba(112, 215, 210, 0.08); color: var(--paper); }
.nav-menu .nav-cta { color: var(--cyan); }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 5px auto;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle.active span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:last-child { transform: translateY(-6px) rotate(-45deg); }

.hero-section {
    display: grid;
    width: min(var(--content), calc(100% - 2.5rem));
    min-height: min(760px, calc(100svh - 74px));
    margin-inline: auto;
    padding: clamp(3.2rem, 7vw, 6rem) 0 4.5rem;
    grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
}

.hero-content { position: relative; z-index: 2; }
.eyebrow {
    margin: 0 0 1rem;
    color: var(--cyan);
    font: 700 0.72rem/1.5 "Cascadia Code", Consolas, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-content h1,
.section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.03;
}
.hero-content h1 { max-width: 680px; font-size: clamp(3rem, 5.6vw, 5.25rem); }
.hero-content h1 span { color: var(--blue); }
.hero-copy { max-width: 560px; margin: 1.2rem 0 0; color: #c0ced9; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }

.btn {
    display: inline-flex;
    min-height: 46px;
    padding: 0 1.05rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    color: var(--paper);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); }
.btn-primary { background: var(--cyan); color: #07151a; }
.btn-primary:hover { background: #91e5dc; }
.btn-secondary { background: rgba(255, 255, 255, 0.025); }

.hero-notes {
    display: flex;
    max-width: 560px;
    margin-top: 1.8rem;
    padding-top: 1rem;
    gap: 2rem;
    border-top: 1px solid rgba(171, 201, 224, 0.12);
}
.hero-notes > div { display: grid; gap: 0.28rem; }
.note-label { color: #8499aa; font: 700 0.67rem/1.4 "Cascadia Code", Consolas, monospace; text-transform: uppercase; }
.hero-notes strong { font-size: 0.86rem; font-weight: 600; }

.hero-visual {
    --pointer-x: 0px;
    --pointer-y: 0px;
    position: relative;
    display: grid;
    min-height: 560px;
    place-items: center;
    isolation: isolate;
}
.hero-visual::before {
    position: absolute;
    top: 10%;
    right: 4%;
    width: min(72%, 390px);
    aspect-ratio: 1;
    z-index: -2;
    border: 1px solid rgba(112, 215, 210, 0.15);
    border-radius: 50%;
    content: "";
    transform: translate(var(--pointer-x), var(--pointer-y));
    transition: transform 500ms var(--ease);
}
.hero-visual::after {
    position: absolute;
    top: 18%;
    right: 0;
    width: min(80%, 440px);
    aspect-ratio: 1;
    z-index: -3;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(75, 145, 187, 0.19), transparent 68%);
    content: "";
    filter: blur(8px);
    transform: translate(calc(var(--pointer-x) * -0.3), calc(var(--pointer-y) * -0.3));
    transition: transform 650ms var(--ease);
}
.orb { position: absolute; z-index: -1; pointer-events: none; }
.orb-one {
    top: 9%;
    right: 10%;
    width: 9px;
    height: 9px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(112, 215, 210, 0.4);
    animation: orbit-drift 7s ease-in-out infinite;
}
.orb-two {
    bottom: 22%;
    left: 7%;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(108, 159, 211, 0.65);
    transform: rotate(45deg);
    animation: orbit-drift 9s ease-in-out -2s infinite;
}

.profile-frame {
    position: relative;
    width: min(100%, 420px);
    height: min(55vw, 540px);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(112, 215, 210, 0.26);
    background: var(--ink-raised);
    box-shadow: 0 0 0 10px rgba(108, 159, 211, 0.035), 0 22px 56px rgba(0, 0, 0, 0.38);
    transform: translate(var(--pointer-x), var(--pointer-y));
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.profile-frame::before,
.profile-frame::after {
    position: absolute;
    z-index: 2;
    width: 50px;
    height: 50px;
    border-color: var(--cyan);
    border-style: solid;
    content: "";
    pointer-events: none;
}
.profile-frame::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.profile-frame::after { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }
.hero-profile { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.profile-frame:hover { border-color: rgba(112, 215, 210, 0.72); box-shadow: 0 0 0 9px rgba(108, 159, 211, 0.07), 0 28px 85px rgba(0, 0, 0, 0.48); }
.profile-frame:hover .hero-profile { transform: scale(1.025); }

.large-logo {
    position: absolute;
    right: 0.6rem;
    bottom: 1.5rem;
    z-index: 4;
    width: 170px;
    height: 82px;
    padding: 0.25rem;
    border: 1px solid rgba(7, 17, 25, 0.12);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.96);
    object-fit: contain;
    opacity: 1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transform: translate(calc(var(--pointer-x) * -0.28), calc(var(--pointer-y) * -0.28));
}

.code-window {
    position: absolute;
    bottom: 1.6rem;
    left: -0.8rem;
    z-index: 5;
    width: 236px;
    overflow: hidden;
    border: 1px solid rgba(112, 215, 210, 0.2);
    border-radius: 5px;
    background: rgba(5, 14, 22, 0.94);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
    transform: translate(calc(var(--pointer-x) * -0.18), calc(var(--pointer-y) * -0.18));
}
.code-window-bar { display: flex; min-height: 31px; padding: 0 10px; align-items: center; gap: 5px; border-bottom: 1px solid rgba(171, 201, 224, 0.1); }
.code-window-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #738495; }
.code-window-bar > span:first-child { background: #df8584; }
.code-window-bar > span:nth-child(2) { background: #d7b66e; }
.code-window-bar > span:nth-child(3) { background: #78bd9b; }
.code-window-bar small { margin-left: auto; color: #8fa3b5; font: 600 0.65rem "Cascadia Code", Consolas, monospace; }
.code-window pre { margin: 0; padding: 0.72rem 0.82rem 0.85rem; color: #d6e2ed; font: 500 0.69rem/1.7 "Cascadia Code", Consolas, monospace; }
.code-keyword { color: #83b4e5; }
.code-string { color: #a3d5b4; }
.code-cursor { display: inline-block; width: 5px; height: 0.9em; margin-left: 2px; vertical-align: -0.1em; background: var(--cyan); animation: cursor-blink 1s steps(2, start) infinite; }

.hero-content > * { animation: rise-in 620ms var(--ease) both; }
.hero-content > :nth-child(1) { animation-delay: 70ms; }
.hero-content > :nth-child(2) { animation-delay: 140ms; }
.hero-content > :nth-child(3) { animation-delay: 210ms; }
.hero-content > :nth-child(4) { animation-delay: 280ms; }
.hero-content > :nth-child(5) { animation-delay: 350ms; }
.profile-frame { animation: portrait-in 800ms var(--ease) 180ms both; }
.code-window { animation: panel-in 700ms var(--ease) 520ms both; }
.large-logo { animation: logo-float 6s ease-in-out 1.3s infinite; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes portrait-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translate(var(--pointer-x), var(--pointer-y)) scale(1); } }
@keyframes panel-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes logo-float { 0%, 100% { margin-bottom: 0; } 50% { margin-bottom: 5px; } }
@keyframes cursor-blink { to { visibility: hidden; } }
@keyframes orbit-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.section {
    position: relative;
    width: min(var(--content), calc(100% - 2.5rem));
    margin-inline: auto;
    padding: clamp(4.2rem, 8vw, 6.4rem) 0;
}
.section::before {
    position: absolute;
    top: 0;
    left: 0;
    width: min(100%, 160px);
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
    content: "";
}
.section-heading { max-width: 700px; margin-bottom: 2.6rem; }
.section-heading h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.section-heading p:not(.eyebrow) { max-width: 600px; margin: 1rem 0 0; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr); gap: clamp(1.8rem, 4vw, 4.5rem); align-items: start; }
.about-card { max-width: 740px; padding: 1.1rem 0; }
.about-card p { margin: 0 0 1rem; color: #bfccd7; }
.about-card p:last-of-type { margin-bottom: 1.4rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tag-list span { padding: 0.35rem 0.65rem; border: 1px solid var(--line); color: var(--muted); font: 600 0.72rem "Cascadia Code", Consolas, monospace; }
.info-panel { display: grid; gap: 1.15rem; padding: 1rem 1rem 1rem 1.1rem; border: 1px solid rgba(112, 215, 210, 0.14); background: rgba(10, 20, 30, 0.46); }
.info-panel > div { display: grid; gap: 0.3rem; }
.label { color: var(--cyan); font: 700 0.66rem "Cascadia Code", Consolas, monospace; text-transform: uppercase; }
.info-panel strong { font-size: 0.88rem; font-weight: 600; line-height: 1.5; }

.projects-section { width: 100%; max-width: none; padding-inline: max(calc((100% - var(--content)) / 2), 1.25rem); background: linear-gradient(90deg, rgba(13, 27, 40, 0.4), transparent 75%); }
.projects-section::before { left: max(calc((100% - var(--content)) / 2), 1.25rem); }
.projects-section > .section-heading,
.projects-grid { width: min(100%, var(--content)); margin-inline: auto; }
.projects-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr); grid-template-rows: repeat(2, minmax(245px, auto)); gap: 1rem; }
.project-card { position: relative; min-width: 0; padding: clamp(1.2rem, 2.5vw, 2rem); overflow: hidden; border: 1px solid rgba(171, 201, 224, 0.12); background: rgba(9, 21, 32, 0.7); transition: border-color 220ms ease, transform 220ms var(--ease), background 220ms ease; }
.project-card::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); content: ""; opacity: 0; transition: opacity 220ms ease; }
.project-card:hover { z-index: 1; border-color: var(--line-strong); background: rgba(14, 31, 45, 0.94); transform: translateY(-3px); }
.project-card:hover::after { opacity: 1; }
.project-featured { display: grid; grid-row: span 2; grid-template-rows: minmax(220px, 0.9fr) 1fr; gap: 1.3rem; }
.project-art { display: grid; min-height: 230px; padding: 2rem; place-items: center; overflow: hidden; border: 1px solid rgba(171, 201, 224, 0.1); background: linear-gradient(180deg, rgba(243, 246, 247, 0.95), rgba(206, 221, 231, 0.9)); }
.project-art img { width: min(80%, 360px); max-height: 260px; object-fit: contain; transition: transform 350ms var(--ease); }
.project-featured:hover .project-art img { transform: scale(1.035); }
.project-content { display: flex; flex-direction: column; align-items: flex-start; }
.project-meta { color: var(--cyan); font: 700 0.66rem "Cascadia Code", Consolas, monospace; letter-spacing: 0.04em; text-transform: uppercase; }
.project-card h3 { margin: 0.4rem 0 0.7rem; font: 500 clamp(1.5rem, 2.4vw, 2.15rem)/1.1 Georgia, "Times New Roman", serif; }
.project-card p { max-width: 570px; margin: 0 0 1rem; color: #b5c3cf; font-size: 0.92rem; }
.project-points { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.project-points li { padding: 0.25rem 0.5rem; border: 1px solid var(--line); color: #9aabba; font: 600 0.65rem "Cascadia Code", Consolas, monospace; }
.project-link { display: inline-flex; min-height: 42px; margin-top: auto; align-items: center; gap: 0.65rem; color: var(--cyan); font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.project-link::after { content: "↗"; transition: transform 180ms ease; }
.project-link:hover::after { transform: translate(3px, -2px); }
.project-supporting { display: grid; grid-template-columns: 78px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 1rem; align-content: start; }
.project-supporting .project-header { display: contents; }
.project-supporting .project-header img { grid-row: span 2; width: 78px; height: 78px; padding: 0.25rem; border: 1px solid rgba(171, 201, 224, 0.16); background: #f4f6f6; object-fit: contain; }
.project-supporting .project-meta { align-self: end; }
.project-supporting .project-header h3 { grid-column: 2; align-self: start; }
.project-supporting > p,
.project-supporting > .project-link { grid-column: 1 / -1; }
.project-supporting > p { margin-top: 1rem; }

.ecosystem-section { padding-top: 5rem; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ecosystem-card { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 0 1rem; align-content: start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.ecosystem-card img { grid-row: span 2; width: 58px; height: 58px; object-fit: cover; }
.ecosystem-card img[src*="logobesar"] { padding: 0.25rem; background: #fff; object-fit: contain; }
.ecosystem-card h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.ecosystem-card p { grid-column: 1 / -1; margin: 1rem 0 0.6rem; color: var(--muted); font-size: 0.84rem; }
.ecosystem-card a { grid-column: 1 / -1; width: fit-content; color: var(--cyan); font-size: 0.78rem; text-decoration: none; }
.ecosystem-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ecosystem-status { color: #9cabb8; font: 600 0.68rem "Cascadia Code", Consolas, monospace; }

.journey-section { overflow: clip; }
.journey-list { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
.journey-list::before,
.journey-list::after { position: absolute; top: 0.4rem; bottom: 0.4rem; left: 50%; width: 1px; content: ""; transform: translateX(-50%); }
.journey-list::before { background: linear-gradient(180deg, rgba(112, 215, 210, 0.52), rgba(108, 159, 211, 0.13)); }
.journey-list::after { bottom: auto; width: 2px; height: var(--timeline-progress, 0%); border-radius: 999px; background: linear-gradient(180deg, transparent, var(--cyan) 38%, #d9fffc 50%, var(--blue) 62%, transparent); background-size: 100% 220%; box-shadow: 0 0 12px rgba(112, 215, 210, 0.38); animation: timeline-flow 2.8s linear infinite; }
.journey-item { position: relative; display: grid; gap: 0.38rem; width: calc(100% - 2.3rem); padding: 0.25rem 0 1rem; border: 0; background: none; box-shadow: none; }
.journey-item:nth-child(odd) { grid-column: 1; margin-right: auto; padding-right: 2rem; text-align: right; }
.journey-item:nth-child(even) { grid-column: 2; margin-left: auto; padding-left: 2rem; }
.journey-item::before { position: absolute; top: 0.4rem; width: 11px; height: 11px; border: 2px solid var(--cyan); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px rgba(112, 215, 210, 0.08); content: ""; animation: milestone-pulse 2.8s ease-in-out infinite; }
.journey-item:nth-child(odd)::before { right: -6px; }
.journey-item:nth-child(even)::before { left: -5px; }
.journey-item time { color: var(--cyan); font: 700 clamp(0.72rem, 1.4vw, 0.9rem) "Cascadia Code", Consolas, monospace; }
.journey-item h3 { margin: 0; font: 500 clamp(1.25rem, 2vw, 1.65rem)/1.2 Georgia, "Times New Roman", serif; }
.journey-item p { max-width: 460px; margin: 0; color: var(--muted); font-size: 0.9rem; }
.journey-item:nth-child(odd) p { margin-left: auto; }
.journey-item:nth-child(2)::before { animation-delay: 350ms; }
.journey-item:nth-child(3)::before { animation-delay: 700ms; }
.journey-item:nth-child(4)::before { animation-delay: 1050ms; }
.js .journey-item,
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.js .journey-item.is-visible,
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes timeline-flow { to { background-position: 0 100%; } }
@keyframes milestone-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(112, 215, 210, 0.07), 0 0 0 0 rgba(112, 215, 210, 0); } 50% { box-shadow: 0 0 0 5px rgba(112, 215, 210, 0.13), 0 0 14px 2px rgba(112, 215, 210, 0.32); } }

.skills-section { padding-top: 4rem; }
.skills-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 4rem); }
.skill-panel { padding-top: 1rem; border-top: 1px solid rgba(112, 215, 210, 0.2); }
.skill-panel h3 { margin: 0 0 1rem; font: 500 1.45rem Georgia, "Times New Roman", serif; }
.check-list { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.2rem; color: #bcc9d4; font-size: 0.88rem; }
.check-list li::before { position: absolute; top: 0.72em; left: 0; width: 5px; height: 5px; background: var(--cyan); content: ""; }
.check-list.muted li::before { background: var(--blue); }

.certificates-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.certificate-card { display: block; width: 100%; padding: 0.7rem; border: 1px solid rgba(171, 201, 224, 0.14); background: rgba(9, 21, 32, 0.72); color: var(--paper); text-align: left; cursor: zoom-in; transition: transform 200ms var(--ease), border-color 200ms ease; }
.certificate-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.certificate-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e9edf0; }
.certificate-card span { display: block; margin-top: 0.72rem; font-size: 0.85rem; font-weight: 700; }
.certificate-card small { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.74rem; }
.certificate-more { display: flex; justify-content: flex-end; margin-top: 1.2rem; }

.contact-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.6fr); gap: 2rem; align-items: end; }
.contact-section .section-heading { margin: 0; }
.contact-card { display: grid; gap: 0.55rem; padding: 1.2rem 1.3rem; border: 1px solid rgba(112, 215, 210, 0.12); background: rgba(13, 25, 35, 0.5); }
.contact-card h3 { margin: 0 0 0.35rem; font: 500 1.3rem Georgia, "Times New Roman", serif; }
.contact-card a { display: flex; min-height: 40px; align-items: center; gap: 0.65rem; color: #c2d0db; font-size: 0.86rem; text-decoration: none; }
.contact-card a:hover { color: var(--cyan); }
.contact-icon { width: 1.1rem; color: var(--cyan); text-align: center; }
.contact-note { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.78rem; }

.site-footer { margin-top: 2rem; border-top: 1px solid var(--line); background: rgba(5, 12, 19, 0.65); }
.footer-grid { display: grid; width: min(var(--content), calc(100% - 2.5rem)); margin-inline: auto; padding: 2.5rem 0; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 1.5rem; }
.footer-grid h3 { margin: 0 0 0.7rem; font-size: 0.83rem; }
.footer-grid p { max-width: 350px; margin: 0.8rem 0 0; color: var(--muted); font-size: 0.8rem; }
.footer-grid a:not(.brand) { display: block; min-height: 30px; color: var(--muted); font-size: 0.8rem; text-decoration: none; }
.footer-grid a:not(.brand):hover { color: var(--cyan); }
.footer-bottom { display: flex; width: min(var(--content), calc(100% - 2.5rem)); margin-inline: auto; padding: 1rem 0 1.4rem; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: #8fa0af; font-size: 0.74rem; }
.footer-bottom p { margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; padding: 1rem; place-items: center; background: rgba(3, 8, 13, 0.94); }
.lightbox[hidden] { display: none; }
.lightbox img { width: min(1100px, 100%); max-height: 88svh; object-fit: contain; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--ink-raised); color: var(--paper); font-size: 1.6rem; cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
    .project-card:hover { will-change: transform; }
}

@media (max-width: 900px) {
    .hero-section { grid-template-columns: minmax(0, 1fr) minmax(290px, 0.85fr); gap: 2rem; }
    .hero-visual { min-height: 520px; }
    .profile-frame { min-height: 440px; height: min(62vw, 520px); }
    .projects-grid { grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr); }
    .ecosystem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .navbar { width: calc(100% - 2rem); min-height: 66px; }
    .menu-toggle { display: block; }
    .nav-menu { position: fixed; top: 74px; right: 1rem; left: 1rem; display: none; padding: 0.65rem; border: 1px solid var(--line); background: rgba(7, 16, 25, 0.97); box-shadow: var(--shadow); }
    .nav-menu.active { display: grid; }
    .nav-menu a { width: 100%; justify-content: center; }
    .hero-section { width: calc(100% - 2rem); min-height: auto; padding: 4.3rem 0 4rem; grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-content h1 { max-width: 600px; font-size: clamp(2.8rem, 10vw, 4.2rem); }
    .hero-copy { max-width: 540px; }
    .hero-visual { width: min(100%, 500px); min-height: 530px; margin-inline: auto; }
    .profile-frame { width: min(86%, 390px); height: min(125vw, 500px); min-height: 390px; }
    .large-logo { right: 0; bottom: 1.3rem; width: 145px; height: 72px; }
    .code-window { bottom: 1.6rem; left: 0; width: min(220px, 58%); }
    .hero-notes { gap: 1.2rem; }
    .section { width: calc(100% - 2rem); padding: 4.5rem 0; }
    .projects-section { width: 100%; padding-inline: 1rem; }
    .projects-section::before { left: 1rem; }
    .projects-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .project-featured { grid-row: auto; }
    .project-featured { grid-template-rows: minmax(200px, auto) auto; }
    .project-supporting { min-height: 0; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .info-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1rem 0 0; border-top: 1px solid var(--line-strong); border-left: 0; }
    .ecosystem-grid { grid-template-columns: 1fr; }
    .journey-list { grid-template-columns: 1fr; row-gap: 1.7rem; padding-left: 1.35rem; }
    .journey-list::before, .journey-list::after { left: 0; transform: none; }
    .journey-item,
    .journey-item:nth-child(odd),
    .journey-item:nth-child(even) { width: 100%; grid-column: 1; margin: 0; padding: 0.1rem 0 0.5rem 1.35rem; text-align: left; }
    .journey-item:nth-child(odd) p { margin-left: 0; }
    .journey-item:nth-child(odd)::before,
    .journey-item:nth-child(even)::before { left: -1.68rem; right: auto; }
    .skills-split { grid-template-columns: 1fr; gap: 2rem; }
    .certificates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
    .contact-section { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-grid { width: calc(100% - 2rem); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
    .footer-bottom { width: calc(100% - 2rem); }
}

@media (max-width: 420px) {
    .brand-text small { display: none; }
    .hero-content h1 { font-size: 2.65rem; }
    .hero-actions .btn { width: 100%; }
    .hero-visual { min-height: 465px; }
    .profile-frame { width: 86%; height: 430px; min-height: 0; }
    .large-logo { width: 125px; height: 63px; }
    .code-window { width: min(190px, 57%); }
    .hero-notes { flex-direction: column; gap: 0.8rem; }
    .hero-notes > div { grid-template-columns: 78px 1fr; align-items: baseline; }
    .info-panel { grid-template-columns: 1fr; }
    .certificates-grid { grid-template-columns: 1fr; }
    .project-supporting { grid-template-columns: 60px 1fr; }
    .project-supporting .project-header img { width: 60px; height: 60px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js .journey-item, .js .reveal { opacity: 1 !important; transform: none !important; }
}
