:root {
    --bg: #07111f;
    --bg-soft: #0a1627;
    --surface: #0f1a2a;
    --surface-light: #132238;
    --border: rgba(148, 163, 184, 0.16);
    --border-bright: rgba(0, 184, 255, 0.34);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --cyan: #00e5c3;
    --sky: #00b8ff;
    --blue: #2563eb;
    --purple: #8b8cff;
    --max-width: 1180px;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 76% 2%, rgba(37, 99, 235, 0.12), transparent 29rem),
        var(--bg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    content: "";
    pointer-events: none;
}

::selection {
    color: #04111a;
    background: var(--cyan);
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    font: inherit;
}

:where(a, button, [tabindex]):focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: 118px;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    padding: 10px 16px;
    color: var(--bg);
    background: var(--cyan);
    border-radius: 8px;
    font-weight: 750;
    transform: translateY(-150%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
    border-color: var(--border);
    background: rgba(7, 17, 31, 0.82);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 0 14px rgba(0, 184, 255, 0.15));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 31px;
}

.nav-menu a {
    position: relative;
    color: #b5c0d0;
    font-size: 0.87rem;
    font-weight: 620;
    transition: color 180ms ease;
}

.nav-menu a:not(.nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: var(--sky);
    content: "";
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
    color: #fff;
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
    transform: scaleX(1);
}

.nav-menu .nav-cta {
    padding: 10px 18px;
    color: var(--sky);
    border: 1px solid rgba(0, 184, 255, 0.42);
    border-radius: 999px;
    background: rgba(0, 184, 255, 0.055);
}

.nav-menu .nav-cta:hover {
    color: var(--bg);
    background: var(--sky);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
    display: grid;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: clamp(116px, 14vh, 145px);
    padding-bottom: clamp(72px, 10vh, 118px);
    overflow: hidden;
}

