@charset "UTF-8";

:root {
    --accent: #6ee7b7;
    --accent-rgb: 110, 231, 183;
    --bg: #080c0f;
    --bg-elevated: #0d1317;
    --surface: #11191e;
    --surface-2: #172127;
    --surface-soft: rgba(255, 255, 255, 0.035);
    --text: #f4f7f6;
    --text-soft: #a5b1ad;
    --text-faint: #70807a;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.17);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    --danger: #ff8e8e;
    --success: #74e8b7;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1180px;
    --header-height: 80px;
    --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[data-theme="light"] {
    --bg: #f4f6f3;
    --bg-elevated: #ffffff;
    --surface: #e9eeea;
    --surface-2: #dfe7e2;
    --surface-soft: rgba(8, 20, 15, 0.035);
    --text: #101916;
    --text-soft: #52615b;
    --text-faint: #78857f;
    --line: rgba(8, 20, 15, 0.11);
    --line-strong: rgba(8, 20, 15, 0.2);
    --shadow: 0 28px 70px rgba(26, 48, 38, 0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

::selection {
    color: #06100c;
    background: var(--accent);
}

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

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

button,
input,
textarea {
    color: inherit;
    font: inherit;
}

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

button {
    cursor: pointer;
}

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

h1,
h2,
h3 {
    color: var(--text);
    font-weight: 720;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(3.15rem, 7vw, 6.5rem);
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
}

h3 {
    margin-bottom: 14px;
    font-size: 1.34rem;
}

p {
    color: var(--text-soft);
}

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

.section {
    position: relative;
    padding: 118px 0;
}

.surface-section {
    border-block: 1px solid var(--line);
    background: var(--surface-soft);
}

.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;
    z-index: 2000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #07100d;
    background: var(--accent);
    border-radius: 8px;
    transform: translateY(-150%);
}

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

:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.68);
    outline-offset: 3px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 26px;
    height: 1px;
    content: "";
    background: var(--accent);
}

.button {
    display: inline-flex;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
    color: #07120e;
    background: var(--accent);
    box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.14);
}

.button-primary:hover {
    box-shadow: 0 16px 38px rgba(var(--accent-rgb), 0.25);
}

.button-secondary {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--surface-soft);
}

.button-secondary:hover {
    border-color: rgba(var(--accent-rgb), 0.54);
    background: rgba(var(--accent-rgb), 0.06);
}

.button-small {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 0.84rem;
}

.icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
    border-color: var(--line);
    background: color-mix(in srgb, var(--bg) 87%, transparent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #08110e;
    background: var(--accent);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.16;
}

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

.brand-copy small {
    margin-top: 4px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 0.59rem;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 27px);
}

.primary-nav a {
    position: relative;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 650;
    transition: color 160ms ease;
}

.primary-nav a::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 160ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--text);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle:hover {
    border-color: rgba(var(--accent-rgb), 0.5);
}

.nav-toggle {
    display: none;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px auto;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 98px);
    padding-bottom: 66px;
    overflow: hidden;
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: -12vw;
    width: 60vw;
    height: 60vw;
    content: "";
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 66%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    align-items: center;
    gap: clamp(48px, 7vw, 100px);
    grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.92fr);
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
    padding: 7px 12px;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--surface-soft);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
}

.availability span {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.1);
    animation: pulse 2.5s ease infinite;
}

.hero h1 {
    max-width: 750px;
    margin-bottom: 26px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-intro {
    max-width: 690px;
    margin-bottom: 34px;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.social-links a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-soft);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.social-links a:hover {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.44);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
}

.code-window {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg-elevated) 96%, black);
    box-shadow: var(--shadow);
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.window-bar {
    display: flex;
    height: 48px;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.window-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef6b66;
}

.window-bar span:nth-child(2) {
    background: #e5b85a;
}

.window-bar span:nth-child(3) {
    background: var(--accent);
}

.window-bar small {
    margin-left: auto;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 0.67rem;
}

.code-content {
    padding: 32px 24px;
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 1vw, 0.85rem);
    line-height: 1.9;
}

.code-content p {
    margin: 0;
    color: #d6dedb;
    white-space: nowrap;
}

[data-theme="light"] .code-content p {
    color: #34443e;
}

.code-content i {
    display: inline-block;
    width: 34px;
    margin-right: 12px;
    color: var(--text-faint);
    font-style: normal;
    user-select: none;
}

.code-purple {
    color: #c6a6ff;
}

.code-green {
    color: var(--accent);
}

.code-orange {
    color: #ffb86b;
}