.hero::before {
    position: absolute;
    top: 14%;
    left: -220px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(0, 184, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(0, 184, 255, 0.016), 0 0 0 160px rgba(0, 184, 255, 0.012);
    content: "";
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
    gap: clamp(48px, 5vw, 78px);
    align-items: center;
}

.eyebrow,
.section-index {
    color: var(--sky);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 23px;
}

.eyebrow > span {
    width: 25px;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.hero h1 {
    max-width: 780px;
    margin-bottom: clamp(18px, 2.5vh, 24px);
    color: #f8fafc;
    font-size: clamp(3rem, min(5.3vw, 7.25vh), 5.25rem);
    font-weight: 780;
}

.hero h1 em {
    color: transparent;
    background: linear-gradient(100deg, var(--sky), var(--cyan));
    background-clip: text;
    -webkit-background-clip: text;
    font-style: normal;
}

.hero-lead {
    max-width: 660px;
    margin-bottom: clamp(25px, 3.6vh, 34px);
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.hero-lead strong {
    color: var(--text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 750;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

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

.button-primary {
    gap: 10px;
    color: #03131b;
    background: linear-gradient(100deg, var(--cyan), var(--sky));
    box-shadow: 0 10px 30px rgba(0, 184, 255, 0.16);
}

.button-primary:hover {
    box-shadow: 0 14px 38px rgba(0, 184, 255, 0.27);
}

.button-secondary {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover {
    border-color: rgba(0, 184, 255, 0.45);
    background: rgba(0, 184, 255, 0.06);
}

.hero-metrics {
    display: flex;
    gap: 0;
    margin: clamp(30px, 5vh, 52px) 0 0;
    padding: 0;
    list-style: none;
}

.hero-metrics li {
    display: grid;
    gap: 2px;
    min-width: 116px;
    padding-right: 26px;
    border-right: 1px solid var(--border);
}

.hero-metrics li + li {
    padding-left: 26px;
}

.hero-metrics li:last-child {
    border: 0;
}

.hero-metrics strong {
    color: #fff;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    letter-spacing: -0.05em;
}

.hero-metrics span {
    color: var(--muted);
    font-size: 0.73rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-visual {
    position: relative;
    min-height: clamp(430px, 56vh, 520px);
    perspective: 1200px;
}

.hero-visual::before,
.hero-visual::after {
    position: absolute;
    border: 1px solid rgba(0, 184, 255, 0.15);
    content: "";
}

.hero-visual::before {
    inset: 7% -6% 2% 4%;
    clip-path: polygon(20% 0, 100% 0, 100% 72%, 76% 100%, 0 100%, 0 20%);
}

.hero-visual::after {
    top: 8%;
    right: 8%;
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 20px var(--cyan), -440px 270px 0 var(--blue), -440px 270px 18px var(--blue);
}

.hero-circuit {
    position: absolute;
    inset: -10% -10%;
    width: 120%;
    height: 120%;
    opacity: 0.55;
    mask-image: radial-gradient(circle at 62% 40%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 62% 40%, black, transparent 70%);
    pointer-events: none;
}

.hero-watermark {
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 380px;
    height: 380px;
    opacity: 0.05;
    color: var(--sky);
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.glow-one {
    top: 20%;
    left: 20%;
    width: 220px;
    height: 220px;
    background: rgba(0, 184, 255, 0.13);
}

.glow-two {
    right: 0;
    bottom: 8%;
    width: 150px;
    height: 150px;
    background: rgba(37, 99, 235, 0.18);
}

.code-card {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: min(100%, 480px);
    overflow: hidden;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    background: rgba(9, 20, 35, 0.92);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translate(-50%, -50%) rotateY(-5deg) rotateX(2deg);
    backdrop-filter: blur(20px);
}

.code-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 47px;
    padding-inline: 17px;
    color: #6f829d;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.018);
    font-family: var(--font-mono);
    font-size: 0.69rem;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff6270;
}

.window-dots i:nth-child(2) {
    background: #ffc247;
}

.window-dots i:nth-child(3) {
    background: #27d998;
}

.code-card pre {
    margin: 0;
    padding: 29px 31px 25px;
    overflow-x: auto;
    color: #aebbd0;
    font-family: var(--font-mono);
    font-size: clamp(0.68rem, 1.05vw, 0.79rem);
    line-height: 1.85;
}

.code-purple { color: #c292ff; }
.code-blue { color: var(--sky); }
.code-green { color: var(--cyan); }

.terminal-line {
    padding: 15px 20px;
    color: #71839b;
    border-top: 1px solid var(--border);
    background: rgba(3, 11, 21, 0.7);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.terminal-line > span {
    margin-right: 7px;
    color: var(--cyan);
}

.terminal-line strong {
    color: #d7e0eb;
    font-weight: 500;
}

.terminal-line i {
    display: inline-block;
    width: 7px;
    height: 14px;
    margin-left: 4px;
    vertical-align: -2px;
    background: var(--sky);
    animation: cursor 1s steps(2) infinite;
}

@keyframes cursor {
    50% { opacity: 0; }
}

.floating-chip,
.status-card {
    position: absolute;
    z-index: 3;
    border: 1px solid var(--border);
    background: rgba(15, 26, 42, 0.9);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.floating-chip {
    padding: 8px 14px;
    color: #dce6f3;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.chip-react {
    top: 12%;
    left: -1%;
    border-color: rgba(0, 184, 255, 0.32);
    animation: float 5s ease-in-out infinite;
}

.chip-node {
    right: -2%;
    bottom: 20%;
    border-color: rgba(0, 229, 195, 0.3);
    animation: float 5s 1s ease-in-out infinite;
}

@keyframes float {
    50% { transform: translateY(-9px); }
}

.status-card {
    bottom: 2%;
    left: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 9px;
    align-items: center;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
}

.status-card i {
    grid-row: span 2;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.status-card span {
    color: var(--muted);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-card strong {
    font-size: 0.78rem;
}

.section-heading {
    max-width: 600px;
}

.section-heading h2,
.contact-panel h2 {
    margin-bottom: 20px;
    color: #f8fafc;
    font-size: clamp(2.1rem, 4vw, 3.65rem);
}

.section-index {
    margin-bottom: 17px;
}

.section-heading > p:last-child,
.contact-panel p,
.journey .section-heading > p:last-child {
    color: var(--muted);
}

.section-heading.centered {
    margin: 0 auto 52px;
    text-align: center;
}

.about {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(15, 26, 42, 0.5), rgba(7, 17, 31, 0));
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
    align-items: start;
}

.about-copy {
    color: var(--muted);
}

.about-copy .large-copy {
    color: #bdc8d8;
    font-size: 1.14rem;
}

.about-copy strong {
    color: var(--text);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 80px;
}

.value-card {
    position: relative;
    min-height: 270px;
    padding: 31px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(19, 34, 56, 0.75), rgba(10, 22, 39, 0.45));
    transition: transform 220ms ease, border-color 220ms ease;
}

.value-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-5px);
}

.value-card > span {
    position: absolute;
    top: 25px;
    right: 27px;
    color: #526176;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.value-icon {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    margin-bottom: 36px;
    color: var(--sky);
    border: 1px solid rgba(0, 184, 255, 0.28);
    border-radius: 12px;
    background: rgba(0, 184, 255, 0.07);
    font-family: var(--font-mono);
    font-weight: 700;
}

.value-card h3,
.tech-card h3,
.project-card h3,
.timeline h3 {
    margin-bottom: 11px;
    color: #edf4fc;
    font-size: 1.17rem;
}

.value-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.skills {
    overflow: hidden;
}

.skills::before {
    position: absolute;
    top: 20%;
    right: -250px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.06);
    filter: blur(60px);
    content: "";
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tech-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    min-height: 112px;
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(15, 26, 42, 0.56);
    transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.tech-card:hover {
    border-color: var(--border-bright);
    background: rgba(19, 34, 56, 0.8);
    transform: translateY(-3px);
}

.tech-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 800;
}

.tech-icon img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    transition: transform 220ms ease;
}

.tech-card:hover .tech-icon img {
    transform: scale(1.08);
}

.html-icon { color: #ff7247; background: rgba(255, 114, 71, 0.09); }
.css-icon { color: #4ca7ff; background: rgba(76, 167, 255, 0.09); }
.js-icon { color: #f9dc4b; background: rgba(249, 220, 75, 0.09); }
.react-icon { color: #61dafb; background: rgba(97, 218, 251, 0.09); font-size: 1.45rem; }
.node-icon { color: #72be60; background: rgba(114, 190, 96, 0.09); }
.postgres-icon { color: #4169e1; background: rgba(65, 105, 225, 0.11); }

.tech-card h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.tech-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.77rem;
}

.tech-card > span {
    color: #66768c;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
}

.learning-card {
    border-style: dashed;
}

.projects {
    border-block: 1px solid var(--border);
    background: rgba(4, 12, 23, 0.45);
}

.heading-row {
    display: flex;
    max-width: none;
    margin-bottom: 52px;
    align-items: end;
    justify-content: space-between;
}

.heading-row h2 {
    margin-bottom: 0;
}

.text-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 5px;
    color: var(--sky);
    border-bottom: 1px solid rgba(0, 184, 255, 0.35);
    font-size: 0.82rem;
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 19px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 26, 42, 0.7);
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.project-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
    transform: translateY(-7px);
}

.featured-project {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.featured-project .project-preview {
    height: auto;
    min-height: 430px;
    border-right: 1px solid var(--border);
    border-bottom: 0;
}

.featured-project .project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}

.featured-project .project-content > p {
    min-height: 0;
    font-size: 0.92rem;
}

.featured-project-reverse .project-preview {
    order: 2;
    border-right: 0;
    border-left: 1px solid var(--border);
}

.featured-project-reverse .project-content {
    order: 1;
}

.project-preview {
    position: relative;
    display: grid;
    place-items: center;
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.project-preview::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 25px 25px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent);
}

.project-preview-image::before {
    z-index: 1;
    background: linear-gradient(180deg, transparent 55%, rgba(4, 12, 23, 0.7));
    mask-image: none;
    pointer-events: none;
}

.project-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-project:hover .project-preview-image img {
    transform: scale(1.025);
}

.preview-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 7px 11px;
    color: #03131b;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 8px 25px rgba(0, 229, 195, 0.25);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-number {
    position: absolute;
    right: 17px;
    bottom: 12px;
    z-index: 3;
    color: rgba(255, 255, 255, 0.27);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.project-content {
    padding: 27px;
}

.project-topline {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--sky);
    font-family: var(--font-mono);
    font-size: 0.61rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-topline .project-status {
    color: #76869c;
}

.project-topline .project-status.published {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--cyan);
}

.project-status.published::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 9px var(--cyan);
    content: "";
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 1.34rem;
}

.project-content > p {
    min-height: 72px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.86rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 5px 9px;
    color: #9cb0c6;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--font-mono);
    font-size: 0.57rem;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 25px;
}

.project-link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    padding: 0 14px;
    color: #c4d0df;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.project-link:hover {
    color: #fff;
    border-color: var(--border-bright);
    background: rgba(0, 184, 255, 0.07);
    transform: translateY(-2px);
}

.project-link.primary {
    color: #03131b;
    border-color: transparent;
    background: linear-gradient(100deg, var(--cyan), var(--sky));
}

.details-button {
    font-family: inherit;
}

body.dialog-open {
    overflow: hidden;
}

.project-dialog {
    width: min(calc(100% - 32px), 1100px);
    max-width: none;
    max-height: 90dvh;
    padding: 0;
    overflow: hidden;
    color: var(--text);
    border: 0;
    border-radius: var(--radius-lg);
    background: transparent;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}

.project-dialog::backdrop {
    background: rgba(2, 7, 15, 0.82);
    backdrop-filter: blur(8px);
}

.dialog-shell {
    position: relative;
    max-height: 90dvh;
    padding: 48px;
    overflow-y: auto;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 90% 5%, rgba(37, 99, 235, 0.13), transparent 24rem),
        var(--bg-soft);
}

.dialog-close {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: -28px -28px -12px auto;
    color: #c8d3e1;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(15, 26, 42, 0.94);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.dialog-close:hover {
    color: #fff;
    border-color: var(--border-bright);
}

.dialog-heading {
    display: flex;
    gap: 30px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 35px;
}

.dialog-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

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

.dialog-gallery {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 40px;
}

.dialog-gallery figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.dialog-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    object-position: top center;
}

.dialog-gallery figcaption {
    padding: 10px 14px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 0.68rem;
}

.dialog-side-column {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    align-self: stretch;
    min-width: 0;
}

.pokedex-gallery {
    align-items: stretch;
}

.pokedex-gallery > .dialog-main-shot,
.pokedex-gallery > .dialog-side-column {
    height: 100%;
}

.pokemon-mini-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 195, 0.24);
    border-radius: var(--radius-sm);
    background:
        radial-gradient(circle at 100% 0, rgba(0, 229, 195, 0.11), transparent 9rem),
        linear-gradient(145deg, rgba(19, 34, 56, 0.96), rgba(10, 25, 40, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pokemon-mini-card::after {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(0, 229, 195, 0.12);
    border-radius: 50%;
    content: "";
}

.pokemon-mini-heading {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 15px;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 13px;
}

.pokemon-number {
    display: block;
    margin-bottom: 1px;
    color: var(--sky);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.pokemon-mini-card h3 {
    margin: 0 0 6px;
    color: #f6fbff;
    font-size: 1rem;
    letter-spacing: -0.025em;
}

.pokemon-types {
    display: flex;
    gap: 5px;
}

.pokemon-types span {
    padding: 2px 7px;
    color: #b9f6cf;
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.08);
    font-family: var(--font-mono);
    font-size: 0.48rem;
    text-transform: uppercase;
}

.pokemon-types span:last-child {
    color: #dcc4ff;
    border-color: rgba(192, 132, 252, 0.2);
    background: rgba(192, 132, 252, 0.08);
}

.pokemon-total {
    display: grid;
    min-width: 44px;
    padding: 6px 8px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
}

.pokemon-total span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.46rem;
    text-transform: uppercase;
}

.pokemon-total strong {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.pokemon-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pokemon-stats li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 5px;
    min-width: 0;
}

.pokemon-stats li > span {
    overflow: hidden;
    color: #8292a8;
    font-family: var(--font-mono);
    font-size: 0.48rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pokemon-stats li > strong {
    color: #dbe7f4;
    font-family: var(--font-mono);
    font-size: 0.54rem;
}

.pokemon-stats i {
    grid-column: 1 / -1;
    display: block;
    height: 3px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.14);
}

.pokemon-stats b {
    display: block;
    width: var(--stat);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sky), var(--cyan));
    box-shadow: 0 0 7px rgba(0, 229, 195, 0.36);
}

.dialog-gallery.single-shot {
    grid-template-columns: 1fr;
}

.dialog-gallery.single-shot img {
    aspect-ratio: auto;
}

.dialog-gallery.project-gallery-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.project-gallery-pair figure {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.project-gallery-pair img {
    aspect-ratio: 36 / 25;
    background: #07111f;
}

.project-gallery-pair figcaption {
    flex: 1;
}

.case-study-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.018);
}

.case-study-meta > div {
    display: grid;
    gap: 3px;
    padding: 15px 18px;
}

.case-study-meta > div + div {
    border-left: 1px solid var(--border);
}

.case-study-meta span,
.stack-group > span {
    color: #71839a;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.case-study-meta strong {
    color: #dce7f4;
    font-size: 0.78rem;
    font-weight: 750;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.case-study-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background:
        radial-gradient(circle at 100% 0, rgba(0, 184, 255, 0.06), transparent 11rem),
        rgba(15, 26, 42, 0.48);
}

.case-study-number {
    display: block;
    margin-bottom: 15px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.case-study-card h3 {
    margin-bottom: 10px;
    color: #edf4fc;
    font-size: 1rem;
    letter-spacing: -0.025em;
}

.case-study-card p,
.case-study-result p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.case-study-result {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    margin-top: 16px;
    padding: 22px 24px;
    border: 1px solid rgba(0, 229, 195, 0.2);
    border-radius: var(--radius-sm);
    background: linear-gradient(120deg, rgba(0, 229, 195, 0.055), rgba(0, 184, 255, 0.035));
}

.case-study-result .dialog-label {
    margin-bottom: 7px;
}

.case-result-status {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #b8c8d9;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    white-space: nowrap;
}

.case-result-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 229, 195, 0.8);
}