.terminal-line {
    padding: 14px 24px;
    color: var(--text-soft);
    border-top: 1px solid var(--line);
    background: rgba(var(--accent-rgb), 0.035);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.terminal-line > span:first-child {
    margin-right: 9px;
    color: var(--accent);
}

.cursor {
    display: inline-block;
    width: 7px;
    height: 13px;
    margin-left: 6px;
    vertical-align: -2px;
    background: var(--accent);
    animation: blink 1.1s step-end infinite;
}

.floating-tech {
    position: absolute;
    padding: 9px 13px;
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: 0.67rem;
    font-weight: 700;
    animation: float 5s ease-in-out infinite;
}

.floating-tech-one {
    top: -24px;
    right: 30px;
}

.floating-tech-two {
    bottom: 52px;
    left: -38px;
    animation-delay: -1.6s;
}

.floating-tech-three {
    right: -24px;
    bottom: -20px;
    animation-delay: -3.2s;
}

.tech-marquee {
    width: 100%;
    margin-top: 100px;
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--surface-soft);
}

.tech-marquee > div {
    display: flex;
    width: max-content;
    align-items: center;
    padding: 17px 0;
    animation: marquee 38s linear infinite;
}

.tech-marquee span {
    padding: 0 28px;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tech-marquee b {
    color: var(--accent);
    font-size: 0.48rem;
}

.about-grid {
    display: grid;
    gap: clamp(50px, 9vw, 130px);
    grid-template-columns: 0.95fr 1.05fr;
}

.section-intro {
    position: relative;
}

.about-copy > p {
    margin-bottom: 22px;
    font-size: 1.05rem;
}

.check-list {
    display: grid;
    margin: 32px 0 0;
    padding: 0;
    gap: 12px;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--text-soft);
}

.check-list span {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.26);
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.06);
    font-size: 0.7rem;
}

.stats-grid {
    display: grid;
    margin-top: 80px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    grid-template-columns: repeat(4, 1fr);
}

.stat-card {
    padding: 32px;
}

.stat-card + .stat-card {
    border-left: 1px solid var(--line);
}

.stat-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.08em;
}

.stat-card span {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 56px;
}

.section-heading h2,
.section-heading p {
    margin-bottom: 0;
}

.section-heading > p {
    max-width: 420px;
}

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

.skill-card,
.service-card,
.detail-card,
.achievement-card {
    position: relative;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.skill-card:hover,
.service-card:hover,
.detail-card:hover,
.achievement-card:hover {
    border-color: rgba(var(--accent-rgb), 0.32);
    transform: translateY(-4px);
}

.skill-card::before,
.service-card::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    content: "";
    background: radial-gradient(circle at 100% 0, rgba(var(--accent-rgb), 0.1), transparent 66%);
}

.skill-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
    place-items: center;
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.06);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
}

.skill-card p {
    min-height: 81px;
    font-size: 0.92rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-list span {
    padding: 5px 9px;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
    font-family: var(--font-mono);
    font-size: 0.65rem;
}

.timeline {
    position: relative;
    max-width: 980px;
    margin-left: auto;
}

.timeline::before {
    position: absolute;
    top: 6px;
    bottom: 0;
    left: 167px;
    width: 1px;
    content: "";
    background: var(--line-strong);
}

.timeline-item {
    position: relative;
    display: grid;
    gap: 52px;
    padding-bottom: 58px;
    grid-template-columns: 130px 1fr;
}

.timeline-marker {
    position: absolute;
    top: 5px;
    left: 161px;
    width: 13px;
    height: 13px;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.5);
}