.dialog-label {
    display: block;
    margin-bottom: 13px;
    color: var(--sky);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dialog-stack {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.dialog-stack-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stack-group {
    min-width: 0;
}

.stack-group > span {
    display: block;
    margin-bottom: 9px;
}

.journey-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 20px;
    min-height: 155px;
}

.timeline li:not(:last-child)::before {
    position: absolute;
    top: 16px;
    bottom: -8px;
    left: 6px;
    width: 1px;
    background: linear-gradient(var(--blue), rgba(148, 163, 184, 0.16));
    content: "";
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    margin-top: 5px;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 1px var(--blue);
}

.timeline-marker.active {
    background: var(--cyan);
    box-shadow: 0 0 0 1px var(--cyan), 0 0 17px var(--cyan);
}

.timeline-content {
    padding-bottom: 34px;
}

.timeline-content > span {
    display: block;
    margin-bottom: 7px;
    color: var(--sky);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timeline h3 {
    margin-bottom: 8px;
}

.timeline p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.certifications-block {
    margin-top: 70px;
}

.certifications-title {
    margin: 0 0 24px;
    color: #edf4fc;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.cert-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cert-list li {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 220ms ease;
}

.cert-list li:hover {
    border-color: var(--border-bright);
}

.cert-list strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 0.85rem;
    line-height: 1.35;
}

.cert-list span {
    display: block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.contact {
    padding-top: 35px;
}

.contact-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 45px;
    align-items: center;
    padding: 64px;
    overflow: hidden;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 184, 255, 0.13), transparent 22rem),
        linear-gradient(135deg, rgba(15, 32, 54, 0.96), rgba(8, 20, 36, 0.96));
    box-shadow: var(--shadow);
}

.contact-panel > *:not(.contact-grid) {
    position: relative;
    z-index: 2;
}

.contact-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 184, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 184, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(90deg, transparent, black);
}

.contact-panel h2 {
    margin-bottom: 14px;
}

.contact-panel h2 + p {
    max-width: 680px;
    margin-bottom: 0;
}

.contact-email {
    display: inline-block;
    margin-top: 17px;
    color: var(--sky);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.contact-email:hover {
    color: var(--cyan);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.availability-badge i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 13px rgba(0, 229, 195, 0.9);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.site-footer {
    margin-top: 100px;
    padding-block: 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.footer-content > p {
    margin: 0;
    color: #6f8096;
    font-size: 0.73rem;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    justify-content: flex-end;
    color: #6f8096;
    font-size: 0.68rem;
}

.footer-meta a {
    color: var(--sky);
}

.error-body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

.error-header {
    padding-block: 28px;
}

.error-page {
    display: grid;
    place-items: center;
    padding-block: 60px;
    text-align: center;
}

.error-content {
    position: relative;
    width: min(100%, 720px);
    padding: clamp(36px, 7vw, 72px);
    overflow: hidden;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 50% 12%, rgba(0, 184, 255, 0.15), transparent 19rem),
        linear-gradient(145deg, rgba(15, 32, 54, 0.97), rgba(8, 20, 36, 0.97));
    box-shadow: var(--shadow);
}

.error-content::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 184, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 184, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 78%);
    pointer-events: none;
}