.timeline-period {
    margin-top: 0;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.timeline-content {
    padding-bottom: 42px;
    border-bottom: 1px solid var(--line);
}

.timeline-content h3 {
    font-size: 1.7rem;
}

.timeline-company {
    margin-top: -6px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.74rem;
}

.timeline-content ul {
    display: grid;
    margin: 24px 0 0;
    padding-left: 20px;
    gap: 8px;
    color: var(--text-soft);
}

.timeline-content li::marker {
    color: var(--accent);
}

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

.service-card {
    min-height: 310px;
}

.service-number {
    display: block;
    margin-bottom: 36px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.service-card p {
    max-width: 560px;
}

.service-card ul {
    display: flex;
    flex-wrap: wrap;
    margin: 28px 0 0;
    padding: 0;
    gap: 9px 22px;
    list-style: none;
}

.service-card li {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.service-card li::before {
    margin-right: 7px;
    color: var(--accent);
    content: "+";
}

.project-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
}

.project-search {
    display: flex;
    width: min(100%, 340px);
    height: 46px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: var(--text-faint);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.project-search:focus-within {
    border-color: rgba(var(--accent-rgb), 0.5);
}

.project-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.82rem;
}

.project-search input::placeholder {
    color: var(--text-faint);
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.filter-button {
    padding: 8px 12px;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.67rem;
}

.filter-button:hover,
.filter-button.active {
    color: #07120e;
    border-color: var(--accent);
    background: var(--accent);
}

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

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
    border-color: rgba(var(--accent-rgb), 0.31);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
    transform: translateY(-5px);
}

.project-card[hidden] {
    display: none;
}

.project-image {
    position: relative;
    display: block;
    aspect-ratio: 12 / 7.6;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

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

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

.project-year,
.featured-badge {
    position: absolute;
    top: 14px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: 0.61rem;
}

.project-year {
    right: 14px;
    color: #e9f1ee;
    background: rgba(8, 12, 15, 0.68);
}

.featured-badge {
    left: 14px;
    color: #07120e;
    border-color: transparent;
    background: var(--accent);
    font-weight: 800;
}

.project-card-body {
    padding: 26px;
}

.project-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.project-kicker {
    margin-bottom: 6px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.project-card h3 a:hover {
    color: var(--accent);
}

.project-card-body > p {
    min-height: 82px;
    font-size: 0.9rem;
}

.arrow-link {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.arrow-link:hover {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.5);
    transform: rotate(8deg);
}

.empty-projects {
    margin: 40px 0 0;
    padding: 38px;
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.two-column-section {
    display: grid;
    align-items: start;
    gap: 80px;
    grid-template-columns: 0.8fr 1.2fr;
}

.stacked-cards {
    display: grid;
    gap: 16px;
}

.detail-card .meta,
.accent-copy {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.detail-card p:last-child {
    margin-bottom: 0;
}

.two-card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, 1fr);
}

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

.achievement-card > span {
    display: block;
    margin-bottom: 48px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.achievement-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.certification-list {
    border-top: 1px solid var(--line);
}

.certificate-row {
    display: grid;
    min-height: 92px;
    align-items: center;
    gap: 18px;
    padding: 18px 10px;
    border-bottom: 1px solid var(--line);
    grid-template-columns: auto 1fr auto auto;
    transition: padding 160ms ease, background 160ms ease;
}

.certificate-row:hover {
    padding-inline: 18px;
    background: var(--surface-soft);
}

.certificate-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.23);
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.05);
}

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

.certificate-row small,
.certificate-year {
    color: var(--text-faint);
    font-size: 0.75rem;
}

.certificate-year {
    font-family: var(--font-mono);
}

.testimonials-section {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 100%, rgba(var(--accent-rgb), 0.09), transparent 46%),
        var(--surface-soft);
}

.testimonial-slider {
    max-width: 880px;
    margin-inline: auto;
    text-align: center;
}

.testimonial-track {
    display: grid;
}

.testimonial-card {
    display: none;
    max-width: 820px;
    margin: 0;
    padding: 10px;
    grid-area: 1 / 1;
}

.testimonial-card.active {
    display: block;
    animation: fade-in 350ms ease;
}

.quote-mark {
    height: 64px;
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
}

.testimonial-card blockquote {
    margin: 20px 0 32px;
    color: var(--text);
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.025em;
}

.testimonial-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-card figcaption span {
    color: var(--text-faint);
    font-size: 0.82rem;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.slider-dots {
    display: flex;
    gap: 7px;
}

.slider-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--text-faint);
}

.slider-dot.active {
    width: 22px;
    border-radius: 10px;
    background: var(--accent);
}

.contact-section {
    padding-bottom: 130px;
}

.contact-grid {
    display: grid;
    gap: clamp(54px, 9vw, 120px);
    grid-template-columns: 0.9fr 1.1fr;
}

.contact-copy {
    position: sticky;
    top: calc(var(--header-height) + 36px);
    align-self: start;
}

.contact-copy > p:not(.eyebrow) {
    max-width: 500px;
    font-size: 1.04rem;
}

.contact-details {
    display: grid;
    margin: 38px 0;
    gap: 14px;
}

.contact-details > * {
    display: flex;
    align-items: center;
    gap: 13px;
}

.contact-details > * > span:first-child {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--accent);
    border: 1px solid var(--line);
    border-radius: 9px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.contact-details > * > span:last-child {
    color: var(--text);
    font-size: 0.86rem;
}

.contact-details small {
    display: block;
    color: var(--text-faint);
    font-size: 0.68rem;
}

.contact-form {
    position: relative;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: block;
    margin-bottom: 19px;
    color: var(--text-soft);
    font-size: 0.77rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 13px 14px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    background: var(--surface-soft);
    font-size: 0.9rem;
    transition: border-color 160ms ease, background 160ms ease;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(var(--accent-rgb), 0.68);
    background: rgba(var(--accent-rgb), 0.025);
}

.contact-form input.user-invalid,
.contact-form textarea.user-invalid {
    border-color: var(--danger);
}

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

.submit-button {
    width: 100%;
}

.form-note {
    margin: 13px 0 0;
    text-align: center;
    font-size: 0.7rem;
}

.form-alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 9px;
    font-size: 0.8rem;
}

.form-alert.error {
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 35%, transparent);
    background: color-mix(in srgb, var(--danger) 7%, transparent);
}

.form-alert.success {
    color: var(--success);
    border-color: color-mix(in srgb, var(--success) 35%, transparent);
    background: color-mix(in srgb, var(--success) 7%, transparent);
}

.form-alert ul {
    margin: 7px 0 0;
    padding-left: 20px;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.site-footer {
    padding: 72px 0 24px;
    border-top: 1px solid var(--line);
    background: var(--bg-elevated);
}

.footer-grid {
    display: grid;
    gap: 50px;
    padding-bottom: 56px;
    grid-template-columns: 2fr 0.7fr 1fr;
}

.footer-grid > div:first-child p {
    max-width: 340px;
    margin: 23px 0 0;
    font-size: 0.88rem;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-links strong,
.footer-contact strong {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.79rem;
}

.footer-links > a,
.footer-contact > a,
.footer-contact > span {
    color: var(--text-soft);
    font-size: 0.8rem;
}

.footer-links a:hover,
.footer-contact > a:hover {
    color: var(--accent);
}

.footer-socials {
    margin-top: 12px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.footer-bottom p,
.footer-bottom a {
    margin: 0;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 0.67rem;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* Project detail */
.project-hero {
    padding-top: calc(var(--header-height) + 72px);
    padding-bottom: 78px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 52px;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.back-link:hover {
    color: var(--accent);
}

.project-hero-grid {
    display: grid;
    align-items: center;
    gap: 60px;
    grid-template-columns: 0.85fr 1.15fr;
}

.project-hero h1 {
    margin-bottom: 13px;
}

.project-subtitle {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.project-hero-copy > p:last-of-type {
    font-size: 1.05rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 30px;
}

.project-hero-image {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    box-shadow: var(--shadow);
    transform: rotate(1.3deg);
}

.project-hero-image img {
    width: 100%;
    border-radius: 11px;
}

.project-subnav {
    position: sticky;
    z-index: 50;
    top: var(--header-height);
    overflow-x: auto;
    border-block: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px);
    scrollbar-width: none;
}

.project-subnav::-webkit-scrollbar {
    display: none;
}

.project-subnav .container {
    display: flex;
    min-width: max-content;
    align-items: center;
    gap: 28px;
}

.project-subnav a {
    display: block;
    padding: 17px 0;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.67rem;
}

.project-subnav a:hover {
    color: var(--accent);
}

.project-story {
    max-width: 1040px;
}

.project-story-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--line);
}

.project-story-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.large-copy {
    max-width: 850px;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.65;
}

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

.numbered-grid > div {
    display: flex;
    min-height: 94px;
    align-items: flex-start;
    gap: 20px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.numbered-grid span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.65rem;
}

.numbered-grid p {
    margin: 0;
    color: var(--text);
    font-size: 0.91rem;
}

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

.screenshot-link {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.screenshot-link img {
    width: 100%;
    transition: transform 300ms ease;
}

.screenshot-link span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 9px;
    color: white;
    border-radius: 6px;
    background: rgba(8, 12, 15, 0.74);
    backdrop-filter: blur(8px);
    font-family: var(--font-mono);
    font-size: 0.61rem;
}

.screenshot-link:hover img {
    transform: scale(1.02);
}

.large-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.large-tag-list span {
    padding: 11px 15px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-soft);
    font-family: var(--font-mono);
    font-size: 0.73rem;
}

.split-story {
    display: grid;
    gap: 80px;
    grid-template-columns: 0.8fr 1.2fr;
}

.story-list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 12px;
    list-style: none;
}

.story-list li {
    position: relative;
    padding: 18px 18px 18px 48px;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.story-list li::before {
    position: absolute;
    top: 18px;
    left: 18px;
    color: var(--accent);
    content: "→";
}

.result-section {
    margin-top: 80px;
    padding-inline: clamp(24px, 5vw, 60px);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), var(--surface-soft));
}

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