.error-content > * {
    position: relative;
    z-index: 1;
}

.error-code {
    margin-bottom: 8px;
    color: transparent;
    background: linear-gradient(110deg, var(--sky), var(--cyan));
    background-clip: text;
    font-family: var(--font-mono);
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.09em;
    filter: drop-shadow(0 0 28px rgba(0, 184, 255, 0.2));
}

.error-page h1 {
    margin-bottom: 18px;
    color: #f8fafc;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.error-page .error-content > p:not(.section-index, .error-terminal) {
    max-width: 570px;
    margin-inline: auto;
    color: var(--muted);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    justify-content: center;
    margin-top: 30px;
}

.error-terminal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 34px 0 0;
    padding: 10px 14px;
    color: #8ea0b7;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(4, 12, 23, 0.72);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.error-terminal > span:first-child {
    color: var(--cyan);
}

.error-cursor {
    width: 7px;
    height: 14px;
    background: var(--sky);
    animation: error-blink 900ms steps(1) infinite;
}

.error-footer {
    padding-block: 26px;
    color: #6f8096;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    text-align: center;
}

@keyframes error-blink {
    50% { opacity: 0; }
}

.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
}

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

.hero-copy .eyebrow.reveal { transition-delay: 0ms; }
.hero-copy h1.reveal { transition-delay: 90ms; }
.hero-copy .hero-lead.reveal { transition-delay: 180ms; }
.hero-copy .hero-actions.reveal { transition-delay: 270ms; }
.hero-copy .hero-metrics.reveal { transition-delay: 360ms; }

.values-grid .reveal:nth-child(2),
.tech-grid .reveal:nth-child(2),
.projects-grid .reveal:nth-child(2) {
    transition-delay: 80ms;
}

.values-grid .reveal:nth-child(3),
.tech-grid .reveal:nth-child(3),
.projects-grid .reveal:nth-child(3) {
    transition-delay: 160ms;
}

.tech-grid .reveal:nth-child(5) { transition-delay: 80ms; }
.tech-grid .reveal:nth-child(6) { transition-delay: 160ms; }

@media (min-width: 1021px) and (max-height: 1000px) {
    .hero {
        padding-top: 108px;
        padding-bottom: 54px;
    }

    .hero .eyebrow {
        margin-bottom: 14px;
    }

    .hero h1 {
        margin-bottom: 16px;
        font-size: clamp(3rem, 6.8vh, 4rem);
        line-height: 1.06;
    }

    .hero-lead {
        margin-bottom: 24px;
        line-height: 1.55;
    }

    .hero-metrics {
        margin-top: 28px;
    }

    .hero-visual {
        min-height: 430px;
    }

    .code-card pre {
        padding-block: 22px;
        line-height: 1.68;
    }
}