.result-grid div {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--bg-elevated) 65%, transparent);
}

.result-grid span {
    display: grid;
    width: 29px;
    height: 29px;
    margin-bottom: 22px;
    place-items: center;
    color: #07120e;
    border-radius: 50%;
    background: var(--accent);
    font-size: 0.73rem;
}

.result-grid p {
    margin: 0;
    color: var(--text);
    font-size: 0.88rem;
}

.next-project {
    padding: 100px 0 120px;
}

.next-project > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 0;
    border-block: 1px solid var(--line);
}

.next-project strong,
.next-project small {
    display: block;
}

.next-project strong {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.05em;
}

.next-project small {
    margin-top: 6px;
    color: var(--text-soft);
}

.next-project > a > span:last-child {
    color: var(--accent);
    font-size: 3rem;
    transition: transform 160ms ease;
}

.next-project a:hover > span:last-child {
    transform: translateX(8px);
}

.error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    text-align: center;
}

.error-code {
    margin-bottom: 10px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.1em;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes pulse {
    50% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0.03); }
}

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

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

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
    :root {
        --header-height: 72px;
    }

    .primary-nav {
        position: fixed;
        top: var(--header-height);
        right: 20px;
        left: 20px;
        display: none;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--bg-elevated);
        box-shadow: var(--shadow);
    }

    .primary-nav.open {
        display: grid;
    }

    .primary-nav a {
        padding: 11px 8px;
        font-size: 0.9rem;
    }

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

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }

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

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-4px) rotate(-45deg);
    }

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

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

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

    .tech-marquee {
        margin-top: 90px;
    }

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

    .skill-card:last-child,
    .achievement-card:last-child {
        grid-column: 1 / -1;
    }

    .project-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .project-search {
        width: 100%;
    }

    .filter-list {
        justify-content: flex-start;
    }

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

    .project-hero-copy {
        max-width: 730px;
    }

    .project-hero-image {
        transform: none;
    }
}

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

    .section {
        padding: 86px 0;
    }

    h1 {
        font-size: clamp(2.65rem, 13vw, 4.6rem);
    }

    h2 {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .brand-copy {
        display: none;
    }

    .nav-contact {
        display: none;
    }

    .hero {
        padding-top: calc(var(--header-height) + 62px);
        padding-bottom: 48px;
    }

    .hero-grid {
        gap: 62px;
    }

    .availability {
        margin-bottom: 28px;
        white-space: normal;
    }

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

    .code-content {
        padding: 23px 10px;
        overflow-x: auto;
        font-size: 0.65rem;
    }

    .code-content i {
        width: 24px;
        margin-right: 6px;
    }

    .floating-tech {
        display: none;
    }

    .tech-marquee {
        margin-top: 70px;
    }

    .about-grid,
    .two-column-section,
    .contact-grid {
        gap: 42px;
        grid-template-columns: 1fr;
    }

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

    .stat-card:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .stat-card:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px;
    }

    .skill-grid,
    .services-grid,
    .projects-grid,
    .two-card-grid,
    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .skill-card:last-child,
    .achievement-card:last-child {
        grid-column: auto;
    }

    .skill-card p,
    .project-card-body > p {
        min-height: 0;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline-item {
        gap: 12px;
        padding-left: 31px;
        grid-template-columns: 1fr;
    }

    .timeline-marker {
        left: 0;
    }

    .timeline-period {
        margin-bottom: 0;
    }

    .service-card {
        min-height: 0;
    }

    .project-card-body {
        padding: 22px;
    }

    .form-row {
        gap: 0;
        grid-template-columns: 1fr;
    }

    .contact-copy {
        position: static;
    }

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

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .project-hero {
        padding-top: calc(var(--header-height) + 52px);
    }

    .back-link {
        margin-bottom: 36px;
    }

    .project-links .button {
        flex: 1 1 calc(50% - 9px);
    }

    .project-story-section {
        padding: 76px 0;
    }

    .numbered-grid,
    .screenshot-grid,
    .split-story,
    .result-grid {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .split-story {
        gap: 24px;
    }

    .result-section {
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card + .stat-card {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .filter-list {
        flex-wrap: nowrap;
        padding-bottom: 5px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .filter-button {
        flex: 0 0 auto;
    }

    .project-links .button {
        flex-basis: 100%;
    }

    .certificate-row {
        grid-template-columns: auto 1fr auto;
    }

    .certificate-year {
        display: none;
    }

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

    .footer-grid > div:first-child {
        grid-column: auto;
    }

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

@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;
    }

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