@media (max-width: 1020px) {
    .section {
        padding-block: 95px;
    }

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

    .hero {
        padding-top: 145px;
    }

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

    .hero-visual {
        width: min(100%, 650px);
        min-height: 500px;
        margin-inline: auto;
    }

    .about-grid,
    .journey-grid {
        gap: 60px;
    }

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

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

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content > p {
        display: none;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .section {
        padding-block: 78px;
    }

    .nav {
        min-height: 70px;
    }

    .nav-toggle {
        position: relative;
        z-index: 102;
        display: block;
    }

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

    .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
        opacity: 0;
    }

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        width: min(84vw, 360px);
        height: 100vh;
        padding: 80px 38px;
        background: rgba(8, 20, 36, 0.98);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
        transform: translateX(105%);
        transition: transform 260ms ease;
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .no-js .nav {
        flex-wrap: wrap;
        padding-block: 12px;
    }

    .no-js .nav-toggle {
        display: none;
    }

    .no-js .nav-menu {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
        height: auto;
        padding: 12px 0 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero {
        min-height: auto;
        padding-top: 130px;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 12vw, 4.4rem);
    }

    .hero-metrics li {
        min-width: auto;
        flex: 1;
        padding-right: 13px;
    }

    .hero-metrics li + li {
        padding-left: 13px;
    }

    .hero-visual {
        min-height: 440px;
    }

    .code-card {
        width: 94%;
        transform: translate(-50%, -50%);
    }

    .code-card pre {
        padding: 23px 19px;
        font-size: 0.68rem;
    }

    .chip-react {
        left: 0;
    }

    .chip-node {
        right: 0;
    }

    .about-grid,
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        margin-top: 58px;
    }

    .value-card {
        min-height: auto;
    }

    .tech-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .featured-project {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .featured-project .project-preview {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .featured-project .project-content {
        padding: 27px;
    }

    .featured-project-reverse .project-preview,
    .featured-project-reverse .project-content {
        order: initial;
    }

    .featured-project-reverse .project-preview {
        border-left: 0;
    }

    .dialog-shell {
        padding: 28px 22px;
    }

    .dialog-close {
        margin: -15px -9px 4px auto;
    }

    .dialog-heading {
        display: block;
    }

    .dialog-actions {
        margin-top: 22px;
    }

    .dialog-gallery,
    .dialog-gallery.project-gallery-pair,
    .case-study-meta,
    .case-study-grid,
    .case-study-result {
        grid-template-columns: 1fr;
    }

    .case-study-meta > div + div {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .case-study-result {
        gap: 16px;
    }

    .case-result-status {
        justify-self: start;
    }

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

    .dialog-side-column {
        grid-template-rows: auto auto;
    }

    .pokedex-gallery > .dialog-main-shot,
    .pokedex-gallery > .dialog-side-column,
    .pokemon-mini-card {
        height: auto;
    }

    .heading-row {
        display: block;
    }

    .heading-row .text-link {
        margin-top: 22px;
    }

    .journey-grid {
        gap: 55px;
    }

    .certifications-block {
        margin-top: 46px;
    }

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

    .contact-panel {
        grid-template-columns: 1fr;
        padding: 42px 28px;
    }

    .contact-panel .button {
        justify-self: start;
    }

    .contact-actions {
        justify-content: flex-start;
    }

    .site-footer {
        margin-top: 70px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        justify-content: space-between;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 450px) {
    .hero-actions .button {
        width: 100%;
    }

    .error-actions .button {
        width: 100%;
    }

    .hero-metrics {
        margin-top: 42px;
    }

    .hero-metrics strong {
        font-size: 1.1rem;
    }

    .hero-metrics span {
        font-size: 0.6rem;
    }

    .hero-visual {
        min-height: 400px;
    }

    .code-card pre {
        font-size: 0.61rem;
    }

    .floating-chip {
        display: none;
    }

    .status-card {
        left: 8px;
    }

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

    .tech-card > span {
        display: none;
    }

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

    .project-preview {
        height: 220px;
    }

    .footer-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
